open-design/packages/contracts
elihahah666 dadf8a5bc3
Add tracking for Automations, Plugin Detail & Loop (#3103)
* Add tracking for Automations, Plugin Detail, and Plugin Loop

- RoutinesSection: track new_automation, create, save, cancel, run_now,
  edit, pause, resume, delete, history button clicks
- PluginDetailView: track back navigation and use_plugin action
- PluginLoopHome: track clear_active, submit, card_details, card_use
- Extend AutomationsClickProps with new CRUD elements
- Add PluginDetailClickProps and PluginLoopClickProps contracts

* fix: address review comments on plugin/automation tracking

- Extract onBack handler in PluginDetailView to cover both error-path
  and success-path back buttons with tracking
- Move create/save tracking from submit button onClick into the form
  submit handler to capture keyboard submissions and avoid false
  positives from validation failures

* fix: move submit tracking into submit() handler in PluginLoopHome

Same fix as RoutinesSection: tracking now fires inside submit() so
keyboard Enter submissions are captured and the !trimmed guard
prevents false positives.

---------

Co-authored-by: qiongyu1999 <2694684348@qq.com>
2026-05-27 16:48:41 +00:00
..
src Add tracking for Automations, Plugin Detail & Loop (#3103) 2026-05-27 16:48:41 +00:00
tests Merge origin/main into release/v0.8.0 2026-05-23 12:17:18 +08:00
esbuild.config.mjs feat(web): "Resume conversation in new chat" UI — #462 Commit B (companion to #1718) (#2264) 2026-05-20 13:28:27 +08:00
package.json release: Open Design 0.8.0 2026-05-20 21:22:17 +08:00
tsconfig.json Add shared contracts and migrate project code to TypeScript (#118) 2026-04-30 13:01:15 +08:00
tsconfig.tests.json chore: enforce test directory conventions (#496) 2026-05-05 15:34:22 +08:00