Commit 58bb8b6
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
- apps
- docs/content/getting-started
- dotcom/client
- public/tla
- locales-compiled
- locales
- src
- fairy
- tla/styles
- internal/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
Large diffs are not rendered by default.
0 commit comments