Skip to content

feat(live-preview): add sticky interstitial splash for surprise-me#2948

Merged
abose merged 2 commits into
mainfrom
ai
May 28, 2026
Merged

feat(live-preview): add sticky interstitial splash for surprise-me#2948
abose merged 2 commits into
mainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented May 28, 2026

Expose showInterstitial(heading, details) / hideInterstitial() on the
PHOENIX_LIVE_PREVIEW extension interface. The interstitial reuses the
existing no-preview.html template (via getNoPreviewURL), so visually it
matches the normal "Nothing to preview!" page — only the text differs.

Made the splash sticky: while _interstitialActive, any _loadPreview call
(design-mode toggle's async refresh, focus changes, the user's already-open
previewable file) re-paints the splash instead of letting it get clobbered.
hideInterstitial() clears the state and runs _loadPreview(true) to repaint
with whatever the current file should naturally show.

Adds i18n strings AI_CHAT_SURPRISE_ME_LP_HEADING_1/2/3 for the rotating
heading text used by the AI chat panel.

abose added 2 commits May 28, 2026 14:03
Expose showInterstitial(heading, details) / hideInterstitial() on the
PHOENIX_LIVE_PREVIEW extension interface. The interstitial reuses the
existing no-preview.html template (via getNoPreviewURL), so visually it
matches the normal "Nothing to preview!" page — only the text differs.

Made the splash sticky: while _interstitialActive, any _loadPreview call
(design-mode toggle's async refresh, focus changes, the user's already-open
previewable file) re-paints the splash instead of letting it get clobbered.
hideInterstitial() clears the state and runs _loadPreview(true) to repaint
with whatever the current file should naturally show.

Adds i18n strings AI_CHAT_SURPRISE_ME_LP_HEADING_1/2/3 for the rotating
heading text used by the AI chat panel.
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit 478314e into main May 28, 2026
12 of 21 checks passed
@abose abose deleted the ai branch May 28, 2026 09:03
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