Commit 1d22634
committed
style(dashboard): fix all Biome lint violations
Cleanup pass bringing dashboard/src to zero Biome errors:
Auto-fixable (`biome check --write`):
- Import sort, trailing commas, semicolons
- Single quotes to double quotes (matching plugin + config rule)
- Single-line object/expr expansion to line-width 100
- Arrow param parens (s => ... -> (s) => ...)
Manual a11y fixes:
- <button type="button"> on every button (useButtonType)
- Clickable cards / category headers / closeable spans: <div onClick> -> <button type="button"> with matching 'cursor: pointer; text-align: left; width: 100%' styling (noStaticElementInteractions, useSemanticElements)
- Where button semantics don't fit: role="button", tabindex="0",
and onKeyDown handlers mirroring onClick for Enter/Space (useKeyWithClickEvents)
Manual noNonNullAssertion fixes:
- Solid <Show when={x}>{(t) => ...}</Show> callback pattern to replace `x!` downstream
- `x ?? fallback` for string/number defaults
- Early return guards replacing `x!.field` patterns
Other:
- Explicit `type` annotation on `let` declarations (noImplicitAnyLet)
- One CSS selector reorder to fix noDescendingSpecificity
- Removed a duplicate JSX prop (noDuplicateJsxProps)
- <label>s without inputs converted to <span> or given `for=`
18 files changed, +2493/-1115 lines — the bulk is auto-formatting
(single-line object literals expanded to multi-line under line-width 100).
Whitespace-ignoring diff is much smaller (substantive logic unchanged).
Verification: 0 Biome errors, dashboard build clean, cargo check clean,
plugin test suite (679 passing) unaffected.1 parent d5cd0bc commit 1d22634
18 files changed
Lines changed: 2492 additions & 1115 deletions
File tree
- packages/dashboard/src
- components
- CacheDiagnostics
- ConfigEditor
- DreamerPanel
- Layout
- LogViewer
- MemoryBrowser
- SessionViewer
- UserMemories
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | 11 | | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
55 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
62 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
63 | 78 | | |
64 | | - | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| |||
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| 104 | + | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
103 | 115 | | |
104 | 116 | | |
105 | 117 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
113 | 129 | | |
114 | 130 | | |
115 | 131 | | |
| |||
0 commit comments