Commit Graph

13 Commits

Author SHA1 Message Date
amianthus
6a1fa62fdb feat: 🎸 merge in plan editor 2025-10-16 16:08:19 +01:00
John Yeo
272e61c712 refactor: migrate event names from config.filters to top-level field
This refactors the Feature data model to use a top-level `event_names`
array field instead of the nested `config.filters[0].value` structure.

**Backend Changes:**
- Updated event routing logic in eventRouter.ts to use event_names
- Updated analytics endpoints to check event_names field
- Simplified validateMeteredConfig to remove filters initialization
- Updated feature create/update handlers to handle event_names

**Frontend Changes:**
- Refactored FeatureConfig component to manage event_names directly
- Simplified FilterInput component to work with string array
- Updated CreateFeature and UpdateFeature to send event_names
- Updated analytics views and tables to display event_names

**Database:**
- event_names column already exists in features table

This is a critical change for billing/usage tracking. All event mapping
logic has been carefully preserved to ensure no disruption to existing
functionality.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 15:03:08 +01:00
John Yeo
3d0e4f94f2 wip 2025-09-29 11:15:23 +01:00
John Yeo
da2693567c chore: ran biome format 2025-09-22 14:45:25 +01:00
amianthus
b742cf77c5 feat: 🎸 allow products and features to be archived in db 2025-07-30 17:41:17 +01:00
John Yeo
129eb2fa02 feat: added feature res models 2025-07-12 11:35:54 +01:00
John Yeo
f109524377 redesigned attach to use branch -> function 2025-06-02 09:43:04 +01:00
John Yeo
b4bb8db409 moving ent to drizzle 2025-05-24 11:25:11 +01:00
John Yeo
f4cb1b2a4c added chatResult handling and updated onboarding flow 2025-05-23 16:14:50 +01:00
John Yeo
3d08b1415e update: create / update feature generates display names now 2025-05-04 14:38:37 +01:00
John Yeo
15d4c27181 fixing pricing page 2025-02-19 18:56:33 +00:00
John Yeo
c2afc4deec added sum, reset cron 2025-01-24 15:29:50 +00:00
John Yeo
479b6d7afb first commit 2025-01-21 11:18:42 +00:00