Skip to content

fix(web): drop duplicate v1 CV showcase cards, keep v2 only#138

Merged
DemchaAV merged 1 commit into
mainfrom
fix/web-cv-duplicate-cards
Jun 7, 2026
Merged

fix(web): drop duplicate v1 CV showcase cards, keep v2 only#138
DemchaAV merged 1 commit into
mainfrom
fix/web-cv-duplicate-cards

Conversation

@DemchaAV

@DemchaAV DemchaAV commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Problem

The CV / Resume showcase gallery listed every preset twice: the curated
v2 card (e.g. cv-blue-banner-v2) plus a stale bare placeholder
(cv-blue-banner) with a generic "Generated showcase for…" description.
The bare cards' PDF links also 404'd — the bare cv-*.pdf were never
git-tracked, so they were never deployed to Pages.

Root cause

ShowcaseSync walks everything under examples/target/generated-pdfs/**
and never prunes. Stale CvTemplateGalleryFileExample output (bare
cv-<id>.pdf, not wired into GenerateAllExamples) lingered in target/
and leaked into the committed manifest + screenshots. Only the CV group
was affected — uniq -d over the manifest confirms no other duplicates.

Change

  • web/examples.json: remove the 16 bare CV entries, keep the 16 -v2
    (site cards 70 → 54). Re-validated as JSON; all other bytes untouched.
  • web/showcase/screenshots/templates/cv/: remove the 16 stale bare PNGs.
  • web/sitemap.xml: repoint the CV hero URL to cv-modern-professional-v2.pdf.

Invoice (canonical) and Proposal (canonical) V1 cards are intentionally
kept — those are distinct templates, not duplicates.

Deploy

GitHub Pages serves the committed web/ verbatim (deploy-web.yml, no build
step), so merging to main updates the live site.

The CV / Resume gallery showed every preset twice: the curated v2 card
(e.g. cv-blue-banner-v2) plus a stale bare placeholder (cv-blue-banner)
with a generic "Generated showcase for…" description and a 404 PDF link
(the bare cv-*.pdf were never tracked/deployed).

Root cause: stale CvTemplateGalleryFileExample output (bare cv-<id>.pdf,
not wired into GenerateAllExamples) lingered in target/generated-pdfs and
leaked into the committed manifest + screenshots via the non-pruning
ShowcaseSync. Only the CV group was affected.

- examples.json: remove the 16 bare CV entries, keep the 16 -v2 ones
  (site cards 70 -> 54)
- showcase/screenshots/templates/cv: remove the 16 stale bare previews
- sitemap.xml: repoint the CV hero URL to cv-modern-professional-v2.pdf
  (the bare URL 404'd)
@DemchaAV DemchaAV merged commit a46d546 into main Jun 7, 2026
11 checks passed
@DemchaAV DemchaAV deleted the fix/web-cv-duplicate-cards branch June 7, 2026 21:04
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