refactor(scope-options): update and standardize scope options across multiple files
- 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:
+17
-13
@@ -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';
|
||||
|
||||
@@ -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[] {
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user