Add a docs folder and move the code map into it
- Move CODE_MAP.md to docs/CODE_MAP.md, preserving history with git mv. - Add docs/README.md as the documentation index, linking the code map, project README, roadmap and asset provenance notes. - Point the root README at docs/CODE_MAP.md and update path references inside the map.
This commit is contained in:
@@ -84,7 +84,7 @@ The physical-device integration test uses a disposable in-memory game plus an is
|
||||
| `assets/audio/` | Runtime WAV files, archival FLAC exports and passage timing manifest |
|
||||
| `legacy/` | Archived Java version 1.7, excluded from Flutter builds |
|
||||
|
||||
For an agent-oriented architecture, dependency, screen-flow and persistence map, see [CODE_MAP.md](CODE_MAP.md).
|
||||
For an agent-oriented architecture, dependency, screen-flow and persistence map, see [docs/CODE_MAP.md](docs/CODE_MAP.md).
|
||||
|
||||
## Before publishing
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Code map — Lumen
|
||||
|
||||
> Agent-oriented overview of the Flutter app. Read this before changing code.
|
||||
> Update it when you move files, add screens, or change persistence keys or invariants.
|
||||
> Location: `docs/CODE_MAP.md`. Update it when you move files, add screens, or change persistence keys or invariants.
|
||||
> Symbol names and paths are stable; line numbers are deliberately omitted because they drift.
|
||||
|
||||
## 30-second summary
|
||||
@@ -398,7 +398,7 @@ flutter drive --driver test_driver/integration_test.dart \
|
||||
- **Streaks use UTC epoch days.** Do not compare local `DateTime` values directly; `visibleStreak` drops to zero when the last completion is older than yesterday.
|
||||
- **`Puzzle.deductionRounds` throws** if a board cannot be solved by singles (plus area comparisons). Generation and tests assume no guessing.
|
||||
- **Generated boards are 5×5 without regions.** Only authored campaign boards are 7×7 with A/B/C areas; don't run region logic against generated puzzles.
|
||||
- **Landscape side columns scroll.** With very large text, notes or hint/undo can need scrolling; never shrink text to force a fit (see ROADMAP: keep vertical scrolling as the accessibility fallback).
|
||||
- **Landscape side columns scroll.** With very large text, notes or hint/undo can need scrolling; never shrink text to force a fit (see the root `ROADMAP.md`: keep vertical scrolling as the accessibility fallback).
|
||||
- **Gesture layering is deliberate.** `PageSwipeBlocker` wins horizontal drags inside boards/buttons while letting vertical drags scroll. Adding another horizontal recogniser around a board can break page turns or mark gestures.
|
||||
- **Ads are optional by design.** `adsEnabled: false` in tests, `supported` guard in the service, and `between()` always routes even on no-fill.
|
||||
- **Narration assets are checksum-locked.** `check_narration_assets.py` requires the scripts, manifests and WAV masters to agree; edit them together.
|
||||
@@ -429,7 +429,7 @@ grep -rn "ValueKey('cell-\|leaf-scroll\|leaf-side-scroll" lib test
|
||||
|
||||
## Maintaining this map
|
||||
|
||||
- Keep it in step with `README.md` (user-facing overview) and `ROADMAP.md` (product direction). This file is the only architecture/dependency map.
|
||||
- Keep it in step with the root `README.md` (user-facing overview) and `ROADMAP.md` (product direction). This file is the only architecture/dependency map.
|
||||
- Update the Mermaid graph when imports between layers change, when a screen is added, or when persistence keys or invariants change.
|
||||
- Re-run `flutter analyze`, `flutter test` and `python3 scripts/check_narration_assets.py` after structural edits.
|
||||
- The map is hand-maintained; no generator or CI check keeps it current, so treat drift as a bug.
|
||||
@@ -0,0 +1,17 @@
|
||||
# Documentation
|
||||
|
||||
| Document | Purpose |
|
||||
| --- | --- |
|
||||
| [Code map](CODE_MAP.md) | Agent-oriented architecture, dependency graph, screen state machine, puzzle pipeline, UI/layout rules, persistence keys, asset and service flows, test map, invariants, change recipes and gotchas |
|
||||
| [Project README](../README.md) | Features, artwork, narration, build and verification commands, publishing notes |
|
||||
| [Roadmap](../ROADMAP.md) | Product direction and the proposed 30–40-leaf campaign |
|
||||
| [Artwork provenance](../assets/artwork/README.md) | Prompts, sources and licensing for the bundled watercolours |
|
||||
| [Narration provenance](../assets/narration/README.md) | Recording scripts, masters, checksums and licensing |
|
||||
|
||||
## Where to start
|
||||
|
||||
- **Changing code?** Read the [code map](CODE_MAP.md) first, then `README.md`'s source map.
|
||||
- **Validating a change?** Run the commands listed under "Tests and verification" in the code map.
|
||||
- **Adding content?** See "Where to change what" in the code map for campaign, narration and leaf recipes.
|
||||
|
||||
This folder is hand-maintained and has no generator; update the code map whenever structure, invariants or persistence keys change.
|
||||
Reference in New Issue
Block a user