Skip to content

fix: don't navigate away from editor after publishing #9153

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

Merged
merged 2 commits into from
Aug 17, 2023
Merged

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Aug 17, 2023

Fixes #7153

  • Removes the onPublish action that was only used to navigate away from the editor after publishing
  • Instead, the template name is now clickable, and will navigate you to the template summary (which is where you were sent after publishing previously)
  • Renamed a state with a name that was slightly misleading
  • Reorganized the state chart to make it a little friendlier

Comment on lines -220 to -226
title={
dirty
? "You have edited files! Run another build before updating."
: templateVersion.job.status !== "succeeded"
? "Something"
: ""
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this because browsers disable title whenever the element they apply to is disabled. The only text that ever had a chance of being seen by a user was the "Something" placeholder text. 😅

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

🚢 it

@aslilac aslilac merged commit e39402f into main Aug 17, 2023
@aslilac aslilac deleted the template-iteration branch August 17, 2023 16:49
@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let template author change values while playing with the Editor
2 participants