feat: package manifest history and rollback in the dashboard#13
Open
paddo wants to merge 2 commits into
Open
Conversation
Packages tab: 'h' opens a manager's manifest commit history, Enter on a history entry shows the diff — mirroring the Files tab. Read-only; rollback action lands separately.
'R' on a manifest history entry rolls a package manager back to that snapshot: a new `tether rollback packages` command computes the reverse delta (install missing, uninstall extras) and re-syncs. The dashboard spawns it as a subprocess after a confirmation modal. Brew is not yet covered — its Brewfile format and cask/tap handling warrant a separate pass; history viewing still works for it.
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.
Summary
hopens a manager's commit history,Enteron an entry shows the diff — mirroring the Files tab.tether rollback packages <manager> <commit>command rolls a package manager's installed set back to a manifest snapshot: it computes the reverse delta (install what the snapshot had, uninstall what was added since), applies it, then re-syncs so removals are recorded and the union manifest updates.Ron a history entry opens a confirmation modal with+install / −uninstallcounts, then spawns the rollback command as a subprocess (same pattern assync).Scope / limitations
Ron a brew entry reports "not yet supported". History viewing still works for brew.Test plan
hlists a manager's manifest history,Entershows the diffRon a history entry shows the confirmation modal with correct install/uninstall countstether rollback packagesand the manager's installed set matches the snapshot afterwardtether rollback packages <manager> <commit>works standalone from the CLI