Skip to content

chore(PreviewTools): fix editStory button in PreviewTools#1522

Merged
Marcosld merged 6 commits intomasterfrom
iceballos-fix-edit-link-previewTools
Apr 16, 2026
Merged

chore(PreviewTools): fix editStory button in PreviewTools#1522
Marcosld merged 6 commits intomasterfrom
iceballos-fix-edit-link-previewTools

Conversation

@yceballost
Copy link
Copy Markdown
Contributor

@yceballost yceballost commented Mar 20, 2026

Edit Playroom button in PreviewTools doesn't open the url when the Playroom is embed in an iframe

display: 'none', // Hide in Chrome/Safari
},

background: skinVars.colors.background,
Copy link
Copy Markdown
Contributor Author

@yceballost yceballost Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a little fix when the previewtools has a floating state:
image

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 20, 2026

Size stats

master this branch diff
Total JS 16.1 MB 16.1 MB -7 B
JS without icons 2.01 MB 2.01 MB -7 B
Lib overhead 92.5 kB 92.5 kB 0 B
Lib overhead (gzip) 19.9 kB 19.9 kB 0 B

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 20, 2026

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-ifpipu7hv-flows-projects-65bb050e.vercel.app

Built with commit 9b33f70.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 20, 2026

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@yceballost yceballost marked this pull request as ready for review March 23, 2026 16:30
@yceballost yceballost requested a review from Marcosld March 23, 2026 16:30
const editStory = () => {
if (window.location.href.includes('/preview')) {
window.open(window.location.href.replace('/preview', ''));
try {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain the new cases here, I don't think I understand

Copy link
Copy Markdown
Contributor Author

@yceballost yceballost Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An example, you need to open in preview mode to test it. Click in "code" icon, in the top right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tIs7wr8ZgtDAXQ7C0Ow7AMnq3LO6xmNh6QtGYLoiWYgrMIuLoTLk6TpDAIm3AhKDxEsqQMAhXQTEsEx7DChgumguSELcPq5HULH6GQoJ0GAPwVPuKAtP15kYnQbw4CJtibKkKBlGUZBzWA6xLBI6zyhMEBlIKvxKMkdqfLQRCkEoKDKnQNAgNhZhmAApJdhDsAAfEQIAAL5AA

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a change from the latest versions of Playroom because now render "Preview mode" in an iframe

@Marcosld Marcosld added this pull request to the merge queue Mar 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Screenshot tests report

✔️ All passing

@atabel atabel added this pull request to the merge queue Apr 15, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 15, 2026
@Marcosld Marcosld added this pull request to the merge queue Apr 16, 2026
Merged via the queue into master with commit f2c0a1c Apr 16, 2026
11 checks passed
@Marcosld Marcosld deleted the iceballos-fix-edit-link-previewTools branch April 16, 2026 07:49
@tuentisre
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.59.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants