Repository navigation
feat(desktop,host-service): tombstone workspace deletes + kanban board view for the workspaces page #6296
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
Merged
Merged
feat(desktop,host-service): tombstone workspace deletes + kanban board view for the workspaces page #6296
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
781ad24
feat(host-service): tombstone workspace deletes instead of hard-deleting
Kitenite 5d6f559
feat(desktop): source workspace PR state and agent status from the host
Kitenite f2564ac
feat(desktop): kanban board view + URL-synced filters for workspaces …
Kitenite 2c9e7eb
feat(host-service): tombstone session deletes too
Kitenite 2194546
feat(desktop): share the workspace context menu with board cards
Kitenite 773df8b
fix(desktop,host-service): review-pass fixes for tombstones + board
Kitenite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| import { useMatchRoute, useNavigate } from "@tanstack/react-router"; | ||
| import { useCallback, useMemo, useRef } from "react"; | ||
| import { useHotkey } from "renderer/hotkeys"; | ||
| import { useDeletingWorkspacesStore } from "renderer/routes/_authenticated/_dashboard/stores/deletingWorkspacesStore"; | ||
| import { navigateToV2Workspace } from "renderer/routes/_authenticated/_dashboard/utils/workspace-navigation"; | ||
| import { useDashboardSidebarState } from "renderer/routes/_authenticated/hooks/useDashboardSidebarState"; | ||
| import { useDeletingWorkspaces } from "renderer/routes/_authenticated/providers/DeletingWorkspacesProvider"; | ||
| import type { | ||
| DashboardSidebarProject, | ||
| DashboardSidebarWorkspace, | ||
|
|
@@ -59,7 +59,7 @@ export function useDashboardSidebarShortcuts( | |
| const navigate = useNavigate(); | ||
| const { toggleProjectCollapsed, toggleSectionCollapsed } = | ||
| useDashboardSidebarState(); | ||
| const { isDeleting } = useDeletingWorkspaces(); | ||
| const deletingIds = useDeletingWorkspacesStore((state) => state.deletingIds); | ||
| const flattenedWorkspaces = useMemo( | ||
| () => | ||
| [ | ||
|
|
@@ -68,8 +68,10 @@ export function useDashboardSidebarShortcuts( | |
| ...groups.flatMap((project) => | ||
| getProjectChildrenWorkspaces(project.children), | ||
| ), | ||
| ].filter((workspace) => !isDeleting(workspace.id)), | ||
| [groups, sessionWorkspaces, isDeleting], | ||
| // A destroy in flight keeps its row until the archive commit — | ||
| // don't hand shortcuts a workspace that is about to vanish. | ||
| ].filter((workspace) => !deletingIds.has(workspace.id)), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Prev/next shortcuts can still navigate into a workspace mid-destroy because the workspace page's concurrent handlers bypass this filtered list. Have those handlers consult Prompt for AI agents |
||
| [groups, sessionWorkspaces, deletingIds], | ||
| ); | ||
| const workspaceShortcutLabels = | ||
| useStableWorkspaceShortcutLabels(flattenedWorkspaces); | ||
|
|
||
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.