Skip to content

Dashboard: refresh media (images/video/audio) from the connected GitHub repo - #15

Merged
ralyodio merged 1 commit into
masterfrom
feat/refresh-media
Jul 10, 2026
Merged

Dashboard: refresh media (images/video/audio) from the connected GitHub repo#15
ralyodio merged 1 commit into
masterfrom
feat/refresh-media

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

What

Adds a ↻ Refresh media button to the dashboard's GitHub section and extends the repo pull beyond images to video and audio.

  • listRepoAssets now matches images + video (mp4/webm/mov/m4v) + audio (mp3/wav/ogg/m4a/aac/flac), tagging each with a kind.
  • New POST /api/account/refresh-media re-pulls media into config.assets without touching any other config field (loads current config, swaps assets, re-provisions). Returns per-kind counts.
  • Dashboard: ↻ Refresh media button (re-pull without saving the whole form), kind-aware preview (🎬/🎧 chips), and a "Refreshed N — X image, Y video, Z audio" toast.
  • Tenant page renders assets by kind: video → <video>, audio → <audio>, image → <img>.

Verified (local, against public moshcoder/moshcoding)

  • refresh → total 4, counts {video:2, image:2}, kinds tagged correctly
  • tenant page emits <video class="t-asset t-asset-av"> for mp4s and <img> for pngs
  • no repo connected → 400 with a helpful message; unauthenticated → 401

🤖 Generated with Claude Code

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>
@ralyodio
ralyodio merged commit cea7020 into master Jul 10, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant