Repository navigation
fix(build): a single file of a kind is taken whatever it is called, and a file that is not used is said (#94) - #95
Merged
Conversation
…nd a file that is not used is said (#94) The build page took a picked file only under the exact name the source writes, and said nothing otherwise: a video called what a camera or a chat called it stayed "not chosen yet". The play page already took a single file of the right kind. Both now match by one rule, in build-source: by name, then one path of a kind left without its file with one chosen file of that kind left without a path. The row names the file taken under another name, a file picked again for that path replaces the one before, and a picked file no path takes is said with why.
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…tched by (#94) The rule moved behind both as matchNamed: by name, then a single one of a kind whatever it is called. An address was still matched by the older, narrower one: only where one path and one address were left in all.
This was referenced Nov 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #94.
On the build page, picking a video did nothing unless the file was called exactly what the source calls it. Now a single file of the right kind is taken whatever it is called, and a file that is not used is said, with why.
What changes
build-source.ts'smatchNamed, whichmatchFilesis for files and the play page'slinksForis for addresses: by name first; then, where one path of a kind (.mp4) is left without its file and one chosen file of that kind is left without a path, that is its file. With more of a kind on either side, names decide as before. The play page's own copy of the rule is gone; it uses this one.Testing
By hand, as this repository has no page tests: the built site served locally, a source that names
walkthrough.mp4, files picked through the page's own field.IMG_0042.mp4second take.mp4notes.pdfwalkthrough.mp4built, no restart; an old card's file under another name still builds).IMG_0042.mp4forwalkthrough.mp4) plays at once; under another kind (.mp3) it is not taken, and the file is asked for.pnpm buildandpnpm typecheckpass. Screenshots of the Files step looked at.Not verified
Summary by cubic
Fixes the build page so a single file of the right kind is taken whatever it's called, and files that end up unused are explained.
The build page only matched picked files to source paths when names were identical, so a video named by a camera or chat stayed "not chosen yet" and no reason was given. One rule now lives in
build-source.ts'smatchFiles, used by both the build and play pages: match by name first, then a single file of a kind fits a single path of that kind.Written for commit 5322749. Summary will update on new commits.