# Coolify UI redesign This branch restyles Coolify without changing its Livewire + Blade + Alpine + Tailwind v4 architecture. The visual system now covers the global shell, project and environment pages, application navigation, settings surfaces, tables, modals, toasts, terminals, and metrics. Use this file as the source of truth when updating another page. The older Graphite-only notes are no longer accurate. Onboarding validation and live server validation checkpoints share `` (idle / pending / running / success / error) inside a compact divided list, not legacy green check SVGs or fixed-width status rows. > **Maintainer rules** > > - Keep the work frontend-focused unless existing data must be exposed to the > view. > - Preserve routes, Livewire bindings, permissions, confirmations, and working > interactions while changing layout and presentation. > - Do not write or run tests for this redesign branch. > - Validate Blade with `docker exec coolify php artisan view:cache`, then clear > it with `docker exec coolify php artisan view:clear`. > - Build frontend assets in the Vitee container with > `docker exec coolify-vite npm run build`. > - Use existing components before adding another styling abstraction. > - Use `` for dropdown controls. Never add a native > `` on any redesigned route, including mobile fallbacks. Use: ```blade ``` Boolean checkboxes should normally become descriptive two-option listboxes. Use `.live` behavior only when the selection needs an immediate server rerender. Keep checkboxes for compact permission matrices and multi-select lists. Those controls must use the shared `x-forms.checkbox` anatomy: an 18px rounded custom box, purple checked fill in light mode, yellow checked fill in dark mode, and a high-contrast check mark. Never expose the browser or Tailwind Forms default checkbox on a redesigned page. The popup panel uses a 10px radius around 6px options with a 4px inset. Keep the option content left-aligned and size the panel to its content or trigger; do not create an unnecessarily wide menu. Toolbar filter and sort buttons keep static labels (`Filter`, `Sort`). The selected option is indicated inside the menu, not repeated on the trigger. #### Multi-select filter dropdowns Toolbar filters that can combine criteria use one multi-select listbox rather than separate dropdowns or a single selected value. Follow the deployment history filter in `resources/views/livewire/project/application/deployment/index.blade.php`: - set `aria-multiselectable="true"` on the listbox; - group related options under compact uppercase labels; - keep the dropdown open while options are toggled; - use the shared 16px custom checkbox treatment: purple checked fill in light mode, yellow checked fill in dark mode, and a high-contrast check mark; - show the number of active selections in a small count pill on the static `Filter` trigger; - combine selections within one group with OR logic and combine different groups with AND logic; - constrain only the options area with `max-h-80 overflow-y-auto`; - place a persistent `Reset filters` action in a separate footer below the scrollable options, divided by a top border; - disable the reset action when no filter is active, and close the dropdown after resetting. Do not represent the empty state as a selectable `All` option. The footer reset action is the single way to return the multi-select to its unfiltered state. ### Standard table controls Dense tables use the shared `x-table.*` components so search, filters, sorting, and backend loading states remain visually and behaviorally consistent: - `` owns the responsive search-left/actions-right layout; - `` owns the search icon, optional loading indicator, clear action, sizing, and input anatomy; - `` owns the static Filter trigger, active-count pill, multi-select panel, scrollable options area, and Reset filters footer; - `` owns the static Sort trigger and single-select panel; - `` overlays only the changing table data for backend search, filter, sort, and pagination requests. Tables continue to own their filter options, sort choices, headers, rows, queries, permissions, and empty states. Backend-filtered or paginated tables must use `x-table.loading`; frontend-only Alpine tables reuse the same toolbar and control anatomy but do not show an artificial loading state. ### Buttons - neutral actions use the shared `.button`; - primary actions use the theme-aware purple/yellow tint; - destructive actions use the existing error treatment; - use outline Reicons where a matching glyph exists; - avoid raw browser-default buttons and old dark-mode purple fills. ### Unsaved changes `resources/views/components/unsaved-bar.blade.php` is a compact floating bottom-center pill. It contains: - “You have changes that haven't been saved yet.” - a subtle Reset action; - a theme-aware Save changes button matching the tab accent. On small viewports the pill is inset (`inset-x-3`) and stacks: full label on the first line, Reset / Save on the second (right-aligned). From `sm` up it returns to the centered single-row nowrap pill. Do not restore the old full-width footer. Deferred fields in one Livewire component use one floating unsaved bar and one submit action. Do not add a separate “Save configuration” button to every card. Selectors that are safe to persist independently should use the existing instant-save pattern. --- ## 7. Dense tables Collections with many rows should use the Cloudflare-inspired table pattern: - toolbar above the table; - search on the left; - filters, sort, view toggles, and Add on the right; - 40px header row and roughly 48px data rows; - subtle row hover; - plain text or the shared status badge rather than large colored chips; - compact action at the far right; - no separate layer card for each item. Do not add a summary card above a table when it only repeats the row count, current page, or refresh interval. Keep counts and pagination in the footer. Background polling stays silent unless its state is actionable; do not add a “Live updates” badge just to explain that a table refreshes. Filters only render meaningful values; use the shared listbox instead of a number input or browser-native control. The footer is always inside the table shell: - `Showing X–Y of Z` on the left; - first, previous, current page, next, and last controls on the right. Hide the entire pagination footer when there is only one page (`totalPages > 1`). A lone “1–2 of 2” bar with disabled controls adds noise and is unnecessary. Use `x-status-badge` for resource and execution state. It is a small neutral pill with a semantic dot, not a full colored rectangle. Relevant classes: - `.data-table` - `.data-table-header` - `.data-table-row` - `.table-badge` Create a page-specific grid class when columns differ. Add responsive rules that hide secondary columns before allowing horizontal overflow. --- ## 8. Modals, confirmations, and toasts ### Modals `x-modal-input` and confirmation dialogs reuse the layer-card shell: - compact elevated header; - nested base-color body; - content-width desktop sizing; - shared 32px controls; - no redundant description below a self-explanatory title; - custom listboxes instead of native browser selects; - right-aligned footer actions below a divider; - compact action buttons, never a submit button stretched by a column layout. Edit modals should use the same field layout and option set as their matching create modal. ### Command palette The global search command palette (`livewire:global-search`) is a compact top-anchored overlay: - elevated shell with hairline ring and modal shadow (not a heavy floating card); - recessed-neutral header strip with outline search glyph and 14px input; - compact OS-aware mod+K (`⌘K` on macOS, `Ctrl+K` on Windows/Linux) / `/` / `ESC` kbd chips matching the sidebar search trigger; - nested base-color results body with group labels in sentence case; - dense result rows as inset 6px-radius pills (listbox anatomy), not full-bleed bars with global focus rings; - hover uses neutral fill; keyboard focus uses a soft accent wash plus a 2px left rail — never the global `ring-2` / ring-offset treatment; - create rows use a neutral plus tile that only picks up the accent when the row is focused; - type pills and quickcommand chips stay recessed; they tint with the accent only on the focused row; - neutral thin scrollbar inside the results body (not brand-colored); - create-resource modals opened from the palette reuse the standard `application-settings-section` layer-card shell. Preserve keyboard navigation (arrow keys, Enter via focused links, Escape to clear then close), `/` and mod+K (⌘K / Ctrl+K by OS) open shortcuts, and the multi-step server → destination → project → environment create flow. ### Toasts `resources/views/components/toast.blade.php` provides the global `window.toast(message, options)` API and Livewire event handling. Current toast behavior: - compact layered card, maximum width 26rem; - Reicon status tile for success, info, warning, danger, or default; - title plus optional description; - dismiss and copy-details actions; - up to four stacked notifications; - four-second dismissal, paused while hovered; - support for all six screen positions and sanitized custom HTML. Do not bring back the old oversized dark rectangle. --- ## 9. Terminals, logs, and metrics ### Terminals Application and server browser terminals use the same browser-oriented console shell, theme picker, compact header controls, and outline `browser-terminal` Reicon. Hide a container switcher when only one container exists. ### Logs Runtime and deployment logs should feel like a clean terminal surface: - keep a single log stream inside one layer card instead of adding an introductory card above it; - one compact toolbar; - a recessed monospace log viewport; - search and line-count controls aligned with icon actions; - clear live/follow state; - fullscreen support without changing the control language; - custom listbox-style menus instead of browser dropdowns. ### Metrics Metrics pages use separate layer cards for range selection, CPU, and memory. Charts follow the application metrics implementation: - 240px area chart; - smooth 2px stroke and restrained gradient fill; - dashed neutral grid; - no ApexCharts toolbar; - tooltip positioned at the hovered point; - UTC on both axes and tooltip; - 20% headroom above observed values; - downsample long time ranges before rendering. Only add a metric if Sentinel exposes historical data for it. Current Sentinel history endpoints store CPU and memory. Root filesystem usage is included in the periodic push payload for threshold notifications, but it is not stored as a historical Sentinel metric and has no history endpoint, so it cannot power a disk-usage graph yet. --- ## 10. Current reference surfaces Use these as implementation references: | Surface | Reference | |---|---| | Dashboard overview | `resources/views/livewire/dashboard.blade.php` | | Top-level collection cards | `resources/views/livewire/project/index.blade.php`, `resources/views/source/all.blade.php` | | Top-level family tabs | `resources/views/components/team/navbar.blade.php`, `resources/views/components/notification/navbar.blade.php` | | General settings and form anatomy | `resources/views/livewire/project/application/general.blade.php` | | Advanced settings | `resources/views/livewire/project/application/advanced.blade.php` | | Fixed layer-2 resource navigation | `resources/views/livewire/project/application/heading.blade.php`, `resources/views/livewire/server/navbar.blade.php` | | Grouped settings sidebar | `resources/views/livewire/project/application/configuration.blade.php`, `resources/views/components/server/sidebar.blade.php` | | Dense environment table and footer | `resources/views/livewire/project/shared/environment-variable/all.blade.php` | | Standard table toolbar controls | `resources/views/components/table/*` | | Application metrics charts | `resources/views/livewire/project/shared/metrics.blade.php` | | Browser terminal workspace | `resources/views/livewire/terminal/index.blade.php` | | Layer card | `resources/views/components/application/settings-section.blade.php` | | Custom dropdown | `resources/views/components/forms/listbox.blade.php` | | Empty state | `resources/views/components/empty.blade.php` | | Status pill | `resources/views/components/status-badge.blade.php` | | Floating save pill | `resources/views/components/unsaved-bar.blade.php` | | Global toast | `resources/views/components/toast.blade.php` | | Command palette / global search | `resources/views/livewire/global-search.blade.php` | | Outline icons | `resources/views/components/reicon.blade.php` | | Shared styling | `resources/css/app.css`, `resources/css/utilities.css` | | HTTP error pages | `resources/views/components/error-page.blade.php`, `resources/views/errors/*` | Already restyled application configuration surfaces include General, Advanced, Environment Variables, Persistent Storage, Servers, Scheduled Tasks, Webhooks, Preview Deployments, Healthcheck, Rollback, Resource Limits, Resource Operations, Metrics, Tags, and Danger Zone. HTTP error pages (400, 401, 402, 403, 404, 419, 429, 500, 503) use the shared `` component on the public auth-style canvas: theme-aware status code, compact title and muted description, neutral `.button` actions, and an `auth-text-link`-style Contact support link. Keep copy sentence-case and avoid oversized 200px status numbers. --- ## 11. Restyling checklist 1. Inventory every route and reusable partial in the family before editing. 2. Read the current Blade and Livewire class before changing presentation. 3. Preserve every existing action, authorization check, loading state, and confirmation. 4. Add the correct dual navigation and scoped workspace/form class. 5. Convert meaningful groups to layer cards and use `gap-6`. 6. Make the responsive column count match the controls visible in every state. 7. Replace native selects and checkbox-style configuration with listboxes. 8. Use one save model per component: instant-save or one floating dirty bar. 9. Check nested radii using `outer = inner + inset`. 10. Keep modal descriptions purposeful and footer actions compact/right-aligned. 11. Use tables for dense collections and cards for forms or summaries. 12. Use `x-status-badge`, `x-empty`, and `x-reicon`. 13. Confirm light and dark accent behavior. 14. Check fixed-nav anchor offsets and responsive stacking. 15. Sweep every sibling route for legacy controls and shells. 16. Run `git diff --check`. 17. Compile Blade views in the `coolify` container. 18. Build assets in `coolify-vite`. 19. Hard-refresh and inspect the family routes in both themes.