feat: add billing and organization workflows

This commit is contained in:
2026-06-24 13:53:52 +01:00
parent 4fd81c923b
commit 44bfb083f9
97 changed files with 10966 additions and 2044 deletions
@@ -30,7 +30,10 @@ export const load: PageServerLoad = async ({ locals }) => {
return {
records,
options: await loadOptions(activeOrganizationId),
archiveForm: await superValidate(zod4(archiveSchema), { id: 'contacts-archive' })
archiveForm: await superValidate(zod4(archiveSchema), {
id: 'contacts-archive',
errors: false
})
};
};
@@ -25,6 +25,8 @@
<Table.Head>Email</Table.Head>
<Table.Head>Phone</Table.Head>
<Table.Head>Primary</Table.Head>
<Table.Head>Invoices</Table.Head>
<Table.Head>Contracts</Table.Head>
<Table.Head class="w-12"><span class="sr-only">Actions</span></Table.Head>
</Table.Row>
</Table.Header>
@@ -37,6 +39,8 @@
<Table.Cell class="">{formatValue(record.email)}</Table.Cell>
<Table.Cell class="">{formatValue(record.phone)}</Table.Cell>
<Table.Cell class="">{record.isPrimary ? 'Yes' : 'No'}</Table.Cell>
<Table.Cell>{record.receivesInvoices ? 'Yes' : 'No'}</Table.Cell>
<Table.Cell>{record.receivesContracts ? 'Yes' : 'No'}</Table.Cell>
<Table.Cell>
<DropdownMenu.Root>
<DropdownMenu.Trigger