feat: undo discard and abandon from toast actions - #294
Merged
Conversation
Contributor
|
🚀 Web preview: https://preview-294.treq-9zy.pages.dev |
Restore discarded working-copy snapshots and abandoned commits from the success toast. Undo uses Jujutsu operations, not Git reflog. Docs now describe Treq undo instead of git checkout/reflog. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Clear the hide-after-animation timeout when Undo runs so a restored commit is not immediately filtered out of the Commits list. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Rewrite the reflog overview in house voice as a learn concepts page, wire it into the Git index, and link it from version control. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Explain that branch deletion drops the ref while commits remain, walk through HEAD reflog recovery, and document when local recovery cannot work. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Fix the broken discarding-changes link, add in-body links so the recovery how-to is no longer thin, and point sibling reflog mentions at the new concept page. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Keep toast Undo as the Treq path. Link the Git reflog concept and deleted-branch how-to as Git-native recovery, not as a substitute for discard or abandon in a colocated workspace. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Extract toast dismiss helper to drop nested callbacks. Use findByText for the abandon success toast. Restore the discarding-changes next-step link on the Git reflog article. Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/undo-discard-abandon-e294
branch
from
August 15, 2026 18:10
933b646 to
d347103
Compare
Ziinc
marked this pull request as ready for review
August 15, 2026 18:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Combines #100 (Git reflog Learn articles) with toast Undo for discard/abandon. Rebased on current
main.Product
Docs
Treq how-tos use toast Undo, not
git checkout/git reflog. The Git reflog concept page and deleted-branch how-to stay as Git-native recovery and point Treq discards back at the product Undo path.Tests
commits-abandon-undo.spec.tsx,review-discard-undo.spec.tsx,discard-all-confirmation.spec.tsx