Move the scheduler CRUD endpoints, modals, styles, sidebar tasks list, and task row into the _scheduler plugin and drop the core tasks components. The sidebar hosts plugin sections through a neutral sidebar-extensions point inside the extensions-section container instead of a tasks-specific one, so other plugins can contribute sections there too. The scheduler and datepicker styles load through the plugin page-head extension instead of core index.html preloads, and the shared flatpickr preload stays in core. Repoint the header scheduler entry at the plugin modal path and update the api and plugins DOX indexes. Pin indicators follow the relocated task row and the pin test reads it from the plugin. The chats store and core chat behavior adopt the plugin task store idiom, and the ws client surface test expects the plugin store accessor. The modals and css DOX drop their core scheduler ownership and the scheduler plugin DOX indexes its sidebar and page-head extensions. The plugin manifest becomes always enabled with a broader description so the Tasks UI stays core behavior, and the scheduler editor test follows the moved endpoint and store paths. Validation: pytest plugins/_pin_to_top/tests/test_pins.py tests/test_sidebar_row_actions.py tests/test_webui_extension_surfaces.py tests/test_ws_client_api_surface.py tests/test_webui_startup_assets.py::test_only_the_icon_guard_stylesheet_blocks_application_paint tests/test_chat_working_animation.py tests/test_scheduler_editor.py
5.8 KiB
WebUI CSS DOX
Purpose
- Own shared stylesheet modules for the WebUI.
- Keep shared visual primitives stable across components and pages.
Ownership
-
Each CSS file owns a named surface or primitive family such as buttons, messages, modals, notifications, settings, surfaces, tables, or toast.
-
loading-indicators.cssowns reusable loading visuals;messages.cssowns chat-history paging placement, the context-switch splash surface, and lazy message-preview states in addition to message presentation. -
overflow.cssowns the globally loadedx-overflowrow, borderless ellipsis button, and popover styles constrained by both viewport and available submenu space; original plugin panel styling remains in its owner. -
Overflow entry visuals retain their owner styles inside a non-interactive
.overflow-iconslot. Empty slots must not reserve space. -
Component-specific styles should usually stay inside the component HTML unless they are intentionally shared.
-
modals.cssowns the shared stacked modal shell, backdrop, scroll area, footer slot, modal button classes, floating/no-backdrop modal behavior, and shared modal section primitives. -
surfaces.cssowns surface modal switchers, action rails, draggable header affordances, focus-button state, and right-canvas surface primitives. Files, Editor, and Browser opt intosurface-workspacefor the lighter panel palette, common toolbar chrome, flatsurface-controlbuttons, and group separators. Surface modal headers share a 48px border-box height with centered titles and controls; component styles must not override their sizing. Surface modal header controls are borderless in normal, hover, and active states; preserve group separators and keyboard focus outlines. Tab bars and toolbars share a 48px baseline with vertically centered controls. File trees use--color-backgroundto contrast with the lighter--color-panelworkspace. Keep these styles opt-in and preserve viewer/content themes; primary empty-state actions such as Open Browser retain their existing button styling. -
index.cssdefines global theme variables such as--color-*,--spacing-*,--font-size-*, and--transition-speed;--color-surface-translucentis the shared glass fill for floating header and canvas surfaces and stays theme-derived through the chat background. -
tables.cssowns the shared selection summary and borderless close control used by Files and Memory.
Local Contracts
- Use existing CSS variables and naming patterns before introducing new global tokens.
- Avoid broad selectors that unexpectedly restyle plugin UI or unrelated components.
- Keep layout rules responsive and verify text does not overflow fixed controls.
- Settings replaces its sidebar tree with a compact native section picker at mobile widths and uses dynamic viewport height to keep its footer in view.
- Shared modal buttons use
btn btn-okfor positive actions andbtn btn-cancelfor dismissive or negative actions. - Shared compact text actions use
.text-button; component-local styles may adjust layout or sizing but must not be the only definition of the primitive. - Modal footer action order is positive action first, dismissive or negative action second.
- Modal footers use
.modal-footerplusdata-modal-footer; do not redefine.btn,.modal-footer,.modal-inner, or.modal-scrollinside components. - Shared modal sizing keeps
.modal-innercentered withwidth: 90%,max-width: 960px, andmax-height: 90vh. - Tall modal bodies must scroll inside
.modal-scroll; pinned footer content must stay outside that scroll area. .modal-floatingmust keep the full-screen shell pointer-transparent while.modal-innerremains pointer-active.- Use
.modal-no-backdroponly for backdrop suppression without click-through floating behavior. - Shared modal layers must stay above the mobile right-canvas rail while confirmation dialogs remain above normal modals.
- Generic
.loadingplaceholders and their shimmer pseudo-elements remain invisible for the default 500ms loading delay. - Shared message collapsing targets
.message-collapse-content; user-message attachments must remain outside that target so expanding text never changes attachment visibility. - The virtualized chat history disables native scroll anchoring and replay fade-in motion; the message-window renderer owns anchor restoration during atomic page swaps.
- The persistent right panel transitions its background symmetrically between Welcome and chat in 200ms; the Welcome container remains transparent so it cannot hide the return transition.
- Shared accent-highlight controls (
.btn-ok,.btn-field,.btn.primary, send/upload/annotation buttons, checked togglers, notification unread and info accents) usevar(--color-highlight)withcolor-mix(in srgb, var(--color-highlight) N%, black)hover and active steps instead of hardcoded blue literals, so a single token retints the accent family. - Do not add decorative one-note palette changes that conflict with existing WebUI design.
Work Guidance
- Keep shared CSS small and scoped to clear class families.
- Coordinate class renames with all component and plugin references.
- Prefer improving an existing primitive over creating a near-duplicate style family.
- Use component-local styles for unique layouts and shared CSS for repeated primitives such as modal sections, toolbars, buttons, tables, notifications, and surfaces.
- Preserve modal sizing and scrolling expectations: centered
.modal-inner, constrained viewport height, body scroll inside.modal-scroll, and footer outside the scroll area.
Verification
- Manually inspect affected WebUI screens at desktop and mobile widths for shared CSS changes.
- Run visual or frontend tests if the touched style has coverage.
- For modal CSS, test a tall modal, a footer modal, a stacked modal, and a floating modal.
Child DOX Index
No child DOX files.