Files
agent-zero/webui/components/modals/AGENTS.md
linkliti 6f079d8817 feat(plugins): move the tasks interface and scheduler task endpoints into the scheduler plugin
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
2026-10-21 23:37:31 +03:00

1.3 KiB

Modal Components DOX

Purpose

  • Own WebUI modal component content loaded through the shared modal stack.

Ownership

  • File editing belongs to the _editor plugin shared canvas/modal surface; Files routes Edit and New file there.
  • Each direct child folder owns one modal workflow and its store.
  • Modal HTML files own body content, titles, scoped styles, and data-modal-footer content.
  • Modal store files own modal-local state and cleanup.
  • Task editing modals live in the _scheduler plugin (webui/scheduler/); this folder does not own scheduler modal content.

Local Contracts

  • Use openModal(path) and closeModal() from /js/modals.js.
  • Keep footer content marked with data-modal-footer when using pinned modal actions.
  • Do not introduce a parallel overlay, backdrop, or teleport modal system.

Work Guidance

  • Keep modal state cleanup explicit because stores may outlive DOM nodes.
  • Preserve stacked modal, Escape, click-outside, scroll, and footer behavior.

Verification

  • Smoke-test open, close, Escape, click-outside, scrolling, stacked modals, and pinned footers after modal changes.

Child DOX Index

Direct child DOX files:

Child Scope
file-browser/AGENTS.md File browser modal and right-canvas Files surface workflow.