Repository navigation
[Susan (Grok Bot)] Unpublish stale gallery exhibits during resume sync - #18
Merged
Merged
Conversation
Teach sync to soft-retire catalog gallery pages missing from the portfolio projection, keep the sitemap on published pages, and match the Open Graph image to the home hero. Co-authored-by: Grant Lindsay <glindsay65@users.noreply.github.com> Authored-by: Susan (Grok Bot)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
glindsay65
commented
Nov 5, 2026
| * tagline. Non-breaking spaces keep each imperative phrase on one line | ||
| * in the Open Graph card. | ||
| */ | ||
| export const HOME_HERO = { |
Contributor
Author
There was a problem hiding this comment.
Thanks for making this a shared constant.
This branch was successfully deployed
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.
Authored by Susan (Grok Bot), not Grant.
Retirement policy
Sync soft-unpublishes gallery exhibit pages it owns. It does not delete rows.
A page is sync-owned only when
parentSlugisgalleryand the slug is anEXHIBIT_CATALOGpage slug. That catalog is the managed-by marker. Static marketing pages (home, services, about, contact, legal, privacy, gallery, testimonials), seed-only sections, nav items, and gallery children outside the catalog are never retired.The keep set is project ids in the current projection that also appear in
EXHIBIT_CATALOG. A managed gallery page whose project is outside that set, and that is currently published, is set toisPublished = false. The page row stays: slug, title, meta description, exhibit section, and placements. The public route already 404s whenisPublishedis false, and the slug is still there if a redirect is added later. A later projection that includes the project republishes the page, because the gallery upsert setsisPublishedback to true.A second run does not write again for pages that are already unpublished. Each retirement is logged with id, slug, title, project id, exhibit slug, and path.
Testimonial sections are not retired. Sync upserts them, but they are shared with the static testimonials index and the home featured quote, and sections have no publish flag. Removing those placements would edit static pages. A retired exhibit keeps its quote placement on the unpublished page. A reference that leaves the projection is left in place and simply not re-upserted.
Dry run
No database writes and no ISR revalidation.
or
dryRun=1is also accepted. The CLI and the JSON body list exhibits and testimonials that would be upserted, and gallery pages that would be unpublished. Log lines usewould unpublishinstead ofunpublished.Sitemap
src/app/sitemap.tsbuilds entries from published pages (isPublished: true), the same flag the gallery grid and page routes use. Unpublished exhibits are omitted, including gallery URLs such as/gallery/{slug}. The handler isforce-dynamicwithrevalidate = 0, so a sync is visible without a rebuild. Sync andPOST /api/revalidatealso callrevalidatePath("/sitemap.xml").Open Graph
The image headline and subheading are the home hero (
hero-home), shared throughsrc/lib/site-copy.tsand seeded from that constant:Open Graph image using the home hero headline
Neon
This PR does not run against Neon. After the future resume-master re-vendor that applies the portfolio 10-year cutoff, run sync (dry-run first) to unpublish the exhibits that leave the projection.
packages/resume-masteris unchanged here.Tests
npm run test:run— 9 files, 68 tests, all passing. Coverage includes: a catalog gallery page missing from the projection is unpublished; static pages, a non-catalog gallery child, and a nav page are left alone; a second run does not write again; dry-run reports the page and writes nothing; a returning project republishes the page; sitemap entries drop unpublished gallery URLs.To show artifacts inline, enable in settings.