Commit Graph

15 Commits

Author SHA1 Message Date
Stijnus
b54d160a3b
feat: bulk delete chats from sidebar (#1586)
* feat: Bulk Delete Chats from Sidebar

feat(sidebar): Implement bulk chat deletion

Adds the ability for users to select multiple chats from the history sidebar and delete them in bulk.

**Key Changes:**

*   **Selection Mode:** Introduced a selection mode toggled by a dedicated button next to "Start new chat".
*   **Checkboxes:** Added checkboxes to each `HistoryItem` visible only when selection mode is active.
*   **Bulk Actions:** Added "Select All" / "Deselect All" and "Delete Selected" buttons (`Button` component with `ghost` variant) that appear above the chat list in selection mode.
*   **Confirmation Dialog:** Implemented a confirmation dialog (`Dialog` component) to prevent accidental deletion, listing the chats selected for removal.
*   **Deletion Logic:** Updated `Menu.client.tsx` to handle the selection state and perform bulk deletion using `deleteById` from persistence layer.
*   **Styling:** Ensured all new UI elements (`Checkbox`, `Button`) adhere to the existing project design system and support both light and dark themes using appropriate CSS classes and UnoCSS icons (`i-ph:` prefix).
*   **Refinement:** Replaced initial plain `<button>` elements with the project's `Button` component for consistency. Fixed incorrect icon prefixes.

* Fix selection and Dark mode
2025-04-06 20:36:53 +02:00
Stijnus
c4c73622f5 Fix ESLint issues 2025-01-28 11:39:12 +01:00
Stijnus
0db9ce2717 Revert "Major UI improvements"
This reverts commit 6e52114172.
2025-01-28 10:28:45 +01:00
Stijnus
6e52114172 Major UI improvements 2025-01-28 01:33:19 +01:00
Anirban Kar
356715ccd7 minor bugfix 2024-12-16 23:55:51 +05:30
Anirban Kar
507a7f94bd some minor fix 2024-12-04 00:17:50 +05:30
Anirban Kar
d92029d573 fix: Added some minor UI fix 2024-12-04 00:02:51 +05:30
PuneetP16
5335580646 [feat]: Implement chat description editing in sidebar and header, add visual cue for active chat in sidebar 2024-12-03 11:41:58 +05:30
SujalXplores
b8b25baf5c refactor: improve history item hover states and interactions 2024-11-25 20:46:17 +05:30
eduardruzga
6e8aa04d27 Lint fixes 2024-11-23 00:29:16 +02:00
eduardruzga
fb34a4cb8f Add import, fix export 2024-11-23 00:23:45 +02:00
eduardruzga
60411550a5 Make tooltip easier to reuse across the app 2024-11-22 11:05:18 +02:00
eduardruzga
a6060b81a5 Export chat from sidebar 2024-11-22 10:17:28 +02:00
eduardruzga
23d7182d6d Add ability to duplicate chat in sidebar 2024-11-17 21:03:40 +02:00
Sam Denty
6fb59d2bc5
fix: remove monorepo 2024-09-25 19:54:09 +01:00