Skip to content

Commit 58bb8b6

Browse files
authored
feat(fairies): add reset chat button to FairyHUD header (tldraw#7224)
Adds a reset button to the FairyHUD header that allows users to reset the chat conversation with a fairy. The reset button appears in the header when: - The panel is showing fairy chat - A fairy is currently shown - Only one or no fairies are selected The button uses the existing `reset()` method on the fairy agent and displays a counter-clockwise rotate icon. ### Change type - [x] `improvement` ### Test plan 1. Open a fairy chat 2. Have a conversation with the fairy 3. Click the reset button in the header 4. Verify the chat is reset and starts fresh - [ ] Unit tests - [ ] End to end tests ### Release notes - Added a reset button to the fairy chat header to quickly restart conversations <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Migrates fairy HUD/menus to Tldraw UI dropdowns with a new Manage submenu and accessibility tweaks, updates i18n strings and releases doc to v4.2.0, adds a lint-staged wrapper, and refines related styles. > > - **UI (fairies)**: > - Replace Radix dropdowns with `TldrawUiDropdownMenu*` in `FairyHUD`, `FairyDropdownContent`, `FairyTaskListDropdownContent` and sync open state via `editor.menus`. > - Restructure `FairyMenuContent` with a `Manage` submenu; disable reset when no history; keep group disband flow. > - Improve accessibility of sidebar plus control (div with role/button + keyboard handlers) in `FairySidebarButton`. > - Adjust `FairyDebugDialog` structure (remove wrapper) and use Tldraw UI for view selection. > - **Styles**: > - Tweak chat input/history padding and header spacing; set dialog body sizing; adjust z-index and `--tl-layer-canvas-in-front`. > - **i18n**: > - Update labels/messages (e.g., `Visit`, `Speak to {name}…`, `Manage`, `Summon all`, `Sleep all`, `Clear all`, `Hard reset`, `Fairy's name`); remove unused strings; sync compiled locales. > - **Docs**: > - Update releases page to current `[v4.2.0]` with notes and move prior versions to "Previous releases". > - **Tooling**: > - Add `internal/scripts/lint-staged.ts` wrapper for clearer lint-staged error reporting. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 8bbb78b. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 05416a3 commit 58bb8b6

15 files changed

Lines changed: 371 additions & 603 deletions

File tree

.claude/commands/pr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Tips:
7070

7171
- Place the PR description at the top of the file, above the Change type heading
7272
- In Change type, you may delete any items that are not ticked
73+
- Make sure you tick ([-]) the Change type
7374
- If your changes cannot be manually tested, you may remove that ordered list
7475
- Tick Unit tests if tests are present, otherwise leave it unticked
7576
- Tick End to end tests if e2e tests are present, otherwise leave it unticked

apps/docs/content/getting-started/releases.mdx

Lines changed: 33 additions & 178 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)