mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
fix(frontend): expand agent tables to full width in full-width mode
Tables in Settings → Agents were not expanding to fill the container width when full-width mode was enabled. Added `w-full` class to all tables (Managed Agents, Kubernetes Clusters, and removed host tables) so they properly expand in full-width layouts. Fixes #1080
This commit is contained in:
@@ -940,7 +940,7 @@ export const UnifiedAgents: Component = () => {
|
||||
</Show>
|
||||
|
||||
<Card id="linked-agents" padding="none" tone="glass" class="overflow-x-auto rounded-lg">
|
||||
<table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<thead class="bg-gray-50 dark:bg-gray-800">
|
||||
<tr>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Hostname</th>
|
||||
@@ -1096,7 +1096,7 @@ export const UnifiedAgents: Component = () => {
|
||||
</div>
|
||||
|
||||
<Card padding="none" tone="glass" class="overflow-x-auto rounded-lg">
|
||||
<table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<thead class="bg-gray-50 dark:bg-gray-800">
|
||||
<tr>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Cluster</th>
|
||||
@@ -1159,7 +1159,7 @@ export const UnifiedAgents: Component = () => {
|
||||
</div>
|
||||
|
||||
<Card padding="none" tone="glass" class="overflow-x-auto rounded-lg">
|
||||
<table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<thead class="bg-gray-50 dark:bg-gray-800">
|
||||
<tr>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Hostname</th>
|
||||
@@ -1208,7 +1208,7 @@ export const UnifiedAgents: Component = () => {
|
||||
</div>
|
||||
|
||||
<Card padding="none" tone="glass" class="overflow-x-auto rounded-lg">
|
||||
<table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<thead class="bg-gray-50 dark:bg-gray-800">
|
||||
<tr>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Cluster</th>
|
||||
|
||||
@@ -23,6 +23,7 @@ import (
|
||||
_ "github.com/rcourtman/pulse-go-rewrite/internal/mock" // Import for init() to run
|
||||
"github.com/rcourtman/pulse-go-rewrite/internal/monitoring"
|
||||
"github.com/rcourtman/pulse-go-rewrite/internal/websocket"
|
||||
"github.com/rcourtman/pulse-go-rewrite/pkg/auth"
|
||||
"github.com/rcourtman/pulse-go-rewrite/pkg/metrics"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
@@ -87,6 +88,19 @@ func Run(ctx context.Context, version string) error {
|
||||
// Initialize license public key for Pro feature validation
|
||||
license.InitPublicKey()
|
||||
|
||||
// Initialize RBAC manager for role-based access control
|
||||
dataDir := os.Getenv("PULSE_DATA_DIR")
|
||||
if dataDir == "" {
|
||||
dataDir = "/etc/pulse"
|
||||
}
|
||||
rbacManager, err := auth.NewFileManager(dataDir)
|
||||
if err != nil {
|
||||
log.Warn().Err(err).Msg("Failed to initialize RBAC manager, role management will be unavailable")
|
||||
} else {
|
||||
auth.SetManager(rbacManager)
|
||||
log.Info().Msg("RBAC manager initialized")
|
||||
}
|
||||
|
||||
log.Info().Msg("Starting Pulse monitoring server")
|
||||
|
||||
// Validate agent binaries are available for download
|
||||
|
||||
Reference in New Issue
Block a user