Dashboard: refresh media (images/video/audio) from the connected GitHub repo - #15
Merged
Conversation
The GitHub-assets pull was images-only and only ran on a full page save. Now: - listRepoAssets also matches video (mp4/webm/mov/m4v) and audio (mp3/wav/ogg/m4a/aac/flac), tagging each asset with a kind - new POST /api/account/refresh-media re-pulls media into config.assets WITHOUT touching the rest of the config (own-account, re-provisions) - dashboard gets a '↻ Refresh media' button + kind-aware preview chips and a by-kind count toast - the tenant page renders assets by kind: video → <video>, audio → <audio>, image → <img> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
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
Adds a ↻ Refresh media button to the dashboard's GitHub section and extends the repo pull beyond images to video and audio.
listRepoAssetsnow matches images + video (mp4/webm/mov/m4v) + audio (mp3/wav/ogg/m4a/aac/flac), tagging each with akind.POST /api/account/refresh-mediare-pulls media intoconfig.assetswithout touching any other config field (loads current config, swaps assets, re-provisions). Returns per-kind counts.video → <video>,audio → <audio>,image → <img>.Verified (local, against public moshcoder/moshcoding)
total 4, counts {video:2, image:2}, kinds tagged correctly<video class="t-asset t-asset-av">for mp4s and<img>for pngs🤖 Generated with Claude Code