Files
open-design/packages
339d0cb150 feat(analytics): complete composer context-sources tracking (#4869 follow-up) (#5057)
* feat(analytics): complete composer context-sources tracking (#4869 follow-up)

Close the tracking gaps left by the composer context sources feature:

- home: reference-project pick now carries resource_kind/resource_id
  (workspace/reference-project) instead of a bare plus_pick, and link
  local code aligns with the chat panel's plus_pick workspace/local-code
  (was mis-mapped to working_dir, which is the separate working-dir
  picker feature)
- both surfaces: track the figma_help row, opening the design-system
  picker from the + menu (design_system_open), and the two new modals'
  exposure (project_reference_modal / figma_help_modal surface_view)
- home: context chips (plugin / mcp / connector / workspace) removals
  now emit context_remove, mirroring the chat panel
- new context_link_result event closes the linking funnel: success /
  cancelled / failed per attempt, with linked-project count

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat(analytics): track plus-menu submenu opens and search usage

Complete the panel inventory: every row of the composer + menu now has
an event on both surfaces. Adds plus_submenu_open (connector / plugin /
skill / mcp flyout opened — fires on submenu transition, not repeated
hovers) and plus_search (first keystroke in a flyout search box, once
per open, query text never sent). The Design-toolbox row keeps its own
design_toolbox_open and is excluded.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: free666799 <293857035+free666799@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 10:28:59 +00:00
..