From fe07a550ad2afc5c75db803cee6313b07d944c36 Mon Sep 17 00:00:00 2001 From: Scott Sundahl Date: Tue, 18 Feb 2025 14:20:28 -0700 Subject: [PATCH 1/3] clean up probelems tab in vs code --- .vscode/settings.json | 3 ++- src/api/controllers/userController.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a2f2b1a4..388f4ca7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -44,5 +44,6 @@ "uncopied", "undici", "unrelate" - ] + ], + "cSpell.diagnosticLevel": "Hint" } diff --git a/src/api/controllers/userController.ts b/src/api/controllers/userController.ts index 3fc3c8f2..0fa4fb38 100644 --- a/src/api/controllers/userController.ts +++ b/src/api/controllers/userController.ts @@ -55,7 +55,7 @@ export class UserController { @httpPut('/current/acceptTerms') public async acceptTerms(@request() req: UserRequest, @response() res: Response): Promise { - const doesUserHaveAParticipant = (req.user?.participants?.length ?? 0) >= 1 ?? false; + const doesUserHaveAParticipant = (req.user?.participants?.length ?? 0) >= 1; if (!doesUserHaveAParticipant) { res.status(403).json({ From c3cc3376285cb78b95d4f0cd57028233fd0cf1da Mon Sep 17 00:00:00 2001 From: Scott Sundahl Date: Tue, 18 Feb 2025 14:32:33 -0700 Subject: [PATCH 2/3] spell management correctly --- .../ParticipantManagement/ParticipantManagementItem.tsx | 6 +++--- .../ParticipantManagement/ParticipantManagementTable.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx b/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx index b2092691..6fc94986 100644 --- a/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx +++ b/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx @@ -12,19 +12,19 @@ import EditParticipantDialog from './EditParticipantDialog'; import './ParticipantManagementItem.scss'; -type ParticipantManagmentItemProps = Readonly<{ +type ParticipantManagementItemProps = Readonly<{ participant: ParticipantDTO; apiRoles: ApiRoleDTO[]; participantTypes: ParticipantTypeDTO[]; onUpdateParticipant: (form: UpdateParticipantForm, participant: ParticipantDTO) => Promise; }>; -export function ParticipantManagmentItem({ +export function ParticipantManagementItem({ participant, apiRoles, participantTypes, onUpdateParticipant, -}: ParticipantManagmentItemProps) { +}: ParticipantManagementItemProps) { const [showEditParticipantDialog, setShowEditParticipantDialog] = useState(false); const onOpenChangeEditParticipantDialog = () => { diff --git a/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx b/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx index 2c69c562..feeef11b 100644 --- a/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx +++ b/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx @@ -10,7 +10,7 @@ import { PagingTool } from '../Core/Paging/PagingTool'; import { RowsPerPageValues } from '../Core/Paging/PagingToolHelper'; import { SortableTableHeader } from '../Core/Tables/SortableTableHeader'; import { TableNoDataPlaceholder } from '../Core/Tables/TableNoDataPlaceholder'; -import { ParticipantManagmentItem } from './ParticipantManagementItem'; +import { ParticipantManagementItem } from './ParticipantManagementItem'; import './ParticipantManagementTable.scss'; @@ -116,7 +116,7 @@ function ParticipantManagementTableContent({ {pagedRows.map((participant) => ( - Date: Tue, 18 Feb 2025 14:50:27 -0700 Subject: [PATCH 3/3] add words to spelling list --- .vscode/settings.json | 11 ++++++++++- src/web/components/Home/RotateApiKeyCard.stories.tsx | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 388f4ca7..8d45d3ea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,7 +43,16 @@ "Toastify", "uncopied", "undici", - "unrelate" + "unrelate", + "Keypair", + "typesafe", + "Typesafe", + "integ", + "unifiedid", + "envar", + "ssportal", + "DTOs", + "sendgrid" ], "cSpell.diagnosticLevel": "Hint" } diff --git a/src/web/components/Home/RotateApiKeyCard.stories.tsx b/src/web/components/Home/RotateApiKeyCard.stories.tsx index 6d0fe1bf..37c0e418 100644 --- a/src/web/components/Home/RotateApiKeyCard.stories.tsx +++ b/src/web/components/Home/RotateApiKeyCard.stories.tsx @@ -40,7 +40,7 @@ export const Default: Story = { }, }; -export const MutipleKeysToRotate: Story = { +export const MultipleKeysToRotate: Story = { args: { apiKeysToRotate: [testApiKey1, testApiKey2], },