Commit e67b7dd
Refactor wmux codebase to follow coding rules
Apply coding-rules.md across all wmux and wmux-client files:
- Remove all structural "what" comments (section separators, code descriptions)
- Extract long functions into small, single-purpose named functions
- Replace mutations (splice, Set.delete, Map.delete) with immutable patterns
- Flatten nested if statements with guard clauses and extracted helpers
- Deduplicate repeated class strings into constants (CommandPalette)
- Extract sub-components (CategoriesGroup, ProcessesGroup, FilesGroup, ActionsGroup)
- Extract custom hook (useKeyboardShortcuts) from WmuxApp
- Consolidate scattered let variables into state object (process.ts)
- Create shared types file to eliminate duplicated interfaces
- Rename abbreviated variables (mod, cat, def, idOrPath) to descriptive names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2a51cf8 commit e67b7dd
12 files changed
Lines changed: 677 additions & 552 deletions
File tree
- packages
- wmux-client/src
- components
- wmux/src
- components
Lines changed: 188 additions & 110 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 6 | + | |
34 | 7 | | |
35 | 8 | | |
36 | 9 | | |
| |||
44 | 17 | | |
45 | 18 | | |
46 | 19 | | |
47 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
48 | 28 | | |
49 | 29 | | |
50 | 30 | | |
| |||
59 | 39 | | |
60 | 40 | | |
61 | 41 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 42 | | |
67 | 43 | | |
68 | | - | |
| 44 | + | |
69 | 45 | | |
70 | 46 | | |
71 | 47 | | |
| |||
89 | 65 | | |
90 | 66 | | |
91 | 67 | | |
92 | | - | |
| 68 | + | |
93 | 69 | | |
94 | 70 | | |
95 | 71 | | |
96 | 72 | | |
97 | 73 | | |
98 | | - | |
99 | | - | |
100 | 74 | | |
101 | 75 | | |
102 | 76 | | |
| |||
141 | 115 | | |
142 | 116 | | |
143 | 117 | | |
144 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
145 | 122 | | |
146 | 123 | | |
147 | 124 | | |
| |||
188 | 165 | | |
189 | 166 | | |
190 | 167 | | |
191 | | - | |
192 | | - | |
| 168 | + | |
| 169 | + | |
193 | 170 | | |
194 | 171 | | |
195 | 172 | | |
| |||
201 | 178 | | |
202 | 179 | | |
203 | 180 | | |
204 | | - | |
| 181 | + | |
205 | 182 | | |
206 | 183 | | |
207 | 184 | | |
| |||
212 | 189 | | |
213 | 190 | | |
214 | 191 | | |
215 | | - | |
216 | | - | |
217 | 192 | | |
218 | 193 | | |
219 | 194 | | |
| |||
235 | 210 | | |
236 | 211 | | |
237 | 212 | | |
238 | | - | |
239 | | - | |
240 | 213 | | |
241 | 214 | | |
242 | 215 | | |
| |||
251 | 224 | | |
252 | 225 | | |
253 | 226 | | |
254 | | - | |
| 227 | + | |
255 | 228 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
260 | 233 | | |
261 | | - | |
262 | | - | |
| 234 | + | |
| 235 | + | |
263 | 236 | | |
264 | 237 | | |
265 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
69 | | - | |
| 65 | + | |
70 | 66 | | |
71 | 67 | | |
72 | | - | |
73 | | - | |
| 68 | + | |
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
83 | 78 | | |
84 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
106 | 100 | | |
107 | 101 | | |
108 | 102 | | |
| |||
0 commit comments