Skip to content

Conversation

@estib-vega
Copy link
Contributor

  • Clear commit title and description fields on cancel actions in NewCommitView and CommitView to prevent stale input data.
  • Update commit title state handling in the editor component.
  • Instrument the cancel button in the commit message editor for better testing.
  • Extend tests to cover clearing cached commit messages when editing is canceled.

Clear commit title and description fields when canceling commit or
edit actions in NewCommitView and CommitView components. This ensures
that stale input data is not retained, improving user experience and
preventing accidental reuse of previous commit messages.
Instrument the cancel button in the commit message editor
Cover the instance in which the user starts editing a commit and then 
cancels the operation.

This should clear the cached message
@vercel
Copy link

vercel bot commented May 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2025 1:20pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Skipped (Inspect) May 19, 2025 1:20pm

@vercel vercel bot temporarily deployed to Preview – gitbutler-web May 19, 2025 13:19 Inactive
@estib-vega estib-vega enabled auto-merge May 19, 2025 13:19
@estib-vega estib-vega merged commit 5f71c9a into master May 19, 2025
19 of 20 checks passed
@estib-vega estib-vega deleted the commit-messages-staleness branch May 19, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants