From 2339fa02f8a33f243fcfb78238df1a54707b56da Mon Sep 17 00:00:00 2001 From: Daniel Kirby Date: Wed, 24 Jun 2026 13:56:41 +0100 Subject: [PATCH] chore: refresh types and formatting --- AGENTS.md | 18 +++++++++--------- .../components/organization-switcher.svelte | 12 ------------ src/routes/dashboard/+error.svelte | 10 ++++++---- .../billing/run-billing-dialog.svelte | 1 - .../[id]/contracts/edit-contract-dialog.svelte | 8 +++++++- worker-configuration.d.ts | 5 ++++- 6 files changed, 26 insertions(+), 28 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 4fbb63b..e71e8de 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,20 +6,20 @@ This project is based inspired by Clarity Core by RA, for which more information ## Tech Stack - - Svelte - - SvelteKit - - Drizzle w/ libSQL - - [better-auth for authenticaton](https://better-auth.com/docs/introduction) - - [shadcn-svelte for UI components](https://www.shadcn-svelte.com/docs) - - [runed for helper functions](https://runed.dev/docs) (e.g. useUrlSearchParams) +- Svelte +- SvelteKit +- Drizzle w/ libSQL +- [better-auth for authenticaton](https://better-auth.com/docs/introduction) +- [shadcn-svelte for UI components](https://www.shadcn-svelte.com/docs) +- [runed for helper functions](https://runed.dev/docs) (e.g. useUrlSearchParams) ## Deployment Target for deployment is Cloudflare using wrangler.jsonc and the wrangler cli. - - Cloudflare Workers - - Cloudflare D1 - - Cloudflare R2 +- Cloudflare Workers +- Cloudflare D1 +- Cloudflare R2 ## Semantics diff --git a/src/lib/components/organization-switcher.svelte b/src/lib/components/organization-switcher.svelte index 89b6c3b..536babd 100644 --- a/src/lib/components/organization-switcher.svelte +++ b/src/lib/components/organization-switcher.svelte @@ -16,18 +16,6 @@ id: string; name: string; workspace: string; - addressLine1?: string | null; - addressLine2?: string | null; - city?: string | null; - region?: string | null; - postcode?: string | null; - country?: string | null; - bankName?: string | null; - bankAccountName?: string | null; - bankAccountNumber?: string | null; - bankSortCode?: string | null; - bankIban?: string | null; - bankSwift?: string | null; }; let { diff --git a/src/routes/dashboard/+error.svelte b/src/routes/dashboard/+error.svelte index 9f373f2..be10a7a 100644 --- a/src/routes/dashboard/+error.svelte +++ b/src/routes/dashboard/+error.svelte @@ -1,19 +1,21 @@ @@ -29,11 +31,11 @@
- - diff --git a/src/routes/dashboard/billing/run-billing-dialog.svelte b/src/routes/dashboard/billing/run-billing-dialog.svelte index 6f92954..e3aa5d9 100644 --- a/src/routes/dashboard/billing/run-billing-dialog.svelte +++ b/src/routes/dashboard/billing/run-billing-dialog.svelte @@ -46,7 +46,6 @@ dueDate: string; lines: BillingLine[]; clients: BillingClient[]; - totalGbp: number; }; formatMoney: (value: unknown) => string; formatDate: (value: unknown) => string; diff --git a/src/routes/dashboard/clients/[id]/contracts/edit-contract-dialog.svelte b/src/routes/dashboard/clients/[id]/contracts/edit-contract-dialog.svelte index 3bc1b83..8ee3114 100644 --- a/src/routes/dashboard/clients/[id]/contracts/edit-contract-dialog.svelte +++ b/src/routes/dashboard/clients/[id]/contracts/edit-contract-dialog.svelte @@ -35,7 +35,13 @@ Update this contract record. {#if editingRecord} -
+ diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index 44e67a2..b28b382 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,8 +1,11 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: 4f9fe9ddb2ea1e2c41e1be5910da8551) +// Generated by Wrangler by running `wrangler types` (hash: 61c64c9cd1c2465ff3a92bc5ac82d57d) // Runtime types generated with workerd@1.20260521.1 2026-05-23 nodejs_als interface __BaseEnv_Env { ASSETS: Fetcher; + DATABASE_URL: string; + ORIGIN: string; + BETTER_AUTH_SECRET: string; } declare namespace Cloudflare { interface Env extends __BaseEnv_Env {}