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
New branching workflow #3953
New branching workflow #3953
Conversation
ENG-921 Prompt user to create branch when making a change
Similar to our Hackathon POC, if users have opted into "editorial workflow", upon clicking "save", if the user is on the default branch, we should intercept the action and prompt them to create a new branch. Wireframes (WIP): Tina Git Workflow Wireframing - Saving To Locked Branch.png
For reference, here's the POC: |
🦋 Changeset detectedLatest commit: d6149d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/@tinacms/toolkit/src/packages/form-builder/FormBuilder.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels really good, just had one issue with the branch not getting the tina
prefix
} | ||
}, [currentBranch]) | ||
|
||
const handleCreateBranch = React.useCallback((value) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeffsee55 Good catch, should be an easy fix.
Demo: https://www.loom.com/share/9f4f36a264e24be8a9d1c7b2008a1255
Fixes ENG-921
TODO: