From a4a113066fc464caedb07246e980f88bfe7bd6ab Mon Sep 17 00:00:00 2001 From: eewing Date: Fri, 20 Feb 2026 09:41:49 -0600 Subject: [PATCH] refactor(scope-names): standardize scope names across the application - Updated scope names in multiple files to use consistent terminology, changing 'Scarp & Paper', 'Sand & Mask', and 'WT & Cleanup' to 'Scrap', 'sanding', 'masking', and 'cleanup'. - Ensured uniformity in scope options for better clarity and usability in employee management features. --- src/routes/+page.svelte | 12 ++++++++---- src/routes/[id]/+page.svelte | 12 ++++++++---- src/routes/api/employees/+server.ts | 12 ++++++++---- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 99002c6..d61b7d7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -31,11 +31,15 @@ 'Framing', 'Insulation', 'Hanging', - 'Scarp & Paper', 'Taping', - 'Sand & Mask', - 'WT & Cleanup', - 'Grid & Tile' + 'Scrap', + 'paper', + 'sanding', + 'masking', + 'WT', + 'cleanup', + 'Grid', + 'Tile' ]; type TypeFilterValue = 'all' | 'Employee' | 'Sub-Contractor'; diff --git a/src/routes/[id]/+page.svelte b/src/routes/[id]/+page.svelte index 0d62a5d..efd8f90 100644 --- a/src/routes/[id]/+page.svelte +++ b/src/routes/[id]/+page.svelte @@ -149,11 +149,15 @@ 'Framing', 'Insulation', 'Hanging', - 'Scarp & Paper', 'Taping', - 'Sand & Mask', - 'WT & Cleanup', - 'Grid & Tile' + 'Scrap', + 'paper', + 'sanding', + 'masking', + 'WT', + 'cleanup', + 'Grid', + 'Tile' ]; function employeeScopes(): string[] { diff --git a/src/routes/api/employees/+server.ts b/src/routes/api/employees/+server.ts index d808b12..a4c451e 100644 --- a/src/routes/api/employees/+server.ts +++ b/src/routes/api/employees/+server.ts @@ -28,11 +28,15 @@ const SCOPE_OPTIONS = [ 'Framing', 'Insulation', 'Hanging', - 'Scarp & Paper', 'Taping', - 'Sand & Mask', - 'WT & Cleanup', - 'Grid & Tile' + 'Scrap', + 'paper', + 'sanding', + 'masking', + 'WT', + 'cleanup', + 'Grid', + 'Tile' ]; export const GET: RequestHandler = async ({ locals, url }) => {