Skip to content

Commit 2cb3bb2

Browse files
OnRouteBC Release 47 Merge back to main (#2218)
Signed-off-by: Abhishek Dere <abhishek.dere@gov.bc.ca> Co-authored-by: Abhishek Dere <abhishek.dere@gov.bc.ca>
1 parent 9478e5f commit 2cb3bb2

File tree

32 files changed

+386
-43
lines changed

32 files changed

+386
-43
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
SET ANSI_NULLS ON
2+
GO
3+
SET QUOTED_IDENTIFIER ON
4+
GO
5+
SET NOCOUNT ON
6+
GO
7+
SET XACT_ABORT ON
8+
GO
9+
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
10+
GO
11+
BEGIN TRANSACTION
12+
GO
13+
14+
-- Reset vehicle subtype name back to Buses/Crummies in power unit types table for Buses
15+
UPDATE [dbo].[ORBC_POWER_UNIT_TYPE]
16+
SET [TYPE]=N'Buses/Crummies'
17+
WHERE [POWER_UNIT_TYPE]=N'BUSCRUM'
18+
GO
19+
20+
-- Remove the newly added policy configuration
21+
DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION]
22+
WHERE POLICY_CONFIGURATION_ID = (SELECT MAX(POLICY_CONFIGURATION_ID) FROM [dbo].[ORBC_POLICY_CONFIGURATION])
23+
GO
24+
25+
IF @@ERROR <> 0 SET NOEXEC ON
26+
GO
27+
28+
DECLARE @VersionDescription VARCHAR(255)
29+
SET @VersionDescription = 'Reverting updates to power unit types table policy config to update vehicle subtype name for Buses'
30+
31+
INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (87, @VersionDescription, getutcdate())
32+
GO
33+
34+
IF @@ERROR <> 0 SET NOEXEC ON
35+
GO
36+
37+
COMMIT TRANSACTION
38+
GO
39+
IF @@ERROR <> 0 SET NOEXEC ON
40+
GO
41+
DECLARE @Success AS BIT
42+
SET @Success = 1
43+
SET NOEXEC OFF
44+
IF (@Success = 1) PRINT 'The database revert succeeded'
45+
ELSE BEGIN
46+
IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
47+
PRINT 'The database revert failed'
48+
END
49+
GO
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
SET ANSI_NULLS ON
2+
GO
3+
SET QUOTED_IDENTIFIER ON
4+
GO
5+
SET NOCOUNT ON
6+
GO
7+
SET XACT_ABORT ON
8+
GO
9+
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
10+
GO
11+
BEGIN TRANSACTION
12+
GO
13+
14+
-- Remove the newly added policy configuration
15+
DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION]
16+
WHERE POLICY_CONFIGURATION_ID = (SELECT MAX(POLICY_CONFIGURATION_ID) FROM [dbo].[ORBC_POLICY_CONFIGURATION])
17+
GO
18+
19+
IF @@ERROR <> 0 SET NOEXEC ON
20+
GO
21+
22+
DECLARE @VersionDescription VARCHAR(255)
23+
SET @VersionDescription = 'Reverting updates to power unit types table policy config to update vehicle subtype name for Buses'
24+
25+
INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (88, @VersionDescription, getutcdate())
26+
GO
27+
28+
IF @@ERROR <> 0 SET NOEXEC ON
29+
GO
30+
31+
COMMIT TRANSACTION
32+
GO
33+
IF @@ERROR <> 0 SET NOEXEC ON
34+
GO
35+
DECLARE @Success AS BIT
36+
SET @Success = 1
37+
SET NOEXEC OFF
38+
IF (@Success = 1) PRINT 'The database revert succeeded'
39+
ELSE BEGIN
40+
IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
41+
PRINT 'The database revert failed'
42+
END
43+
GO

database/mssql/scripts/versions/v_88_ddl.sql

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.

database/mssql/scripts/versions/v_89_ddl.sql

Lines changed: 49 additions & 0 deletions
Large diffs are not rendered by default.

frontend/src/common/components/footer/Footer.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ footer {
5555

5656
@media (width < 768px) {
5757
.footer {
58-
padding: 0 5.5rem;
58+
padding: 0 1.25rem;
59+
width: 100%;
60+
justify-content: center;
61+
align-items: center;
5962
}
6063
}
6164

frontend/src/common/components/header/Header.scss

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
color: orbcStyles.$white;
105105
list-style: none;
106106
padding-left: 8.551vw;
107+
box-sizing: border-box;
107108

108109
li {
109110
margin: 0;
@@ -142,11 +143,50 @@
142143
*/
143144
@media (width < 768px) {
144145
.header {
146+
position: relative;
147+
header {
148+
height: fit-content;
149+
flex-direction: column;
150+
151+
.brand-section {
152+
padding: 0;
153+
justify-content: center;
154+
}
155+
156+
.options-section {
157+
justify-content: center;
158+
align-items: center;
159+
flex-direction: column;
160+
161+
.auth-section {
162+
flex-direction: column;
163+
164+
.user-section {
165+
flex-direction: column;
166+
}
167+
168+
.search-button {
169+
margin-right: 0;
170+
padding-top: 1rem;
171+
color: orbcStyles.$bc-gold;
172+
background-color: orbcStyles.$bc-primary-blue;
173+
}
174+
}
175+
176+
.other {
177+
.nav-btn {
178+
padding: 1rem 0;
179+
margin-right: 0;
180+
}
181+
}
182+
}
183+
}
184+
145185
&__main {
146-
padding: 0 5.5rem;
186+
padding: 0 0.5rem;
147187

148188
.user-section {
149-
display: none;
189+
display: flex;
150190
}
151191

152192
.other {
@@ -201,14 +241,14 @@
201241
ul {
202242
flex-direction: column;
203243
margin: 0;
204-
padding: 0 5.5rem;
244+
padding: 0 1.5rem;
205245

206246
li {
207247
margin: 5px 0;
208248

209249
a {
210250
border: none;
211-
251+
212252
&:hover {
213253
text-decoration: underline;
214254
}

frontend/src/common/components/header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const Header = () => {
167167
<Brand />
168168
</div>
169169
<div className="options-section">
170-
{isAuthenticated ? (
170+
{isAuthenticated && !menuOpen ? (
171171
<div className="auth-section">
172172
{isIdir ? <SearchButton onClick={toggleFilter} /> : null}
173173
<UserSection username={username} />

frontend/src/common/constants/bannerMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const BANNER_MESSAGES = {
3131
"Rejected applications appear in Applications in Progress.",
3232
APPLICATION_NOTES:
3333
"Application notes can provide additional details to the Provincial Permit Centre when submitting a permit application for review.",
34-
APPLICATION_NOTES_EXAMPLE: "e.g. Use the credit account for payment.",
34+
APPLICATION_NOTES_EXAMPLE: "e.g. For extraordinary load approval AB1234",
3535
APPLICATION_NOTES_INFO:
3636
"Application notes will not appear on the permit document.",
3737
HIGHWAY_SEQUENCES: {

frontend/src/features/permits/components/dashboard/tests/integration/fixtures/getVehicleInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const getDefaultPowerUnitSubTypes = () => [
108108
},
109109
{
110110
typeCode: "BUSCRUM",
111-
type: "Buses/Crummies",
111+
type: "Buses",
112112
description: "A motor vehicle used to transport persons, when such transportation is not undertaken for compensation or gain.",
113113
},
114114
];

frontend/src/features/permits/constants/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,8 @@ export const CONDITIONAL_LICENSING_FEE_LINKS = {
128128
LINK_TEXT: "Commercial Transport Fees Regulation Item 2(b)",
129129
URL: "https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/328_91",
130130
},
131+
COMMERCIAL_PASSENGER_VEHICLE_FEE_RATE: {
132+
LINK_TEXT: "Commercial Transport Fees Regulation 2 (a.2)",
133+
URL: "https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/328_91",
134+
},
131135
};

0 commit comments

Comments
 (0)