generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Compliance and Enforcement Section (#373)
- Loading branch information
Showing
13 changed files
with
346 additions
and
15 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
packages: write | ||
strategy: | ||
matrix: | ||
package: [ backend, frontend ] | ||
package: [backend, frontend] | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: bcgov/[email protected] | ||
|
@@ -42,11 +42,14 @@ jobs: | |
--set backend.pdb.enabled=false \ | ||
--set frontend.pdb.enabled=false \ | ||
--set global.amsURL=https://test.j200.gov.bc.ca/pub/ams/ \ | ||
--set global.nrptiAPIURL=https://nrpti-api-f00029-prod.apps.silver.devops.gov.bc.ca \ | ||
--set global.nrcedURL=https://nrced.gov.bc.ca \ | ||
--set-string backend.env.omrrAuthzDocsFlag=true \ | ||
tests: | ||
name: Tests | ||
if: needs.deploys.outputs.triggered == 'true' | ||
needs: [ deploys ] | ||
needs: [deploys] | ||
uses: ./.github/workflows/.tests.yml | ||
with: | ||
target: ${{ github.event.number }} | ||
|
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,14 @@ | ||
export const mockComplianceData = [ | ||
{ | ||
dateIssued: '2024-01-01', | ||
recordType: 'Inspection', | ||
summary: 'Test Compliance Record', | ||
_id: 'test123', | ||
}, | ||
{ | ||
dateIssued: '2024-02-01', | ||
recordType: 'Order', | ||
summary: 'Another Test Record', | ||
_id: 'test456', | ||
}, | ||
] |
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
83 changes: 83 additions & 0 deletions
83
frontend/src/pages/authorizationDetails/ComplianceSection.css
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,83 @@ | ||
.compliance-table { | ||
border-radius: 4px 4px 0 0; | ||
border: 1px solid var(--surface-color-border-light); | ||
} | ||
|
||
.compliance-table-row { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 4fr 100px; | ||
} | ||
|
||
.compliance-table-cell { | ||
background-color: var(--surface-color-background-white); | ||
border-bottom: 1px solid #d8d8d8; | ||
color: var(--typography-color-secondary); | ||
padding: 8px; | ||
font-size: 12px; | ||
} | ||
|
||
.compliance-table-cell--no-data { | ||
color: var(--typography-color-secondary); | ||
text-align: center; | ||
padding: 24px; | ||
background-color: var(--surface-color-brand-gray-10); | ||
grid-column: 1 / -1; /* This makes it span all columns */ | ||
} | ||
|
||
.compliance-table-header .compliance-table-cell { | ||
background-color: var(--surface-color-brand-gray-20); | ||
border-bottom-color: var(--surface-color-border-medium); | ||
border-right: 1px solid var(--surface-color-border-light); | ||
color: var(--typography-color-secondary); | ||
font-weight: 700; | ||
} | ||
|
||
.compliance-table-header .compliance-table-cell:last-child { | ||
border-right: none; | ||
} | ||
|
||
.compliance-table-header:first-child { | ||
border-radius: 4px 4px 0 0; | ||
} | ||
|
||
.compliance-table-cell a { | ||
color: var(--typography-color-link); | ||
text-decoration-line: none; | ||
font-size: 12px; | ||
} | ||
|
||
.compliance-table-cell--sortable { | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
} | ||
|
||
.compliance-table-cell--sortable:hover { | ||
background-color: var(--surface-color-brand-gray-30); | ||
} | ||
|
||
.compliance-table-cell--sortable svg { | ||
width: 16px; | ||
height: 16px; | ||
} | ||
|
||
.view-link { | ||
color: var(--typography-color-primary); | ||
text-decoration: none; | ||
display: inline-flex; | ||
align-items: center; | ||
gap: 4px; | ||
} | ||
|
||
.view-link svg { | ||
font-size: 14px; | ||
} | ||
|
||
.view-link:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.compliance-table-row:not(.compliance-table-header) > div:last-child { | ||
padding-left: 10px; | ||
} |
Oops, something went wrong.