Skip to content

HOLD: Full-size certificate previews with try-before-save background and signature - #2893

Open
maebeale wants to merge 5 commits into
mainfrom
maebeale/awbw-certificates-preview
Open

maebeale wants to merge 5 commits into
mainfrom
maebeale/awbw-certificates-preview

Conversation

@maebeale

@maebeale maebeale commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 admin-only preview page with try-before-save pickers, reusing the certificate partials and role connect logic

Admins can click a certificate thumbnail on Resource roles to see the whole certificate. There they can try a different background or signature and save it only when it looks right.

What is the goal of this PR and why is this important?

  • Thumbnails are too small to judge frame art or signature placement.
  • Swapping artwork used to go live right away, with no way to check it first.

How did you approach the change?

  • New admin-only page per frame slot: /admin/resource_roles/:slot/preview.
  • Shows the saved background and the signature that certificate prints with (training / CE).
  • Background and Signature pickers reload the preview with frame_id / signature_id params. Nothing is written.
  • Unsaved picks show an amber bar with Discard / Save.
  • Save (PATCH same path) connects both roles in one transaction. A blank pick disconnects.
  • Flags a missing signature, or a pick with no usable image.
  • Download PDF prints landscape, matching the registrant certificate page.

Also in here

  • Bumps puma 7.2.1 → 7.2.2 and msgpack 1.8.3 → 1.8.7 to clear new bundler-audit advisories (CI was failing on every branch).

Features seed (optional)

image image image

🤖 Generated with Claude Code

@maebeale maebeale changed the title Full-size certificate previews from Resource roles Full-size certificate previews with try-before-save background and signature Oct 28, 2026
@maebeale maebeale changed the title Full-size certificate previews with try-before-save background and signature HOLD: Full-size certificate previews with try-before-save background and signature Oct 28, 2026
@maebeale
maebeale marked this pull request as ready for review October 28, 2026 10:52
maebeale and others added 3 commits November 14, 2026 22:15
The thumbnails are too small to check a connected frame or signature;
clicking one now shows the whole certificate with sample content, its
signature, and a print/PDF button.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…fore saving

Admins want to see a frame or signature on the certificate before it goes
live, so the preview takes the picks as query params and only connects
them on Save.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/awbw-certificates-preview branch from 7659f2a to 3909064 Compare November 15, 2026 03:15
maebeale and others added 2 commits November 14, 2026 22:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bundler-audit started failing CI on every branch once these advisories
landed; both are patch-level bumps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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