feat(ui): add "See All" link to agent detail Recent Issues section

Remove the issue count from the Recent Issues heading and add a
"See All →" link that navigates to /issues?assignee={agentId}.
The Issues page now reads the assignee query param and pre-filters
the list to show that agent's issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Forgotten
2026-02-23 15:13:59 -06:00
parent 0db2795d1d
commit f800374f3a
3 changed files with 17 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ interface IssuesListProps {
liveIssueIds?: Set<string>;
projectId?: string;
viewStateKey: string;
initialAssignees?: string[];
onUpdateIssue: (id: string, data: Record<string, unknown>) => void;
}
@@ -136,11 +137,17 @@ export function IssuesList({
liveIssueIds,
projectId,
viewStateKey,
initialAssignees,
onUpdateIssue,
}: IssuesListProps) {
const { openNewIssue } = useDialog();
const [viewState, setViewState] = useState<IssueViewState>(() => getViewState(viewStateKey));
const [viewState, setViewState] = useState<IssueViewState>(() => {
if (initialAssignees) {
return { ...defaultViewState, assignees: initialAssignees, statuses: [] };
}
return getViewState(viewStateKey);
});
const updateView = useCallback((patch: Partial<IssueViewState>) => {
setViewState((prev) => {