mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 12:08:11 +00:00
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
128 lines
3.4 KiB
CSS
128 lines
3.4 KiB
CSS
/* Flatpickr Customization for Scheduler */
|
|
|
|
/* Custom styling wrapper */
|
|
.scheduler-flatpickr-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
overflow: visible !important; /* Ensure dropdown can escape container */
|
|
}
|
|
|
|
/* Input styling */
|
|
.scheduler-flatpickr-input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--color-border, #ccc);
|
|
border-radius: 4px;
|
|
background-color: var(--color-input, #fff);
|
|
color: var(--color-text, #333);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Calendar container customization */
|
|
.flatpickr-calendar.scheduler-theme {
|
|
background: var(--color-panel, #fff);
|
|
border: 1px solid var(--color-border, #ccc);
|
|
border-radius: 4px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
color: var(--color-text, #333);
|
|
font-size: 14px;
|
|
max-width: 320px;
|
|
padding: 0;
|
|
z-index: 9999 !important; /* Ensure it's above other elements */
|
|
position: absolute !important;
|
|
visibility: visible !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* Month navigation */
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-months {
|
|
background-color: var(--color-primary, #4a90e2);
|
|
border-radius: 4px 4px 0 0;
|
|
color: var(--color-text, #333);
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-prev-month,
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-next-month {
|
|
color: var(--color-text, #333);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-prev-month:hover,
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-next-month:hover {
|
|
color: var(--color-text, #333);
|
|
}
|
|
|
|
/* Days of week */
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-weekdays {
|
|
background-color: var(--color-panel, #fff);
|
|
border-bottom: 1px solid var(--color-border, #eee);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-weekday {
|
|
color: var(--color-text, #333);
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Day cells */
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-day {
|
|
border-radius: 4px;
|
|
color: var(--color-text, #333);
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-day:hover {
|
|
background-color: var(--color-panel, #f0f0f0);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-day.selected {
|
|
background-color: var(--color-primary, #4a90e2);
|
|
border-color: var(--color-border, #ccc);
|
|
color: var(--color-text, #333);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-day.today {
|
|
border-color: var(--color-border, #ccc);
|
|
color: var(--color-text, #333);
|
|
}
|
|
|
|
/* Time picker */
|
|
.flatpickr-calendar.scheduler-theme .flatpickr-time {
|
|
border-top: 1px solid var(--color-border, #eee);
|
|
background-color: var(--color-panel, #fff);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .numInputWrapper span {
|
|
border-color: var(--color-border, #eee);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme .numInputWrapper span:hover {
|
|
background-color: var(--color-panel, #f0f0f0);
|
|
}
|
|
|
|
.flatpickr-calendar.scheduler-theme input.flatpickr-hour,
|
|
.flatpickr-calendar.scheduler-theme input.flatpickr-minute,
|
|
.flatpickr-calendar.scheduler-theme input.flatpickr-second {
|
|
color: var(--color-text, #333);
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Clear button in the input field */
|
|
.scheduler-flatpickr-clear {
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: none;
|
|
color: var(--color-text-light, #999);
|
|
background: transparent;
|
|
border: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.scheduler-flatpickr-wrapper:hover .scheduler-flatpickr-clear {
|
|
display: block;
|
|
}
|