feat: implement Story 3.3 — badge-based element referencing for targeted modifications

Adds badge chips in the copilot chat input that reference selected diagram
elements, enabling scoped AI modifications. Includes code review fixes for
reduced-motion support, scope indicator, callback stability, schema validation,
neighbor limits, and buildSelectedContext test coverage (103 tests passing).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-02-28 14:29:11 +00:00
parent 6dcb4dcd6f
commit 6591d6385a
11 changed files with 861 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ development_status:
epic-3: in-progress
3-1-chat-panel-ui-with-streaming-ai-responses: done
3-2-ai-diagram-generation-from-natural-language: done
3-3-badge-based-element-referencing-for-targeted-modifications: backlog
3-3-badge-based-element-referencing-for-targeted-modifications: done
3-4-ai-semantic-suggestions-and-accept-reject-workflow: backlog
3-5-new-diagram-wizard-with-ai-type-inference-and-chat-first-onboarding: backlog
3-6-hover-affordances-and-command-palette: backlog