Skip to content

docs: add CLAUDE.md with codebase overview for AI assistants#5

Open
nmai wants to merge 2 commits intomasterfrom
claude/add-claude-documentation-Td57V
Open

docs: add CLAUDE.md with codebase overview for AI assistants#5
nmai wants to merge 2 commits intomasterfrom
claude/add-claude-documentation-Td57V

Conversation

@nmai
Copy link
Owner

@nmai nmai commented Feb 9, 2026

Covers project structure, build commands, architecture, data flow,
code conventions, and key features.

https://claude.ai/code/session_015v7KbgsaJAaxhvvcvg76EV

Covers project structure, build commands, architecture, data flow,
code conventions, and key features.

https://claude.ai/code/session_015v7KbgsaJAaxhvvcvg76EV
Major reorganization of the flat ts/ directory into a layered structure:
- core/ (types, constants, van.ts)
- state/ (UIState + DataState, split from monolithic AppState)
- services/ (storage, tree, favicon, theme, validator, new CommandService)
- components/ (tree, edit-form, settings, footer)

Key improvements:
- CommandService decouples UI from persistence layer
- Deduplicated save-and-rebuild-tree pattern (was repeated 5+ times)
- Extracted form reset into reusable function
- Removed dead code (createdTable state, commented-out code)
- Moved SVG icons from inline strings in constants.ts to .svg files
- Split monolithic custom.css (571 lines) into 8 focused CSS files
- Fixed dark mode hover bug in tree list (hardcoded lightgray → var)

Storage-persisted enum values are preserved to avoid breaking existing users.

https://claude.ai/code/session_015v7KbgsaJAaxhvvcvg76EV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants