Idea detail
header_buttons
reqlan rq/extension/module/activitybar.rq:54
Summary
Cross-pane controls live in a compact header above the pane stack.
- " Sync with editor " toggle: panes follow the active editor and cursor by default; when off, stay pinned on the last focused idea.
- hop_depth_control: global graph hop depth for context search, graph slice, references, and ancestors — not a boolean toggle.
- " Open in Ideas Summary ": reveal ideas-summary-panel.ts with the ideas table filtered to the current file, or the graph tab centred on the current idea.
- " Export slice ": JSON or CSV of the current neighbourhood only ( lighter than workspace export_JSON / export_csv ).
- " Copy as markdown ": copy the focused idea plus parents and reference lists for pasting into chat or PRs.
- Refresh control tied to index readiness.
- info_site_link
Ancestor context
A * * − / value / + * * button pair ( not a 1 - hop / 2 - hop toggle ) sets [context_scope_doc.global_hop_depth]. - Minimum hop depth is 1 ( direct neighbours only ); * * − * * is disabled at minimum. - Maximum hop depth is capped ( default 4 for the activity bar ); * * + * * is disabled at maximum. - Changing global depth rebuilds [context_scope_doc.reqlan_context_model], refreshes graph / refs / ancestors panes, and updates [context_scope_doc.context_footprint]. - When no [context_scope_doc.effective_center_id] exists, depth still updates session state; panes refresh when a centre appears. - Legacy `setIncludeIndirect` maps to depth 2 / 1 for backward compatibility during migration.
info_site_linkThe header shows an info control that opens the project site in the system browser. Link id `site` from [phonebook_reqs.phonebook] per [phonebook_reqs.activity_bar_site_link]. Resolved in the extension host via ["../../../packages/extension/src/shared/phonebook.ts"] ( canonical data in ["../../phonebook.json"] ), not hardcoded in the webview. The webview receives the resolved label and href from [activity_bar_webview] and posts `openPhonebookLink` when the user activates the control.
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| file_reference | ../../../packages/extension/src/activity_bar_module/context-session.ts | packages/extension/src/activity_bar_module/context-session.ts | context-session.ts |
| file_reference | ideas_summary_panel | packages/extension/src/webview_module/ideas-summary-panel.ts | ideas-summary-panel.ts |
| file_reference | ../../../packages/extension/webviews/activity-bar/components/HeaderBar.svelte | packages/extension/webviews/activity-bar/components/HeaderBar.svelte | HeaderBar.svelte |
| references | hop_depth_control | reqlan rq/extension/module/activitybar.rq | hop_depth_control |
| references | info_site_link | reqlan rq/extension/module/activitybar.rq | info_site_link |
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | panes | reqlan rq/extension/module/activitybar.rq | header_buttons |
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | export_csv | export_csv | |
| references | export_json | export_JSON |
Initialising graph…