Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): introduce deploy button - WF-210 #771

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

madeindjs
Copy link
Collaborator

@madeindjs madeindjs commented Mar 7, 2025

Introduce an environment variable WRITER_CLOUD to start the application in cloud mode (to enable the "deploy" button).

It'll enable a button "Deploy" in the navbar

image

The deploy button will trigger an iFrame message "deploy". The container can handle this event to do external logic. The button listen the iFrame message "deployStarted" to display a loader, and "deployFinished" to mark it as done.

Here is a CodePen demo: https://codepen.io/madeindjs/pen/MYWqvvg

@madeindjs madeindjs self-assigned this Mar 7, 2025
@madeindjs madeindjs force-pushed the WF-210 branch 3 times, most recently from 352344b to 9c512cc Compare March 7, 2025 14:13
@madeindjs madeindjs force-pushed the WF-210 branch 3 times, most recently from 9cc0b84 to a6d7e5f Compare March 27, 2025 10:26
Remove the feature flag and use `WRITER_CLOUD` environment variable to
start the application in cloud mode (to enable the "deploy" button).
@madeindjs madeindjs marked this pull request as ready for review March 28, 2025 16:16
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