Skip to content

fix(docs): showcase lightbox View Code button + v1.6.1 flip#17

Merged
DemchaAV merged 1 commit intodevelopfrom
fix/showcase-view-code-button
May 9, 2026
Merged

fix(docs): showcase lightbox View Code button + v1.6.1 flip#17
DemchaAV merged 1 commit intodevelopfrom
fix/showcase-view-code-button

Conversation

@DemchaAV
Copy link
Copy Markdown
Owner

@DemchaAV DemchaAV commented May 9, 2026

Bugs

  1. Lightbox missing "View Code" button. Click a Featured tile → modal opens with screenshot + "Open PDF" only. Reading the source on GitHub from a featured example requires closing the lightbox and scrolling to find the same example in the gallery below.
  2. docs/index.html still references v1.6.0 in softwareVersion (JSON-LD), downloadUrl, install snippets (Maven + Gradle), and the hero eyebrow tag — even though v1.6.1 is the live JitPack version.

Fix

docs/examples.js

  • Threaded code through renderHighlight (data-code on the highlight preview button).
  • Added the same data-code to renderCard (it was already in scope but never wired to the lightbox).
  • Added a .lightbox-code-link anchor in ensureLightbox next to the existing .lightbox-pdf-link.
  • Extended openLightbox(screenshot, pdf, code, title) to set the new link's href. If code is '#' or empty, the link hides itself (e.g. examples without source).
  • Click handler now reads dataset.code alongside dataset.screenshot/pdf/title and passes it to openLightbox.

docs/index.html

  • softwareVersion JSON-LD: 1.6.01.6.1
  • downloadUrl: …/v1.6.0…/v1.6.1
  • Maven snippet: <version>v1.6.0</version>v1.6.1
  • Gradle snippet: :GraphCompose:v1.6.0:v1.6.1
  • Hero eyebrow: Java · v1.6 · MITJava · v1.6.1 · MIT

Verification

Docs-only change. CI guards (Architecture and Documentation Guards) pass since none of the touched files are scanned by Java tests. Visual check on Launch preview panel confirms eyebrow + lightbox layout look right.

…v1.6.1

Two surfaces flagged on the deployed site:

1. Lightbox missing "View Code" button
   The regular gallery card already renders both "View PDF" + "View
   Code" links (renderCard, line 374-375), but the lightbox modal
   that opens when you click a Featured tile only had "Open PDF".
   Reading the source on GitHub from a featured example required
   closing the lightbox and finding the same example in the gallery
   below. Fixed by:
     - threading `code` through `renderHighlight` so the highlight
       button carries `data-code` like the regular card already did;
     - adding `data-code` to renderCard's preview button too (it was
       already in scope but never wired through to the lightbox);
     - adding a `.lightbox-code-link` anchor in `ensureLightbox`
       alongside the existing `.lightbox-pdf-link`;
     - extending `openLightbox(screenshot, pdf, code, title)` to set
       the new link's href, hiding the link when no code URL is
       available (e.g. "#" placeholder for examples without source).

2. v1.6.0 → v1.6.1 flip
   `softwareVersion` JSON-LD, `downloadUrl`, install snippets (Maven
   + Gradle), and the eyebrow tag in the hero all still read
   `v1.6.0`. Bumped to `v1.6.1` to match the release that's live on
   JitPack.
@DemchaAV DemchaAV merged commit d83d527 into develop May 9, 2026
7 checks passed
@DemchaAV DemchaAV deleted the fix/showcase-view-code-button branch May 9, 2026 10:13
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