Commit 747d22d
authored
feat!: improve file list display with User/Project terminology and better organization (#65)
* feat\!: migrate to new descriptive file type naming convention
BREAKING CHANGE: Complete migration to new ClaudeFileType values for better clarity
- Renamed all file type values to be more descriptive:
- 'global-md' → 'user-memory'
- 'claude-md' → 'project-memory'
- 'claude-local-md' → 'project-memory-local'
- 'slash-command' → 'project-command'
- 'project-agent' → 'project-subagent'
- 'user-agent' → 'user-subagent'
- 'settings-json' → 'project-settings'
- 'settings-local-json' → 'project-settings-local'
- Added new file types:
- 'personal-command' for user's personal slash commands
- 'user-settings' for global settings.json
- Updated UI to show more descriptive labels with path information
- Added [deprecated] badge for project-memory-local files
- Improved command display with path context
- Enhanced file detection logic to properly identify all file types
This change aligns with Anthropic's documentation terminology and provides
clearer understanding of each file's purpose in the Claude Code ecosystem.
* feat: reorder file groups to show user configs first with unified colors
- User configurations now appear before project configurations:
User memory → User settings → User commands → User agents → Project configs
- Apply unified color scheme by category:
- Memory files: Blue theme
- Settings files: Cyan theme
- Command files: Green theme
- Agent files: Magenta theme
- Update tests to support flexible group ordering
* feat: update UI labels to use User/Project terminology with file locations
- Update FileGroup labels to show descriptive names with file locations
e.g., "User memory (~/.claude/CLAUDE.md)"
- Update FileItem badges to use consistent USER/PROJECT prefixes
e.g., "USER MEMORY", "PROJECT COMMAND"
- Align terminology with Anthropic's documentation conventions
- Update all related tests to match new labels
* feat: display empty file categories with count (0)
- Show all file categories even when they contain no files, displaying them as "Category name (0)"
- Empty categories are not expandable (isExpanded: false)
- Unknown type is excluded from empty group display
- Auto-select first file from the first non-empty group instead of first group
This improves discoverability by making all available file types visible to users,
even when no files of that type exist in the current project.
* feat: apply high-contrast color theme for black background
- Updated color scheme from basic colors to high-contrast hex values
- Colors optimized for better visibility on black terminal backgrounds:
- Memory categories: Orange (#FF8A65, #FFAB91)
- Settings categories: Cyan (#4DD0E1, #80DEEA)
- Command categories: Green (#66BB6A)
- Agent categories: Soft magenta (#C47FD5)
- Removed unnecessary descriptive comments per user feedback
- Fixed test to handle empty file groups correctly
* chore: remove pr.md documentation file
* docs: align file type terminology with Anthropic documentation
- Update README.md Target Files section to use User/Project terminology
- Organize files by category (Memory, Commands, Sub-agents, Settings)
- Update CLAUDE.md UI experience section to reflect latest features
- Maintain consistency with Anthropic's official documentation naming
* fix: revert package.json keywords
* refactor: address PR review comments for code cleanliness
- Remove extra blank line in CLAUDE.md
- Remove unnecessary comments in _types.ts, FileItem.test.tsx, and FileItem.tsx
- Add explicit return type annotation to getFileBadge function
All changes improve code readability by removing redundant documentation
while maintaining clear, self-documenting code structure.
* fix: support personal-command in Copy to Current Directory action
* fix: add personal-command support to claude-md-scanner getSearchPatterns
- Added USER_SLASH_COMMANDS pattern for personal-command type
- Added tests to verify personal-command pattern inclusion
- Ensures consistent handling of user-level commands across the codebase
* refactor: rename sub-agent to subagent throughout codebase
- Rename sub-agent-scanner.ts to subagent-scanner.ts
- Update all imports and references from sub-agent to subagent
- Unify terminology in labels: 'Project/User subagents'
- Maintain internal type names (project-subagent, user-subagent) for compatibility
* fix: complete subagent terminology unification
- Remove remaining hyphens from UI labels (PROJECT/USER SUBAGENT)
- Update section header in README.md to "Subagent Files"
- Change SubAgentScanner fileType from 'Sub-agent' to 'Subagent'
- Fix all Sub-agent references in CLAUDE.md documentation
- Add dedicated MAX_SUBAGENT_SIZE constant (100KB)
- Add naming conventions section following Anthropic docs
This completes the terminology unification started in 693ebeb
* fix: update icons for better visual distinction
- Change personal-command icon from 👤 to 🔹 (blue diamond)
- Change user-subagent icon from 👤 to 🧑💻 (technologist)
- Update test comment to use new file type terminology
- Improves visual clarity by avoiding duplicate icons1 parent e6cf83d commit 747d22d
File tree
27 files changed
+1156
-396
lines changed- src
- components
- FileList
- MenuActions/hooks
- Preview
- hooks
- styles
27 files changed
+1156
-396
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
| 240 | + | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
360 | 358 | | |
| 359 | + | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
| |||
474 | 473 | | |
475 | 474 | | |
476 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
477 | 493 | | |
478 | 494 | | |
479 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | | - | |
41 | | - | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
47 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
48 | 73 | | |
49 | 74 | | |
50 | 75 | | |
51 | 76 | | |
52 | 77 | | |
53 | 78 | | |
54 | | - | |
| 79 | + | |
55 | 80 | | |
56 | 81 | | |
57 | 82 | | |
58 | 83 | | |
59 | 84 | | |
60 | 85 | | |
61 | | - | |
| 86 | + | |
62 | 87 | | |
63 | 88 | | |
64 | 89 | | |
| |||
173 | 198 | | |
174 | 199 | | |
175 | 200 | | |
176 | | - | |
| 201 | + | |
177 | 202 | | |
178 | 203 | | |
179 | 204 | | |
180 | 205 | | |
181 | | - | |
| 206 | + | |
182 | 207 | | |
183 | 208 | | |
184 | 209 | | |
185 | 210 | | |
186 | 211 | | |
187 | | - | |
| 212 | + | |
188 | 213 | | |
189 | 214 | | |
190 | | - | |
| 215 | + | |
191 | 216 | | |
192 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
193 | 241 | | |
| 242 | + | |
194 | 243 | | |
195 | 244 | | |
196 | 245 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
201 | 250 | | |
202 | 251 | | |
203 | 252 | | |
204 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
205 | 278 | | |
206 | 279 | | |
207 | 280 | | |
| |||
0 commit comments