refactor(analytics): declarative SEED_TRIGGERS map for dashboard auto-seeding
Summary
- Replaces the hardcoded
GA4_CREDENTIAL_KEYS/GA_DASHBOARD_ID/SQL_DASHBOARD_KEYconstants andifblock incredentials.post.tswith a singleSEED_TRIGGERS: Record<string, string>map - Behavior is identical — same idempotency check, same silent error handling, same GA4 seed trigger
- Adding a new auto-seeded dashboard in the future is now one line in
SEED_TRIGGERSinstead of a copy-pasted 15-line block
Test plan
- [ ] Save
GA4_PROPERTY_IDcredential →sql-dashboard-google-analyticsis created in scoped settings (same as before) - [ ] Re-saving the same credential → no duplicate dashboard created (idempotent)
- [ ] Saving any non-GA4 credential → no seeding attempted
🤖 Generated with Claude Code
Deploy Preview for agent-native-images canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-images/deploys/6a0cfa479910a20008fd65a5 |
Deploy Preview for agent-native-meeting-notes ready!
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-meeting-notes/deploys/6a0cfa472871c50008075689 |
| Deploy Preview | https://deploy-preview-778--agent-native-meeting-notes.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for agent-native-voice ready!
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-voice/deploys/6a0cfa473aad1f0007928cd3 |
| Deploy Preview | https://deploy-preview-778--agent-native-voice.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for agent-native-starter canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-starter/deploys/6a0cfa475672a7000841ba68 |
Deploy Preview for nutritrack-daily-calories canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/nutritrack-daily-calories/deploys/6a0cfa47dd28c00008c94c09 |
Deploy Preview for agent-native-dispatch canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-dispatch/deploys/6a0cfa47f202b60008f1a99c |
Deploy Preview for agent-native-forms canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-forms/deploys/6a0cfa478b557e0009b8e5e4 |
Deploy Preview for agent-native-scheduling ready!
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-scheduling/deploys/6a0cfa471a1fa00008ba3603 |
| Deploy Preview | https://deploy-preview-778--agent-native-scheduling.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for agent-native-content canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-content/deploys/6a0cfa476f7cc1000875cf35 |
Deploy Preview for agent-native-macros canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-macros/deploys/6a0cfa47f7a1800008cb66bb |
Deploy Preview for agent-native-design ready!
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-design/deploys/6a0cfa474f0e3200080cd458 |
| Deploy Preview | https://deploy-preview-778--agent-native-design.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for agent-native-issues canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-issues/deploys/6a0cfa47dd28c00008c94c0e |
Deploy Preview for agent-native-brain canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-brain/deploys/6a0cfa474f0e3200080cd45c |
Deploy Preview for agent-native-calendar canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-calendar/deploys/6a0cfa4722737e000840f3dc |
Deploy Preview for agent-native-slides canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-slides/deploys/6a0cfa470bba6c0009b6d93b |
Deploy Preview for agent-native-mail canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-mail/deploys/6a0cfa470972320008ad7379 |
Deploy Preview for agent-native-videos canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-videos/deploys/6a0cfa4712e9bd0008821fab |
Deploy Preview for agent-native-recruiting canceled.
| Name | Link |
|---|---|
| Latest commit | e5d776284c1102c2d7e6d1b300cd23e255a8aa09 |
| Latest deploy log | https://app.netlify.com/projects/agent-native-recruiting/deploys/6a0cfa479910a20008fd65ab |