Skip to content

feat(themes): update already-shared Showcase themes in place - #1090

Merged
badcuban merged 1 commit into
mainfrom
chore/update-theme-accent
Nov 24, 2026
Merged

badcuban merged 1 commit into
mainfrom
chore/update-theme-accent

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Sharing an edited theme that was already accepted into the Showcase previously allocated a new <slug>-2 folder, creating a duplicate entry instead of updating the existing theme.

This adds an in-place update path across contracts, server, web UI, and the Showcase check script:

  • Adds updateSlug on Showcase submissions, slug and isUpdate on submission records, and a themeShowcaseUpdate server capability so older servers stay on the existing new-share flow.
  • Updates ThemeShowcase.submit to refresh the Showcase list, verify ownership and changes against the live file digest, and commit only theme.threadlines-theme and thumbnail.png so meta.json (sharedBy, featured) and NOTICE.md stay untouched on main.
  • Records update_base_sha and published_file_sha in migration 125 so in-review updates (including rename-only and prompt-only changes) stay in review until their own merge and index rebuild land, and taking back an update closes only the update PR.
  • Adds a Showcase target picker to ThemeShareDialog when the signed-in account owns Showcase themes (defaulting to the matching folder across computers and renames, seeding credits from the live listing, and letting the user switch to sharing as a new theme), plus Update in Showcase… and Take back update… menu labels and digest-keyed Showcase thumbnail caching.
  • Fixes scripts/theme-showcase.ts so an outside author can update their own already-featured theme without tripping the maintainer-only featured check.

Sharing an edited theme that was already accepted into the Showcase previously allocated a new `<slug>-2` folder, creating a duplicate entry instead of updating the existing theme.

This adds an in-place update path across contracts, server, web UI, and the Showcase check script:
- Adds `updateSlug` on Showcase submissions, `slug` and `isUpdate` on submission records, and a `themeShowcaseUpdate` server capability so older servers stay on the existing new-share flow.
- Updates `ThemeShowcase.submit` to refresh the Showcase list, verify ownership and changes against the live file digest, and commit only `theme.threadlines-theme` and `thumbnail.png` so `meta.json` (`sharedBy`, `featured`) and `NOTICE.md` stay untouched on `main`.
- Records `update_base_sha` and `published_file_sha` in migration 125 so in-review updates (including rename-only and prompt-only changes) stay in review until their own merge and index rebuild land, and taking back an update closes only the update PR.
- Adds a Showcase target picker to `ThemeShareDialog` when the signed-in account owns Showcase themes (defaulting to the matching folder across computers and renames, seeding credits from the live listing, and letting the user switch to sharing as a new theme), plus `Update in Showcase…` and `Take back update…` menu labels and digest-keyed Showcase thumbnail caching.
- Fixes `scripts/theme-showcase.ts` so an outside author can update their own already-featured theme without tripping the maintainer-only `featured` check.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 24, 2026 8:34am UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 24, 2026
@badcuban badcuban closed this Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a manual request Nov 24, 2026
@badcuban
badcuban deleted the chore/update-theme-accent branch November 24, 2026 08:41
@badcuban
badcuban restored the chore/update-theme-accent branch November 24, 2026 08:41
@badcuban badcuban reopened this Nov 24, 2026
@badcuban
badcuban added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 0418616 Nov 24, 2026
45 checks passed
@badcuban
badcuban deleted the chore/update-theme-accent branch November 24, 2026 08:47

This branch was previously deployed

1 inactive deployment
Preview — d3843eef Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant