version-0.1 #1
Reference in New Issue
Block a user
Delete Branch "version-0.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds IsPrimary to OrganizationUser (per-user flag, one primary per user). First org created is automatically set as primary. Selecting a different org via the UI calls PUT /organisations/{id}/primary to persist the choice server-side. Dashboard auto-selects: localStorage org (refreshed) → primary org → single org when no explicit selection exists.Instruments FeatureEvaluationService with System.Diagnostics.Metrics (Counter + IMeterFactory). Accumulates per-feature/day evaluation counts in-process, flushed every 30s to a new FeatureUsageDaily Postgres table via PostgreSQL ON CONFLICT upsert. Caches dashboard query results for 180s in IMemoryCache. New GET /api/v1/environments/{id}/usage endpoint returns top-10 features last day and 14-day per-day breakdown. Admin dashboard shows two ApexCharts bar charts: top features and evaluations by day with per-flag hover tooltip.- Replace sidebar org dropdown with a header link/menu (left of theme toggle) that includes a "New Organization" entry opening the create dialog - Self-host Inter via @fontsource-variable/inter instead of relying on system fonts - Wire up real feature<->tag assignment (was UI-only before): expose Tags on FeatureResponse, add assign/remove endpoints, make tag chips in the feature detail dialog toggle assignment, and show up to 5 tags (+ellipsis) in the features table next to the segment-override icon - Normalize all API routes to singular/plural REST convention: singular resource name when addressing one item by id/key (e.g. /feature/{id}), plural for list/create endpoints (e.g. /features). Updated every controller, the admin frontend API clients, and affected tests to match