Agent Zero AI framework
standalone scheduler modal
3clyp50a6ea619568ad
diff --git a/webui/components/modals/scheduler/scheduler-modal-store.js b/webui/components/modals/scheduler/scheduler-modal-store.jsnew file mode 100644index 000000000..2dd0062d1--- /dev/null+++ b/webui/components/modals/scheduler/scheduler-modal-store.js@@ -0,0 +1,35 @@+import { createStore } from "/js/AlpineStore.js";+import { store as schedulerStore } from "/components/modals/scheduler/scheduler-store.js";++const model = {+ closePromise: null,++ async open(options = {}) {+ // Open modal+ this.closePromise = window.openModal("modals/scheduler/scheduler-modal.html");++ // Setup cleanup on modal close+ if (this.closePromise?.then) {+ this.closePromise.then(() => this.cleanup());+ }++ // Notify scheduler store that modal opened+ schedulerStore.onTabActivated?.();++ // If taskId provided, show detail after load+ if (options.taskId) {+ setTimeout(async () => {+ await schedulerStore.fetchTasks({ manual: true });+ schedulerStore.showTaskDetail(options.taskId);+ }, 200);+ }+ },++ cleanup() {+ schedulerStore.onModalClosed?.();+ this.closePromise = null;+ },+};++export const store = createStore("schedulerModal", model);+diff --git a/webui/components/modals/scheduler/scheduler-modal.html b/webui/components/modals/scheduler/scheduler-modal.htmlnew file mode 100644index 000000000..33770b3ad--- /dev/null+++ b/webui/components/modals/scheduler/scheduler-modal.html@@ -0,0 +1,27 @@+<html>+<head>+ <title>Task Scheduler</title>+ <script type="module">+ import { store } from "/components/modals/scheduler/scheduler-modal-store.js";+ </script>+</head>+<body>+ <div x-data>+ <template x-if="$store.schedulerModal">+ <div class="scheduler-modal-content">+ <x-component path="modals/scheduler/scheduler-settings.html"></x-component>+ </div>+ </template>+ </div>++ <style>+ .scheduler-modal-content {+ display: flex;+ flex-direction: column;+ height: 100%;+ min-height: 400px;+ }+ </style>+</body>+</html>+diff --git a/webui/components/modals/scheduler/scheduler-settings.html b/webui/components/modals/scheduler/scheduler-settings.htmlnew file mode 100644index 000000000..283d4b78f--- /dev/null+++ b/webui/components/modals/scheduler/scheduler-settings.html@@ -0,0 +1,23 @@+<html>+<head>+ <script type="module">+ import { store } from "/components/modals/scheduler/scheduler-store.js";+ </script>+</head>+<body>+<div x-data>+ <template x-if="$store.schedulerStore">+ <div id="scheduler-settings-root">+ <div id="section-task-scheduler" class="section">+ <div class="section-title">Task Scheduler</div>+ <div class="section-description">Manage scheduled tasks and automated processes for Agent Zero.</div>++ <x-component path="modals/scheduler/scheduler-task-editor.html"></x-component>+ <x-component path="modals/scheduler/scheduler-task-list.html"></x-component>+ </div>+ </div>+ </template>+</div>+</body>+</html>+diff --git a/webui/components/settings/scheduler/scheduler-store.js b/webui/components/modals/scheduler/scheduler-store.jssimilarity index 99%rename from webui/components/settings/scheduler/scheduler-store.jsrename to webui/components/modals/scheduler/scheduler-store.jsindex e2b0afe54..fb07846ac 100644--- a/webui/components/settings/scheduler/scheduler-store.js+++ b/webui/components/modals/scheduler/scheduler-store.js@@ -900,7 +900,7 @@ const schedulerStoreModel = {}this.selectedTaskForDetail = snapshot;- const closePromise = window.openModal("settings/scheduler/scheduler-task-detail.html");+ const closePromise = window.openModal("modals/scheduler/scheduler-task-detail.html");if (closePromise && typeof closePromise.then === "function") {closePromise.then(() => {if (this.selectedTaskForDetail?.uuid === snapshot.uuid) {diff --git a/webui/components/settings/scheduler/scheduler-task-detail.html b/webui/components/modals/scheduler/scheduler-task-detail.htmlsimilarity index 99%rename from webui/components/settings/scheduler/scheduler-task-detail.htmlrename to webui/components/modals/scheduler/scheduler-task-detail.htmlindex 050a2ac58..32afafc95 100644--- a/webui/components/settings/scheduler/scheduler-task-detail.html+++ b/webui/components/modals/scheduler/scheduler-task-detail.html@@ -2,7 +2,7 @@<head><title>Task Details</title><script type="module">- import { store } from "/components/settings/scheduler/scheduler-store.js";+ import { store } from "/components/modals/scheduler/scheduler-store.js";</script></head><body>@@ -146,3 +146,4 @@</div></body></html>+diff --git a/webui/components/settings/scheduler/scheduler-task-editor.html b/webui/components/modals/scheduler/scheduler-task-editor.htmlsimilarity index 99%rename from webui/components/settings/scheduler/scheduler-task-editor.htmlrename to webui/components/modals/scheduler/scheduler-task-editor.htmlindex cc9b2e5f1..6e1fc30f5 100644--- a/webui/components/settings/scheduler/scheduler-task-editor.html+++ b/webui/components/modals/scheduler/scheduler-task-editor.html@@ -1,7 +1,7 @@<html><head><script type="module">- import { store } from "/components/settings/scheduler/scheduler-store.js";+ import { store } from "/components/modals/scheduler/scheduler-store.js";</script></head><body>@@ -437,3 +437,4 @@</div></body></html>+diff --git a/webui/components/settings/scheduler/scheduler-task-list.html b/webui/components/modals/scheduler/scheduler-task-list.htmlsimilarity index 98%rename from webui/components/settings/scheduler/scheduler-task-list.htmlrename to webui/components/modals/scheduler/scheduler-task-list.htmlindex f140be8fc..963e46e27 100644--- a/webui/components/settings/scheduler/scheduler-task-list.html+++ b/webui/components/modals/scheduler/scheduler-task-list.html@@ -1,7 +1,7 @@<html><head><script type="module">- import { store } from "/components/settings/scheduler/scheduler-store.js";+ import { store } from "/components/modals/scheduler/scheduler-store.js";</script></head><body>@@ -133,3 +133,4 @@</div></body></html>+diff --git a/webui/components/settings/scheduler/scheduler-settings.html b/webui/components/settings/scheduler/scheduler-settings.htmldeleted file mode 100644index db6ce76f1..000000000--- a/webui/components/settings/scheduler/scheduler-settings.html+++ /dev/null@@ -1,33 +0,0 @@-<html>-<head>- <script type="module">- import { store } from "/components/settings/scheduler/scheduler-store.js";- </script>-</head>-<body>-<div x-data>- <template x-if="$store.schedulerStore">- <div id="scheduler-settings-root">- <nav>- <ul>- <li>- <a href="#section-task-scheduler">- <img src="/public/task_scheduler.svg" alt="Task Scheduler">- <span>Task Scheduler</span>- </a>- </li>- </ul>- </nav>-- <div id="section-task-scheduler" class="section">- <div class="section-title">Task Scheduler</div>- <div class="section-description">Manage scheduled tasks and automated processes for Agent Zero.</div>-- <x-component path="settings/scheduler/scheduler-task-editor.html"></x-component>- <x-component path="settings/scheduler/scheduler-task-list.html"></x-component>- </div>- </div>- </template>-</div>-</body>-</html>diff --git a/webui/components/settings/settings-store.js b/webui/components/settings/settings-store.jsindex 8e0f06244..d1090f9de 100644--- a/webui/components/settings/settings-store.js+++ b/webui/components/settings/settings-store.js@@ -1,7 +1,6 @@import { createStore } from "/js/AlpineStore.js";import * as API from "/js/api.js";import { store as notificationStore } from "/components/notifications/notification-store.js";-import { store as schedulerStore } from "/components/settings/scheduler/scheduler-store.js";// Constantsconst VIEW_MODE_STORAGE_KEY = "settingsActiveTab";@@ -65,12 +64,6 @@ const model = {},cleanup() {- // Notify scheduler if it was active- if (this._activeTab === "scheduler") {- schedulerStore.onTabDeactivated?.();- }- schedulerStore.onModalClosed?.();-this.settings = null;this.additional = null;this.error = null;@@ -83,14 +76,6 @@ const model = {try {localStorage.setItem(VIEW_MODE_STORAGE_KEY, current);} catch {}-- // Scheduler lifecycle- if (previous === "scheduler" && current !== "scheduler") {- schedulerStore.onTabDeactivated?.();- }- if (current === "scheduler" && previous !== "scheduler") {- schedulerStore.onTabActivated?.();- }},switchTab(tabName) {@@ -183,27 +168,6 @@ const model = {}await window.openModal("settings/settings.html");},-- // Scheduler integration: open Settings modal, switch to scheduler tab, show task detail- async openSchedulerTaskDetail(taskId) {- // Set tab to scheduler before opening- this._activeTab = "scheduler";-- // Open the modal (do NOT await - openModal resolves on close)- window.openModal("settings/settings.html");-- // Ensure scheduler tasks are loaded, then show the detail modal- setTimeout(async () => {- try {- if (typeof schedulerStore.fetchTasks === "function") {- await schedulerStore.fetchTasks({ manual: true });- }- schedulerStore.showTaskDetail?.(taskId);- } catch (error) {- console.warn("[settings-store] openSchedulerTaskDetail failed", error);- }- }, 200);- },};const store = createStore("settingsStore", model);diff --git a/webui/components/settings/settings.html b/webui/components/settings/settings.htmlindex bb9377cc8..d8a0dbcb3 100644--- a/webui/components/settings/settings.html+++ b/webui/components/settings/settings.html@@ -46,10 +46,6 @@:class="{'active': $store.settingsStore.activeTab === 'developer'}"@click="$store.settingsStore.switchTab('developer')"title="Developer">Developer</div>- <div class="settings-tab"- :class="{'active': $store.settingsStore.activeTab === 'scheduler'}"- @click="$store.settingsStore.switchTab('scheduler')"- title="Task Scheduler">Task Scheduler</div><div class="settings-tab":class="{'active': $store.settingsStore.activeTab === 'backup'}"@click="$store.settingsStore.switchTab('backup')"@@ -58,7 +54,7 @@</div><!-- Settings sections for agent, external, developer, mcp, backup tabs -->- <div id="settings-sections" x-show="$store.settingsStore.activeTab !== 'scheduler'">+ <div id="settings-sections"><template x-if="$store.settingsStore.activeTab === 'agent'"><x-component path="settings/agent/agent-settings.html"></x-component></template>@@ -75,13 +71,6 @@<x-component path="settings/backup/backup-settings.html"></x-component></template></div>-- <!-- Task Scheduler Tab Content -->- <template x-if="$store.settingsStore.activeTab === 'scheduler'">- <div id="scheduler-tab-content">- <x-component path="settings/scheduler/scheduler-settings.html"></x-component>- </div>- </template></div><!-- Footer -->diff --git a/webui/components/sidebar/tasks/tasks-store.js b/webui/components/sidebar/tasks/tasks-store.jsindex bedacd27f..eb44a67de 100644--- a/webui/components/sidebar/tasks/tasks-store.js+++ b/webui/components/sidebar/tasks/tasks-store.js@@ -1,7 +1,6 @@import { createStore } from "/js/AlpineStore.js";import { store as chatsStore } from "/components/sidebar/chats/chats-store.js";-import { store as schedulerStore } from "/components/settings/scheduler/scheduler-store.js";-import { store as settingsStore } from "/components/settings/settings-store.js";+import { store as schedulerStore } from "/components/modals/scheduler/scheduler-store.js";// Tasks sidebar store: tasks list and selected task idconst model = {@@ -52,9 +51,9 @@ const model = {},openDetail(taskId) {- // Use the new settings modal store to open scheduler task detail- if (settingsStore?.openSchedulerTaskDetail) {- settingsStore.openSchedulerTaskDetail(taskId);+ // Open lightweight task detail popup directly+ if (schedulerStore?.showTaskDetail) {+ schedulerStore.showTaskDetail(taskId);}},diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.htmlindex 8b807e9ec..deaaa3799 100644--- a/webui/components/sidebar/top-section/quick-actions.html+++ b/webui/components/sidebar/top-section/quick-actions.html@@ -4,8 +4,10 @@<script type="module">import { store } from "/components/sidebar/chats/chats-store.js";import { store as settingsStore } from "/components/settings/settings-store.js";+ import { store as schedulerModalStore } from "/components/modals/scheduler/scheduler-modal-store.js";// Expose for Alpine template accessglobalThis.openSettingsModal = () => settingsStore.open();+ globalThis.openSchedulerModal = () => schedulerModalStore.open();</script></head>@@ -26,6 +28,10 @@d="m50.301 66.5c-9 0-16.398-7.3008-16.398-16.398 0-9.1016 7.3008-16.398 16.398-16.398 9.1016 0 16.398 7.3008 16.398 16.398 0 9.0977-7.3984 16.398-16.398 16.398zm0-25.5c-5 0-9.1016 4.1016-9.1016 9.1016s4.1016 9.1016 9.1016 9.1016 9.1016-4.1016 9.1016-9.1016c-0.003906-5-4.1016-9.1016-9.1016-9.1016z"></path></svg>Settings</button>+ <button class="config-button" id="scheduler" @click="openSchedulerModal()">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24" height="24">+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z"/>+ </svg>Scheduler</button><button class="config-button" id="memory-dash"@click="openModal('settings/memory/memory-dashboard.html');">Memory</button><button class="config-button" id="dashboard" @click="deselectChat()">Dashboard</button>@@ -61,7 +67,8 @@opacity: 0.5;}- #settings {+ #settings,+ #scheduler {display: flex;align-items: center;}diff --git a/webui/css/scheduler.css b/webui/css/scheduler.cssnew file mode 100644index 000000000..8a2ea3ae0--- /dev/null+++ b/webui/css/scheduler.css@@ -0,0 +1,399 @@+.scheduler-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: 20px;+}++.scheduler-header h2 {+ margin: 0;+ font-size: 1.2rem;+ font-weight: 500;+}++.scheduler-filters {+ display: flex;+ gap: 20px;+ margin-bottom: 20px;+ flex-wrap: wrap;+}++.scheduler-filter-group {+ display: flex;+ align-items: center;+ gap: 8px;+}++.scheduler-filter-label {+ font-weight: 500;+ color: var(--color-text-secondary);+}++.scheduler-filter-select {+ padding: 6px 8px;+ border-radius: 4px;+ border: 1px solid var(--color-border);+ background-color: var(--color-bg-secondary);+ color: var(--color-text);+}++.scheduler-task-list {+ width: 100%;+ border-collapse: collapse;+ margin: 1rem 0;+ font-size: 0.9rem;+ table-layout: fixed;+}++.scheduler-task-list th,+.scheduler-task-list td {+ padding: 0.75rem;+ text-align: left;+ border-bottom: 1px solid var(--color-border);+ vertical-align: middle;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.scheduler-task-list th {+ background-color: var(--color-bg-secondary);+ font-weight: 500;+ cursor: pointer;+ user-select: none;+}++.scheduler-task-list th:hover {+ background-color: var(--color-bg-tertiary);+}++.scheduler-task-actions {+ display: flex;+ gap: 8px;+}++.scheduler-task-action {+ padding: 4px;+ background: none;+ border: none;+ color: var(--color-text-secondary);+ cursor: pointer;+ border-radius: 4px;+}++.scheduler-task-action:hover {+ background-color: var(--color-bg-tertiary);+ color: var(--color-text);+}++.scheduler-status-badge {+ display: inline-block;+ padding: 4px 8px;+ border-radius: 4px;+ font-size: 12px;+ font-weight: 500;+ text-transform: capitalize;+ white-space: nowrap;+}++.scheduler-status-idle {+ background-color: rgba(0, 100, 0, 0.2);+ color: #2a9d8f; /* Dark green that works with both light and dark themes */+ border: 1px solid rgba(42, 157, 143, 0.3);+}++.scheduler-status-running {+ background-color: rgba(0, 60, 120, 0.2);+ color: #4361ee; /* Dark blue that works with both light and dark themes */+ border: 1px solid rgba(67, 97, 238, 0.3);+}++.scheduler-status-disabled {+ background-color: rgba(70, 70, 70, 0.2);+ color: #6c757d; /* Dark grey that works with both light and dark themes */+ border: 1px solid rgba(108, 117, 125, 0.3);+}++.scheduler-status-error {+ background-color: rgba(120, 0, 0, 0.2);+ color: #e63946; /* Dark red that works with both light and dark themes */+ border: 1px solid rgba(230, 57, 70, 0.3);+}++/* Light mode adjustments */+.light-mode .scheduler-status-idle {+ background-color: rgba(42, 157, 143, 0.1);+ color: #1a6f65; /* Darker green for light mode */+}++.light-mode .scheduler-status-running {+ background-color: rgba(67, 97, 238, 0.1);+ color: #2540b3; /* Darker blue for light mode */+}++.light-mode .scheduler-status-disabled {+ background-color: rgba(108, 117, 125, 0.1);+ color: #495057; /* Darker grey for light mode */+}++.light-mode .scheduler-status-error {+ background-color: rgba(230, 57, 70, 0.1);+ color: #c5283d; /* Darker red for light mode */+}++.scheduler-empty {+ text-align: center;+ padding: 40px 0;+ color: var(--color-text-secondary);+}++.scheduler-empty-icon {+ font-size: 32px;+ margin-bottom: 10px;+}++.scheduler-empty-text {+ margin-bottom: 20px;+}++.scheduler-loading {+ text-align: center;+ padding: 40px 0;+ color: var(--color-text-secondary);+}++.scheduler-task-details {+ padding: 16px;+ background-color: var(--color-bg-secondary);+ border-radius: 4px;+}++.scheduler-details-grid {+ display: grid;+ grid-template-columns: 120px 1fr;+ gap: 8px 16px;+ margin-bottom: 16px;+}++.scheduler-details-label {+ font-weight: 500;+ color: var(--color-text-secondary);+ display: flex;+ align-items: center;+}++.scheduler-details-value {+ color: var(--color-text);+ word-break: break-word;+}++.scheduler-details-actions {+ display: flex;+ justify-content: flex-end;+}++.scheduler-form {+ background-color: var(--color-bg-secondary);+ border-radius: 4px;+ padding: 20px;+ margin-bottom: 20px;+}++.scheduler-form-title {+ font-size: 1.2rem;+ font-weight: 500;+ margin-bottom: 20px;+ padding-bottom: 10px;+ border-bottom: 1px solid var(--color-border);+}++.scheduler-form-grid {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 16px;+ margin-bottom: 20px;+}++.scheduler-form-field {+ display: flex;+ flex-direction: column;+ gap: 6px;+}++.full-width {+ grid-column: 1 / -1;+}++.scheduler-form-label {+ font-weight: 500;+}++.scheduler-form-help {+ font-size: 12px;+ color: var(--color-text-secondary);+}++.scheduler-form-actions {+ display: flex;+ justify-content: flex-end;+ gap: 12px;+}++.scheduler-schedule-builder {+ display: grid;+ grid-template-columns: repeat(5, 1fr);+ gap: 12px;+}++.scheduler-schedule-field {+ display: flex;+ flex-direction: column;+ gap: 4px;+ max-width: 70px; /* Limit width of schedule fields */+}++.scheduler-schedule-field input {+ width: 100%;+ min-width: 0; /* Allow shrinking below content size */+ font-size: 0.9rem; /* Slightly reduce font size for better fit */+}++.scheduler-schedule-label {+ font-size: 12px;+ color: var(--color-text-secondary);+}++.input-group {+ display: flex;+ gap: 8px;+}++/* Sort indicators */+.scheduler-sort-indicator {+ display: inline-block;+ margin-left: 4px;+ transition: transform 0.2s ease;+}++.scheduler-sort-desc {+ transform: rotate(180deg);+}++/* Responsive adjustments */+@media (max-width: 768px) {+ .scheduler-form-grid {+ grid-template-columns: 1fr;+ }++ .scheduler-schedule-builder {+ grid-template-columns: 1fr 1fr;+ }++ .scheduler-filters {+ flex-direction: column;+ gap: 12px;+ }++ .scheduler-task-actions {+ flex-wrap: wrap;+ }+}++@media (max-width: 480px) {+ nav ul li a {+ flex-direction: row;+ justify-content: flex-start;+ gap: 1rem;+ padding: 0.75rem 1rem;+ }++ nav ul li a img {+ margin-bottom: 0;+ width: 30px;+ height: 30px;+ }+}++/* Add row hover effect for task list rows matching left panel hover */+.scheduler-task-list tbody tr {+ cursor: pointer;+ transition: background-color 0.2s ease;+}++.scheduler-task-list tbody tr:hover {+ background-color: rgba(255, 255, 255, 0.03);+}++.light-mode .scheduler-task-list tbody tr:hover {+ background-color: rgba(0, 0, 0, 0.02);+}++.scheduler-task-list th {+ background-color: var(--color-bg-secondary);+ font-weight: 500;+ cursor: pointer;+ user-select: none;+}++.scheduler-task-list th:hover {+ background-color: var(--color-bg-tertiary);+}++/* Task detail view styling */+.scheduler-detail-view {+ background-color: var(--color-bg-secondary);+ border-radius: 4px;+ padding: 20px;+ margin-bottom: 20px;+ animation: fadeIn 0.3s ease;+}++.scheduler-detail-header {+ display: flex;+ justify-content: flex-start;+ align-items: center;+ margin-bottom: 20px;+ padding-bottom: 10px;+ border-bottom: 1px solid var(--color-border);+ flex-wrap: wrap;+ gap: 10px;+}++.scheduler-detail-header .scheduler-detail-title {+ font-size: 1.4rem;+ font-weight: 500;+ margin: 0;+ margin-right: auto;+}++.scheduler-detail-header .scheduler-status-badge {+ margin-right: 10px;+}++.scheduler-detail-content {+ margin-bottom: 20px;+}++/* Task Scheduler Styles */++.scheduler-no-schedule {+ color: var(--color-text-secondary);+ opacity: 0.7;+ font-style: italic;+}++.task-container-vertical {+ display: flex;+ flex-direction: column;+ width: 100%;+ gap: 6px;+}++/* Smaller status badge for task list */+.scheduler-status-badge-small {+ font-size: 10px;+ padding: 2px 6px;+ margin-right: 5px;+ min-width: 40px;+ text-align: center;+}diff --git a/webui/index.css b/webui/index.cssindex 68496ef7c..5f281a7c5 100644--- a/webui/index.css+++ b/webui/index.css@@ -1166,405 +1166,6 @@ nav ul li a img {color: var(--color-text-secondary);}-.scheduler-header {- display: flex;- justify-content: space-between;- align-items: center;- margin-bottom: 20px;-}--.scheduler-header h2 {- margin: 0;- font-size: 1.2rem;- font-weight: 500;-}--.scheduler-filters {- display: flex;- gap: 20px;- margin-bottom: 20px;- flex-wrap: wrap;-}--.scheduler-filter-group {- display: flex;- align-items: center;- gap: 8px;-}--.scheduler-filter-label {- font-weight: 500;- color: var(--color-text-secondary);-}--.scheduler-filter-select {- padding: 6px 8px;- border-radius: 4px;- border: 1px solid var(--color-border);- background-color: var(--color-bg-secondary);- color: var(--color-text);-}--.scheduler-task-list {- width: 100%;- border-collapse: collapse;- margin: 1rem 0;- font-size: 0.9rem;- table-layout: fixed;-}--.scheduler-task-list th,-.scheduler-task-list td {- padding: 0.75rem;- text-align: left;- border-bottom: 1px solid var(--color-border);- vertical-align: middle;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.scheduler-task-list th {- background-color: var(--color-bg-secondary);- font-weight: 500;- cursor: pointer;- user-select: none;-}--.scheduler-task-list th:hover {- background-color: var(--color-bg-tertiary);-}--.scheduler-task-actions {- display: flex;- gap: 8px;-}--.scheduler-task-action {- padding: 4px;- background: none;- border: none;- color: var(--color-text-secondary);- cursor: pointer;- border-radius: 4px;-}--.scheduler-task-action:hover {- background-color: var(--color-bg-tertiary);- color: var(--color-text);-}--.scheduler-status-badge {- display: inline-block;- padding: 4px 8px;- border-radius: 4px;- font-size: 12px;- font-weight: 500;- text-transform: capitalize;- white-space: nowrap;-}--.scheduler-status-idle {- background-color: rgba(0, 100, 0, 0.2);- color: #2a9d8f; /* Dark green that works with both light and dark themes */- border: 1px solid rgba(42, 157, 143, 0.3);-}--.scheduler-status-running {- background-color: rgba(0, 60, 120, 0.2);- color: #4361ee; /* Dark blue that works with both light and dark themes */- border: 1px solid rgba(67, 97, 238, 0.3);-}--.scheduler-status-disabled {- background-color: rgba(70, 70, 70, 0.2);- color: #6c757d; /* Dark grey that works with both light and dark themes */- border: 1px solid rgba(108, 117, 125, 0.3);-}--.scheduler-status-error {- background-color: rgba(120, 0, 0, 0.2);- color: #e63946; /* Dark red that works with both light and dark themes */- border: 1px solid rgba(230, 57, 70, 0.3);-}--/* Light mode adjustments */-.light-mode .scheduler-status-idle {- background-color: rgba(42, 157, 143, 0.1);- color: #1a6f65; /* Darker green for light mode */-}--.light-mode .scheduler-status-running {- background-color: rgba(67, 97, 238, 0.1);- color: #2540b3; /* Darker blue for light mode */-}--.light-mode .scheduler-status-disabled {- background-color: rgba(108, 117, 125, 0.1);- color: #495057; /* Darker grey for light mode */-}--.light-mode .scheduler-status-error {- background-color: rgba(230, 57, 70, 0.1);- color: #c5283d; /* Darker red for light mode */-}--.scheduler-empty {- text-align: center;- padding: 40px 0;- color: var(--color-text-secondary);-}--.scheduler-empty-icon {- font-size: 32px;- margin-bottom: 10px;-}--.scheduler-empty-text {- margin-bottom: 20px;-}--.scheduler-loading {- text-align: center;- padding: 40px 0;- color: var(--color-text-secondary);-}--.scheduler-task-details {- padding: 16px;- background-color: var(--color-bg-secondary);- border-radius: 4px;-}--.scheduler-details-grid {- display: grid;- grid-template-columns: 120px 1fr;- gap: 8px 16px;- margin-bottom: 16px;-}--.scheduler-details-label {- font-weight: 500;- color: var(--color-text-secondary);- display: flex;- align-items: center;-}--.scheduler-details-value {- color: var(--color-text);- word-break: break-word;-}--.scheduler-details-actions {- display: flex;- justify-content: flex-end;-}--.scheduler-form {- background-color: var(--color-bg-secondary);- border-radius: 4px;- padding: 20px;- margin-bottom: 20px;-}--.scheduler-form-title {- font-size: 1.2rem;- font-weight: 500;- margin-bottom: 20px;- padding-bottom: 10px;- border-bottom: 1px solid var(--color-border);-}--.scheduler-form-grid {- display: grid;- grid-template-columns: 1fr 1fr;- gap: 16px;- margin-bottom: 20px;-}--.scheduler-form-field {- display: flex;- flex-direction: column;- gap: 6px;-}--.full-width {- grid-column: 1 / -1;-}--.scheduler-form-label {- font-weight: 500;-}--.scheduler-form-help {- font-size: 12px;- color: var(--color-text-secondary);-}--.scheduler-form-actions {- display: flex;- justify-content: flex-end;- gap: 12px;-}--.scheduler-schedule-builder {- display: grid;- grid-template-columns: repeat(5, 1fr);- gap: 12px;-}--.scheduler-schedule-field {- display: flex;- flex-direction: column;- gap: 4px;- max-width: 70px; /* Limit width of schedule fields */-}--.scheduler-schedule-field input {- width: 100%;- min-width: 0; /* Allow shrinking below content size */- font-size: 0.9rem; /* Slightly reduce font size for better fit */-}--.scheduler-schedule-label {- font-size: 12px;- color: var(--color-text-secondary);-}--.input-group {- display: flex;- gap: 8px;-}--/* Sort indicators */-.scheduler-sort-indicator {- display: inline-block;- margin-left: 4px;- transition: transform 0.2s ease;-}--.scheduler-sort-desc {- transform: rotate(180deg);-}--/* Responsive adjustments */-@media (max-width: 768px) {- .scheduler-form-grid {- grid-template-columns: 1fr;- }-- .scheduler-schedule-builder {- grid-template-columns: 1fr 1fr;- }-- .scheduler-filters {- flex-direction: column;- gap: 12px;- }-- .scheduler-task-actions {- flex-wrap: wrap;- }-}--@media (max-width: 480px) {- nav ul li a {- flex-direction: row;- justify-content: flex-start;- gap: 1rem;- padding: 0.75rem 1rem;- }-- nav ul li a img {- margin-bottom: 0;- width: 30px;- height: 30px;- }-}--/* Add row hover effect for task list rows matching left panel hover */-.scheduler-task-list tbody tr {- cursor: pointer;- transition: background-color 0.2s ease;-}--.scheduler-task-list tbody tr:hover {- background-color: rgba(255, 255, 255, 0.03);-}--.light-mode .scheduler-task-list tbody tr:hover {- background-color: rgba(0, 0, 0, 0.02);-}--.scheduler-task-list th {- background-color: var(--color-bg-secondary);- font-weight: 500;- cursor: pointer;- user-select: none;-}--.scheduler-task-list th:hover {- background-color: var(--color-bg-tertiary);-}--/* Task detail view styling */-.scheduler-detail-view {- background-color: var(--color-bg-secondary);- border-radius: 4px;- padding: 20px;- margin-bottom: 20px;- animation: fadeIn 0.3s ease;-}--.scheduler-detail-header {- display: flex;- justify-content: flex-start;- align-items: center;- margin-bottom: 20px;- padding-bottom: 10px;- border-bottom: 1px solid var(--color-border);- flex-wrap: wrap;- gap: 10px;-}--.scheduler-detail-header .scheduler-detail-title {- font-size: 1.4rem;- font-weight: 500;- margin: 0;- margin-right: auto;-}--.scheduler-detail-header .scheduler-status-badge {- margin-right: 10px;-}--.scheduler-detail-content {- margin-bottom: 20px;-}--/* Task Scheduler Styles */--.scheduler-no-schedule {- color: var(--color-text-secondary);- opacity: 0.7;- font-style: italic;-}--.task-container-vertical {- display: flex;- flex-direction: column;- width: 100%;- gap: 6px;-}--/* Smaller status badge for task list */-.scheduler-status-badge-small {- font-size: 10px;- padding: 2px 6px;- margin-right: 5px;- min-width: 40px;- text-align: center;-}.icon {vertical-align: middle;}diff --git a/webui/index.html b/webui/index.htmlindex 0fb7ef0a2..1f1ac6250 100644--- a/webui/index.html+++ b/webui/index.html@@ -14,6 +14,7 @@<link rel="stylesheet" href="css/modals.css"><link rel="stylesheet" href="css/speech.css"><link rel="stylesheet" href="css/scheduler-datepicker.css">+ <link rel="stylesheet" href="css/scheduler.css"><link rel="stylesheet" href="css/notification.css"><link rel="stylesheet" href="css/buttons.css">