agent-native icon indicating copy to clipboard operation
agent-native copied to clipboard

refactor(analytics): declarative SEED_TRIGGERS map for dashboard auto-seeding

Open zuchka opened this issue 6 months ago • 25 comments

Summary

  • Replaces the hardcoded GA4_CREDENTIAL_KEYS / GA_DASHBOARD_ID / SQL_DASHBOARD_KEY constants and if block in credentials.post.ts with a single SEED_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_TRIGGERS instead of a copy-pasted 15-line block

Test plan

  • [ ] Save GA4_PROPERTY_ID credential → sql-dashboard-google-analytics is 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

zuchka avatar May 20 '26 00:05 zuchka

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

netlify avatar May 20 '26 00:05 netlify

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar May 20 '26 00:05 netlify

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

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

netlify avatar May 20 '26 00:05 netlify

Deploying agent-native-forms with  Cloudflare Pages  Cloudflare Pages

Latest commit: e5d7762
Status:🚫  Build failed.

View logs

Deploying agent-native-mail with  Cloudflare Pages  Cloudflare Pages

Latest commit: e5d7762
Status:🚫  Build failed.

View logs