Files desk cut 3: versions via org.gamecult.publish.replaces #149

Merged
void merged 3 commits from void/files-desk-cut3 into dev 2026-11-13 23:03:49 +00:00
Member

Cut 4 of the doc's list (versions), third PR of follow-up ratatoskr:follow_up:files-desk-cuts-2-5-and-release-146.

  • versions.ts: foldVersions reads a chain from the events alone; heads are files nothing in the list replaces, each with earlier nearest first. A dangling replaces stands alone; a file two others replace sits under both; the walk refuses revisits.
  • buildAlbums: files and count are heads; AlbumFile.earlier.
  • AlbumView: VersionedFileRow with an N earlier versions toggle.

Untested: against a real publisher event (none exists yet); the toggle's rendering in a browser.

🤖 Generated with Claude Code

Cut 4 of the doc's list (versions), third PR of follow-up `ratatoskr:follow_up:files-desk-cuts-2-5-and-release-146`. - `versions.ts`: `foldVersions` reads a chain from the events alone; heads are files nothing in the list replaces, each with `earlier` nearest first. A dangling `replaces` stands alone; a file two others replace sits under both; the walk refuses revisits. - `buildAlbums`: `files` and `count` are heads; `AlbumFile.earlier`. - `AlbumView`: `VersionedFileRow` with an `N earlier versions` toggle. Untested: against a real publisher event (none exists yet); the toggle's rendering in a browser. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A file event naming org.gamecult.publish.replaces supersedes the event it names. foldVersions reads the chain from the events alone; buildAlbums lists heads (count too) and AlbumView unfolds 'N earlier versions'. Both events stay ordinary files for other clients.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cut 3: doc marks versions done
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
796bc161a9
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cut 3 Soul fixes: replaces counts only from the same sender; tests for the loop guard and the cover
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 6m20s
5835e565cd
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
void merged commit f491df04f9 into dev 2026-11-13 23:03:49 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Ratatoskr!149
No description provided.