Repository navigation
Milestone 5: runtime wiring and Sine - #6
Merged
Merged
Conversation
Watch Zen's media toolbar and each playing tab's metadata, and keep every card's artwork in step with the track it shows. Installing the mod tears down any previous instance and registers teardown with Sine's unload listener. Removes the placeholder smoke test.
theme.json lets Sine install the mod from this repository and sets supportsUnload so disabling it does not ask for a restart. chrome.css sizes the artwork thumbnail. A test pins the manifest.
Record the Sine loading rules read from Sine's source in CLAUDE.md, and add the manual Zen checklist for artwork to manual-testing.
Add the runtime and Sine manifest entries to the changelog and move the roadmap to milestone 6.
A controller that throws an unexpected error now gets logged and skipped, so one broken tab no longer stops artwork for the other tabs.
A throwing destroy() on a stale instance is logged instead of aborting install, so the new instance still starts.
Extract controllerWatcher and observeTrackChanges from startMediaViz. No behavior change. Regenerate the bundle.
The smoke test was removed, so the single-file example now uses test/artwork.test.js. Drop the sentence that promised installability in Milestone 5.
Owner
Author
|
Manual testing (docs/manual-testing.md, Setup and Artwork sections) passed on Zen 1.24.3b, macOS. Installed through Sine from the milestone-5-runtime branch. Sine version not recorded. |
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.
What does this change?
Milestone 5: runtime wiring and Sine integration.
src/runtime.js:startMediaVizwatches Zen's media toolbar (only added cards and title/artist label changes) and each playing tab's media controllermetadatachangeevents, then shows or removes artwork on each card sized for 36 CSS px × devicePixelRatio. Errors while refreshing are logged and the mod keeps working.destroy()removes all artwork, the observer and listeners.src/install.jsandsrc/index.js:install(window)tears down any previous instance, starts the runtime, exposeswindow.ZenMediaViz.destroy(), registers teardown with Sine'saddUnloadListener, and logs if the toolbar is missing.src/log.js:logErrorwith the[zen-media-viz]prefix.theme.json(Sine manifest,supportsUnload: true) andchrome.css(thumbnail sizing).test/smoke.test.jsremoved; it tested the placeholderMOD_NAMEexport.zen-media-viz.uc.jsregenerated with the source changes.CLAUDE.md), an Artwork checklist indocs/manual-testing.md, the changelog entry and the roadmap (M5 Done, M6 Next).How was it tested?
test/runtime.test.js,test/install.test.js,test/theme.test.js).npm testpasses (117 tests), along withnpm run lint,npm run format:checkandnpm run check:bundle.docs/manual-testing.mdin Zen with Sine installed from this branch.Checklist
npm test)npm run lintandnpm run format:checkpassnpm run build) if anything insrc/changeddocs/manual-testing.mdchecked in a real Zen + Sine install (pending: the maintainer runs the Artwork section in Zen)CHANGELOG.mdupdated under Unreleased