From f5aebb4292fdea551fc6289380e8310868c18010 Mon Sep 17 00:00:00 2001 From: Ashwin Date: Tue, 10 Jun 2025 21:47:47 +0530 Subject: [PATCH 1/2] feat: replace label elements with span for lead details to improve semantic structure --- src/routes/(app)/+layout.svelte | 1 + .../(app)/app/leads/[lead_id]/+page.svelte | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 2a03cc6..623baf0 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -11,6 +11,7 @@ onclick={() => (drawerHidden = !drawerHidden)} class="fixed top-4 left-4 z-50 lg:hidden inline-flex items-center p-2 text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-800 dark:focus:ring-gray-600 transition-colors bg-white dark:bg-gray-900 shadow-md border border-gray-200 dark:border-gray-700" class:hidden={!drawerHidden} + aria-label="Open sidebar menu" > diff --git a/src/routes/(app)/app/leads/[lead_id]/+page.svelte b/src/routes/(app)/app/leads/[lead_id]/+page.svelte index 410b5db..a666d13 100644 --- a/src/routes/(app)/app/leads/[lead_id]/+page.svelte +++ b/src/routes/(app)/app/leads/[lead_id]/+page.svelte @@ -340,7 +340,7 @@
- + Lead Source

{getLeadSourceDisplay(lead.leadSource)} @@ -353,7 +353,7 @@

- + Industry

{lead.industry} @@ -366,7 +366,7 @@

- + Rating
{#each Array(parseInt(lead.rating) || 0) as _, i} @@ -385,7 +385,7 @@
- + Annual Revenue

${lead.annualRevenue.toLocaleString()} @@ -397,7 +397,7 @@

- + Lead Owner

{lead.owner?.name || 'Unassigned'} @@ -408,7 +408,7 @@

- + Created

{formatDateShort(lead.createdAt)} @@ -421,7 +421,7 @@

- + Address

{lead.address}

@@ -434,7 +434,7 @@
- + Description
From 2a6ad2526d6bb4f0f5624cc11d14b2769edadc8f Mon Sep 17 00:00:00 2001 From: Ashwin Date: Tue, 10 Jun 2025 22:55:37 +0530 Subject: [PATCH 2/2] fix: ensure proper formatting by adding newline at the end of +layout.server.js --- src/routes/(app)/+layout.server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/(app)/+layout.server.js b/src/routes/(app)/+layout.server.js index f1163b5..9f89f03 100644 --- a/src/routes/(app)/+layout.server.js +++ b/src/routes/(app)/+layout.server.js @@ -6,4 +6,6 @@ export async function load({locals}) { user: locals.user, org_name: locals.org_name || 'BottleCRM' }; -} \ No newline at end of file +} + +export const ssr = false;