Skip to content

Add ?devmode=true banner showing git SHA and commit message#59

Open
xdamman-bot wants to merge 2 commits intocitizenspring:masterfrom
xdamman-bot:fix/devmode-banner
Open

Add ?devmode=true banner showing git SHA and commit message#59
xdamman-bot wants to merge 2 commits intocitizenspring:masterfrom
xdamman-bot:fix/devmode-banner

Conversation

@xdamman-bot
Copy link
Copy Markdown
Contributor

Displays a fixed banner at the top of every page when ?devmode=true is in the URL.

Shows: devmode: <sha> — <commit message>

Uses Vercel-provided env vars (NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA, NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGE) so it works automatically on preview deployments.

When ?passkey=true and passkey is available:
- Initial: email optional + subtext 'to receive updates about this letter'
  + primary button 'Sign with Passkey'
  + link 'sign with your email instead'
- After clicking link: email required + checkbox opt-in
  + same button + link 'sign with passkey instead'

When passkey NOT available: falls back to standard interface
(email required + checkbox for updates)

New i18n keys: sign.email.optional.subtext, sign.email.instead,
sign.passkey.instead
Banner appears at the top of every page when ?devmode=true is in the URL.
Shows first 8 chars of SHA + commit message.
Uses Vercel env vars (NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA/MESSAGE)
or falls back to GIT_SHA/GIT_MSG.
@coolify-github-citizenspring
Copy link
Copy Markdown

coolify-github-citizenspring Bot commented Apr 6, 2026

The preview deployment for openletter is ready. 🟢

Open Preview | Open Build Logs | Open Application Logs

Last updated at: 2026-04-06 13:47:25 CET

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