Skip to content

Commit a3084be

Browse files
authored
chore: restart development (#1968)
1 parent 7836fe7 commit a3084be

33 files changed

Lines changed: 10521 additions & 18390 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [18.x, 20.x]
14+
node-version: [20.x, 22.x]
1515

1616
steps:
1717
- uses: actions/checkout@v4

.github/workflows/test-builds-typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
node-version: [18.x, 20.x]
16+
node-version: [20.x, 22.x]
1717

1818
steps:
1919
- uses: actions/checkout@v4

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@
9393
"tslib": "^2.6.3",
9494
"undici": "^6.18.2",
9595
"use-intl": "2.22.1",
96-
"zod": "^3.23.8"
96+
"zod": "3.25.67"
9797
}
9898
}

apps/api/src/controllers/admin/values/import-values-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,15 +576,15 @@ export const typeHandlers = {
576576
data.map((item) => {
577577
const data = {
578578
update: {
579-
isDefault: type === ValueType.LICENSE ? item.isDefault ?? false : false,
579+
isDefault: type === ValueType.LICENSE ? (item.isDefault ?? false) : false,
580580
type: type as ValueType,
581581
value: { set: item.value },
582582
licenseType:
583583
type === ValueType.LICENSE ? (item.licenseType as ValueLicenseType) : undefined,
584584
isDisabled: item.isDisabled ?? false,
585585
},
586586
create: {
587-
isDefault: type === ValueType.LICENSE ? item.isDefault ?? false : false,
587+
isDefault: type === ValueType.LICENSE ? (item.isDefault ?? false) : false,
588588
type: type as ValueType,
589589
value: item.value,
590590
isDisabled: item.isDisabled ?? false,

apps/api/src/controllers/dispatch/911-calls/calls-911-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export class Calls911Controller {
315315
description: data.descriptionData ? null : data.description,
316316
name: data.name,
317317
userId: user.id,
318-
positionId: shouldRemovePosition ? null : position?.id ?? call.positionId,
318+
positionId: shouldRemovePosition ? null : (position?.id ?? call.positionId),
319319
descriptionData: data.descriptionData ?? undefined,
320320
situationCodeId: data.situationCode === null ? null : data.situationCode,
321321
typeId: data.type,

apps/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"storage-factory": "^0.2.1",
9595
"use-intl": "2.22.1",
9696
"uuid": "^10.0.0",
97-
"zod": "3.23.8",
97+
"zod": "3.25.67",
9898
"zustand": "^4.5.2"
9999
},
100100
"devDependencies": {

apps/client/src/components/admin/manage/units/tabs/all-units-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function AllUnitsTab({ units }: Props) {
216216
</Link>
217217
) : (
218218
// todo: add information about temporary unit here
219-
unit.user?.username ?? t("Leo.temporaryUnit")
219+
(unit.user?.username ?? t("Leo.temporaryUnit"))
220220
),
221221
callsign: generateCallsign(unit),
222222
badgeNumberString: unit.badgeNumberString,

apps/client/src/components/admin/manage/units/tabs/callsigns-tab/callsigns-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function CallsignsTab({ units }: Props) {
102102
{unit.user.username}
103103
</Link>
104104
) : (
105-
unit.user?.username ?? t("Leo.temporaryUnit")
105+
(unit.user?.username ?? t("Leo.temporaryUnit"))
106106
),
107107
callsign1: unit.callsign,
108108
callsign2: unit.callsign2,

apps/client/src/components/admin/manage/units/tabs/department-whitelisting-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function DepartmentWhitelistingTab({ pendingUnits }: Props) {
105105
{officer.user.username}
106106
</Link>
107107
) : (
108-
officer.user?.username ?? common("Leo.temporaryUnit")
108+
(officer.user?.username ?? common("Leo.temporaryUnit"))
109109
),
110110
actions: (
111111
<>

apps/client/src/components/admin/manage/units/tabs/manage-unit-tab/manage-unit-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function ManageUnitTab({ unit: data }: Props) {
9696
rank: unit.rankId,
9797
position: unit.position ?? "",
9898
suspended: unit.suspended,
99-
badgeNumberString: BADGE_NUMBERS ? unit.badgeNumberString ?? "" : undefined,
99+
badgeNumberString: BADGE_NUMBERS ? (unit.badgeNumberString ?? "") : undefined,
100100
};
101101

102102
return (

0 commit comments

Comments
 (0)