feat(PreviewBanner): brand-controlled approval banner for Pliosoft preview deploys - #4
Merged
Merged
Conversation
clord
commented
Apr 20, 2026
Member
- udpate publish script
- release: 0.1.6
- feat(PreviewBanner): brand-controlled approval banner for Pliosoft preview deploys
…eview deploys New component for Pliosoft's hosted-platform preview-deploy flow. Renders only when the build was invoked with PLIOSOFT_PREVIEW=1 (the platform's build pipeline sets these env vars per-PR); production builds emit nothing. UX: - Always visible: "Preview" eyebrow, PR title, Approve & Reject buttons. - Tucked behind a <details> toggle: PR number with link to GitHub, branch, sha. (PR title is the most important context; metadata is one click away.) - Self-contained Pliosoft branding (warm paper bg, orange accent rule) that overrides the customer theme — the banner is platform UI, not customer UI. Build-time env vars consumed: PLIOSOFT_PREVIEW "1" enables rendering PLIOSOFT_PREVIEW_PR PR number PLIOSOFT_PREVIEW_TITLE human-readable PR title PLIOSOFT_PREVIEW_BRANCH branch under preview PLIOSOFT_PREVIEW_SHA commit sha (truncated to 7 for display) PLIOSOFT_PREVIEW_PR_URL full PR URL on github.com PLIOSOFT_PREVIEW_JWT single-use JWT signed by orchestrator PLIOSOFT_PREVIEW_API orchestrator base (defaults sites.pliosoft.co) Buttons POST the JWT to <api>/_preview/approve or /reject. The orchestrator verifies, marks the nonce used, and merges or closes the PR via the GitHub App. If a customer ejects from the platform, env vars are never set and the component is a no-op — safe to include unconditionally in any layout. Bumps to 0.2.0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This branch had an error being 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.