Skip to content

feat: add rule editing analytics hook point (no-op stub)#159

Open
mgtmdccix-oss wants to merge 1 commit into
Tx-wat:mainfrom
mgtmdccix-oss:feat/rule-editing-analytics-hook
Open

feat: add rule editing analytics hook point (no-op stub)#159
mgtmdccix-oss wants to merge 1 commit into
Tx-wat:mainfrom
mgtmdccix-oss:feat/rule-editing-analytics-hook

Conversation

@mgtmdccix-oss
Copy link
Copy Markdown

  • Add lib/useAnalytics.ts with typed trackEvent stub and AnalyticsEventName/AnalyticsEventProperties types
  • Add optional onRulesChanged prop to RuleBuilder for per-rule add/update/remove callbacks
  • Fix missing editingIndex useState declaration in RuleBuilder (pre-existing bug)
  • Wire trackEvent in ContractDetailPage at rule_edit_opened, rule_edit_saved, rule_added, rule_removed
  • All trackEvent calls are no-ops until a real provider is configured

Closes #100

- Add lib/useAnalytics.ts with typed trackEvent stub and AnalyticsEventName/AnalyticsEventProperties types
- Add optional onRulesChanged prop to RuleBuilder for per-rule add/update/remove callbacks
- Fix missing editingIndex useState declaration in RuleBuilder (pre-existing bug)
- Wire trackEvent in ContractDetailPage at rule_edit_opened, rule_edit_saved, rule_added, rule_removed
- All trackEvent calls are no-ops until a real provider is configured

Closes Tx-wat#100
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@mgtmdccix-oss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add rule editing analytics hook point

1 participant