Commit Graph

6 Commits

Author SHA1 Message Date
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
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
b4bb8db409 moving ent to drizzle 2025-05-24 11:25:11 +01:00
John Yeo
bb2bee9f96 moved feature queries to drizzle 2025-05-23 20:09:48 +01:00
John Yeo
f4cb1b2a4c added chatResult handling and updated onboarding flow 2025-05-23 16:14:50 +01:00