Commit Graph
28 Commits
Author SHA1 Message Date
Alessandro 40325c84d1 Hide copy actions on routine confirmation toasts
Hide Copy on success, info, and progress toasts, including plugin
installation and saved-preset confirmations. Apply the rule in shared
toast styling so all callers use the same behavior. Warning and error
toasts retain Copy unless their content includes an action button.

Extend desktop and mobile DOM coverage for frontend and backend status
toasts, changing notification types, diagnostic copying, embedded
actions, and dismissal. Update the notification component contract.

Validation: 30 focused tests passed. Visually checked temporary toasts
and dismissal in the live WebUI at desktop and 320px mobile widths;
git diff --check passed.
2026-11-01 06:59:07 +01:00
Alessandro e5237d6c8b Hide Copy on notifications with action buttons
Hide the Copy row whenever a toast's rendered content contains a button,
while keeping Copy on text-only messages as their content changes.

Cover reload, update, OAuth reconnect, and agent-test notices in desktop
and mobile browser regressions, and document the shared rendering rule.

Validation: seven focused notification and download tests passed, plus a
live WebUI check of all four action notices and a text-only error.
2026-10-30 00:56:18 +01:00
Alessandro c9d61ed3f3 Expose notification arrivals and modal header actions to plugins
Dispatch notification_received with a shallow notification copy and its
frontend/backend source when notifications enter the store. Keep rendering
synchronous and let the existing extension dispatcher isolate plugin errors.
Add a notification-header-actions-start slot before Clear All, including
when the notification list is empty.

These hooks let community plugins retain transient errors and expose their
history without patching notification methods or replacing the modal.
Document both contracts and cover event payload isolation and slot discovery.

Validation: 56 focused tests passed, including notification copy, extension
surfaces, and toast regressions. Verified a local Notification Logs plugin
in the live WebUI at localhost:32081.
2026-10-29 21:52:06 +01:00
Alessandro 0ca2d48970 Add copy action below notification toast content
Add a labeled Copy action below the scrollable toast body so users can
capture the full title and message without opening or dismissing the toast.
Reuse the shared clipboard helper and button feedback, keep Dismiss at the
top right, and pause automatic dismissal during hover or keyboard focus.

Cover desktop and mobile layouts, full-text copying, multiple toasts,
keyboard interaction, clipboard failures, and fallback copying. Update the
notification component contracts to describe the layout and behavior.

Validation: 12 focused tests passed across test_notification_copy.py,
test_download_toast_regressions.py, and test_message_action_buttons_static.py.
Verified the layout, scrolling, and real clipboard copying in the live
WebUI at localhost:32081. The full test suite was not run.
2026-10-29 20:56:27 +01:00
linkliti ee970b5f0d refactor(webui): replace hardcoded accent blues with the highlight token
Positive accent controls hardcoded six blue literals across the WebUI and bundled plugins, so custom accent-color switchers had to patch each surface separately. Route them through var(--color-highlight) — mapped in the light block for the first time — and keep each surface mix percentages, deriving hover and active steps with the established black color-mix pattern; the redundant light-mode unread override collapses into the single var-based rule. Login keeps its literals because the login page loads no theme tokens, and status colors like queue orange, stop red, and success or error toasts stay hardcoded as semantic tones.

Validation: pytest welcome/whats-new/agent-editor/model-config/speech/sidebar/self-update suites (82 passed; 2 stop-agent failures pre-exist at HEAD, proven by stash run); rg confirms no accent literals outside login.css.
2026-10-13 18:06:47 +03:00
Alessandro 41476c478c Fix notification actions in notifications modal and preset editor select state
- Notification modal: expose a toast-compatible scope so action buttons authored against toast.toastId keep working when notification message HTML is rendered through x-html inside the notifications modal; dismissToastAndReload now resolves the notification id even when the toast is no longer in the stack, and dismissToast marks the notification read instead of being a silent no-op.
- Preset editor: keep the select DOM selection in sync with Alpine's selectedKey via :selected on options, so the editor opens showing the actual preset and selecting Default works on first click (x-model syncs before x-for renders options, leaving the DOM on the first option with no change event when clicked).
- Add regression tests for both fixes.
2026-09-19 14:02:13 +02:00
frdel 93d1131ce1 Unify WebUI icons and fix message collapsing
Introduce the x-icon custom element and migrate first-party WebUI and bundled plugin markup while retaining legacy Material icon compatibility. Defer icon-font readiness until the splash-installed document is parsed so Firefox does not leave icons transparent. Centralize chat message collapse handling, avoid false Show More controls on short user messages, and align grouped-message pagination styling. Update DOX and add regression coverage for the icon and collapse behavior.
2026-07-31 13:32:41 +00:00
Alessandro 4b5077c493 Fix plugin reload toast behavior
Persist the frontend-extension notification as read before reloading so it does not reappear after refresh. Align plugin and updater toast actions with the shared small spacing token.
2026-07-12 17:26:35 +02:00
Alessandro 831bed7a0c Polish the update notification action
Present Open updater as the existing confirm-style button on its own toast row. Opening the Self Update modal now dismisses the persistent notification so users do not need to close it separately.\n\nKeep external update-instruction links unchanged and extend the persistent-toast regression coverage.
2026-07-12 17:10:47 +02:00
Alessandro 4f80ded531 Fix transient UI layering over modals
Raise notification toasts and Bootstrap tooltips above normal and legacy modal overlays while keeping confirmation dialogs on top.

Remove the duplicate tooltip CSS block and add a focused regression for the layer ordering contract.
2026-07-08 15:37:18 +02:00
frdel e138e33ca9 Add file-level DOX docs & update AGENTS indexes
Add comprehensive file-level DOX documentation across the repo and update directory AGENTS.md indexes. Many new `*.py.dox.md` files were added under api, helpers, tools, plugins, extensions, webui, and other dirs to document endpoint purpose, ownership, runtime contracts, work guidance, and verification. Several AGENTS.md files were created or updated (agents profiles, api, docker, extensions, helpers, plugins, skills, webui components, etc.) to list child DOX files and clarify documentation/work guidance. Also add example and bundled profile DOX files (agent0, default, developer, hacker, researcher) and minor updates to helpers/dirty_json.py and its tests. These changes improve on-disk documentation coverage and establish the convention that each direct runtime file should have a matching `*.dox.md` describing its contracts and verification steps.
2026-06-08 12:41:53 +02:00
Alessandro d1827e6c66 Refactor: use user locale for time displays
Add user-configurable timezone and 12/24-hour preferences, then wire them through settings, runtime snapshots, scheduler payloads, wait handling, notifications, backups, memory, plugin metadata, and frontend formatters.

Keep UTC as the boundary for absolute instants while serializing user-facing dates in the configured or browser-resolved timezone. Preserve scheduler wall-clock inputs in the selected timezone, propagate TZ into desktop/runtime process environments, and restart active desktop sessions when the runtime timezone changes.

Cover the risky paths with timezone regression tests for settings normalization, auto and fixed timezone resolution, scheduler round-trips, memory timestamp conversion, and desktop timezone sync.
2026-05-21 15:26:00 +02:00
Alessandro 764339b5e7 Add ZIP download toast feedback
Allow display_time=0 to create persistent grouped toasts that remain until dismissed or replaced.

Show immediate grouped Preparing download and Downloading feedback for backup ZIPs and file-browser directory/bulk ZIP downloads, with error replacement and focused static coverage.
2026-05-07 18:43:24 +02:00
frdel 1b89a0d359 Add tool request validation and plugin change notifications
Introduce validate_tool_request() extensible method in agent.py to validate tool request structure (dict with tool_name string and tool_args dict fields) before processing. Add after_plugin_change() helper in helpers/plugins.py that clears cache and sends a frontend reload notification (throttled to display_time interval) with a reload button. Update plugin installer install/delete flows to call after_plugin_change(). Extend notification
2026-03-10 13:08:48 +01:00
frdel 4932e12546 WebSocket merge 2026-02-01 16:07:45 +01:00
3clyp50 48627e4172 bs tooltips fix; consistent icons 2026-01-06 01:35:00 +01:00
3clyp50 8c3daa68ea unify scrollbars and fix tunnel spinner 2026-01-02 11:57:10 +01:00
frdel e6eae9c7dd project finalizing, openrouter embeddings 2025-11-13 08:52:45 +01:00
frdel 7081479193 frontend file browsers, css colors, litellm update, reqs split 2025-11-09 20:56:31 +01:00
frdel 0e1aa85890 projects continued 2025-11-03 16:17:12 +01:00
frdel 2b7b1ac623 projects prototype, email parser 2025-10-28 09:04:17 +01:00
frdel eee6796299 tunnel component refactor 2025-08-15 11:22:28 +02:00
frdel 97e009dbe5 notifications polishing 2025-08-04 13:07:25 +02:00
frdel e37e7139cf notifications redesign 2025-08-02 13:04:27 +02:00
Rafael Uzarowski 9145c4d58d fix: notification fixes, refactor and restart toast persistence 2025-08-01 16:42:54 +02:00
Rafael Uzarowski e32a04fb77 finalize the notification system 2025-07-12 16:36:20 +02:00
Rafael Uzarowski 1225cae5c0 feat: frontend-only notifications and test button for them 2025-07-12 16:32:29 +02:00
Rafael Uzarowski e476b4bfce feat: notifications backend system and frontend display 2025-07-12 16:32:29 +02:00