Commit Graph
54 Commits
Author SHA1 Message Date
Alessandro fcf4a2c599 Fix welcome panel control visibility and ordering
Apply Quick Actions hover and focus visibility to all header controls,
including resize, while preserving touch access and open move menus.
Place the Quick Actions and System Resources drag handles immediately
before their dismiss buttons and document the shared ordering rule.

Validation: 11 welcome Node tests and 6 composer pytest tests passed.
Verified desktop hover, keyboard focus and tab order, width toggles,
move-menu behavior, and mobile touch visibility against localhost:32081.
2026-11-01 13:08:34 +01:00
Alessandro 628f790439 Keep the welcome greeting and wave on one line
Prevent the wave from wrapping below the greeting on narrow screens.
Size the heading to the space available beside the move and hide controls,
preserving the normal desktop font size when it fits. Document the layout
contract in the welcome component instructions.

Validation: six focused tests passed. Verified the live WebUI at mobile
and desktop widths with 12px, 16px, and 24px root text settings, including
the normal cached startup path after refreshing the UI asset cache.
2026-11-01 01:45:25 +01:00
Alessandro 2eabd28355 Refine Quick Actions and add a compact half-width layout
Remove card descriptions and rename Tasks to Scheduled Tasks and Visit
Website to Visit Agent Zero Website.

Add a persisted half/full-width control. Narrow panels use square tiles
with labels below the icons, and desktop half-width remains available
without a neighboring half-width block. Update the owning documentation
and tests for independent width preferences.

Validation: 66 focused checks passed. Verified the live WebUI across
320-1920px viewports, both themes, reload persistence, keyboard controls,
unpaired half-width layout, and the Memory and Scheduled Tasks modals.
2026-11-01 01:38:12 +01:00
Alessandro 6d395ddeba Add channel plugin discovery to the welcome screen
Add a puzzle-icon "Find channels plugins" text button below the channel
buttons, reusing the welcome footer styling. Open Plugin Hub Browse with
the channels tag selected and any previous search cleared. Keep the
Channels filter visible even when no plugins have the tag.

Update the owning docs and regression coverage. Verified with 21 focused
tests and live browser checks for navigation, search reset, mobile layout,
and keyboard focus.
2026-11-01 00:19:17 +01:00
Alessandro 0bca47f937 Honor System Resources half width without a neighboring card
The resize button saved the half-width preference, but the welcome grid only
allowed paired cards to occupy one column. An unpaired System Resources
panel therefore stayed full width after shrinking.

Let its explicit half-width selection occupy one desktop column independently
of pairing. Keep the existing full-width mobile layout, update the layout
contract, and cover both CSS rules in the welcome regression test.

Validated with 15 focused Node/Python tests and live browser checks for the
resize button, a standalone panel, reload persistence, reordering, and mobile.
2026-10-31 23:00:12 +01:00
Alessandro 7c7e1bd219 Fix welcome card ordering, sizing, and drag controls
Keep the move menu open when focus passes between its buttons so Move down
works with both mouse and keyboard.

Add a saved half/full-width toggle for System Resources and adapt its meters
and footer to the panel width. Stretch the accounts and channels cards to
match their row height, together or beside taller panels.

Keep card drag handles visible while preserving hover and keyboard-focus
visibility for the greeting/composer and Quick Actions controls.

Add width persistence coverage and update the owning UI contracts. Verified
with focused Node/Python tests and live browser checks for ordering, saved
layout, sizing, drag controls, desktop/mobile layouts, and both themes.
2026-10-31 22:54:41 +01:00
Alessandro 4897ccd787 Refine Plugin Hub links and welcome footer styling
Label the welcome puzzle shortcut "Find welcome screen plugins" and give
both footer controls the same muted text and icon styling. Replace hover
backgrounds with a smooth 180 ms brightness transition, retain a visible
keyboard focus outline, and respect reduced motion. Let the controls wrap
on narrow screens.

Expand the onboarding shortcut to "Didn't find your provider? Click to
look in the Plugin Hub" across Cloud, Account, and Local.

Validation: 12 Node tests, 6 welcome UI tests, and 7 onboarding tests passed.
Verified the live hover transition and Welcome-filtered Plugin Hub.
2026-10-31 21:18:17 +01:00
Alessandro 3d7c2d8593 Keep welcome discovery cards compact beside taller panels
Keep account and channel cards at their natural height when paired with a taller welcome plugin. Adapt account content to the card width and wrap channel buttons without stretching account badges.

Use the neutral text palette for the shared Files and Editor tree clear icon. Update the owning layout contracts.

Validation: 8 welcome Node checks and 8 focused Python tests passed. Live checks covered half/full width, narrow desktop and 390px mobile layouts, both themes, and file-tree filtering.
2026-10-30 14:21:32 +01:00
Alessandro 798318cbf2 Make welcome customizations discoverable in the Plugin Hub
Add a persistent puzzle-piece button beside Show all dismissed that opens
Plugin Hub Browse with Welcome selected and any previous search cleared.
Preserve this requested filter through the Browse initialization reset.

Match and count all plugin tags rather than only the first tag, and keep
the Welcome filter visible even before matching plugins are indexed. Clip
the welcome background without creating a nested scroll container so block
focus and touch reordering scroll the page correctly.

Validation: focused Hub and restoration tests passed, along with six
welcome composer checks. Live verification covered the Welcome filter,
responsive plugin panels, touch reordering, dismissal/restoration, and
clean console output. Shared component and extension loaders are unchanged.
2026-10-30 13:54:04 +01:00
Alessandro 0ef5d92c71 Make welcome blocks reorderable and extensible
Allow welcome blocks to be reordered with mouse and touch drag handles,
keyboard controls, and a move menu. Persist the order in the browser,
commit DOM order on drop, and provide accessible announcements, reduced
motion, cancellation, and per-mount cleanup.

Discover blocks from their HTML metadata so plugins can join dynamically
without a central ID list. Preserve positions while plugins are absent,
validate unique IDs, and pair adjacent half-width blocks responsively.
Keep discovery cards in their Alpine scope and leave the shared component
and extension loaders unchanged.

Place the single Show all dismissed control below every welcome block and
extension contribution, retaining left alignment and unified restoration.
Document the plugin contract and cover ordering and restoration behavior.

Validation: 80 focused Node and pytest checks passed during implementation.
Verified mouse, emulated touch, keyboard, persistence, dynamic plugin
registration, and restoration in the live WebUI at localhost:32081.
Verified the final restore-button placement and reran both restore tests.
2026-10-30 12:48:29 +01:00
Alessandro 04a061442a Make welcome sections dismissible with unified restoration
Allow the greeting/composer and Quick Actions to be hidden independently, with browser-local persistence and hover, keyboard, and touch-accessible close controls. Preserve the composer draft while hidden.

Match System Resources controls to discovery cards, retain readable light-theme colors, and replace the two restore paths with one flush-left Show all dismissed action for sections, notices, accounts, and channels.

Validation: eight focused tests passed. Verified desktop, touch, keyboard focus, both themes, draft preservation, partial/all-dismissed states, reload persistence, and restoration in the live WebUI at localhost:32081.
2026-10-30 10:24:15 +01:00
linkliti 4603ac4baf refactor(plugins): serve the tasks and memory surfaces through plugin extension points
Serve the tasks dropdown entry and the tasks and memory welcome cards through plugin extension points, and drop the corresponding core markup including the header tasks entry and the hardcoded memory card. Keep the shared flatpickr preload in the core page head and drop the memory entry tooltip. Repoint the chat naming and sidebar folders stores at the plugin task store and update the sidebar DOX wording.

Validation: pytest tests/test_scheduler_editor.py tests/test_webui_extension_surfaces.py tests/test_sidebar_row_actions.py
2026-10-21 23:37:31 +03:00
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
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 7533d35e4f Fix mobile composer and welcome sizing
Let the contenteditable composer grow within its CSS bounds instead of
retaining measured pixel heights. Keep welcome controls on one row, reduce
the mobile placeholder font while preserving 16px input text, and use flex
layout for welcome action buttons.

Extend the draft regression to cover natural editor sizing and document
the layout contracts. Seven focused tests pass; browser checks cover
320px through desktop widths, multiline input, code blocks, and the
full-screen editor round trip.
2026-09-23 14:07:35 +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
frdel bebe6826cf Improve WebUI bundling, manifest and stop command
Introduce a WebUI extension manifest and rewrite the asset bundler/server to support caller-supplied entry sets, extension-injected entries, and negotiated gzip. Key changes: add get_webui_extension_manifest() to helpers/extension, refactor Stop logic into stop_context() and reuse it from the connector `/stop` command, and add a new `/rename` slash command for chat naming. ui_bundler now accepts entry_urls, includes enabled extension entry files, raises the embedded text file size limit to 512 KiB, computes per-entry-set cache keys, and returns a bundle version based on the bundle signature. ui_server applies Starlette GZip middleware, adds routes (/, /index.html, /ui/index, /safe), serves splash/safe documents, injects the serialized webui_extension_manifest into the rendered index, and streamlines the /ui/asset-bundle endpoint with ETag and gzip handling. Also add multiple WebUI assets and fonts, new/updated plugin command YAML and Python command handlers, and corresponding tests covering bundling, commands, chat naming, and WebUI behaviors. Documentation (.dox.md) updated to reflect the new runtime contracts and guidance.
2026-07-29 19:49:07 +02:00
Alessandro dec6df661f Stabilize WebUI mount geometry
Add responsive shell styling for a 250px desktop sidebar slot that yields to the mounted left panel and collapses on mobile.

Reserve the welcome composer's final height while nested input components hydrate, and document that component-local layout contract.
2026-07-23 15:25:34 +02:00
Alessandro 04ecaac0cd Add deferred first-send model gate
Move missing-model setup out of the welcome screen and into an in-thread gate that preserves the pending prompt, survives refresh, and auto-dispatches after a usable model is configured.

Reuse existing onboarding, OAuth account settings, and advanced model configuration surfaces instead of duplicating provider forms. Connected OAuth accounts can now populate Main and Utility defaults when no chat model is configured.

Update model readiness checks, focused static regressions, and DOX contracts for the new deferred setup flow.
2026-07-02 17:29:40 +02:00
Alessandro b805773c91 Render composer code blocks from typed fences
Switch the chat composer to a Markdown-backed contenteditable editor so typing a triple-backtick fence and pressing Enter creates a visual code block while pasted fenced Markdown stays plain text.

Serialize visual code blocks back to fenced Markdown for send/history, keep full-screen input in sync with the backing store, and update the focused composer regression plus DOX contract.
2026-07-02 17:29:40 +02:00
Alessandro 4ba591358e Fix unsecured connection settings link
Route the Configure credentials banner link through the welcome banner action dispatcher so it opens Settings directly at External Services > Authentication.\n\nAdd coverage for the unsecured connection banner and document the structured banner action contract for future banner links.
2026-06-23 18:47:10 +02:00
Alessandro 617adaf8a2 Keep welcome screen free of docked canvas
Route non-action canvas surfaces to their floating/modal forms while the welcome screen is active, and keep the canvas rail/shell hidden until a chat is selected.

Open the welcome Files quick action through the File Browser modal directly so the first screen remains composed.

Document the welcome/canvas boundary in the local DOX contracts and add focused regression assertions for the canvas guard and Files quick action.
2026-06-23 17:23:45 +02:00
Alessandro 8e3dad559f Fix welcome composer on mobile
Adjust the welcome-screen composer so the shared chat input wraps cleanly on narrow phones. Reclaim hidden expand-button padding, suppress placeholder-only textarea scrollbars, and tune the iPhone-width placeholder sizing while preserving normal typed-message scrolling.
2026-06-23 11:45:14 +02:00
Alessandro 489acfe8c6 Refine welcome screen setup surfaces
Fold the blocking onboarding state into the welcome composer, refresh the account and channel tiles, and keep system resources aligned with the renewed Welcome Screen layout.

Update model-config, OAuth, and welcome static tests to pin the new CTA, dismissal, copy, and layout contracts.
2026-06-23 02:21:44 +02:00
Alessandro 0e262f7b87 Refresh welcome screen and composer
Rework the welcome screen around the shared new-chat composer, renewed quick actions, discovery cards, OAuth accounts, and dedicated system resources panel.

Restore static button colors and neutral surfaces, move microphone state feedback onto the icon, and keep Rubik/code-font composer behavior.

Add focused static regressions for the welcome composer, OAuth discovery panel, and speech button contract.
2026-06-22 15:12:20 +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 704c0e9daf Polish sidebar task actions
Move Remote Link and Space Agent into the sidebar dropdown while removing their right-canvas rail actions.

Rename Scheduler-facing UI to Tasks and collapse Chat Actions behind a persisted dropdown accordion.
2026-05-02 17:34:24 +02:00
Alessandro 0061b3a511 feat: add built-in plugin discovery cards to the welcome screen
Add the always-enabled `_discovery` plugin to turn the welcome screen into a discovery surface for the Plugin Hub and A0 integrations.

Includes a hero card plus Telegram, Email, and WhatsApp feature cards, with persistent dismiss/restore state, CTA routing to plugin config screens, and self-contained placeholder artwork. Implemented entirely through the existing WebUI extension mechanism with no core welcome-screen changes.

stores cleanup

layout polish and onboarding integration

Move feature card titles beside thumbnails for better space efficiency
and visibility. Restructure card markup and styles to support a fluid
grid layout and horizontal alignment.

Integrate discovery cards into the final onboarding step via a new
'onboarding-success-end' extension point, ensuring new users see
extension opportunities immediately after setup.

Hide discovery cards on the dashboard while the missing API key
onboarding banner is visible to reduce UI noise and user confusion during initial config.

update discovery card initialization and loading logic

Enhance the discovery store to fetch cards from the API, improving the dynamic loading of discovery cards based on user context. This change optimizes the user experience by ensuring relevant cards are displayed immediately after onboarding and when modals are closed.

And on top of that, there's a proper backend for these new cards.
2026-03-31 19:59:16 +02:00
frdel c1d709726e Add current branch latest version display to self-update modal with collapsible last attempt section
- Add get_current_branch_latest_info helper to fetch and format latest version info for current branch
- Add _format_branch_head_version helper to format version display (tag only for main, tag+commits for other branches)
- Include current_branch_latest in get_update_info response
- Replace single current version card with two-column grid showing current and latest versions
- Move last attempt status
2026-03-26 11:09:22 +01:00
frdel 986c1b1cee Refactor default presets, fix chardet version conflict, improve welcome banner refresh logic
- Rename presets: "Efficiency" → "Max Power", "Intelligence" → "Balance", add "Cost Efficient"
- Update preset models: use Claude Opus 4.6, Sonnet 4.6, Kimi K2.5, GPT-5.4-mini/nano, Gemini 3.1 Flash Lite
- Adjust context lengths and vision capabilities across presets
- Pin chardet<6 to avoid import warnings from requests when unstructured is installed
- Replace settings-updated listener with modal-closed event
2026-03-24 19:17:12 +01:00
frdel eafe51a688 Refactor self-update system to use native Git operations instead of file sync
- Replace file-based sync_tree with native Git checkout, fetch, and stash operations
- Add Git stash-based rollback protection for tracked and untracked changes
- Remove protected path detection logic (now handled by Git ignore rules)
- Add stash management helpers: create_rollback_stash, apply_stash, drop_stash
- Add repository state restoration via restore_git_state for branch/detached HEAD
- Implement clean_repo_wor
2026-03-24 18:44:57 +01:00
Alessandro 132612bf3a fix settings modal not opening from dashboard 2026-03-23 17:57:08 +01:00
frdel 5e7253282c Fix plugin modal paths to use absolute URLs instead of relative paths
Change all plugin modal path references from relative (`../plugins/`) to absolute (`/plugins/`) URLs for consistency and to avoid path resolution issues across different webui components.
2026-03-10 22:27:16 +01:00
frdel 6515626242 refactor - plugin names and builtin plugins 2026-03-10 22:20:53 +01:00
Alessandro b43cde0b45 add extension points coverage; add JS hooks 2026-02-18 12:32:04 +01:00
Alessandro bd6a80c042 fix UI regressions 2026-02-18 10:38:38 +01:00
Alessandro d65fada385 add extension points for chat, sidebar, and modal shell
- Introduced new extension points in various chat components: `chat-input`, `chat-top`, and `chat-bar`.
- Added extension points for sidebar components: `sidebar-start`, `sidebar-end`, and others.
- Updated modal structure with extension points for better integration.
- Updated documentation in README.md to reflect current sidebar, input, chat, welcome, and modal surfaces.
- Added tests for web UI extension surfaces to ensure proper integration and functionality.
2026-02-17 18:23:36 +01:00
frdel 3918133cbf plugins - frontend PoC 2026-02-16 20:01:25 +01:00
Alessandro d69e30adc6 simplification and further memory decoupling
components.js restore
plugins tools fix
restore agent.py
2026-02-15 03:25:33 +01:00
3clyp50 54fb4746a4 initial plugins effort; memory system PoC
plugin manifest update
add memory plugin PoC files
offload memory prompts
cleanup imports
extract memory UI
fix paths
plugin docs
2026-02-14 17:05:37 +01:00
frdel 48470639ea fix welcome screen refresh 2026-02-10 12:22:30 +01:00
frdel 69cb4f131a auto refresh welcome screen on settings change 2026-02-10 12:17:25 +01:00
frdel 19da93f535 banners refresh and undismiss 2026-02-04 10:28:36 +01:00
frdel 4aaf7af34a ui: welcome screen, queue input, interverntions 2026-01-31 19:37:39 +01:00
frdel 1c83af8837 welcome screen polishing. 2026-01-31 17:47:09 +01:00
frdel 140b7b96dd Merge branch 'pr/855' into development 2026-01-07 09:42:36 +01:00
3clyp50 d4587e0b77 ui: streamline sidebar buttons, add dropdown component 2025-12-29 15:03:54 +01:00
keyboardstaff 52430f6421 Info and Warning Banners for Welcome Screen 2025-12-27 00:24:24 -08:00
frdel 1f37bcd844 projects, contexts continued 2025-11-04 13:05:58 +01:00