Skip to content

Add plan context map sidebar#710

Open
woertedetiankong wants to merge 1 commit into
backnotprop:mainfrom
woertedetiankong:plan-context-map-sidebar
Open

Add plan context map sidebar#710
woertedetiankong wants to merge 1 commit into
backnotprop:mainfrom
woertedetiankong:plan-context-map-sidebar

Conversation

@woertedetiankong
Copy link
Copy Markdown

Summary

  • add a Context sidebar tab for markdown plans with detected code-file mentions
  • group mentions into a compact folder-style tree with mention counts and lightweight status badges
  • let file rows jump back to the first plan block that mentions that file

Details

  • reuses the existing shared code-path extraction rules and adds a repeated-mention helper
  • infers Modified, Created, and Deleted only from explicit nearby file-change headings, with conflicts falling back to Mentioned
  • reuses /api/doc/exists validation via the existing validated-code-path hook so unresolved paths render muted
  • hides the Context tab in archive, annotate, linked-doc, HTML, and active plan-diff views

Validation

  • bun test packages/shared/extract-code-paths.test.ts
  • bun test packages/ui/utils/planContext.test.ts
  • bun run typecheck
  • bun run build:hook

@woertedetiankong woertedetiankong marked this pull request as ready for review May 12, 2026 23:38
@backnotprop
Copy link
Copy Markdown
Owner

yo this is sick

@backnotprop
Copy link
Copy Markdown
Owner

I'm only concerned about consistency. reviewing some things.

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.

2 participants