Repository navigation
feat: link and unlink from Repository groups (#372) - #401
Merged
Merged
Conversation
…olds
POST /v1/workspaces/{id}/links takes an optional id, url, private and
archived. With an id the daemon links the Repository it keeps with that id,
or stores it again from the body without asking GitHub, so Undo after an
unlink that deleted the Repository works signed out. The client gains
repositories::link and unlink. API_VERSION 25.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each Repository group on both Pull requests views gets a … menu: Open on GitHub and Link to a workspace, a submenu of the unarchived Workspaces that don't link it, then New workspace, which opens New workspace with the Repository picked. A Workspace's Pull requests adds Unlink from this workspace. Both apply at once with a toast and Undo; Undo after an unlink links again by GitHub's id, so it works once the Repository is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #372
What changes
A Repository group on either Pull requests view now has a
…menu, so a Repository can be filed into a Workspace, or taken out, straight from its group, with Undo instead of a dialog.Undo after the Repository is gone
An unlink deletes the Repository when nothing else names it. Before this PR the link route took only
owner/name, so linking it again went through GitHub's lookup, which fails while signed out.POST /v1/workspaces/{id}/linksnow also takesid,url,privateandarchived. Withidthe daemon links the Repository it keeps under that GitHub id, whatever its name now. If it no longer keeps one, it stores the Repository again from the body, without a GitHub call. The GUI always links this way, from the Repository it holds, so both the group's Link and Undo work signed out.API_VERSIONis now 25,openapi.jsonand the client are regenerated, andagentdeck_client::repositoriesgainslinkandunlink.Labels
The ticket writes "Link to a workspace…" and "New workspace…".
docs/spec.md§11 (Labels) says menu items never end in "…", even when they open a dialog, so the items read Link to a workspace and New workspace.Spec
docs/spec.md§4 (the link route, theAPI_VERSION25 note), §11 (Pull requests view → Group menu, A Workspace's Pull requests → Unlink, New workspace prefilled, Opening PRs) and §12 are rewritten.Tests
not_signed_in;changedevents fire for the Repository, then the Workspace;404for a Workspace that doesn't exist, storing nothing.repositories::linkandrepositories::unlink, the two operations added to the GUI's fake API.…column;cargo xtask ciis green locally.Design
New boards on Penpot "Screens · Main", next to the Pull requests boards:
Every existing Pull requests board's group headers now carry the
….Penpot exports and app captures are side by side in
~/Pictures/agentdeck/2026-11-23-group-link-unlink/.…sits in the rows'…column, and the toasts match the boards in Dark. Light app captures are included.The library's DropdownMenu SubContent can't hold a separator or a third item, so the submenu is drawn with a Content copy, tracked in #400.
🤖 Generated with Claude Code