Skip to content

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

Merged
aslilac merged 2 commits into
mainfrom
template-iteration
Aug 17, 2023
Merged

fix: don't navigate away from editor after publishing#9153
aslilac merged 2 commits into
mainfrom
template-iteration

Conversation

@aslilac
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@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