refactor(scope-options): update and standardize scope options across multiple files
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m4s

- Reorganized and standardized scope options in `+page.svelte` and `+server.ts` files to improve clarity and consistency.
- Removed duplicate and inconsistent entries, ensuring a uniform list of scope options for better usability in the application.
This commit is contained in:
eewing
2026-02-20 09:59:31 -06:00
parent a4a113066f
commit 8139790202
3 changed files with 51 additions and 39 deletions
+17 -13
View File
@@ -25,21 +25,25 @@
let loadingMore = $state(false);
let error = $state<string | null>(null);
const SCOPE_OPTIONS = [
'General',
'OFFICE',
'IT',
'Framing',
'Insulation',
'Hanging',
'Taping',
'Scrap',
'paper',
'sanding',
'masking',
'WT',
'cleanup',
'FRP',
'Framing',
'Framing Metal',
'Framing Wood',
'General',
'Grid',
'Tile'
'Hanging',
'Insulation',
'IT',
'L5',
'Masking',
'OFFICE',
'Paper',
'Sanding',
'Scrap',
'Taping',
'Tile',
'WT'
];
type TypeFilterValue = 'all' | 'Employee' | 'Sub-Contractor';
+17 -13
View File
@@ -143,21 +143,25 @@
}
const SCOPE_OPTIONS = [
'General',
'OFFICE',
'IT',
'Framing',
'Insulation',
'Hanging',
'Taping',
'Scrap',
'paper',
'sanding',
'masking',
'WT',
'cleanup',
'FRP',
'Framing',
'Framing Metal',
'Framing Wood',
'General',
'Grid',
'Tile'
'Hanging',
'Insulation',
'IT',
'L5',
'Masking',
'OFFICE',
'Paper',
'Sanding',
'Scrap',
'Taping',
'Tile',
'WT'
];
function employeeScopes(): string[] {
+17 -13
View File
@@ -22,21 +22,25 @@ function escapeFilterValue(s: string): string {
}
const SCOPE_OPTIONS = [
'General',
'OFFICE',
'IT',
'Framing',
'Insulation',
'Hanging',
'Taping',
'Scrap',
'paper',
'sanding',
'masking',
'WT',
'cleanup',
'FRP',
'Framing',
'Framing Metal',
'Framing Wood',
'General',
'Grid',
'Tile'
'Hanging',
'Insulation',
'IT',
'L5',
'Masking',
'OFFICE',
'Paper',
'Sanding',
'Scrap',
'Taping',
'Tile',
'WT'
];
export const GET: RequestHandler = async ({ locals, url }) => {