Commit Graph
11 Commits
Author SHA1 Message Date
Alessandro cb068179c9 Add configurable sidebar chat and message search
Search loaded chat and task titles and messages from the sidebar, with Standard, Compact, and No search modes in the existing filters menu. Preserve project, status, and activity filters, keep matching child conversations accessible, and leave Welcome Chats search independent.

Show compact, title-aligned excerpts with Unicode-safe match emphasis and no duplicate title previews. Use the Search placeholder and the chat composer's background, border, and focus transition. Retain authentication, query validation, stale-response protection, and keyboard navigation.

Validation: 33 focused Python tests and both frontend suites passed. Checked search modes, persistence, child/task fixtures, dark and light themes, keyboard focus, and touch emulation against the live Docker runtime. Final CSS polish was visually checked; git diff --check passed.
2026-10-31 03:12:00 +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
Alessandro cb93ed055b Fix disappearing chats when Sidebar Folders is disabled
Another plugin could import the disabled folders store, registering a
replacement list view even though the folders UI was absent. This hid
the standard chat and task lists while their data remained intact.

Register view and sorting callbacks when each list extension mounts and
remove them on unmount, preserving other plugins' callbacks. Reuse the
existing component lifecycle hooks without adding work per chat or snapshot.

Add regression coverage for indirect imports, filter cleanup, remounting,
and preservation of other plugins' sorting. Document the lifecycle contract.

Validation: frontend checks and 13 focused pytest tests passed. Live WebUI
checks covered disable/re-enable, folder/flat switching, nested selection,
and component unmount cleanup at localhost:32081.
2026-10-08 00:37:29 +02:00
Alessandro 52744fe7b1 Fix sidebar folder lag during activity and focus updates
Replace repeated full-context family scans with a fresh parent-child index shared within each grouping and filter pass.

Retain unchanged configuration, ordering, project lists and rendered sections to avoid unnecessary sidebar reconciliation. Preserve reactive row metadata, nested family pins, sorting, filters and collapse behavior without a persistent cache.

Add frontend regressions and document the state-identity contracts. Verified the frontend suite, 33 focused Python tests and 17 live browser checks. In a local 274-chat sample, median activity updates fell from about 67 ms to 15 ms; unchanged focus refreshes produced zero sidebar DOM mutations.
2026-10-06 21:31:33 +02:00
Alessandro 50832e0229 Persist sidebar project, status, and activity filters
The sidebar saved View and Sort by, but kept Project, Status, and Last activity
only in memory. Reloading reset those three controls to their defaults.

Store the filters in the existing Sidebar Folders configuration and reuse its
save/load API. Preserve the empty No project value, apply safe defaults to
missing or malformed settings, and keep the menu open when changing filters.
Changing view or sort retains the selected filters.

Update defaults, documentation, and frontend regression coverage for saving,
reloading, fallback values, and menu behavior.

Validation: frontend checks and seven focused Python tests passed. Live native
dropdown checks confirmed named-project and No-project selections survive
reloads, including after changing view and sort. Original runtime settings
were restored afterward.
2026-09-30 16:13:10 +02:00
Alessandro 3397c4f87c Reduce sidebar agent indentation and remove row tooltips
Reduce indentation from 30px to 25px at the first two child levels, preserving the deeper-level taper.

Remove new-chat and overflow tooltips from sidebar rows while retaining accessible labels and both Chats header tooltips. Update sidebar contracts to match.

Validation: 7 focused pytest checks passed, sidebar folder frontend checks passed, and live browser checks confirmed row labels and header tooltips.
2026-09-23 18:44:19 +02:00
Alessandro 4d327a3028 fix(sidebar-folders): clarify status and activity filters
Use All, Working, and Idle consistently for chats and scheduled tasks. Idle includes inactive or paused chats and disabled tasks; a family with an active worker stays under Working instead of also appearing under Idle.

Shorten Recent activity to Last active so the sort label fits its field. Updated filter regressions pass. Desktop and mobile menus were checked at 100% zoom, and the normal cached page also serves the new options.
2026-09-23 14:54:18 +02:00
Alessandro 1b2165714d perf(sidebar-folders): reuse rendered rows during dragging
Every drag hover rebuilt and sorted folders, repeatedly scanning chat families as the visible list grew. Reuse the rendered sections and rows for insertion targets and retain the existing target when the indicated gap has not changed.

Keep folder pin boundaries, family moves, and manual ordering behavior intact. Frontend checks and 24 native drags pass in both directions after sort-mode changes. In the 240-chat browser fixture, median hover-handler time fell from about 10 ms to 0.1 ms.
2026-09-23 14:54:05 +02:00
Alessandro af59a801c6 feat(sidebar-folders): add Projects to the No project menu
Open the existing global projects list from the No project folder's
three-dot menu, using the same icon as the in-chat project selector.
Close the folder menu before opening the modal and document the shortcut.

Validation: Node frontend checks passed. Live checks on normal and safe
pages verified that the modal opens, the folder menu closes, and the
action appears only for No project.
2026-09-23 06:42:24 +02:00
Alessandro 6c10ef62a1 feat(sidebar-folders): organize chats and tasks by project
Group sidebar chats and scheduler tasks into collapsible project folders,
with a flat-view option and creation-time sorting by default. Keep view,
sort, project, status, and activity controls in the sidebar menu.

Preserve nested parallel workers, integrate Pin to Top, and support new
chats in explicit projects, manual reordering, and whole-family project
moves. Keep pinned folders together and reject project changes for running
chats or scheduled tasks. Persist ordering and view preferences through
plugin-owned APIs and the existing settings contract.

Include documentation, backend and frontend regression coverage, and a
generated 256x256 WebP thumbnail under 20 KB.

Validation: 69 focused pytest checks and the Node frontend suite passed.
Live browser checks covered folder/flat views, Bots 1.2.1 compatibility,
workers, pins, sorting, and drag/drop, including 30 pinned-folder boundary
cases. The thumbnail is 17,930 bytes and serves correctly in the live UI.
2026-09-22 23:05:11 +02:00