Commit 2d61f43
* feat(scan): parse porcelain into a dirty-path set (#74)
* feat(manifest): FileNode.dirty + RepoStats.dirtyFileCount on the wire (#74)
Adds the pydantic + TypedDict + TS fields, bumps the manifest cache schema
to v16, and updates the hand-authored fixtures the new required fields
touch (test_models.py, EMPTY_REPO_STATS, and frontend FileNode literals)
so the suite stays green even though the scanner doesn't set `dirty` yet
(Task A3).
* feat(scan): dirty files carry the flag + working-tree mtime (#74)
Threads the dirty-paths set (Task A1's _collect_dirty_paths) from
scan_tree through _build_tree into _file_node, which stamps
FileNode.dirty and overrides `modified` to the working-tree mtime for
dirty files (their git-history date is stale by definition).
* feat(stats): dirtyFileCount rollup (#74)
compute_repo_stats now counts file nodes with dirty === true (media
included) into RepoStats.dirtyFileCount, alongside the existing
one-pass superlative accumulation.
* fix(scan): single porcelain call + import/doc cleanup (#74)
Collapse _collect_repo_info to a single `git status --porcelain -z`
call, returning the dirty-path set alongside RepoInfo so scan_tree no
longer walks it twice; the signature-scan path just discards the set.
Also moves test_scan_dirty.py's mid-file imports to the top (E402) and
documents that a dirty file's `modified` is always the working-tree
filesystem date, regardless of git history.
* feat(almanac): resurface the uncommitted-files stat (#74)
* feat(layout): computeLayoutSignature (structure + size) (#74)
* fix(layout): deterministic child order in layout signature + structure test (#74)
Sort children by path before walking in computeLayoutSignature, mirroring
compute_tree_signature's defensive sort in scan.py, so the hash is
deterministic regardless of manifest child order. Also add a test proving
the signature reflects the path SET, not just per-file size/date.
* fix(city): re-pack on content edits (layout-input reuse gate) (#74)
The layout-reuse gate keyed on tree_signature (paths + nesting only), so a
live content edit that changes a file's size (no rename) was wrongly treated
as a no-op and reused the frozen layout — streets/positions never re-solved.
Swap the gate to compare computeLayoutSignature (structure + per-file size)
of the new manifest against the committed one; a size change now bumps
structureRevision (full re-pack), a dates-only change still reuses.
applyManifestScenic.test.ts's manifest fixture lacked a `path` on its tree
root; computeLayoutSignature walks the tree (unlike the old string-field
compare) and needs it, so add it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(utils): findNodeByPath manifest lookup (#74)
* fix(sidebar): file/road panes re-derive from live MANIFEST (#74)
* fix: address final-review findings (porcelain rename, dirty-set signature, layout-sig media dims, stale comments, perf) (#74)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(preview): re-fetch file content on live edit via mtime cache-buster (#74)
The right-sidebar file preview fetched content in an effect keyed only on
fullPath, so a live edit to the still-selected file left stale content until a
re-select. Thread the file's mtime through fileUrl/fetchFileText/fetchFileBytes
as a cache-busting version param and add it to the preview effect deps, so text,
font, and media previews (and the README pane) refresh on save.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor(scan): name the created/modified locals instead of inline ternaries (#74)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor(scan): split git collection into fresh state vs cached history (#74)
* refactor(scan): one-pass tree signals + backend layout_signature (#74)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor(city): reuse gate reads backend layout_signature; drop frontend one (#74)
* test(city): make the reuse-gate test discriminate field vs tree gating (#74)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor(scan): dirty is a per-file signature contribution, not repo-level (#74)
* refactor(scan): shared tracked-entry iteration for both walks (#74)
* fix(scan): dirty-parity test + layout-sig type marker + stale-doc cleanup (#74)
Co-Authored-By: Claude Sonnet 5 (1M context) <noreply@anthropic.com>
* docs(scan): trim the over-long file-date resolution comment (#74)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor: rename signature→content_signature, tree_signature→structure_signature (#74)
Clarify the three-signature ladder on the manifest wire format: the bare
`signature` field (mtime/size/dirty/repo fingerprint) is easily confused
with `tree_signature`/`layout_signature`. Rename to `content_signature`
and `structure_signature` respectively, document the ladder at the
Manifest model/type, and bump the manifest cache schema version since
the field rename changes the cached shape.
* docs(scan): name content_signature in the layout-sig docstring (#74)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cfcc838 commit 2d61f43
47 files changed
Lines changed: 1162 additions & 383 deletions
File tree
- api
- models
- routers
- services
- tests
- services
- app
- src
- api
- city
- components/buildings
- layout
- state
- constants
- hooks
- layout/RightSidebar
- state/stores/settings
- types
- utils
- views
- FilePreviewPane
- InfoPane
- tests
- _helpers
- api
- city
- components
- buildings
- layout
- state
- hooks
- layout
- utils
- views
- InfoPane
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| |||
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
| 216 | + | |
208 | 217 | | |
209 | 218 | | |
210 | 219 | | |
| |||
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
220 | 237 | | |
221 | 238 | | |
222 | 239 | | |
223 | | - | |
224 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
225 | 243 | | |
226 | 244 | | |
227 | 245 | | |
| |||
233 | 251 | | |
234 | 252 | | |
235 | 253 | | |
236 | | - | |
| 254 | + | |
237 | 255 | | |
238 | 256 | | |
239 | 257 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
299 | | - | |
300 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
301 | 307 | | |
302 | 308 | | |
303 | 309 | | |
304 | 310 | | |
305 | | - | |
| 311 | + | |
306 | 312 | | |
307 | | - | |
| 313 | + | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
311 | | - | |
| 317 | + | |
312 | 318 | | |
313 | 319 | | |
314 | 320 | | |
| |||
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
332 | | - | |
| 338 | + | |
333 | 339 | | |
334 | 340 | | |
335 | | - | |
| 341 | + | |
336 | 342 | | |
337 | 343 | | |
338 | | - | |
| 344 | + | |
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| 264 | + | |
259 | 265 | | |
260 | 266 | | |
261 | 267 | | |
| |||
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
277 | | - | |
278 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
| |||
294 | 301 | | |
295 | 302 | | |
296 | 303 | | |
297 | | - | |
| 304 | + | |
298 | 305 | | |
299 | 306 | | |
300 | 307 | | |
| |||
0 commit comments