-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3840 from bcgov/feat/3165
chore: organize constants
- Loading branch information
Showing
25 changed files
with
354 additions
and
354 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
app/app/private-cloud/products/(product)/[licencePlate]/edit/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/app/private-cloud/products/(product)/[licencePlate]/requests/state.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,254 @@ | ||
import { Ministry, Prisma } from '@prisma/client'; | ||
|
||
export const ministries = Object.values(Ministry); | ||
|
||
export const ministryOptions = [ | ||
{ | ||
value: 'AEST', | ||
label: 'Post-Secondary Education and Future Skills Contacts', | ||
}, | ||
{ | ||
value: 'AG', | ||
label: 'Attorney General', | ||
}, | ||
{ | ||
value: 'AGRI', | ||
label: 'Agriculture and Food', | ||
}, | ||
{ | ||
value: 'ALC', | ||
label: 'Advisory Committee Revitalization', | ||
}, | ||
{ | ||
value: 'BCPC', | ||
label: 'British Columbia Provincial Committee', | ||
}, | ||
{ | ||
value: 'CITZ', | ||
label: 'Citizens Services', | ||
}, | ||
{ | ||
value: 'DBC', | ||
label: 'Drug Benefit Council', | ||
}, | ||
{ | ||
value: 'EAO', | ||
label: 'Environmental Assessment Office', | ||
}, | ||
{ | ||
value: 'EDUC', | ||
label: 'Education and Child Care', | ||
}, | ||
{ | ||
value: 'EMBC', | ||
label: 'Emergency Management', | ||
}, | ||
{ | ||
value: 'EMPR', | ||
label: 'Energy, Mines and Low Carbon Innovation', | ||
}, | ||
{ | ||
value: 'ENV', | ||
label: 'Environment and Climate Change Strategy', | ||
}, | ||
{ | ||
value: 'FIN', | ||
label: 'Finance', | ||
}, | ||
{ | ||
value: 'FLNR', | ||
label: 'Forests, Lands, Natural Resource', | ||
}, | ||
{ | ||
value: 'HLTH', | ||
label: 'Health', | ||
}, | ||
{ | ||
value: 'IRR', | ||
label: 'Indigenous Relations & Reconciliation', | ||
}, | ||
{ | ||
value: 'JEDC', | ||
label: 'Jobs, Economic Development and Innovation', | ||
}, | ||
{ | ||
value: 'LBR', | ||
label: 'Labour', | ||
}, | ||
{ | ||
value: 'LDB', | ||
label: 'Liquor Distribution Branch', | ||
}, | ||
{ | ||
value: 'MAH', | ||
label: 'Municipal Affairs and Housing', | ||
}, | ||
{ | ||
value: 'MCF', | ||
label: 'Children and Family Development', | ||
}, | ||
{ | ||
value: 'MMHA', | ||
label: 'Mental Health and Addictions', | ||
}, | ||
{ | ||
value: 'PSA', | ||
label: 'Public Service Agency', | ||
}, | ||
{ | ||
value: 'PSSG', | ||
label: 'Public Safety and Solicitor General', | ||
}, | ||
{ | ||
value: 'SDPR', | ||
label: 'Social Development and Poverty Reduction', | ||
}, | ||
{ | ||
value: 'TCA', | ||
label: 'Tangible Capital Assets', | ||
}, | ||
{ | ||
value: 'TRAN', | ||
label: 'Transportation and Infrastructure', | ||
}, | ||
{ | ||
value: 'HOUS', | ||
label: 'Ministry of Housing', | ||
}, | ||
]; | ||
|
||
export const AGMinistries = ['AG', 'PSSG', 'EMBC', 'HOUS']; | ||
|
||
export const TEAM_SA_PREFIX = 'z_pltsvc-tsa-'; | ||
|
||
export const productSorts = [ | ||
{ | ||
label: 'Product update date (new to old)', | ||
sortKey: 'updatedAt', | ||
sortOrder: Prisma.SortOrder.desc, | ||
}, | ||
{ | ||
label: 'Product update date (old to new)', | ||
sortKey: 'updatedAt', | ||
sortOrder: Prisma.SortOrder.asc, | ||
}, | ||
{ | ||
label: 'Product name (A-Z)', | ||
sortKey: 'name', | ||
sortOrder: Prisma.SortOrder.asc, | ||
}, | ||
{ | ||
label: 'Product name (Z-A)', | ||
sortKey: 'name', | ||
sortOrder: Prisma.SortOrder.desc, | ||
}, | ||
{ | ||
label: 'Product description (A-Z)', | ||
sortKey: 'description', | ||
sortOrder: Prisma.SortOrder.asc, | ||
}, | ||
{ | ||
label: 'Product description (Z-A)', | ||
sortKey: 'description', | ||
sortOrder: Prisma.SortOrder.desc, | ||
}, | ||
{ | ||
label: 'Product Licence Plate (A-Z)', | ||
sortKey: 'licencePlate', | ||
sortOrder: Prisma.SortOrder.asc, | ||
}, | ||
{ | ||
label: 'Product Licence Plate (Z-A)', | ||
sortKey: 'licencePlate', | ||
sortOrder: Prisma.SortOrder.desc, | ||
}, | ||
]; | ||
|
||
export const requestSorts = [ | ||
{ | ||
label: 'Request update date (new to old)', | ||
sortKey: 'updatedAt', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request update date (old to new)', | ||
sortKey: 'updatedAt', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request create date (new to old)', | ||
sortKey: 'createdAt', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request create date (old to new)', | ||
sortKey: 'createdAt', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request review date (new to old)', | ||
sortKey: 'decisionDate', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request review date (old to new)', | ||
sortKey: 'decisionDate', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request complete date (new to old)', | ||
sortKey: 'provisionedDate', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Request complete date (old to new)', | ||
sortKey: 'provisionedDate', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: false, | ||
}, | ||
{ | ||
label: 'Product name (A-Z)', | ||
sortKey: 'name', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: true, | ||
}, | ||
{ | ||
label: 'Product name (Z-A)', | ||
sortKey: 'name', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: true, | ||
}, | ||
{ | ||
label: 'Product description (A-Z)', | ||
sortKey: 'description', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: true, | ||
}, | ||
{ | ||
label: 'Product description (Z-A)', | ||
sortKey: 'description', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: true, | ||
}, | ||
{ | ||
label: 'Product Licence Plate (A-Z)', | ||
sortKey: 'licencePlate', | ||
sortOrder: Prisma.SortOrder.asc, | ||
inData: true, | ||
}, | ||
{ | ||
label: 'Product Licence Plate (Z-A)', | ||
sortKey: 'licencePlate', | ||
sortOrder: Prisma.SortOrder.desc, | ||
inData: true, | ||
}, | ||
]; | ||
|
||
export const requestSortsInProduct = requestSorts.filter((v) => v.sortKey !== 'licencePlate'); |
Oops, something went wrong.