Skip to content

feat(web): graph.getFocused client + truncated field for focus mode (TASK-1782) - #719

Merged
xarmian merged 1 commit into
mainfrom
feat/graph-focus-client
Jun 8, 2026
Merged

feat(web): graph.getFocused client + truncated field for focus mode (TASK-1782)#719
xarmian merged 1 commit into
mainfrom
feat/graph-focus-client

Conversation

@xarmian

@xarmian xarmian commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Surfaces the TASK-1781 backend focus mode to the TypeScript web client.

  • GraphResponse gains an optional truncated?: boolean — focus-mode-only; absent for the whole-workspace view.
  • New api.graph.getFocused(ws, focusRef, { depth?, includeTerminal? }) builds ?focus=REF&depth=N[&include_terminal=true] (uses URLSearchParams for safe encoding).
  • Existing api.graph.get is untouched, so the 3D view keeps working.

Context

Implements TASK-1782 under PLAN-1780. Backend (TASK-1781) merged in #718; the renderer (TASK-1783) consumes getFocused next.

Test plan

  • cd web && npm run build — clean
  • [n/a] go tests — no Go changes

…TASK-1782)

Surfaces the TASK-1781 backend focus mode to the web client:

- GraphResponse gains an optional `truncated?: boolean` (focus-mode-only;
  absent for the whole-workspace view).
- New api.graph.getFocused(ws, focusRef, { depth?, includeTerminal? })
  builds ?focus=REF&depth=N[&include_terminal=true]. The existing
  graph.get is unchanged so the 3D view keeps working.

Parent: PLAN-1780.
@xarmian
xarmian merged commit f45a45a into main Jun 8, 2026
4 checks passed
@xarmian
xarmian deleted the feat/graph-focus-client branch June 8, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant