feat: overhaul all 12 sector extensions with full CRUD, validation, and tests
Add shared components (ConfirmDeleteDialog, EditEntryDialog, validation utils), enhance all 12 extension workspaces with edit/delete dialogs, input validation, period comparisons, and new analytics features. Fix critical bugs in ProjectBilling margin calculation and EarningsPerLiter revenue allocation. Add pure calculation modules with 183 new tests across all extensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,8 +24,12 @@ export async function GET(
|
||||
.eq('user_id', user.id)
|
||||
.eq('extension_id', extensionId)
|
||||
|
||||
const prefix = searchParams.get('prefix')
|
||||
|
||||
if (key) {
|
||||
query = query.eq('key', key)
|
||||
} else if (prefix) {
|
||||
query = query.ilike('key', `${prefix}%`)
|
||||
}
|
||||
|
||||
const { data, error } = await query
|
||||
|
||||
Reference in New Issue
Block a user