Commit 18ae07f
feat(nav): add logout action in top navigation (#580)
* feat(nav): add logout action in top navigation
- Add user dropdown menu to TopNav with Sign out button
- Clicking Sign out calls signOut() from useAuth and redirects to /login
- Dropdown shows signed-in user name and email
- Dropdown is accessible: aria-expanded, aria-haspopup, role=menu,
role=menuitem; closes on outside click and Escape key
- Display name falls back to user.name from AuthContext
- Add Vitest tests covering open/close, logout call, redirect, aria attrs
Closes #467
* fix(ui): repair toast.tsx — add missing ToastVariant type, useRef import, and close Toast function body
* fix: resolve TypeScript CI failures in CopyButton and useKeyboardNavigation
- CopyButton: omit 'type' from ButtonProps spread to prevent collision
between content type ('text'|'key'|'address'|'code') and HTML button
type attribute ('button'|'submit'|'reset'); remove unused 'reset'
destructure
- useKeyboardNavigation: replace invalid EventListener casts with a
proper native Event bridge wrapper; use React.useState for
currentIndex/position instead of invalid useCallback/useRef pattern;
use event as unknown cast for keyboard shortcut handler
Fixes #464 #465 #466 #467 (CI typecheck/build failure)
* fix: resolve remaining TypeScript CI failures
- wallet/page.tsx: add missing isSendOpen state declaration
- button.tsx: export ButtonProps type for external use
- wallet.ts: add name? field to Wallet interface
- MetricsCards.tsx: add required open prop to Toast component
- TopAssetsTable.tsx: add required open prop to Toast component
- Remove duplicate Toast.tsx (conflicts with toast.tsx on case-sensitive systems)
Fixes case-sensitivity conflict and missing props/types
* fix: resolve CI TypeScript errors
- Rename Toast.stories.tsx to toast.stories.tsx (case-sensitive FS)
- Fix import ordering in MetricsCards and TopAssetsTable
- Update package dependencies and build configuration
Fixes:
- TS1261: Case-only file name difference error
- Import resolution consistency across platforms
* fix: remove packageManager field to resolve CI pnpm version conflict
---------
Co-authored-by: tali-creator <tali-creator@users.noreply.github.com>
Co-authored-by: James Aklo <jamesjambox@gmail.com>1 parent 1128ec2 commit 18ae07f
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
183 | 213 | | |
184 | 214 | | |
185 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments