From f533745422c6cf98803acc8c373352ef1ffa0916 Mon Sep 17 00:00:00 2001 From: Gaurav Mishra Date: Wed, 21 Jan 2026 15:19:33 +0530 Subject: [PATCH 001/492] fix(repo): fix CODEOWNERS de002 to deo002 (#1399) --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8367dacb0..8cfaf1baf 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # Lead developers -* @heliocastro @amritkv @GMishx @de002 +* @heliocastro @amritkv @GMishx @deo002 From 73df34a768c03a16e3a2e3c8f487e9c3dabb89df Mon Sep 17 00:00:00 2001 From: Varun chauhan <115783538+chauhan-varun@users.noreply.github.com> Date: Fri, 23 Jan 2026 10:39:25 +0530 Subject: [PATCH 002/492] refactor: Replace MessageService.error with ApiUtils.reportError across multiple components (#1401) This update standardizes error handling by replacing instances of MessageService.error with ApiUtils.reportError in various components, enhancing consistency in error reporting throughout the application. Signed-off-by: Varun Chauhan chore: remove unused imports refactor: standardize error handling by replacing MessageService.error with ApiUtils.reportError This commit updates multiple components to use ApiUtils.reportError for error reporting, enhancing consistency in error handling across the application. refactor: enhance error handling by replacing Error with ApiError in multiple components This commit updates several components to throw ApiError instances instead of generic Error objects, improving error handling consistency and providing additional context such as HTTP status codes. refactor: unify error handling by replacing MessageService.error with ApiUtils.reportError in DeleteLicenseTypesModal and EditLicense components This commit continues the effort to standardize error reporting across the application by replacing MessageService.error with ApiUtils.reportError in the DeleteLicenseTypesModal and EditLicense components, enhancing consistency in error handling. Tested-by: dearsh.oberoi@siemens.com Reviewed-by: dearsh.oberoi@siemens.com --- .../components/ReleaseEditPage.tsx | 22 +++++----- .../components/DatabaseSanitation.tsx | 13 +++--- .../components/SecondaryDepartmentsTable.tsx | 13 +++--- .../components/FossologyOverview.tsx | 12 +----- .../importexport/components/ImportExport.tsx | 18 +++----- .../add/components/AddLicenseTypes.tsx | 6 +-- .../components/DeleteLicenseTypesModal.tsx | 9 +--- .../components/LicenseTypesDetail.tsx | 13 +++--- .../components/LicenseAdministration.tsx | 24 +++-------- .../changelog/[id]/components/Changelog.tsx | 13 +++--- .../obligations/components/Obligations.tsx | 13 +++--- .../schedule/components/ScheduleList.tsx | 22 ++++------ .../users/components/UserAdministration.tsx | 24 +++-------- .../admin/vendors/components/VendorsList.tsx | 29 +++++-------- .../edit/[id]/components/EditVendor.tsx | 38 ++++++++-------- .../merge/[id]/components/MergeOverview.tsx | 25 +++++------ .../merge/[id]/components/VendorsTable.tsx | 13 +++--- .../components/components/ComponentsTable.tsx | 12 +++--- .../detail/[id]/components/ComponentTable.tsx | 13 +++--- .../[id]/components/DeleteReleaseModal.tsx | 7 +-- .../detail/[id]/components/DetailOverview.tsx | 13 +++--- .../[id]/components/ReleaseOverview.tsx | 13 +++--- .../[id]/merge/components/MergeOverview.tsx | 25 +++++------ .../[id]/split/components/SplitOverview.tsx | 25 +++++------ .../edit/[id]/components/Releases.tsx | 13 +++--- .../detail/[id]/components/DetailOverview.tsx | 13 +++--- .../[id]/components/LinkedPackagesTab.tsx | 12 +++--- .../detail/[id]/components/LinkedReleases.tsx | 13 +++--- .../[id]/components/SPDXAttachments.tsx | 33 ++++++-------- .../[id]/components/SPDXLicenseView.tsx | 13 +++--- .../components/MergeReleaseDataCheck.tsx | 13 +++--- .../merge/components/MergeReleaseOverview.tsx | 22 +++++----- .../merge/components/MergeReleaseTable.tsx | 13 +++--- src/app/[locale]/ecc/components/ECC.tsx | 13 +++--- .../home/components/MyComponentsWidget.tsx | 13 +++--- .../home/components/MyProjectsWidget.tsx | 13 +++--- .../home/components/MySubscriptionsWidget.tsx | 7 +-- .../components/MyTaskAssignmentsWidget.tsx | 13 +++--- .../components/MyTaskSubmissionsWidget.tsx | 13 +++--- .../components/RecentComponentsWidget.tsx | 7 +-- .../home/components/RecentReleasesWidget.tsx | 7 +-- .../licenses/components/LicensePage.tsx | 12 +++--- .../components/LicenseDetailOverview.tsx | 22 ++++------ .../detail/components/Obligations.tsx | 13 +++--- .../licenses/edit/components/EditLicense.tsx | 9 +--- .../edit/components/EditLicenseDetail.tsx | 13 +++--- .../components/AddMainLicenseModal.tsx | 13 +++--- .../packages/components/AddReleaseModal.tsx | 7 +-- .../components/CreateOrEditPackage.tsx | 13 +++--- .../[locale]/packages/components/Packages.tsx | 10 ++--- .../detail/[id]/components/Changelog.tsx | 13 +++--- .../[id]/components/PackageDetailTab.tsx | 12 +++--- .../preferences/components/TokensTable.tsx | 12 +++--- .../components/UserAccessToken.tsx | 13 +++--- .../projects/components/LinkProjects.tsx | 20 ++++++--- .../Obligations/CompareObligation.tsx | 13 +++--- .../LicenseDbObligationsModal.tsx | 22 ++++------ .../ObligationsView/LicenseObligation.tsx | 23 ++++------ .../ObligationsView/ObligationTab.tsx | 13 +++--- .../components/Obligations/ReleaseView.tsx | 6 +-- .../[locale]/projects/components/Projects.tsx | 12 +++--- .../AddLicenseInfoToReleaseModal.tsx | 6 +-- .../[id]/components/AttachmentUsages.tsx | 22 ++++------ .../components/ChangeVulnerabilityModal.tsx | 11 +++-- .../detail/[id]/components/Changelog.tsx | 13 +++--- .../components/DependencyNetworkListView.tsx | 13 +++--- .../components/DependencyNetworkTreeView.tsx | 13 +++--- .../projects/detail/[id]/components/Ecc.tsx | 13 +++--- .../components/ExportProjectSbomModal.tsx | 9 +--- .../[id]/components/LinkedPackagesTab.tsx | 23 ++++------ .../detail/[id]/components/ListView.tsx | 22 ++++------ .../[id]/components/ProjectDetailTab.tsx | 29 ++++++------- .../components/ProjectVulnerabilities.tsx | 7 +-- .../detail/[id]/components/TreeView.tsx | 22 ++++------ .../[id]/components/VulnerabilityTab.tsx | 17 ++++---- .../VulnerabilityTrackingStatus.tsx | 13 +++--- .../edit/[id]/components/EditProject.tsx | 6 +-- .../[id]/components/GenerateLicenseInfo.tsx | 17 ++++---- .../components/GenerateSourceCodeBundle.tsx | 12 +++--- .../requests/components/ClearingRequest.tsx | 13 +++--- .../components/ClosedModerationRequest.tsx | 13 +++--- .../components/OpenModerationRequest.tsx | 13 +++--- .../[locale]/requests/components/Requests.tsx | 7 +-- .../[id]/components/ProposedChanges.tsx | 13 +++--- .../CurrentComponentDetail.tsx | 13 +++--- .../currentRelease/CurrentReleaseDetail.tsx | 13 +++--- .../search/components/KeywordSearch.tsx | 13 +++--- .../add/components/AddVulnerability.tsx | 12 +++--- .../components/DeleteVulnerabilityModal.tsx | 12 ++++-- .../components/Vulnerabilities.tsx | 13 +++--- .../components/VulnerabilityDetailsTab.tsx | 13 +++--- .../[id]/components/EditVulnerability.tsx | 22 ++++------ src/components/Attachments/Attachments.tsx | 23 ++++------ src/components/LicenseClearing.tsx | 13 +++--- .../LinkReleaseToProjectModal.tsx | 43 ++++++++----------- .../Roles/DepartmentModal.tsx | 13 +++--- .../ResourcesUsing/ResourcesUsing.tsx | 13 +++--- .../DeleteItemWarning/DeleteItemWarning.tsx | 8 +--- .../LinkedPackagesModal/LinkPackagesModal.tsx | 13 +++--- .../LinkedProjectsModal/LinkProjectsModal.tsx | 13 +++--- .../LinkedReleasesModal.tsx | 13 +++--- .../SearchLicensesDialog/LicensesDialog.tsx | 13 +++--- .../LinkedReleasesDialog.tsx | 13 +++--- .../LinkedObligationsDialog.tsx | 13 +++--- .../SearchReleasesModal.tsx | 23 ++++------ .../SearchUsersDialog/SelectUsersDialog.tsx | 13 +++--- .../sw360/SearchVendorsModal/VendorDialog.tsx | 13 +++--- src/services/download.service.ts | 7 +-- src/utils/api/api.util.ts | 27 +++++++----- src/utils/index.ts | 4 +- 110 files changed, 638 insertions(+), 995 deletions(-) diff --git a/src/app/[locale]/admin/bulkreleaseedit/components/ReleaseEditPage.tsx b/src/app/[locale]/admin/bulkreleaseedit/components/ReleaseEditPage.tsx index e90f64e68..57d28471d 100644 --- a/src/app/[locale]/admin/bulkreleaseedit/components/ReleaseEditPage.tsx +++ b/src/app/[locale]/admin/bulkreleaseedit/components/ReleaseEditPage.tsx @@ -18,8 +18,7 @@ import React, { Dispatch, type JSX, SetStateAction, useEffect, useMemo, useState import { Alert, Modal, Spinner } from 'react-bootstrap' import { BsXCircle } from 'react-icons/bs' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Release, Vendor } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface AlertData { variant: string @@ -84,13 +83,16 @@ function UpdateReleaseModal({ setReloadKey(reloadKey + 1) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { + if (error instanceof ApiError && error.isAborted) { return } - const message = error instanceof Error ? error.message : String(error) + const message = + error instanceof ApiError ? error.message : error instanceof Error ? error.message : String(error) setAlert({ variant: 'danger', message: ( @@ -416,7 +418,9 @@ export default function BulkReleaseEdit(): JSX.Element { } if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Embedded @@ -427,11 +431,7 @@ export default function BulkReleaseEdit(): JSX.Element { : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/admin/databaseSanitation/components/DatabaseSanitation.tsx b/src/app/[locale]/admin/databaseSanitation/components/DatabaseSanitation.tsx index 3f2ec519e..b7b6a6cdb 100644 --- a/src/app/[locale]/admin/databaseSanitation/components/DatabaseSanitation.tsx +++ b/src/app/[locale]/admin/databaseSanitation/components/DatabaseSanitation.tsx @@ -17,8 +17,7 @@ import { useTranslations } from 'next-intl' import { SW360Table } from 'next-sw360' import { type JSX, useEffect, useMemo, useState } from 'react' import { ErrorDetails, SearchDuplicatesResponse } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' export default function DatabaseSanitation(): JSX.Element { const t = useTranslations('default') @@ -46,16 +45,14 @@ export default function DatabaseSanitation(): JSX.Element { const response = await ApiUtils.GET('databaseSanitation/searchDuplicate', session.data.user.access_token) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as SearchDuplicatesResponse setDuplicates(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/departments/components/SecondaryDepartmentsTable.tsx b/src/app/[locale]/admin/departments/components/SecondaryDepartmentsTable.tsx index 740a60a77..50d3acb5e 100644 --- a/src/app/[locale]/admin/departments/components/SecondaryDepartmentsTable.tsx +++ b/src/app/[locale]/admin/departments/components/SecondaryDepartmentsTable.tsx @@ -21,8 +21,7 @@ import { type JSX, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { BsPencil } from 'react-icons/bs' import { ErrorDetails } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import SecondaryDepartments from './SecondaryDepartments' const SecondaryDepartmentsTable = (): JSX.Element => { @@ -121,17 +120,15 @@ const SecondaryDepartmentsTable = (): JSX.Element => { const response = await ApiUtils.GET('departments/members', session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as SecondaryDepartments setSecondaryDepartments(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/admin/fossology/components/FossologyOverview.tsx b/src/app/[locale]/admin/fossology/components/FossologyOverview.tsx index a3ef6ba8c..4952008d6 100644 --- a/src/app/[locale]/admin/fossology/components/FossologyOverview.tsx +++ b/src/app/[locale]/admin/fossology/components/FossologyOverview.tsx @@ -75,11 +75,7 @@ export default function FossologyOverview(): ReactNode { } }) .catch((error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) .finally(() => { setLoading(false) @@ -98,11 +94,7 @@ export default function FossologyOverview(): ReactNode { } }) .catch((error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) }, [ fetchData, diff --git a/src/app/[locale]/admin/importexport/components/ImportExport.tsx b/src/app/[locale]/admin/importexport/components/ImportExport.tsx index 8a419f764..df970b45c 100644 --- a/src/app/[locale]/admin/importexport/components/ImportExport.tsx +++ b/src/app/[locale]/admin/importexport/components/ImportExport.tsx @@ -17,7 +17,7 @@ import { BsDownload, BsUpload } from 'react-icons/bs' import { ErrorDetails } from '@/object-types' import DownloadService from '@/services/download.service' import MessageService from '@/services/message.service' -import { ApiUtils } from '@/utils' +import { ApiError, ApiUtils } from '@/utils' export default function ImportExportComponent(): ReactNode { const t = useTranslations('default') @@ -55,11 +55,7 @@ export default function ImportExportComponent(): ReactNode { DownloadService.download(url, session, filename, headers) }) .catch((error: unknown) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) } @@ -79,15 +75,13 @@ export default function ImportExportComponent(): ReactNode { const response = await ApiUtils.POST(url, formData, session.user.access_token) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } MessageService.success(t('File uploaded successfully')) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/licenseTypes/add/components/AddLicenseTypes.tsx b/src/app/[locale]/admin/licenseTypes/add/components/AddLicenseTypes.tsx index 63f435c81..85f49581a 100644 --- a/src/app/[locale]/admin/licenseTypes/add/components/AddLicenseTypes.tsx +++ b/src/app/[locale]/admin/licenseTypes/add/components/AddLicenseTypes.tsx @@ -51,11 +51,7 @@ export default function AddLicenseTypes(): JSX.Element { MessageService.error(t('Something went wrong')) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/licenseTypes/components/DeleteLicenseTypesModal.tsx b/src/app/[locale]/admin/licenseTypes/components/DeleteLicenseTypesModal.tsx index f29a0ab8c..18d5d2819 100644 --- a/src/app/[locale]/admin/licenseTypes/components/DeleteLicenseTypesModal.tsx +++ b/src/app/[locale]/admin/licenseTypes/components/DeleteLicenseTypesModal.tsx @@ -73,11 +73,7 @@ export default function DeleteLicenseTypesModal({ licenseTypeId, licenseTypeName } }) .catch((error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) .finally(() => { setLoading(false) @@ -102,8 +98,7 @@ export default function DeleteLicenseTypesModal({ licenseTypeId, licenseTypeName MessageService.error(t('Error when processing')) } } catch (error) { - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/licenseTypes/components/LicenseTypesDetail.tsx b/src/app/[locale]/admin/licenseTypes/components/LicenseTypesDetail.tsx index 19dbb8917..65a911ef9 100644 --- a/src/app/[locale]/admin/licenseTypes/components/LicenseTypesDetail.tsx +++ b/src/app/[locale]/admin/licenseTypes/components/LicenseTypesDetail.tsx @@ -19,9 +19,8 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsFillTrashFill } from 'react-icons/bs' import { Embedded, ErrorDetails, LicenseType } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' import DeleteLicenseTypesModal from './DeleteLicenseTypesModal' type EmbeddedLicenseTypes = Embedded @@ -119,7 +118,9 @@ export default function LicenseTypesDetail(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedLicenseTypes @@ -131,11 +132,7 @@ export default function LicenseTypesDetail(): ReactNode { ) setLicenseTypeCount(data['_embedded']?.['sw360:licenseTypes'].length ?? 0) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/admin/licenses/components/LicenseAdministration.tsx b/src/app/[locale]/admin/licenses/components/LicenseAdministration.tsx index 8e6db4521..ba5f18799 100644 --- a/src/app/[locale]/admin/licenses/components/LicenseAdministration.tsx +++ b/src/app/[locale]/admin/licenses/components/LicenseAdministration.tsx @@ -18,7 +18,7 @@ import { FaRegQuestionCircle } from 'react-icons/fa' import { ErrorDetails } from '@/object-types' import DownloadService from '@/services/download.service' import MessageService from '@/services/message.service' -import { ApiUtils } from '@/utils' +import { ApiError, ApiUtils } from '@/utils' import DeleteAllLicenseInformationModal from './DeleteAllLicenseInformationModal' type ModalType = 'OSADL' | 'SPDX' | undefined @@ -90,11 +90,7 @@ function ConfirmationModal({ type, setType }: { type: ModalType; setType: Dispat ), }) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -208,14 +204,12 @@ export default function LicenseAdministration(): ReactNode { MessageService.success(t('Licenses uploaded successfully')) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -224,11 +218,7 @@ export default function LicenseAdministration(): ReactNode { if (!session.data) return signOut() void DownloadService.download('licenses/downloadLicenses', session.data, `LicensesBackup.lics`) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/obligations/changelog/[id]/components/Changelog.tsx b/src/app/[locale]/admin/obligations/changelog/[id]/components/Changelog.tsx index f884a0c47..6266643a2 100644 --- a/src/app/[locale]/admin/obligations/changelog/[id]/components/Changelog.tsx +++ b/src/app/[locale]/admin/obligations/changelog/[id]/components/Changelog.tsx @@ -18,8 +18,7 @@ import { Nav, Tab } from 'react-bootstrap' import ChangeLogDetail from '@/components/ChangeLog/ChangeLogDetail/ChangeLogDetail' import ChangeLogList from '@/components/ChangeLog/ChangeLogList/ChangeLogList' import { Changelogs, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedChangeLogs = Embedded @@ -84,7 +83,9 @@ function ChangeLog({ obligationId }: { obligationId: string }): JSX.Element { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -100,11 +101,7 @@ function ChangeLog({ obligationId }: { obligationId: string }): JSX.Element { ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/admin/obligations/components/Obligations.tsx b/src/app/[locale]/admin/obligations/components/Obligations.tsx index 2d28f5699..bc9266070 100644 --- a/src/app/[locale]/admin/obligations/components/Obligations.tsx +++ b/src/app/[locale]/admin/obligations/components/Obligations.tsx @@ -21,8 +21,7 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsCheck2Square, BsClipboard, BsFillTrashFill, BsPencil } from 'react-icons/bs' import { Embedded, ErrorDetails, Obligation, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import { ObligationLevelInfo, ObligationLevels } from '../../../../../object-types/Obligation' import DeleteObligationDialog from './DeleteObligationDialog' @@ -233,7 +232,9 @@ function Obligations(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedObligations @@ -245,11 +246,7 @@ function Obligations(): ReactNode { : data['_embedded']['sw360:obligations'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/admin/schedule/components/ScheduleList.tsx b/src/app/[locale]/admin/schedule/components/ScheduleList.tsx index dfe88d6d0..8149b587a 100644 --- a/src/app/[locale]/admin/schedule/components/ScheduleList.tsx +++ b/src/app/[locale]/admin/schedule/components/ScheduleList.tsx @@ -18,7 +18,7 @@ import { JSX, useEffect } from 'react' import { useConfigValue } from '@/contexts' import { ErrorDetails, UIConfigKeys } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import { ScheduleItem } from './ScheduleItem' export default function VendorsList(): JSX.Element { @@ -47,14 +47,12 @@ export default function VendorsList(): JSX.Element { return signOut() } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -83,14 +81,12 @@ export default function VendorsList(): JSX.Element { return signOut() } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/users/components/UserAdministration.tsx b/src/app/[locale]/admin/users/components/UserAdministration.tsx index 09cc1a91f..6b301672c 100644 --- a/src/app/[locale]/admin/users/components/UserAdministration.tsx +++ b/src/app/[locale]/admin/users/components/UserAdministration.tsx @@ -23,7 +23,7 @@ import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, User } from import DownloadService from '@/services/download.service' import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' import EditSecondaryDepartmentAndRolesModal from './EditSecondaryDepartmentsAndRolesModal' type EmbeddedUsers = Embedded @@ -60,11 +60,7 @@ export default function UserAdminstration(): JSX.Element { }) }) .catch((error: unknown) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) } @@ -94,11 +90,7 @@ export default function UserAdminstration(): JSX.Element { } }) .catch((error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) }, []) @@ -300,7 +292,9 @@ export default function UserAdminstration(): JSX.Element { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedUsers @@ -312,11 +306,7 @@ export default function UserAdminstration(): JSX.Element { : data['_embedded']['sw360:users'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/admin/vendors/components/VendorsList.tsx b/src/app/[locale]/admin/vendors/components/VendorsList.tsx index 9e03378ac..f241a2142 100644 --- a/src/app/[locale]/admin/vendors/components/VendorsList.tsx +++ b/src/app/[locale]/admin/vendors/components/VendorsList.tsx @@ -21,8 +21,7 @@ import { Modal, OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsFillTrashFill, BsGit, BsPencil, BsQuestionCircle } from 'react-icons/bs' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Vendor } from '@/object-types' import DownloadService from '@/services/download.service' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' type EmbeddedVendors = Embedded @@ -35,14 +34,12 @@ const DeleteVendor = async (vendorId: string) => { const response = await ApiUtils.DELETE(`vendors/${vendorId}`, session.user.access_token) if (response.status !== StatusCodes.NO_CONTENT) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -260,7 +257,9 @@ export default function VendorsList(): JSX.Element { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedVendors @@ -272,11 +271,7 @@ export default function VendorsList(): JSX.Element { : data['_embedded']['sw360:vendors'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) @@ -350,11 +345,7 @@ export default function VendorsList(): JSX.Element { const currentDate = new Date().toISOString().split('T')[0] void DownloadService.download(url, session, `vendors-${currentDate}.xlsx`) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/vendors/edit/[id]/components/EditVendor.tsx b/src/app/[locale]/admin/vendors/edit/[id]/components/EditVendor.tsx index 0a5cad7d5..dab9401e8 100644 --- a/src/app/[locale]/admin/vendors/edit/[id]/components/EditVendor.tsx +++ b/src/app/[locale]/admin/vendors/edit/[id]/components/EditVendor.tsx @@ -18,7 +18,7 @@ import { ReactNode, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, Release, Vendor } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import VendorDetailForm from '../../../components/VendorDetailForm' type EmbeddedReleases = Embedded @@ -65,19 +65,21 @@ export default function EditVendor({ id }: { id: string }): ReactNode { setReleases([]) } else { const err = (await releasesResponse.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: releasesResponse.status, + }) } } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return + ApiUtils.reportError(error) + if (error instanceof ApiError && !error.isAborted) { + router.push('/admin/vendors') } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) - router.push('/admin/vendors') } })() @@ -104,14 +106,12 @@ export default function EditVendor({ id }: { id: string }): ReactNode { return signOut() } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -125,14 +125,12 @@ export default function EditVendor({ id }: { id: string }): ReactNode { router.push('/admin/vendors') } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/admin/vendors/merge/[id]/components/MergeOverview.tsx b/src/app/[locale]/admin/vendors/merge/[id]/components/MergeOverview.tsx index 33ca0a117..1431a4b06 100644 --- a/src/app/[locale]/admin/vendors/merge/[id]/components/MergeOverview.tsx +++ b/src/app/[locale]/admin/vendors/merge/[id]/components/MergeOverview.tsx @@ -16,8 +16,7 @@ import { useTranslations } from 'next-intl' import { ReactNode, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { ErrorDetails, MergeOrSplitActionType, Vendor } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import MergeVendor from './MergeData' import VendorTable from './VendorsTable' @@ -81,14 +80,12 @@ export default function MergeOverview({ router.push(`/admin/vendors`) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -109,15 +106,15 @@ export default function MergeOverview({ setTargetVendor(vendor) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return + ApiUtils.reportError(error) + if (error instanceof ApiError && !error.isAborted) { + router.push(`/admin/vendors`) } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) - router.push(`/admin/vendors`) } })() diff --git a/src/app/[locale]/admin/vendors/merge/[id]/components/VendorsTable.tsx b/src/app/[locale]/admin/vendors/merge/[id]/components/VendorsTable.tsx index f2ad2e51e..ad1844445 100644 --- a/src/app/[locale]/admin/vendors/merge/[id]/components/VendorsTable.tsx +++ b/src/app/[locale]/admin/vendors/merge/[id]/components/VendorsTable.tsx @@ -17,8 +17,7 @@ import { PageSizeSelector, SW360Table, TableFooter } from 'next-sw360' import { Dispatch, ReactNode, SetStateAction, useEffect, useMemo, useState } from 'react' import { Form, Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Vendor } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedVendors = Embedded @@ -138,7 +137,9 @@ export default function VendorTable({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedVendors @@ -149,11 +150,7 @@ export default function VendorTable({ : data['_embedded']['sw360:vendors'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/components/ComponentsTable.tsx b/src/app/[locale]/components/components/ComponentsTable.tsx index 21c8a09a7..1be4d714a 100644 --- a/src/app/[locale]/components/components/ComponentsTable.tsx +++ b/src/app/[locale]/components/components/ComponentsTable.tsx @@ -23,7 +23,7 @@ import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsFillTrashFill, BsPencil } from 'react-icons/bs' import { Component, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, UserGroupType } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import DeleteComponentDialog from './DeleteComponentDialog' interface Props { @@ -220,7 +220,9 @@ export default function ComponentsTable({ setNumberOfComponent }: Props) { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedComponents @@ -232,11 +234,7 @@ export default function ComponentsTable({ setNumberOfComponent }: Props) { : data['_embedded']['sw360:components'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/detail/[id]/components/ComponentTable.tsx b/src/app/[locale]/components/detail/[id]/components/ComponentTable.tsx index 8a5fe68de..05c50e7eb 100644 --- a/src/app/[locale]/components/detail/[id]/components/ComponentTable.tsx +++ b/src/app/[locale]/components/detail/[id]/components/ComponentTable.tsx @@ -17,8 +17,7 @@ import { PageSizeSelector, SW360Table, TableFooter, TableSearch } from 'next-sw3 import { Dispatch, ReactNode, SetStateAction, useEffect, useMemo, useState } from 'react' import { Form, Spinner } from 'react-bootstrap' import { Component, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedComponents = Embedded @@ -156,7 +155,9 @@ export default function ComponentTable({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedComponents @@ -167,11 +168,7 @@ export default function ComponentTable({ : data['_embedded']['sw360:components'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/detail/[id]/components/DeleteReleaseModal.tsx b/src/app/[locale]/components/detail/[id]/components/DeleteReleaseModal.tsx index 6dd8c2a0d..dc338b0b2 100644 --- a/src/app/[locale]/components/detail/[id]/components/DeleteReleaseModal.tsx +++ b/src/app/[locale]/components/detail/[id]/components/DeleteReleaseModal.tsx @@ -18,7 +18,6 @@ import { useTranslations } from 'next-intl' import { ChangeEvent, ReactNode, useCallback, useEffect, useState } from 'react' import { Alert, Button, Form, Modal } from 'react-bootstrap' import { ActionType, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils' interface Props { @@ -154,11 +153,7 @@ const DeleteReleaseModal = ({ componentId, actionType, releaseId, show, setShow const controller = new AbortController() const signal = controller.signal fetchData(signal).catch((error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) return () => { diff --git a/src/app/[locale]/components/detail/[id]/components/DetailOverview.tsx b/src/app/[locale]/components/detail/[id]/components/DetailOverview.tsx index 96255e8ad..3742d4edd 100644 --- a/src/app/[locale]/components/detail/[id]/components/DetailOverview.tsx +++ b/src/app/[locale]/components/detail/[id]/components/DetailOverview.tsx @@ -40,8 +40,7 @@ import { UserGroupType, } from '@/object-types' import DownloadService from '@/services/download.service' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ReleaseOverview from './ReleaseOverview' import Summary from './Summary' @@ -256,7 +255,9 @@ const DetailOverview = ({ componentId }: Props): ReactNode => { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -272,11 +273,7 @@ const DetailOverview = ({ componentId }: Props): ReactNode => { ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx b/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx index f9eeecb97..f34e72117 100644 --- a/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx +++ b/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx @@ -26,8 +26,7 @@ import fossologyIcon from '@/assets/images/fossology.svg' import LinkReleaseToProjectModal from '@/components/LinkReleaseToProjectModal/LinkReleaseToProjectModal' import FossologyClearing from '@/components/sw360/FossologyClearing/FossologyClearing' import { Embedded, ErrorDetails, ReleaseLink, UserGroupType } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import DeleteReleaseModal from './DeleteReleaseModal' type EmbeddedLinkedReleases = Embedded @@ -217,7 +216,9 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedLinkedReleases @@ -227,11 +228,7 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro : data['_embedded']['sw360:releaseLinks'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/detail/[id]/merge/components/MergeOverview.tsx b/src/app/[locale]/components/detail/[id]/merge/components/MergeOverview.tsx index 41e561417..ae9ec3676 100644 --- a/src/app/[locale]/components/detail/[id]/merge/components/MergeOverview.tsx +++ b/src/app/[locale]/components/detail/[id]/merge/components/MergeOverview.tsx @@ -17,8 +17,7 @@ import { ReactNode, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { AccessControl } from '@/components/AccessControl/AccessControl' import { Component, ErrorDetails, MergeOrSplitActionType, UserGroupType } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ComponentTable from '../../components/ComponentTable' import MergeComponent from './MergeComponent' import MergeComponentConfirmation from './MergeConfirmation' @@ -83,14 +82,12 @@ function MergeOverview({ ) if (response.status !== 200) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setLoading(false) redirect(`/components/detail/${id}`) @@ -114,15 +111,15 @@ function MergeOverview({ setTargetComponent(component) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return + ApiUtils.reportError(error) + if (error instanceof ApiError && !error.isAborted) { + router.push(`components/${id}`) } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) - router.push(`components/${id}`) } })() diff --git a/src/app/[locale]/components/detail/[id]/split/components/SplitOverview.tsx b/src/app/[locale]/components/detail/[id]/split/components/SplitOverview.tsx index 7407e134c..c77e2d87f 100644 --- a/src/app/[locale]/components/detail/[id]/split/components/SplitOverview.tsx +++ b/src/app/[locale]/components/detail/[id]/split/components/SplitOverview.tsx @@ -17,8 +17,7 @@ import { ReactNode, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { AccessControl } from '@/components/AccessControl/AccessControl' import { Component, ErrorDetails, MergeOrSplitActionType, UserGroupType } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ComponentTable from '../../components/ComponentTable' import SplitComponentConfirmation from './ConfirmSplit' import SplitComponent from './SplitData' @@ -96,14 +95,12 @@ function SplitOverview({ const response = await ApiUtils.PATCH('components/splitComponents', payload, session.user.access_token) if (response.status !== 200) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setLoading(false) redirect(`/components/detail/${id}`) @@ -127,15 +124,15 @@ function SplitOverview({ setSourceComponent(component) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return + ApiUtils.reportError(error) + if (error instanceof ApiError && !error.isAborted) { + router.push(`components/${id}`) } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) - router.push(`components/${id}`) } })() diff --git a/src/app/[locale]/components/edit/[id]/components/Releases.tsx b/src/app/[locale]/components/edit/[id]/components/Releases.tsx index fb8f1ea1c..bbe5bf68b 100644 --- a/src/app/[locale]/components/edit/[id]/components/Releases.tsx +++ b/src/app/[locale]/components/edit/[id]/components/Releases.tsx @@ -21,8 +21,7 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { SW360Table } from '@/components/sw360' import { Embedded, ErrorDetails, LinkedRelease, ReleaseLink } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { componentId: string @@ -108,7 +107,9 @@ const Releases = ({ componentId }: Props): ReactNode => { ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedLinkedReleases @@ -118,11 +119,7 @@ const Releases = ({ componentId }: Props): ReactNode => { : data['_embedded']['sw360:releaseLinks'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/releases/detail/[id]/components/DetailOverview.tsx b/src/app/[locale]/components/releases/detail/[id]/components/DetailOverview.tsx index fdd5f3db6..f95ef4f34 100644 --- a/src/app/[locale]/components/releases/detail/[id]/components/DetailOverview.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/components/DetailOverview.tsx @@ -44,8 +44,7 @@ import { UserGroupType, } from '@/object-types' import DownloadService from '@/services/download.service' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ClearingDetails from './ClearingDetails' import CommercialDetails from './CommercialDetails' @@ -236,7 +235,9 @@ const DetailOverview = ({ releaseId, isSPDXFeatureEnabled }: Props): ReactNode = const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -252,11 +253,7 @@ const DetailOverview = ({ releaseId, isSPDXFeatureEnabled }: Props): ReactNode = ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/releases/detail/[id]/components/LinkedPackagesTab.tsx b/src/app/[locale]/components/releases/detail/[id]/components/LinkedPackagesTab.tsx index 629fde7ae..ac06014e4 100644 --- a/src/app/[locale]/components/releases/detail/[id]/components/LinkedPackagesTab.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/components/LinkedPackagesTab.tsx @@ -29,7 +29,7 @@ import { ClientSidePageSizeSelector, ClientSideTableFooter, FilterComponent, SW3 import { Embedded, ErrorDetails, FilterOption, LinkedPackage } from '@/object-types' import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' interface Props { releaseId: string @@ -272,7 +272,9 @@ export default function LinkedPackagesTab({ releaseId }: Props): JSX.Element { const response = await ApiUtils.GET(`releases/${releaseId}`, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedLinkedPackages @@ -282,11 +284,7 @@ export default function LinkedPackagesTab({ releaseId }: Props): JSX.Element { : data['_embedded']['sw360:packages'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/releases/detail/[id]/components/LinkedReleases.tsx b/src/app/[locale]/components/releases/detail/[id]/components/LinkedReleases.tsx index edca3a488..367d84fa2 100644 --- a/src/app/[locale]/components/releases/detail/[id]/components/LinkedReleases.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/components/LinkedReleases.tsx @@ -20,8 +20,7 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { PaddedCell, SW360Table } from '@/components/sw360' import { Embedded, ErrorDetails, NestedRows, ReleaseLink } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedReleaseLinks = Embedded interface Props { @@ -84,7 +83,9 @@ const LinkedReleases = ({ releaseId }: Props): ReactNode => { if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const releaseData = (await response.json()) as EmbeddedReleaseLinks @@ -99,11 +100,7 @@ const LinkedReleases = ({ releaseId }: Props): ReactNode => { }) setData(convertedTreeData) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/releases/detail/[id]/components/SPDXAttachments.tsx b/src/app/[locale]/components/releases/detail/[id]/components/SPDXAttachments.tsx index 077533011..8f5f3c138 100644 --- a/src/app/[locale]/components/releases/detail/[id]/components/SPDXAttachments.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/components/SPDXAttachments.tsx @@ -20,8 +20,7 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { Alert, Button, Spinner } from 'react-bootstrap' import { BsExclamationTriangle } from 'react-icons/bs' import { Attachment, AttachmentTypes, Embedded, ErrorDetails } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import SPDXLicenseView from './SPDXLicenseView' interface Props { @@ -188,7 +187,9 @@ const SPDXAttachments = ({ releaseId }: Props): ReactNode => { ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } setTableData((prev) => { return prev.map((t) => { @@ -207,11 +208,7 @@ const SPDXAttachments = ({ releaseId }: Props): ReactNode => { }) }) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } @@ -227,7 +224,9 @@ const SPDXAttachments = ({ releaseId }: Props): ReactNode => { ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as LicenseInfo @@ -245,11 +244,7 @@ const SPDXAttachments = ({ releaseId }: Props): ReactNode => { }) }) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } @@ -279,7 +274,9 @@ const SPDXAttachments = ({ releaseId }: Props): ReactNode => { ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Embedded @@ -314,11 +311,7 @@ const SPDXAttachments = ({ releaseId }: Props): ReactNode => { setTableData(tableData) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/components/releases/detail/[id]/components/SPDXLicenseView.tsx b/src/app/[locale]/components/releases/detail/[id]/components/SPDXLicenseView.tsx index b438b9945..ea21d1767 100644 --- a/src/app/[locale]/components/releases/detail/[id]/components/SPDXLicenseView.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/components/SPDXLicenseView.tsx @@ -19,8 +19,7 @@ import Button from 'react-bootstrap/Button' import Modal from 'react-bootstrap/Modal' import { BsInfoCircle } from 'react-icons/bs' import { ErrorDetails } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface LicenseInfo { license: string @@ -78,17 +77,15 @@ const SPDXLicenseView = ({ isISR, attachmentName, attachmentId, releaseId, licen ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const fileData = (await response.json()) as SrcFileList setFileList(fileData.data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() diff --git a/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseDataCheck.tsx b/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseDataCheck.tsx index e3fd16af0..34c8a2564 100644 --- a/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseDataCheck.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseDataCheck.tsx @@ -13,9 +13,8 @@ import { StatusCodes } from 'http-status-codes' import { signOut, useSession } from 'next-auth/react' import { Dispatch, ReactNode, SetStateAction, useEffect, useState } from 'react' import { Attachment, ErrorDetails, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' import AdditionalDataSection from './AdditionalDataSection' import ExternalIdsSection from './ExternalIdsSection' import GeneralSection from './GeneralSection' @@ -57,18 +56,16 @@ export default function MergeReleaseDataCheck({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ReleaseDetail setSourceReleaseDetail(CommonUtils.isNullOrUndefined(data) ? null : data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() diff --git a/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseOverview.tsx b/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseOverview.tsx index e7ca7bba1..1f699cd4c 100644 --- a/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseOverview.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseOverview.tsx @@ -25,7 +25,7 @@ import { UserGroupType, } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import MergeReleaseDataCheck from './MergeReleaseDataCheck' import MergeReleaseTable from './MergeReleaseTable' @@ -97,15 +97,15 @@ function MergeReleaseOverview({ setTargetRelease(singleRelease) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return + ApiUtils.reportError(error) + if (!(error instanceof ApiError && error.isAborted)) { + router.push(`releases/${releaseId}`) } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) - router.push(`releases/${releaseId}`) } })() @@ -165,12 +165,10 @@ function MergeReleaseOverview({ return false } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return false + ApiUtils.reportError(error) + if (!(error instanceof ApiError && error.isAborted)) { + router.push(`releases/${releaseId}`) } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) - router.push(`releases/${releaseId}`) return false } } diff --git a/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseTable.tsx b/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseTable.tsx index a9d27df56..6db74bff7 100644 --- a/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseTable.tsx +++ b/src/app/[locale]/components/releases/detail/[id]/merge/components/MergeReleaseTable.tsx @@ -17,8 +17,7 @@ import { ClientSidePageSizeSelector, ClientSideTableFooter, SW360Table, TableSea import { Dispatch, ReactNode, SetStateAction, useEffect, useMemo, useState } from 'react' import { Form, Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedReleases = Embedded @@ -150,7 +149,9 @@ export default function MergeReleaseTable({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedReleases @@ -163,11 +164,7 @@ export default function MergeReleaseTable({ : [], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/ecc/components/ECC.tsx b/src/app/[locale]/ecc/components/ECC.tsx index f0d721e9b..1b6cf6a12 100644 --- a/src/app/[locale]/ecc/components/ECC.tsx +++ b/src/app/[locale]/ecc/components/ECC.tsx @@ -25,8 +25,7 @@ import { PaginationMeta, UserGroupType, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' type EmbeddedECC = Embedded @@ -158,7 +157,9 @@ function ECC(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedECC @@ -169,11 +170,7 @@ function ECC(): ReactNode { : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/home/components/MyComponentsWidget.tsx b/src/app/[locale]/home/components/MyComponentsWidget.tsx index 3aeb5009c..73efa1372 100644 --- a/src/app/[locale]/home/components/MyComponentsWidget.tsx +++ b/src/app/[locale]/home/components/MyComponentsWidget.tsx @@ -16,8 +16,7 @@ import { SW360Table, TableFooter } from 'next-sw360' import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Component, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import HomeTableHeader from './HomeTableHeader' type EmbeddedComponents = Embedded @@ -109,7 +108,9 @@ export default function MyComponentsWidget(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedComponents @@ -120,11 +121,7 @@ export default function MyComponentsWidget(): ReactNode { : data['_embedded']['sw360:components'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/home/components/MyProjectsWidget.tsx b/src/app/[locale]/home/components/MyProjectsWidget.tsx index c43d98359..8203c84ab 100644 --- a/src/app/[locale]/home/components/MyProjectsWidget.tsx +++ b/src/app/[locale]/home/components/MyProjectsWidget.tsx @@ -18,8 +18,7 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import LicenseClearing from '@/components/LicenseClearing' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Project } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import HomeTableHeader from './HomeTableHeader' type EmbeddedProjects = Embedded @@ -124,7 +123,9 @@ export default function MyProjectsWidget(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -135,11 +136,7 @@ export default function MyProjectsWidget(): ReactNode { : data['_embedded']['sw360:projects'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/home/components/MySubscriptionsWidget.tsx b/src/app/[locale]/home/components/MySubscriptionsWidget.tsx index 1c72c6e7e..3e3bcf040 100644 --- a/src/app/[locale]/home/components/MySubscriptionsWidget.tsx +++ b/src/app/[locale]/home/components/MySubscriptionsWidget.tsx @@ -17,7 +17,6 @@ import { useTranslations } from 'next-intl' import { ReactNode, useCallback, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Component, Embedded, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils/index' import HomeTableHeader from './HomeTableHeader' @@ -73,11 +72,7 @@ function MySubscriptionsWidget(): ReactNode { } }) .catch((error: Error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) .finally(() => { setLoading(false) diff --git a/src/app/[locale]/home/components/MyTaskAssignmentsWidget.tsx b/src/app/[locale]/home/components/MyTaskAssignmentsWidget.tsx index adc68fdb9..1f8ea084a 100644 --- a/src/app/[locale]/home/components/MyTaskAssignmentsWidget.tsx +++ b/src/app/[locale]/home/components/MyTaskAssignmentsWidget.tsx @@ -17,8 +17,7 @@ import { SW360Table, TableFooter } from 'next-sw360' import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import type { Embedded, ErrorDetails, ModerationRequest, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import HomeTableHeader from './HomeTableHeader' type EmbeddedTaskAssignments = Embedded @@ -124,7 +123,9 @@ function MyTaskAssignmentsWidget(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedTaskAssignments @@ -135,11 +136,7 @@ function MyTaskAssignmentsWidget(): ReactNode { : data['_embedded']['sw360:moderationRequests'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/home/components/MyTaskSubmissionsWidget.tsx b/src/app/[locale]/home/components/MyTaskSubmissionsWidget.tsx index 8a4d2b1c4..adc3cfd7e 100644 --- a/src/app/[locale]/home/components/MyTaskSubmissionsWidget.tsx +++ b/src/app/[locale]/home/components/MyTaskSubmissionsWidget.tsx @@ -18,8 +18,7 @@ import { ReactNode, useEffect, useMemo, useState } from 'react' import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsFillTrashFill } from 'react-icons/bs' import type { Embedded, ErrorDetails, ModerationRequest, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import HomeTableHeader from './HomeTableHeader' type EmbeddedTaskSubmissions = Embedded @@ -148,7 +147,9 @@ function MyTaskSubmissionsWidget(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedTaskSubmissions @@ -159,11 +160,7 @@ function MyTaskSubmissionsWidget(): ReactNode { : data['_embedded']['sw360:moderationRequests'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/home/components/RecentComponentsWidget.tsx b/src/app/[locale]/home/components/RecentComponentsWidget.tsx index 72ea09a71..bc30f43b6 100644 --- a/src/app/[locale]/home/components/RecentComponentsWidget.tsx +++ b/src/app/[locale]/home/components/RecentComponentsWidget.tsx @@ -18,7 +18,6 @@ import { useTranslations } from 'next-intl' import { type JSX, ReactNode, useCallback, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Component, Embedded } from '@/object-types' -import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils/index' import HomeTableHeader from './HomeTableHeader' @@ -75,11 +74,7 @@ function RecentComponentsWidget(): ReactNode { } }) .catch((error: Error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) .finally(() => { setLoading(false) diff --git a/src/app/[locale]/home/components/RecentReleasesWidget.tsx b/src/app/[locale]/home/components/RecentReleasesWidget.tsx index ff5e11452..5c742e9d4 100644 --- a/src/app/[locale]/home/components/RecentReleasesWidget.tsx +++ b/src/app/[locale]/home/components/RecentReleasesWidget.tsx @@ -18,7 +18,6 @@ import { useTranslations } from 'next-intl' import { type JSX, ReactNode, useCallback, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Embedded, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils/index' import HomeTableHeader from './HomeTableHeader' @@ -77,11 +76,7 @@ function RecentReleasesWidget(): ReactNode { } }) .catch((error: Error) => { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) }) .finally(() => { setLoading(false) diff --git a/src/app/[locale]/licenses/components/LicensePage.tsx b/src/app/[locale]/licenses/components/LicensePage.tsx index 4bc14f0a4..d48354291 100644 --- a/src/app/[locale]/licenses/components/LicensePage.tsx +++ b/src/app/[locale]/licenses/components/LicensePage.tsx @@ -31,7 +31,7 @@ import { } from '@/object-types' import DownloadService from '@/services/download.service' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' function LicensePage(): ReactNode { const params = useSearchParams() @@ -189,7 +189,9 @@ function LicensePage(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Embedded @@ -201,11 +203,7 @@ function LicensePage(): ReactNode { : data['_embedded']['sw360:licenses'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/licenses/detail/components/LicenseDetailOverview.tsx b/src/app/[locale]/licenses/detail/components/LicenseDetailOverview.tsx index c8608d05d..25de565e0 100644 --- a/src/app/[locale]/licenses/detail/components/LicenseDetailOverview.tsx +++ b/src/app/[locale]/licenses/detail/components/LicenseDetailOverview.tsx @@ -31,7 +31,7 @@ import { UserGroupType, } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import Detail from './Detail' import Obligations from './Obligations' @@ -92,17 +92,15 @@ const LicenseDetailOverview = ({ licenseId }: Props): ReactNode => { const response = await ApiUtils.GET(`licenses/${licenseId}`, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const licenses = (await response.json()) as LicenseDetail setLicenseDetail(licenses) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => controller.abort() @@ -222,7 +220,9 @@ const LicenseDetailOverview = ({ licenseId }: Props): ReactNode => { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -238,11 +238,7 @@ const LicenseDetailOverview = ({ licenseId }: Props): ReactNode => { ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/licenses/detail/components/Obligations.tsx b/src/app/[locale]/licenses/detail/components/Obligations.tsx index 70fce7009..fbcccd7c2 100644 --- a/src/app/[locale]/licenses/detail/components/Obligations.tsx +++ b/src/app/[locale]/licenses/detail/components/Obligations.tsx @@ -25,8 +25,7 @@ import { PaddedCell, SW360Table } from 'next-sw360' import { ReactNode, useCallback, useEffect, useMemo, useState } from 'react' import { Form, Spinner } from 'react-bootstrap' import { ErrorDetails, LicenseDetail, NestedRows, Obligation } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' interface Props { licenseId?: string @@ -87,7 +86,9 @@ const Obligations = ({ licenseId, isEditWhitelist, whitelist, setWhitelist }: Pr const response = await ApiUtils.GET(`licenses/${licenseId}`, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as LicenseDetail @@ -100,11 +101,7 @@ const Obligations = ({ licenseId, isEditWhitelist, whitelist, setWhitelist }: Pr }) setWhitelist(newWhitelist) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/app/[locale]/licenses/edit/components/EditLicense.tsx b/src/app/[locale]/licenses/edit/components/EditLicense.tsx index 164b1c339..41e59f590 100644 --- a/src/app/[locale]/licenses/edit/components/EditLicense.tsx +++ b/src/app/[locale]/licenses/edit/components/EditLicense.tsx @@ -81,11 +81,7 @@ function EditLicense({ licenseId }: Props): ReactNode { const license = (await response.json()) as LicenseDetail setLicensePayload(license) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => controller.abort() @@ -134,8 +130,7 @@ function EditLicense({ licenseId }: Props): ReactNode { MessageService.error(responseMessage) } } catch (error) { - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } const deleteLicense = () => { diff --git a/src/app/[locale]/licenses/edit/components/EditLicenseDetail.tsx b/src/app/[locale]/licenses/edit/components/EditLicenseDetail.tsx index f34ce4ec5..8c6e17c40 100644 --- a/src/app/[locale]/licenses/edit/components/EditLicenseDetail.tsx +++ b/src/app/[locale]/licenses/edit/components/EditLicenseDetail.tsx @@ -17,8 +17,7 @@ import { signOut, useSession } from 'next-auth/react' import { useTranslations } from 'next-intl' import { ReactNode, useEffect, useState } from 'react' import { Embedded, ErrorDetails, LicensePayload, LicenseType } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' interface Props { inputValid: boolean @@ -77,16 +76,14 @@ const EditLicenseDetail = ({ const response = await ApiUtils.GET(`licenseTypes`, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const licenses = (await response.json()) as EmbeddedLicenseTypes setLicenseTypes(licenses._embedded?.['sw360:licenseTypes'] ?? []) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => controller.abort() diff --git a/src/app/[locale]/packages/components/AddMainLicenseModal.tsx b/src/app/[locale]/packages/components/AddMainLicenseModal.tsx index 3a73fd441..301ce7dbd 100644 --- a/src/app/[locale]/packages/components/AddMainLicenseModal.tsx +++ b/src/app/[locale]/packages/components/AddMainLicenseModal.tsx @@ -17,8 +17,7 @@ import { PageSizeSelector, SW360Table, TableFooter } from 'next-sw360' import { type JSX, useEffect, useMemo, useState } from 'react' import { Button, Modal, Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, LicenseDetail, Package, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' interface Props { showMainLicenseModal: boolean @@ -183,7 +182,9 @@ export default function AddMainLicenseModal({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Embedded @@ -194,11 +195,7 @@ export default function AddMainLicenseModal({ : data['_embedded']['sw360:licenses'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/app/[locale]/packages/components/AddReleaseModal.tsx b/src/app/[locale]/packages/components/AddReleaseModal.tsx index 33c622e03..47f800bea 100644 --- a/src/app/[locale]/packages/components/AddReleaseModal.tsx +++ b/src/app/[locale]/packages/components/AddReleaseModal.tsx @@ -18,7 +18,6 @@ import { SW360Table } from 'next-sw360' import { type JSX, SetStateAction, useEffect, useMemo, useRef, useState } from 'react' import { Alert, Button, Form, Modal, Spinner } from 'react-bootstrap' import { Embedded, Package, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' import { ApiUtils } from '@/utils/index' @@ -130,11 +129,7 @@ export default function AddReleaseModal({ setReleaseData(tableData) setLoading(false) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setLoading(false) } diff --git a/src/app/[locale]/packages/components/CreateOrEditPackage.tsx b/src/app/[locale]/packages/components/CreateOrEditPackage.tsx index b95ab56a0..dd6980958 100644 --- a/src/app/[locale]/packages/components/CreateOrEditPackage.tsx +++ b/src/app/[locale]/packages/components/CreateOrEditPackage.tsx @@ -17,8 +17,7 @@ import { ShowInfoOnHover } from 'next-sw360' import { Dispatch, ReactNode, SetStateAction, useEffect, useState } from 'react' import { BsXCircle } from 'react-icons/bs' import { ErrorDetails, Package } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import AddMainLicenseModal from './AddMainLicenseModal' import AddReleaseModal from './AddReleaseModal' import DeletePackageModal from './DeletePackageModal' @@ -118,18 +117,16 @@ export default function CreateOrEditPackage({ const response = await ApiUtils.GET(`packages/${packageId}/usage`, session.data.user.access_token) if (response.status !== StatusCodes.OK && response.status !== StatusCodes.NO_CONTENT) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } if (response.status !== StatusCodes.NO_CONTENT) { const data = (await response.json()) as IsPackageUsed setIsPackageUsed(data.isUsed) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() } diff --git a/src/app/[locale]/packages/components/Packages.tsx b/src/app/[locale]/packages/components/Packages.tsx index 1c1d0671b..882c9b17a 100644 --- a/src/app/[locale]/packages/components/Packages.tsx +++ b/src/app/[locale]/packages/components/Packages.tsx @@ -22,7 +22,7 @@ import { BsFillTrashFill, BsPencil } from 'react-icons/bs' import { AccessControl } from '@/components/AccessControl/AccessControl' import { Embedded, ErrorDetails, Package, PageableQueryParam, PaginationMeta, UserGroupType } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import DeletePackageModal from './DeletePackageModal' import { packageManagers } from './PackageManagers' @@ -284,7 +284,9 @@ function Packages(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedPackages @@ -341,9 +343,7 @@ function Packages(): ReactNode { setPackageData(pkgsWithRelease) } catch (error) { - if (!(error instanceof DOMException && error.name === 'AbortError')) { - MessageService.error(error instanceof Error ? error.message : String(error)) - } + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/packages/detail/[id]/components/Changelog.tsx b/src/app/[locale]/packages/detail/[id]/components/Changelog.tsx index b5bf5075c..0a29f507e 100644 --- a/src/app/[locale]/packages/detail/[id]/components/Changelog.tsx +++ b/src/app/[locale]/packages/detail/[id]/components/Changelog.tsx @@ -17,8 +17,7 @@ import { Nav, Tab } from 'react-bootstrap' import ChangeLogDetail from '@/components/ChangeLog/ChangeLogDetail/ChangeLogDetail' import ChangeLogList from '@/components/ChangeLog/ChangeLogList/ChangeLogList' import { Changelogs, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedChangeLogs = Embedded @@ -82,7 +81,9 @@ function ChangeLog({ packageId }: { packageId: string }): ReactNode { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -98,11 +99,7 @@ function ChangeLog({ packageId }: { packageId: string }): ReactNode { ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/packages/detail/[id]/components/PackageDetailTab.tsx b/src/app/[locale]/packages/detail/[id]/components/PackageDetailTab.tsx index cee14b826..f2f4ae1aa 100644 --- a/src/app/[locale]/packages/detail/[id]/components/PackageDetailTab.tsx +++ b/src/app/[locale]/packages/detail/[id]/components/PackageDetailTab.tsx @@ -19,7 +19,7 @@ import { Breadcrumb, ListGroup, Spinner, Tab } from 'react-bootstrap' import { AccessControl } from '@/components/AccessControl/AccessControl' import { ErrorDetails, Package, UserGroupType } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ChangeLog from './Changelog' import Summary from './Summary' @@ -51,7 +51,9 @@ function PackageDetailTab({ packageId }: { packageId: string }): ReactNode { const response = await ApiUtils.GET(`packages/${packageId}`, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Package @@ -61,11 +63,7 @@ function PackageDetailTab({ packageId }: { packageId: string }): ReactNode { ...data, }) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() diff --git a/src/app/[locale]/preferences/components/TokensTable.tsx b/src/app/[locale]/preferences/components/TokensTable.tsx index cdf60930e..928a1209b 100644 --- a/src/app/[locale]/preferences/components/TokensTable.tsx +++ b/src/app/[locale]/preferences/components/TokensTable.tsx @@ -19,7 +19,7 @@ import React, { ReactNode, useEffect, useMemo, useState } from 'react' import { Button, Spinner } from 'react-bootstrap' import { AccessToken, Embedded, ErrorDetails } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' type EmbeddedAccessTokens = Embedded @@ -151,7 +151,9 @@ const TokensTable = ({ generatedToken }: Props): ReactNode => { const response = await ApiUtils.GET('users/tokens', session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedAccessTokens @@ -161,11 +163,7 @@ const TokensTable = ({ generatedToken }: Props): ReactNode => { : data['_embedded']['sw360:restApiTokens'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/preferences/components/UserAccessToken.tsx b/src/app/[locale]/preferences/components/UserAccessToken.tsx index 304482d0c..8eb001e2f 100644 --- a/src/app/[locale]/preferences/components/UserAccessToken.tsx +++ b/src/app/[locale]/preferences/components/UserAccessToken.tsx @@ -19,8 +19,7 @@ import React, { ReactNode, useEffect, useState } from 'react' import { Form } from 'react-bootstrap' import { useConfigValue } from '@/contexts' import { ErrorDetails, UIConfigKeys } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import TokensTable from './TokensTable' @@ -78,14 +77,12 @@ const UserAccessToken = (): ReactNode => { }) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } } diff --git a/src/app/[locale]/projects/components/LinkProjects.tsx b/src/app/[locale]/projects/components/LinkProjects.tsx index 8158bcd11..b46fce08b 100644 --- a/src/app/[locale]/projects/components/LinkProjects.tsx +++ b/src/app/[locale]/projects/components/LinkProjects.tsx @@ -19,7 +19,7 @@ import { type JSX, useEffect, useMemo, useRef, useState } from 'react' import { Alert, Button, Col, Form, Modal, OverlayTrigger, Row, Spinner, Tooltip } from 'react-bootstrap' import { BsInfoCircle } from 'react-icons/bs' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Project } from '@/object-types' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedProjects = Embedded @@ -335,7 +335,9 @@ export default function LinkProjects({ const response = await ApiUtils.GET(url, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -346,10 +348,11 @@ export default function LinkProjects({ : data['_embedded']['sw360:projects'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { + if (error instanceof ApiError && error.isAborted) { return } - const message = error instanceof Error ? error.message : String(error) + const message = + error instanceof ApiError ? error.message : error instanceof Error ? error.message : String(error) setAlert({ variant: 'danger', message: ( @@ -376,7 +379,9 @@ export default function LinkProjects({ const response = await ApiUtils.PATCH(`projects/${projectId}`, data, session.user.access_token) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const res = (await response.json()) as Project setAlert({ @@ -401,10 +406,11 @@ export default function LinkProjects({ ), }) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { + if (error instanceof ApiError && error.isAborted) { return } - const message = error instanceof Error ? error.message : String(error) + const message = + error instanceof ApiError ? error.message : error instanceof Error ? error.message : String(error) setAlert({ variant: 'danger', message: ( diff --git a/src/app/[locale]/projects/components/Obligations/CompareObligation.tsx b/src/app/[locale]/projects/components/Obligations/CompareObligation.tsx index 67b9d4467..6789ef43c 100644 --- a/src/app/[locale]/projects/components/Obligations/CompareObligation.tsx +++ b/src/app/[locale]/projects/components/Obligations/CompareObligation.tsx @@ -19,8 +19,7 @@ import { Button, Col, Form, Modal, OverlayTrigger, Row, Spinner, Tooltip } from import { BsInfoCircle } from 'react-icons/bs' import { PageSizeSelector, SW360Table, TableFooter } from '@/components/sw360' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Project } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedProjects = Embedded @@ -295,7 +294,9 @@ export default function CompareObligation({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -306,11 +307,7 @@ export default function CompareObligation({ : data['_embedded']['sw360:projects'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx index 1a2dd6e4f..226534937 100644 --- a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx +++ b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx @@ -27,7 +27,7 @@ import { PaginationMeta, } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import { ExpandableList } from './ExpandableComponents' const Capitalize = (text: string) => @@ -75,15 +75,13 @@ export default function LicenseDbObligationsModal({ MessageService.success(t('Added obligations successfully')) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } setLoading(false) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -301,7 +299,9 @@ export default function LicenseDbObligationsModal({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK && response.status !== StatusCodes.NO_CONTENT) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } if (response.status === StatusCodes.NO_CONTENT) { return @@ -327,11 +327,7 @@ export default function LicenseDbObligationsModal({ ), ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx index 4a363cbde..39949e826 100644 --- a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx +++ b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx @@ -27,8 +27,7 @@ import { PageableQueryParam, PaginationMeta, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import { ObligationLevels } from '../../../../../../object-types/Obligation' import CompareObligation from '../CompareObligation' import { ExpandableList } from './ExpandableComponents' @@ -467,7 +466,9 @@ export default function LicenseObligation({ projectId, actionType, payload, setP const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ObligationResponse @@ -491,11 +492,7 @@ export default function LicenseObligation({ projectId, actionType, payload, setP ), ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) @@ -524,17 +521,15 @@ export default function LicenseObligation({ projectId, actionType, payload, setP ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ObligationResponse setSelectedProjectObligationData(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/app/[locale]/projects/components/Obligations/ObligationsView/ObligationTab.tsx b/src/app/[locale]/projects/components/Obligations/ObligationsView/ObligationTab.tsx index a3639876e..d05e42624 100644 --- a/src/app/[locale]/projects/components/Obligations/ObligationsView/ObligationTab.tsx +++ b/src/app/[locale]/projects/components/Obligations/ObligationsView/ObligationTab.tsx @@ -27,9 +27,8 @@ import { PageableQueryParam, PaginationMeta, } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' import { ObligationLevels } from '../../../../../../object-types/Obligation' import UpdateCommentModal from './UpdateCommentModal' @@ -334,7 +333,9 @@ export default function ObligationTab({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ObligationResponse @@ -358,11 +359,7 @@ export default function ObligationTab({ ), ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/components/Obligations/ReleaseView.tsx b/src/app/[locale]/projects/components/Obligations/ReleaseView.tsx index 89bca244d..bf5ca50a3 100644 --- a/src/app/[locale]/projects/components/Obligations/ReleaseView.tsx +++ b/src/app/[locale]/projects/components/Obligations/ReleaseView.tsx @@ -167,11 +167,7 @@ export default function ReleaseView({ } setRowData(tableData) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - throw new Error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/components/Projects.tsx b/src/app/[locale]/projects/components/Projects.tsx index df8086d3d..b6152ac6e 100644 --- a/src/app/[locale]/projects/components/Projects.tsx +++ b/src/app/[locale]/projects/components/Projects.tsx @@ -32,7 +32,7 @@ import { UserGroupType, } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ImportSBOMMetadata from '../../../../object-types/cyclonedx/ImportSBOMMetadata' import CreateClearingRequestModal from '../detail/[id]/components/CreateClearingRequestModal' import ViewClearingRequestModal from '../detail/[id]/components/ViewClearingRequestModal' @@ -362,7 +362,9 @@ function Project(): JSX.Element { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -373,11 +375,7 @@ function Project(): JSX.Element { : data['_embedded']['sw360:projects'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/AddLicenseInfoToReleaseModal.tsx b/src/app/[locale]/projects/detail/[id]/components/AddLicenseInfoToReleaseModal.tsx index e8f00aeed..afa81e8b3 100644 --- a/src/app/[locale]/projects/detail/[id]/components/AddLicenseInfoToReleaseModal.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/AddLicenseInfoToReleaseModal.tsx @@ -71,11 +71,7 @@ function AddLicenseInfoToReleaseModal({ projectId, show, setShow }: Props): JSX. MessageService.error(t('Error occurred while processing license information for linked releases')) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setIsLoading(false) } diff --git a/src/app/[locale]/projects/detail/[id]/components/AttachmentUsages.tsx b/src/app/[locale]/projects/detail/[id]/components/AttachmentUsages.tsx index e2bfcafc0..bb5c8d292 100644 --- a/src/app/[locale]/projects/detail/[id]/components/AttachmentUsages.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/AttachmentUsages.tsx @@ -41,7 +41,7 @@ import { UserGroupType, } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type LinkedProjects = Embedded @@ -279,17 +279,15 @@ function AttachmentUsagesComponent({ projectId }: { projectId: string }): JSX.El if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const linkedProjectsData = (await response.json()) as LinkedProjects setLinkedProjects(linkedProjectsData['_embedded']['sw360:projects']) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - throw new Error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessingLinkedProjects(false) @@ -322,7 +320,9 @@ function AttachmentUsagesComponent({ projectId }: { projectId: string }): JSX.El if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const usages = (await response.json()) as AttachmentUsages @@ -373,11 +373,7 @@ function AttachmentUsagesComponent({ projectId }: { projectId: string }): JSX.El } setSaveUsagesPayload(saveUsages) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessingAttachmentUsages(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/ChangeVulnerabilityModal.tsx b/src/app/[locale]/projects/detail/[id]/components/ChangeVulnerabilityModal.tsx index 4d5495a4f..4aceee1ad 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ChangeVulnerabilityModal.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ChangeVulnerabilityModal.tsx @@ -16,7 +16,7 @@ import { ChangeEvent, Dispatch, type JSX, SetStateAction, useEffect, useState } import { Alert, Button, Modal } from 'react-bootstrap' import { BsQuestionCircle } from 'react-icons/bs' import { ErrorDetails, VulnerabilityRatingAndActionPayload } from '@/object-types' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface AlertData { variant: string @@ -90,13 +90,16 @@ export default function ChangeVulnerabilityModal({ return signOut() } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { + if (error instanceof ApiError && error.isAborted) { return } - const message = error instanceof Error ? error.message : String(error) + const message = + error instanceof ApiError ? error.message : error instanceof Error ? error.message : String(error) setAlert({ variant: 'danger', message: ( diff --git a/src/app/[locale]/projects/detail/[id]/components/Changelog.tsx b/src/app/[locale]/projects/detail/[id]/components/Changelog.tsx index 678939fc8..6f4a9dc81 100644 --- a/src/app/[locale]/projects/detail/[id]/components/Changelog.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/Changelog.tsx @@ -19,8 +19,7 @@ import { AccessControl } from '@/components/AccessControl/AccessControl' import ChangeLogDetail from '@/components/ChangeLog/ChangeLogDetail/ChangeLogDetail' import ChangeLogList from '@/components/ChangeLog/ChangeLogList/ChangeLogList' import { Changelogs, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, UserGroupType } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedChangeLogs = Embedded @@ -90,7 +89,9 @@ function ChangeLog({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -106,11 +107,7 @@ function ChangeLog({ ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx index 897a82e9a..92397ca65 100644 --- a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx @@ -27,8 +27,7 @@ import React, { useEffect, useMemo, useState } from 'react' import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsPencil } from 'react-icons/bs' import { ErrorDetails, FilterOption } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ClearingStateBadge from './ClearingStateBadge' interface ListViewData { @@ -465,17 +464,15 @@ const DependencyNetworkListView = ({ projectId }: { projectId: string }) => { if (listViewResponse.status !== StatusCodes.OK) { const err = (await listViewResponse.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: listViewResponse.status, + }) } const listViewData = (await listViewResponse.json()) as Array setListViewData(listViewData) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx index 147cae0c4..f052a02e0 100644 --- a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx @@ -29,9 +29,8 @@ import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsPencil } from 'react-icons/bs' import ExpandableTextList from '@/components/ExpandableList/ExpandableTextLink' import { Attachment, ErrorDetails, FilterOption, NestedRows, TypedEntity } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' interface Props { projectId: string @@ -564,17 +563,15 @@ const DependencyNetworkTreeView = ({ projectId }: Props) => { if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ProjectClearingState setProjectClearingState(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/app/[locale]/projects/detail/[id]/components/Ecc.tsx b/src/app/[locale]/projects/detail/[id]/components/Ecc.tsx index 9f5806aa9..8269d6cb2 100644 --- a/src/app/[locale]/projects/detail/[id]/components/Ecc.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/Ecc.tsx @@ -20,8 +20,7 @@ import { Button, Spinner } from 'react-bootstrap' import { AccessControl } from '@/components/AccessControl/AccessControl' import { ECCInterface, Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, UserGroupType } from '@/object-types' import DownloadService from '@/services/download.service' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedProjectReleaseEcc = Embedded @@ -169,7 +168,9 @@ function EccDetails({ projectId, projectName, projectVersion }: Props): JSX.Elem const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjectReleaseEcc @@ -180,11 +181,7 @@ function EccDetails({ projectId, projectName, projectVersion }: Props): JSX.Elem : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/ExportProjectSbomModal.tsx b/src/app/[locale]/projects/detail/[id]/components/ExportProjectSbomModal.tsx index 048383e52..4b0ca80e3 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ExportProjectSbomModal.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ExportProjectSbomModal.tsx @@ -15,8 +15,7 @@ import { Dispatch, ReactNode, SetStateAction, useEffect, useState } from 'react' import { Alert, Form, Modal, Spinner } from 'react-bootstrap' import { BsQuestionCircle } from 'react-icons/bs' import DownloadService from '@/services/download.service' -import MessageService from '@/services/message.service' -import CommonUtils from '@/utils/common.utils' +import { ApiUtils, CommonUtils } from '@/utils' interface Props { show: boolean @@ -89,11 +88,7 @@ export default function ExportProjectSbomModal({ const endTime = Date.now() setExportTime(parseFloat(((endTime - start) / 1000).toFixed(2))) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setLoading(false) } diff --git a/src/app/[locale]/projects/detail/[id]/components/LinkedPackagesTab.tsx b/src/app/[locale]/projects/detail/[id]/components/LinkedPackagesTab.tsx index 9b62510e0..989821566 100644 --- a/src/app/[locale]/projects/detail/[id]/components/LinkedPackagesTab.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/LinkedPackagesTab.tsx @@ -27,9 +27,8 @@ import { BsPencil } from 'react-icons/bs' import { packageManagers } from '@/app/[locale]/packages/components/PackageManagers' import { ClientSidePageSizeSelector, ClientSideTableFooter, FilterComponent, SW360Table } from '@/components/sw360' import { ErrorDetails, FilterOption, Package, Project, ReleaseClearingStateMapping } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' interface Props { projectId: string @@ -334,17 +333,15 @@ export default function LinkedPackagesTab({ projectId }: Props): JSX.Element { ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Package[] setPackagesData(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowPackagesProcessing(false) @@ -373,17 +370,15 @@ export default function LinkedPackagesTab({ projectId }: Props): JSX.Element { const response = await ApiUtils.GET(`projects/${projectId}`, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Project setProjectData(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProjectProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/ListView.tsx b/src/app/[locale]/projects/detail/[id]/components/ListView.tsx index 8653c0dae..1bcf4c7ea 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ListView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ListView.tsx @@ -25,7 +25,7 @@ import { type JSX, useCallback, useEffect, useMemo, useState } from 'react' import { Button, Modal, OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { FaFile, FaPencilAlt } from 'react-icons/fa' import { Embedded, ErrorDetails, FilterOption, LicenseClearing, Project, Release, TypedEntity } from '@/object-types' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Attachment { attachmentType: string @@ -677,16 +677,14 @@ export default function ListView({ if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const licenseClearingData = (await response.json()) as LicenseClearing setLicenseClearing(licenseClearingData) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - throw new Error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) @@ -718,16 +716,14 @@ export default function ListView({ ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const linkedProjectsData = (await response.json()) as LinkedProjects setLinkedProjects(linkedProjectsData['_embedded']['sw360:projects']) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - throw new Error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/ProjectDetailTab.tsx b/src/app/[locale]/projects/detail/[id]/components/ProjectDetailTab.tsx index 8587095a6..0481f2fbd 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ProjectDetailTab.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ProjectDetailTab.tsx @@ -26,7 +26,7 @@ import { UserGroupType, } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ImportSBOMMetadata from '../../../../../../object-types/cyclonedx/ImportSBOMMetadata' import ImportSBOMModal from '../../../components/ImportSBOMModal' import LinkProjects from '../../../components/LinkProjects' @@ -97,7 +97,9 @@ export default function ViewProjects({ projectId }: { projectId: string }): JSX. ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as SummaryDataType | AdministrationDataType @@ -105,11 +107,7 @@ export default function ViewProjects({ projectId }: { projectId: string }): JSX. setSummaryData(data as SummaryDataType) setAdministrationData(data as AdministrationDataType) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() @@ -134,16 +132,14 @@ export default function ViewProjects({ projectId }: { projectId: string }): JSX. ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ClearingDetailsCount setClearingDetailCount(data) } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => controller.abort() @@ -200,7 +196,9 @@ export default function ViewProjects({ projectId }: { projectId: string }): JSX. } if (resp.status !== StatusCodes.OK) { - throw new Error(body?.message ?? body?.error ?? `Status ${resp.status}`) + throw new ApiError(body?.message ?? body?.error ?? `Status ${resp.status}`, { + status: resp.status, + }) } const obligations = body?.obligations ?? {} @@ -216,8 +214,7 @@ export default function ViewProjects({ projectId }: { projectId: string }): JSX. setObligationsTotal(total) setObligationsNonOpenCount(nonOpen) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') return - MessageService.error(error instanceof Error ? error.message : String(error)) + ApiUtils.reportError(error) } finally { setObligationsLoading(false) } diff --git a/src/app/[locale]/projects/detail/[id]/components/ProjectVulnerabilities.tsx b/src/app/[locale]/projects/detail/[id]/components/ProjectVulnerabilities.tsx index d60191080..429b07650 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ProjectVulnerabilities.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ProjectVulnerabilities.tsx @@ -15,7 +15,6 @@ import { signOut, useSession } from 'next-auth/react' import { type JSX, useEffect, useState } from 'react' import { Tab, Tabs } from 'react-bootstrap' import { Embedded, Project, ProjectData, ProjectVulnerabilityTabType } from '@/object-types' -import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils' import VulnerabilityTab from './VulnerabilityTab' @@ -75,11 +74,7 @@ export default function ProjectVulnerabilities({ projectData }: { projectData: P extractLinkedProjects(data._embedded['sw360:projects'], d) setData(d) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() diff --git a/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx b/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx index 73e2d4ab0..d2c419143 100644 --- a/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx @@ -39,7 +39,7 @@ import { UIConfigKeys, UserGroupType, } from '@/object-types' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import AddLicenseInfoToReleaseModal from './AddLicenseInfoToReleaseModal' const Capitalize = (text: string) => @@ -788,17 +788,15 @@ export default function TreeView({ projectId }: { projectId: string }): JSX.Elem if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const licenseClearingData = (await response.json()) as LicenseClearing setLicenseClearing(licenseClearingData) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - throw new Error(message) + ApiUtils.reportError(error) } finally { setIsLoadingLicenseClearing(false) } @@ -829,17 +827,15 @@ export default function TreeView({ projectId }: { projectId: string }): JSX.Elem if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const linkedProjectsData = (await response.json()) as LinkedProjects setLinkedProjects(linkedProjectsData['_embedded']['sw360:projects']) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - throw new Error(message) + ApiUtils.reportError(error) } finally { setIsLoadingLinkedProjects(false) } diff --git a/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTab.tsx b/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTab.tsx index 8142c0140..a447b8fc0 100644 --- a/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTab.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTab.tsx @@ -27,8 +27,7 @@ import { ProjectVulnerabilityTabType, VulnerabilityRatingAndActionPayload, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ChangeVulnerabilityModal from './ChangeVulnerabilityModal' const Capitalize = (text: string) => @@ -241,7 +240,9 @@ export default function VulnerabilityTab({ const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjectVulnerabilitySummary @@ -265,7 +266,9 @@ export default function VulnerabilityTab({ const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjectVulnerabilities @@ -278,11 +281,7 @@ export default function VulnerabilityTab({ ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTrackingStatus.tsx b/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTrackingStatus.tsx index 97942c505..48e239873 100644 --- a/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTrackingStatus.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/VulnerabilityTrackingStatus.tsx @@ -25,8 +25,7 @@ import { ProjectVulnerabilityTrackingStatus, VulnerabilityTrackingStatus, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' export default function VulnerabilityTrackingStatusComponent({ projectData, @@ -133,18 +132,16 @@ export default function VulnerabilityTrackingStatusComponent({ const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ProjectVulnerabilityTrackingStatus setPaginationMeta(data.page) setVulnerabilityData(data.vulnerabilityTrackingStatus ?? []) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/edit/[id]/components/EditProject.tsx b/src/app/[locale]/projects/edit/[id]/components/EditProject.tsx index d102dcc48..d0761aebc 100644 --- a/src/app/[locale]/projects/edit/[id]/components/EditProject.tsx +++ b/src/app/[locale]/projects/edit/[id]/components/EditProject.tsx @@ -666,11 +666,7 @@ function EditProject({ ) } } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx b/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx index 4a0c4c261..5de7c47fe 100644 --- a/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx +++ b/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx @@ -32,8 +32,7 @@ import { TypedEntity, UserGroupType, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import DownloadLicenseInfoModal from './DownloadLicenseInfoModal' import LicenseInfoDownloadConfirmationModal from './LicenseInfoDownloadConfirmation' @@ -771,7 +770,9 @@ function GenerateLicenseInfo({ responses.map(async (r) => { if (r.status !== StatusCodes.OK) { const err = (await r.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: r.status, + }) } }) @@ -805,7 +806,9 @@ function GenerateLicenseInfo({ licenseResponses.map(async (r) => { if (r.status !== StatusCodes.OK) { const err = (await r.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: r.status, + }) } }) const _licenses = licenseResponses.map(async (licRes) => (await licRes.json()) as License[]) @@ -869,11 +872,7 @@ function GenerateLicenseInfo({ } setSaveUsagesPayload(saveUsages) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/projects/generateSourceCode/[id]/components/GenerateSourceCodeBundle.tsx b/src/app/[locale]/projects/generateSourceCode/[id]/components/GenerateSourceCodeBundle.tsx index cd9c5f128..28429da29 100644 --- a/src/app/[locale]/projects/generateSourceCode/[id]/components/GenerateSourceCodeBundle.tsx +++ b/src/app/[locale]/projects/generateSourceCode/[id]/components/GenerateSourceCodeBundle.tsx @@ -34,7 +34,7 @@ import { } from '@/object-types' import DownloadService from '@/services/download.service' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type LinkedProjects = Embedded @@ -189,7 +189,9 @@ function GenerateSourceCodeBundle({ responses.map(async (r) => { if (r.status !== StatusCodes.OK) { const err = (await r.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: r.status, + }) } }) @@ -232,11 +234,7 @@ function GenerateSourceCodeBundle({ } setSaveUsagesPayload(saveUsages) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/requests/components/ClearingRequest.tsx b/src/app/[locale]/requests/components/ClearingRequest.tsx index f1b5ea812..c9147b197 100644 --- a/src/app/[locale]/requests/components/ClearingRequest.tsx +++ b/src/app/[locale]/requests/components/ClearingRequest.tsx @@ -28,8 +28,7 @@ import { RequestType, UserGroupType, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' type EmbeddedClearingRequest = Embedded @@ -383,7 +382,9 @@ function ClearingRequestComponent({ requestType }: { requestType: RequestType }) const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedClearingRequest @@ -393,11 +394,7 @@ function ClearingRequestComponent({ requestType }: { requestType: RequestType }) : data['_embedded']['sw360:clearingRequests'] setClearingRequestDataData(clearingRequests) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/requests/components/ClosedModerationRequest.tsx b/src/app/[locale]/requests/components/ClosedModerationRequest.tsx index cf708af15..2394269c3 100644 --- a/src/app/[locale]/requests/components/ClosedModerationRequest.tsx +++ b/src/app/[locale]/requests/components/ClosedModerationRequest.tsx @@ -19,8 +19,7 @@ import { ClientSidePageSizeSelector, ClientSideTableFooter, SW360Table } from 'n import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, ModerationRequest } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import ExpandingModeratorCell from './ExpandingModeratorCell' type EmbeddedModerationRequest = Embedded @@ -169,7 +168,9 @@ function ClosedModerationRequest(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedModerationRequest @@ -182,11 +183,7 @@ function ClosedModerationRequest(): ReactNode { ) setModerationRequestData(openModerationRequests) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/requests/components/OpenModerationRequest.tsx b/src/app/[locale]/requests/components/OpenModerationRequest.tsx index 7a0b9a70b..ab709cea8 100644 --- a/src/app/[locale]/requests/components/OpenModerationRequest.tsx +++ b/src/app/[locale]/requests/components/OpenModerationRequest.tsx @@ -19,8 +19,7 @@ import { ClientSidePageSizeSelector, ClientSideTableFooter, SW360Table } from 'n import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, ModerationRequest } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils/index' +import { ApiError, ApiUtils, CommonUtils } from '@/utils/index' import BulkDeclineModerationRequestModal from './BulkDeclineModerationRequestModal' import ExpandingModeratorCell from './ExpandingModeratorCell' @@ -193,7 +192,9 @@ function OpenModerationRequest(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedModerationRequest @@ -206,11 +207,7 @@ function OpenModerationRequest(): ReactNode { ) setModerationRequestData(openModerationRequests) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/requests/components/Requests.tsx b/src/app/[locale]/requests/components/Requests.tsx index e02de447e..1123a6709 100644 --- a/src/app/[locale]/requests/components/Requests.tsx +++ b/src/app/[locale]/requests/components/Requests.tsx @@ -18,7 +18,6 @@ import { ReactNode, useEffect, useState } from 'react' import { Col, ListGroup, Row, Tab } from 'react-bootstrap' import { AccessControl } from '@/components/AccessControl/AccessControl' import { ClearingRequest, Embedded, ModerationRequest, RequestType, UserGroupType } from '@/object-types' -import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils/index' import ClearingRequestComponent from './ClearingRequest' import ClosedModerationRequest from './ClosedModerationRequest' @@ -199,11 +198,7 @@ function Requests(): ReactNode | undefined { setOpenClearingRequestCount(openCRCount) setClosedClearingRequestCount(closedCRCount) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => { diff --git a/src/app/[locale]/requests/moderationRequest/[id]/components/ProposedChanges.tsx b/src/app/[locale]/requests/moderationRequest/[id]/components/ProposedChanges.tsx index 56e1d1d00..d56fd53be 100644 --- a/src/app/[locale]/requests/moderationRequest/[id]/components/ProposedChanges.tsx +++ b/src/app/[locale]/requests/moderationRequest/[id]/components/ProposedChanges.tsx @@ -17,9 +17,8 @@ import { SW360Table } from 'next-sw360' import { ReactNode, useEffect, useMemo, useState } from 'react' import { Spinner } from 'react-bootstrap' import { Attachment, ErrorDetails, ModerationRequestDetails, RequestDocumentTypes } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' import TableHeader from './TableHeader' type RowValue = @@ -410,7 +409,9 @@ export default function ProposedChanges({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } let additions: Record = {}, @@ -432,11 +433,7 @@ export default function ProposedChanges({ populateTableData(additions, deletions, data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/app/[locale]/requests/moderationRequest/[id]/components/currentComponent/CurrentComponentDetail.tsx b/src/app/[locale]/requests/moderationRequest/[id]/components/currentComponent/CurrentComponentDetail.tsx index c728aa919..67f234a9d 100644 --- a/src/app/[locale]/requests/moderationRequest/[id]/components/currentComponent/CurrentComponentDetail.tsx +++ b/src/app/[locale]/requests/moderationRequest/[id]/components/currentComponent/CurrentComponentDetail.tsx @@ -32,8 +32,7 @@ import { PageableQueryParam, PaginationMeta, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedChangelogs = Embedded type EmbeddedVulnerabilities = Embedded @@ -148,7 +147,9 @@ const CurrentComponentDetail = ({ componentId }: Props): ReactNode => { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -164,11 +165,7 @@ const CurrentComponentDetail = ({ componentId }: Props): ReactNode => { ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/requests/moderationRequest/[id]/components/currentRelease/CurrentReleaseDetail.tsx b/src/app/[locale]/requests/moderationRequest/[id]/components/currentRelease/CurrentReleaseDetail.tsx index 89ff74f00..85792eb1d 100644 --- a/src/app/[locale]/requests/moderationRequest/[id]/components/currentRelease/CurrentReleaseDetail.tsx +++ b/src/app/[locale]/requests/moderationRequest/[id]/components/currentRelease/CurrentReleaseDetail.tsx @@ -34,8 +34,7 @@ import { ReleaseDetail, ReleaseTabIds, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' type EmbeddedChangelogs = Embedded @@ -145,7 +144,9 @@ const CurrentReleaseDetail = ({ releaseId }: Props): ReactNode => { const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { @@ -161,11 +162,7 @@ const CurrentReleaseDetail = ({ releaseId }: Props): ReactNode => { ) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/search/components/KeywordSearch.tsx b/src/app/[locale]/search/components/KeywordSearch.tsx index fc55fe05c..198487e1d 100644 --- a/src/app/[locale]/search/components/KeywordSearch.tsx +++ b/src/app/[locale]/search/components/KeywordSearch.tsx @@ -17,8 +17,7 @@ import { OverlayTrigger, Tooltip } from 'react-bootstrap' import { BsInfoCircle } from 'react-icons/bs' import icons from '@/assets/icons/icons.svg' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, SearchResult } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface SEARCH_STATE { project: boolean @@ -225,7 +224,9 @@ function KeywordSearch({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token) if (response.status !== StatusCodes.OK && response.status !== StatusCodes.NO_CONTENT) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedSearchResults @@ -234,11 +235,7 @@ function KeywordSearch({ setPaginationMeta(data.page) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/vulnerabilities/add/components/AddVulnerability.tsx b/src/app/[locale]/vulnerabilities/add/components/AddVulnerability.tsx index 76d9b9e40..2831c5e1c 100644 --- a/src/app/[locale]/vulnerabilities/add/components/AddVulnerability.tsx +++ b/src/app/[locale]/vulnerabilities/add/components/AddVulnerability.tsx @@ -18,7 +18,7 @@ import { ReactNode, useEffect, useState } from 'react' import { AccessControl } from '@/components/AccessControl/AccessControl' import { ErrorDetails, InputKeyValue, UserGroupType, Vulnerability } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import AddValues from '../../components/AddValues' import CVEReferences from '../../components/CVEReferences' import AddVendorAdvisory from '../../components/VendorAdvisories' @@ -94,14 +94,12 @@ function AddVulnerability(): ReactNode { router.push('/vulnerabilities/detail/' + data.externalId) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/app/[locale]/vulnerabilities/components/DeleteVulnerabilityModal.tsx b/src/app/[locale]/vulnerabilities/components/DeleteVulnerabilityModal.tsx index 824141544..d4609dd03 100644 --- a/src/app/[locale]/vulnerabilities/components/DeleteVulnerabilityModal.tsx +++ b/src/app/[locale]/vulnerabilities/components/DeleteVulnerabilityModal.tsx @@ -17,7 +17,7 @@ import { Dispatch, type JSX, ReactNode, SetStateAction, useEffect, useState } fr import { Alert, Button, Modal } from 'react-bootstrap' import { BsQuestionCircle } from 'react-icons/bs' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface AlertData { variant: string @@ -92,13 +92,17 @@ export default function DeleteVulnerabilityModal({ }) } } else { - throw new Error(t('Error when removing vulnerability')) + throw new ApiError(t('Error when removing vulnerability'), { + status: response.status, + }) } } else { - throw new Error(t('Error when removing vulnerability')) + throw new ApiError(t('Error when removing vulnerability'), { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { + if (error instanceof ApiError && error.isAborted) { return } if (isEditPage) { diff --git a/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx b/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx index 681ca2d60..f70dac410 100644 --- a/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx +++ b/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx @@ -27,8 +27,7 @@ import { UserGroupType, Vulnerability, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import DeleteVulnerabilityModal from './DeleteVulnerabilityModal' type EmbeddedVulnerabilities = Embedded @@ -249,7 +248,9 @@ function Vulnerabilities(): ReactNode { const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedVulnerabilities @@ -261,11 +262,7 @@ function Vulnerabilities(): ReactNode { : data['_embedded']['sw360:vulnerabilityApiDTOes'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/app/[locale]/vulnerabilities/detail/[id]/components/VulnerabilityDetailsTab.tsx b/src/app/[locale]/vulnerabilities/detail/[id]/components/VulnerabilityDetailsTab.tsx index 3673c4b18..124e9d41b 100644 --- a/src/app/[locale]/vulnerabilities/detail/[id]/components/VulnerabilityDetailsTab.tsx +++ b/src/app/[locale]/vulnerabilities/detail/[id]/components/VulnerabilityDetailsTab.tsx @@ -17,8 +17,7 @@ import { useTranslations } from 'next-intl' import { ReactNode, useEffect, useState } from 'react' import { Breadcrumb, Col, ListGroup, Row, Spinner, Tab } from 'react-bootstrap' import { ErrorDetails, Vulnerability } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import MetaData from './MetaData' import References from './References' import Summary from './Summary' @@ -56,18 +55,16 @@ export default function VulnerabilityDetailsTab({ vulnerabilityId }: { vulnerabi if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Vulnerability setSummaryData(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() diff --git a/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx b/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx index 21e500037..b79636daf 100644 --- a/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx +++ b/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx @@ -19,7 +19,7 @@ import { Spinner } from 'react-bootstrap' import { AccessControl } from '@/components/AccessControl/AccessControl' import { ErrorDetails, UserGroupType, Vulnerability } from '@/object-types' import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import AddValues from '../../../components/AddValues' import CVEReferences from '../../../components/CVEReferences' import DeleteVulnerabilityModal from '../../../components/DeleteVulnerabilityModal' @@ -84,7 +84,9 @@ function EditVulnerability({ vulnerabilityId }: { vulnerabilityId: string }): Re if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Vulnerability @@ -130,11 +132,7 @@ function EditVulnerability({ vulnerabilityId }: { vulnerabilityId: string }): Re vulnerableConfiguration: data.vulnerableConfiguration ?? {}, }) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() @@ -199,14 +197,12 @@ function EditVulnerability({ vulnerabilityId }: { vulnerabilityId: string }): Re router.push('/vulnerabilities/detail/' + vulnerabilityId) } else { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/components/Attachments/Attachments.tsx b/src/components/Attachments/Attachments.tsx index b34082e31..6415f5742 100644 --- a/src/components/Attachments/Attachments.tsx +++ b/src/components/Attachments/Attachments.tsx @@ -24,8 +24,7 @@ import { AccessControl } from '@/components/AccessControl/AccessControl' import CDXImportStatus from '@/components/CDXImportStatus/CDXImportStatus' import { Attachment, Embedded, ErrorDetails, NestedRows, UserGroupType } from '@/object-types' import DownloadService from '@/services/download.service' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ImportSummary from '../../object-types/cyclonedx/ImportSummary' type EmbeddedAttachments = Embedded @@ -58,14 +57,12 @@ function Attachments({ documentId, documentType }: { documentId: string; documen setImportStatusData(data) } else { const err = (await res.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: res.status, + }) } } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -277,7 +274,9 @@ function Attachments({ documentId, documentType }: { documentId: string; documen ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedAttachments @@ -297,11 +296,7 @@ function Attachments({ documentId, documentType }: { documentId: string; documen ), ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/components/LicenseClearing.tsx b/src/components/LicenseClearing.tsx index b54b052b8..4b6f23e26 100644 --- a/src/components/LicenseClearing.tsx +++ b/src/components/LicenseClearing.tsx @@ -14,8 +14,7 @@ import { getSession, signOut } from 'next-auth/react' import { ReactNode, useEffect, useState } from 'react' import { Spinner } from 'react-bootstrap' import { ErrorDetails } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface LicenseClearingData { 'Release Count': number @@ -39,18 +38,16 @@ export default function LicenseClearing({ projectId }: { projectId: string }): R ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as LicenseClearingData setLcData(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => controller.abort() diff --git a/src/components/LinkReleaseToProjectModal/LinkReleaseToProjectModal.tsx b/src/components/LinkReleaseToProjectModal/LinkReleaseToProjectModal.tsx index 78ef0e2a1..123b0cbac 100644 --- a/src/components/LinkReleaseToProjectModal/LinkReleaseToProjectModal.tsx +++ b/src/components/LinkReleaseToProjectModal/LinkReleaseToProjectModal.tsx @@ -21,8 +21,7 @@ import { Alert, Button, Col, Form, Modal, OverlayTrigger, Row, Spinner, Tooltip import { BsCheck2 } from 'react-icons/bs' import { PageSizeSelector, SW360Table, TableFooter } from '@/components/sw360' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Project, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { releaseId?: string @@ -316,7 +315,9 @@ const LinkReleaseToProjectModal = ({ releaseId, show, setShow }: Props): JSX.Ele const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -327,11 +328,7 @@ const LinkReleaseToProjectModal = ({ releaseId, show, setShow }: Props): JSX.Ele : data['_embedded']['sw360:projects'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } @@ -372,16 +369,14 @@ const LinkReleaseToProjectModal = ({ releaseId, show, setShow }: Props): JSX.Ele ) if (response.status !== StatusCodes.CREATED) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } setShowMessage(true) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } @@ -395,7 +390,9 @@ const LinkReleaseToProjectModal = ({ releaseId, show, setShow }: Props): JSX.Ele const response = await ApiUtils.GET(`releases/usedBy/${releaseId}`, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -405,11 +402,7 @@ const LinkReleaseToProjectModal = ({ releaseId, show, setShow }: Props): JSX.Ele : data['_embedded']['sw360:projects'].map((p) => p._links.self.href.split('/').at(-1) ?? ''), ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowLinkedProjectsProcessing(false) } @@ -437,17 +430,15 @@ const LinkReleaseToProjectModal = ({ releaseId, show, setShow }: Props): JSX.Ele const response = await ApiUtils.GET(`releases/${releaseId}`, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as ReleaseDetail setLinkingReleaseName(data.name) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } })() return () => controller.abort() diff --git a/src/components/ProjectAddSummary/Roles/DepartmentModal.tsx b/src/components/ProjectAddSummary/Roles/DepartmentModal.tsx index 243b242c8..a5ef59a1c 100644 --- a/src/components/ProjectAddSummary/Roles/DepartmentModal.tsx +++ b/src/components/ProjectAddSummary/Roles/DepartmentModal.tsx @@ -17,9 +17,8 @@ import { SW360Table } from 'next-sw360' import React, { type JSX, useEffect, useMemo, useState } from 'react' import { Button, Col, Form, Modal, Row, Spinner } from 'react-bootstrap' import { ErrorDetails } from '@/object-types' -import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' -import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' interface Props { show: boolean @@ -119,7 +118,9 @@ export default function DepartmentModal({ show, setShow, department, setDepartme const response = await ApiUtils.GET('users/groupList', session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const departmentGroups = (await response.json()) as DepartmentGroups @@ -137,11 +138,7 @@ export default function DepartmentModal({ show, setShow, department, setDepartme setDepartments(transformedDepartments) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/components/ResourcesUsing/ResourcesUsing.tsx b/src/components/ResourcesUsing/ResourcesUsing.tsx index 17a279ae4..a2a0def0a 100644 --- a/src/components/ResourcesUsing/ResourcesUsing.tsx +++ b/src/components/ResourcesUsing/ResourcesUsing.tsx @@ -13,8 +13,7 @@ import { StatusCodes } from 'http-status-codes' import { signOut, useSession } from 'next-auth/react' import { type JSX, useEffect, useState } from 'react' import { DocumentTypes, ErrorDetails, Resources } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import ComponentsUsing from './ComponentsUsing' import ProjectsUsing from './ProjectsUsing' @@ -57,17 +56,15 @@ const ResourcesUsing = ({ documentId, documentType, documentName }: Props): JSX. } if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as Resources setResourceUsing(data) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/DeleteItemWarning/DeleteItemWarning.tsx b/src/components/sw360/DeleteItemWarning/DeleteItemWarning.tsx index 0406da389..53bf82429 100644 --- a/src/components/sw360/DeleteItemWarning/DeleteItemWarning.tsx +++ b/src/components/sw360/DeleteItemWarning/DeleteItemWarning.tsx @@ -14,7 +14,7 @@ import React, { type JSX } from 'react' import { Modal } from 'react-bootstrap' import { BsQuestionCircle } from 'react-icons/bs' import { AddtionalDataType, RolesType } from '@/object-types' -import MessageService from '@/services/message.service' +import { ApiUtils } from '@/utils' interface Input { key: string @@ -66,11 +66,7 @@ const DeleteItemWarning = ({ } setIsDeleteItem(false) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/components/sw360/LinkedPackagesModal/LinkPackagesModal.tsx b/src/components/sw360/LinkedPackagesModal/LinkPackagesModal.tsx index f5e71f4c1..43963b6e6 100644 --- a/src/components/sw360/LinkedPackagesModal/LinkPackagesModal.tsx +++ b/src/components/sw360/LinkedPackagesModal/LinkPackagesModal.tsx @@ -27,8 +27,7 @@ import { PaginationMeta, ProjectPayload, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { projectPayload: ProjectPayload @@ -236,7 +235,9 @@ export default function LinkPackagesModal({ projectPayload, setProjectPayload, s const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedPackages @@ -247,11 +248,7 @@ export default function LinkPackagesModal({ projectPayload, setProjectPayload, s : data['_embedded']['sw360:packages'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/LinkedProjectsModal/LinkProjectsModal.tsx b/src/components/sw360/LinkedProjectsModal/LinkProjectsModal.tsx index 7533cb44e..99bf700c1 100644 --- a/src/components/sw360/LinkedProjectsModal/LinkProjectsModal.tsx +++ b/src/components/sw360/LinkedProjectsModal/LinkProjectsModal.tsx @@ -27,8 +27,7 @@ import { Project, ProjectPayload, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface AlertData { variant: string @@ -318,7 +317,9 @@ export default function LinkProjectsModal({ projectPayload, setProjectPayload, s const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedProjects @@ -329,11 +330,7 @@ export default function LinkProjectsModal({ projectPayload, setProjectPayload, s : data['_embedded']['sw360:projects'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/LinkedReleasesModal/LinkedReleasesModal.tsx b/src/components/sw360/LinkedReleasesModal/LinkedReleasesModal.tsx index 067324665..6cfb92be7 100644 --- a/src/components/sw360/LinkedReleasesModal/LinkedReleasesModal.tsx +++ b/src/components/sw360/LinkedReleasesModal/LinkedReleasesModal.tsx @@ -27,8 +27,7 @@ import { ProjectPayload, ReleaseDetail, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { projectPayload: ProjectPayload @@ -248,7 +247,9 @@ export default function LinkedReleasesModal({ projectPayload, setProjectPayload, const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedReleases @@ -259,11 +260,7 @@ export default function LinkedReleasesModal({ projectPayload, setProjectPayload, : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/SearchLicensesDialog/LicensesDialog.tsx b/src/components/sw360/SearchLicensesDialog/LicensesDialog.tsx index 75668109a..b092d4cfb 100644 --- a/src/components/sw360/SearchLicensesDialog/LicensesDialog.tsx +++ b/src/components/sw360/SearchLicensesDialog/LicensesDialog.tsx @@ -17,8 +17,7 @@ import { useTranslations } from 'next-intl' import { type JSX, useEffect, useMemo, useState } from 'react' import { Button, Form, Modal, Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, LicenseDetail, PageableQueryParam, PaginationMeta } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import { PageSizeSelector, SW360Table, TableFooter } from '../Table/Components' interface Props { @@ -135,7 +134,9 @@ const LicensesDialog = ({ show, setShow, selectLicenses, releaseLicenses }: Prop const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedLicenses @@ -146,11 +147,7 @@ const LicensesDialog = ({ show, setShow, selectLicenses, releaseLicenses }: Prop : data['_embedded']['sw360:licenses'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/SearchLinkedReleases/LinkedReleasesDialog.tsx b/src/components/sw360/SearchLinkedReleases/LinkedReleasesDialog.tsx index bfcf72232..216933b17 100644 --- a/src/components/sw360/SearchLinkedReleases/LinkedReleasesDialog.tsx +++ b/src/components/sw360/SearchLinkedReleases/LinkedReleasesDialog.tsx @@ -25,8 +25,7 @@ import { ReleaseDetail, ReleaseLink, } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import { PageSizeSelector, SW360Table, TableFooter } from '../Table/Components' interface Props { @@ -153,7 +152,9 @@ const LinkedReleasesDialog = ({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedReleases @@ -164,11 +165,7 @@ const LinkedReleasesDialog = ({ : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/SearchObligations/LinkedObligationsDialog.tsx b/src/components/sw360/SearchObligations/LinkedObligationsDialog.tsx index 33e988852..969f21605 100644 --- a/src/components/sw360/SearchObligations/LinkedObligationsDialog.tsx +++ b/src/components/sw360/SearchObligations/LinkedObligationsDialog.tsx @@ -20,8 +20,7 @@ import { type JSX, useEffect, useMemo, useState } from 'react' import { Button, Modal, Spinner } from 'react-bootstrap' import { BsCheck2Square } from 'react-icons/bs' import { Embedded, ErrorDetails, LicensePayload, NestedRows, Obligation } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { show: boolean @@ -201,7 +200,9 @@ const LinkedObligationsDialog = ({ show, setShow, licensePayload, setLicensePayl const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedObligations @@ -221,11 +222,7 @@ const LinkedObligationsDialog = ({ show, setShow, licensePayload, setLicensePayl : [], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { clearTimeout(timeout) setShowProcessing(false) diff --git a/src/components/sw360/SearchReleasesModal/SearchReleasesModal.tsx b/src/components/sw360/SearchReleasesModal/SearchReleasesModal.tsx index e81f74ae5..061e90ef7 100644 --- a/src/components/sw360/SearchReleasesModal/SearchReleasesModal.tsx +++ b/src/components/sw360/SearchReleasesModal/SearchReleasesModal.tsx @@ -26,8 +26,7 @@ import React, { type JSX, useEffect, useMemo, useState } from 'react' import { Button, Col, Form, Modal, Row, Spinner } from 'react-bootstrap' import { BsInfoCircle } from 'react-icons/bs' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, ReleaseDetail } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { projectId?: string | undefined @@ -258,7 +257,9 @@ const SearchReleasesModal = ({ projectId, show, setShow, setSelectedReleases }: const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedReleases @@ -269,11 +270,7 @@ const SearchReleasesModal = ({ projectId, show, setShow, setSelectedReleases }: : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } @@ -291,7 +288,9 @@ const SearchReleasesModal = ({ projectId, show, setShow, setSelectedReleases }: ) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedReleases @@ -301,11 +300,7 @@ const SearchReleasesModal = ({ projectId, show, setShow, setSelectedReleases }: : data['_embedded']['sw360:releases'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/SearchUsersDialog/SelectUsersDialog.tsx b/src/components/sw360/SearchUsersDialog/SelectUsersDialog.tsx index f90324fcc..8fecfdd61 100644 --- a/src/components/sw360/SearchUsersDialog/SelectUsersDialog.tsx +++ b/src/components/sw360/SearchUsersDialog/SelectUsersDialog.tsx @@ -21,8 +21,7 @@ import { type JSX, useEffect, useMemo, useState } from 'react' import { Button, Col, Form, Modal, Row, Spinner } from 'react-bootstrap' import { BsInfoCircle } from 'react-icons/bs' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, User } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' interface Props { show: boolean @@ -289,7 +288,9 @@ const SelectUsersDialog = ({ const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedUsers @@ -298,11 +299,7 @@ const SelectUsersDialog = ({ CommonUtils.isNullOrUndefined(data['_embedded']['sw360:users']) ? [] : data['_embedded']['sw360:users'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/components/sw360/SearchVendorsModal/VendorDialog.tsx b/src/components/sw360/SearchVendorsModal/VendorDialog.tsx index 3eaf2b5b4..52da63a29 100644 --- a/src/components/sw360/SearchVendorsModal/VendorDialog.tsx +++ b/src/components/sw360/SearchVendorsModal/VendorDialog.tsx @@ -18,8 +18,7 @@ import { PageSizeSelector, SW360Table, TableFooter } from 'next-sw360' import { Dispatch, type JSX, SetStateAction, useMemo, useState } from 'react' import { Button, Form, Modal, Spinner } from 'react-bootstrap' import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, Vendor } from '@/object-types' -import MessageService from '@/services/message.service' -import { ApiUtils, CommonUtils } from '@/utils' +import { ApiError, ApiUtils, CommonUtils } from '@/utils' import AddVendorDialog from './AddVendor' interface Props { @@ -138,7 +137,9 @@ const VendorDialog = ({ show, setShow, setVendor, vendor }: Props): JSX.Element const response = await ApiUtils.GET(queryUrl, session.data.user.access_token) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new Error(err.message) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as EmbeddedVendors @@ -149,11 +150,7 @@ const VendorDialog = ({ show, setShow, setVendor, vendor }: Props): JSX.Element : data['_embedded']['sw360:vendors'], ) } catch (error) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } finally { setShowProcessing(false) } diff --git a/src/services/download.service.ts b/src/services/download.service.ts index 480c5e9ce..bfb6db2a2 100644 --- a/src/services/download.service.ts +++ b/src/services/download.service.ts @@ -12,7 +12,6 @@ import { Session } from 'next-auth' import { signOut } from 'next-auth/react' import { ApiUtils, CommonUtils } from '@/utils' -import MessageService from './message.service' const download = async ( url: string, @@ -39,11 +38,7 @@ const download = async ( setTimeout(() => window.URL.revokeObjectURL(objectURL), 0) return response.status } catch (error: unknown) { - if (error instanceof DOMException && error.name === 'AbortError') { - return - } - const message = error instanceof Error ? error.message : String(error) - MessageService.error(message) + ApiUtils.reportError(error) } } diff --git a/src/utils/api/api.util.ts b/src/utils/api/api.util.ts index dfdae3784..afc77bff0 100644 --- a/src/utils/api/api.util.ts +++ b/src/utils/api/api.util.ts @@ -10,17 +10,15 @@ import { StatusCodes } from 'http-status-codes' import { RequestContent } from '@/object-types' +import MessageService from '@/services/message.service' import { SW360_API_URL } from '@/utils/env' const base = SW360_API_URL + '/resource/api' // Configuration constants -const DEFAULT_TIMEOUT_MS = 30000 // 30 seconds +const DEFAULT_TIMEOUT_MS = 0 // No timeout by default const DEFAULT_RETRIES = 3 const RETRY_STATUS_CODES = [ - StatusCodes.REQUEST_TIMEOUT, - StatusCodes.TOO_MANY_REQUESTS, - StatusCodes.INTERNAL_SERVER_ERROR, StatusCodes.BAD_GATEWAY, StatusCodes.SERVICE_UNAVAILABLE, StatusCodes.GATEWAY_TIMEOUT, @@ -33,6 +31,7 @@ export class ApiError extends Error { public status?: number public code: string public isRetryable: boolean + public isAborted: boolean public cause?: unknown constructor( @@ -41,6 +40,7 @@ export class ApiError extends Error { status?: number code?: string isRetryable?: boolean + isAborted?: boolean cause?: unknown } = {}, ) { @@ -49,6 +49,7 @@ export class ApiError extends Error { this.status = options.status this.code = options.code ?? 'UNKNOWN_ERROR' this.isRetryable = options.isRetryable ?? false + this.isAborted = options.isAborted ?? false this.cause = options.cause } } @@ -75,10 +76,7 @@ function isRetryableError(error: unknown): boolean { // Network errors (failed to fetch) return true } - if (error instanceof DOMException && error.name === 'AbortError') { - // Timeout - could be temporary - return true - } + // Note: AbortError from timeout is handled separately in send() if needed return false } @@ -99,9 +97,9 @@ function handleError(error: unknown): ApiError { } if (error instanceof DOMException && error.name === 'AbortError') { - return new ApiError('Request timed out', { - code: 'TIMEOUT', - isRetryable: true, + return new ApiError('Request aborted', { + code: 'ABORTED', + isAborted: true, cause: error, }) } @@ -300,6 +298,13 @@ const ApiUtils = { POST, PUT, PATCH, + reportError: (error: unknown) => { + const apiError = handleError(error) + if (apiError.isAborted) { + return + } + MessageService.error(apiError.message) + }, } export default ApiUtils diff --git a/src/utils/index.ts b/src/utils/index.ts index 4c0e7e899..1cab8b4b3 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -7,7 +7,7 @@ // SPDX-License-Identifier: EPL-2.0 // License-Filename: LICENSE -import ApiUtils from './api/api.util' +import ApiUtils, { ApiError } from './api/api.util' import CommonUtils from './common.utils' -export { ApiUtils, CommonUtils } +export { ApiUtils, ApiError, CommonUtils } From 6adf99934e8748322adf5336dc5308dcb777b3b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:26:50 +0000 Subject: [PATCH 003/492] chore(deps): bump html-react-parser from 5.2.11 to 5.2.12 Bumps [html-react-parser](https://github.com/remarkablemark/html-react-parser) from 5.2.11 to 5.2.12. - [Release notes](https://github.com/remarkablemark/html-react-parser/releases) - [Changelog](https://github.com/remarkablemark/html-react-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/remarkablemark/html-react-parser/compare/v5.2.11...v5.2.12) --- updated-dependencies: - dependency-name: html-react-parser dependency-version: 5.2.12 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 3bd9fd1a6..8fef6b247 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dotenv": "^17.2.1", "flag-icons": "^7.3.2", "he": "1.2.0", - "html-react-parser": "^5.2.11", + "html-react-parser": "^5.2.12", "http-status-codes": "^2.3.0", "jwt-decode": "^4.0.0", "next": "16.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c1769abcb..ee9f637bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ importers: specifier: 1.2.0 version: 1.2.0 html-react-parser: - specifier: ^5.2.11 - version: 5.2.11(@types/react@19.2.2)(react@19.2.1) + specifier: ^5.2.12 + version: 5.2.12(@types/react@19.2.2)(react@19.2.1) http-status-codes: specifier: ^2.3.0 version: 2.3.0 @@ -1221,8 +1221,8 @@ packages: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} - entities@6.0.1: - resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} engines: {node: '>=0.12'} env-paths@2.2.1: @@ -1394,11 +1394,11 @@ packages: hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} - html-dom-parser@5.1.2: - resolution: {integrity: sha512-9nD3Rj3/FuQt83AgIa1Y3ruzspwFFA54AJbQnohXN+K6fL1/bhcDQJJY5Ne4L4A163ADQFVESd/0TLyNoV0mfg==} + html-dom-parser@5.1.4: + resolution: {integrity: sha512-UGjp7y8jSrDU2RdN2J9FDOo3X+WBu+LkS/I3TjjFW020ocZWjPvave+RKk1zeuY2sUWy5fh6zHgXHthzDGlFNQ==} - html-react-parser@5.2.11: - resolution: {integrity: sha512-WnSQVn/D1UTj64nSz5y8MriL+MrbsZH80Ytr1oqKqs8DGZnphWY1R1pl3t7TY3rpqTSu+FHA21P80lrsmrdNBA==} + html-react-parser@5.2.12: + resolution: {integrity: sha512-tvamxqkg5va1t9Wnq8OdikpIZrcgdatNd2rxQt0oEzb+IpbsWR1I7ddPd6CkwqZjiv8zKDzm8oiqqxy+KknQEQ==} peerDependencies: '@types/react': 19.2.2 react: 0.14 || 15 || 16 || 17 || 18 || 19 @@ -1406,8 +1406,8 @@ packages: '@types/react': optional: true - htmlparser2@10.0.0: - resolution: {integrity: sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==} + htmlparser2@10.1.0: + resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} http-signature@1.4.0: resolution: {integrity: sha512-G5akfn7eKbpDN+8nPS/cb57YeA1jLTVxjpCj7tmm3QKPdyDy7T+qSC40e9ptydSWvkwjSXw1VbkpyEm39ukeAg==} @@ -3336,7 +3336,7 @@ snapshots: entities@4.5.0: {} - entities@6.0.1: {} + entities@7.0.1: {} env-paths@2.2.1: {} @@ -3513,27 +3513,27 @@ snapshots: dependencies: react-is: 16.13.1 - html-dom-parser@5.1.2: + html-dom-parser@5.1.4: dependencies: domhandler: 5.0.3 - htmlparser2: 10.0.0 + htmlparser2: 10.1.0 - html-react-parser@5.2.11(@types/react@19.2.2)(react@19.2.1): + html-react-parser@5.2.12(@types/react@19.2.2)(react@19.2.1): dependencies: domhandler: 5.0.3 - html-dom-parser: 5.1.2 + html-dom-parser: 5.1.4 react: 19.2.1 react-property: 2.0.2 style-to-js: 1.1.21 optionalDependencies: '@types/react': 19.2.2 - htmlparser2@10.0.0: + htmlparser2@10.1.0: dependencies: domelementtype: 2.3.0 domhandler: 5.0.3 domutils: 3.2.2 - entities: 6.0.1 + entities: 7.0.1 http-signature@1.4.0: dependencies: From 6dadc0f239a8f244a7d9915840f58187fb63e39a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:27:00 +0000 Subject: [PATCH 004/492] chore(deps-dev): bump prettier from 3.8.0 to 3.8.1 Bumps [prettier](https://github.com/prettier/prettier) from 3.8.0 to 3.8.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.8.0...3.8.1) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.8.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 8fef6b247..e0afc262d 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "cypress": "^15.9.0", "husky": "^9.1.7", "lint-staged": "^16.2.7", - "prettier": "^3.8.0", + "prettier": "^3.8.1", "prettier-plugin-organize-imports": "^4.3.0", "react-icons": "^5.5.0", "systeminformation": "^5.30.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ee9f637bb..bf41cd436 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -118,11 +118,11 @@ importers: specifier: ^16.2.7 version: 16.2.7 prettier: - specifier: ^3.8.0 - version: 3.8.0 + specifier: ^3.8.1 + version: 3.8.1 prettier-plugin-organize-imports: specifier: ^4.3.0 - version: 4.3.0(prettier@3.8.0)(typescript@5.9.3) + version: 4.3.0(prettier@3.8.1)(typescript@5.9.3) react-icons: specifier: ^5.5.0 version: 5.5.0(react@19.2.1) @@ -1859,8 +1859,8 @@ packages: vue-tsc: optional: true - prettier@3.8.0: - resolution: {integrity: sha512-yEPsovQfpxYfgWNhCfECjG5AQaO+K3dp6XERmOepyPDVqcJm+bjyCVO3pmU+nAPe0N5dDvekfGezt/EIiRe1TA==} + prettier@3.8.1: + resolution: {integrity: sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==} engines: {node: '>=14'} hasBin: true @@ -3925,12 +3925,12 @@ snapshots: preact@10.28.2: {} - prettier-plugin-organize-imports@4.3.0(prettier@3.8.0)(typescript@5.9.3): + prettier-plugin-organize-imports@4.3.0(prettier@3.8.1)(typescript@5.9.3): dependencies: - prettier: 3.8.0 + prettier: 3.8.1 typescript: 5.9.3 - prettier@3.8.0: {} + prettier@3.8.1: {} pretty-bytes@5.6.0: {} From 5c435ab097b1d324f7bb34c22c67714f21532e75 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:27:12 +0000 Subject: [PATCH 005/492] chore(deps-dev): bump @biomejs/biome from 2.3.11 to 2.3.12 Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.3.11 to 2.3.12. - [Release notes](https://github.com/biomejs/biome/releases) - [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md) - [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.3.12/packages/@biomejs/biome) --- updated-dependencies: - dependency-name: "@biomejs/biome" dependency-version: 2.3.12 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 76 +++++++++++++++++++++++++------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index e0afc262d..e278b9d68 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "rxjs": "^7.8.2" }, "devDependencies": { - "@biomejs/biome": "2.3.11", + "@biomejs/biome": "2.3.12", "@commitlint/cli": "20.3.1", "@commitlint/config-conventional": "19.8.0", "@types/country-list": "^2.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bf41cd436..fff2b8649 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -76,8 +76,8 @@ importers: version: 7.8.2 devDependencies: '@biomejs/biome': - specifier: 2.3.11 - version: 2.3.11 + specifier: 2.3.12 + version: 2.3.12 '@commitlint/cli': specifier: 20.3.1 version: 20.3.1(@types/node@25.0.9)(typescript@5.9.3) @@ -153,55 +153,55 @@ packages: resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} - '@biomejs/biome@2.3.11': - resolution: {integrity: sha512-/zt+6qazBWguPG6+eWmiELqO+9jRsMZ/DBU3lfuU2ngtIQYzymocHhKiZRyrbra4aCOoyTg/BmY+6WH5mv9xmQ==} + '@biomejs/biome@2.3.12': + resolution: {integrity: sha512-AR7h4aSlAvXj7TAajW/V12BOw2EiS0AqZWV5dGozf4nlLoUF/ifvD0+YgKSskT0ylA6dY1A8AwgP8kZ6yaCQnA==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.3.11': - resolution: {integrity: sha512-/uXXkBcPKVQY7rc9Ys2CrlirBJYbpESEDme7RKiBD6MmqR2w3j0+ZZXRIL2xiaNPsIMMNhP1YnA+jRRxoOAFrA==} + '@biomejs/cli-darwin-arm64@2.3.12': + resolution: {integrity: sha512-cO6fn+KiMBemva6EARDLQBxeyvLzgidaFRJi8G7OeRqz54kWK0E+uSjgFaiHlc3DZYoa0+1UFE8mDxozpc9ieg==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.3.11': - resolution: {integrity: sha512-fh7nnvbweDPm2xEmFjfmq7zSUiox88plgdHF9OIW4i99WnXrAC3o2P3ag9judoUMv8FCSUnlwJCM1B64nO5Fbg==} + '@biomejs/cli-darwin-x64@2.3.12': + resolution: {integrity: sha512-/fiF/qmudKwSdvmSrSe/gOTkW77mHHkH8Iy7YC2rmpLuk27kbaUOPa7kPiH5l+3lJzTUfU/t6x1OuIq/7SGtxg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.3.11': - resolution: {integrity: sha512-XPSQ+XIPZMLaZ6zveQdwNjbX+QdROEd1zPgMwD47zvHV+tCGB88VH+aynyGxAHdzL+Tm/+DtKST5SECs4iwCLg==} + '@biomejs/cli-linux-arm64-musl@2.3.12': + resolution: {integrity: sha512-aqkeSf7IH+wkzFpKeDVPSXy9uDjxtLpYA6yzkYsY+tVjwFFirSuajHDI3ul8en90XNs1NA0n8kgBrjwRi5JeyA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-arm64@2.3.11': - resolution: {integrity: sha512-l4xkGa9E7Uc0/05qU2lMYfN1H+fzzkHgaJoy98wO+b/7Gl78srbCRRgwYSW+BTLixTBrM6Ede5NSBwt7rd/i6g==} + '@biomejs/cli-linux-arm64@2.3.12': + resolution: {integrity: sha512-nbOsuQROa3DLla5vvsTZg+T5WVPGi9/vYxETm9BOuLHBJN3oWQIg3MIkE2OfL18df1ZtNkqXkH6Yg9mdTPem7A==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-x64-musl@2.3.11': - resolution: {integrity: sha512-vU7a8wLs5C9yJ4CB8a44r12aXYb8yYgBn+WeyzbMjaCMklzCv1oXr8x+VEyWodgJt9bDmhiaW/I0RHbn7rsNmw==} + '@biomejs/cli-linux-x64-musl@2.3.12': + resolution: {integrity: sha512-kVGWtupRRsOjvw47YFkk5mLiAdpCPMWBo1jOwAzh+juDpUb2sWarIp+iq+CPL1Wt0LLZnYtP7hH5kD6fskcxmg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-linux-x64@2.3.11': - resolution: {integrity: sha512-/1s9V/H3cSe0r0Mv/Z8JryF5x9ywRxywomqZVLHAoa/uN0eY7F8gEngWKNS5vbbN/BsfpCG5yeBT5ENh50Frxg==} + '@biomejs/cli-linux-x64@2.3.12': + resolution: {integrity: sha512-CQtqrJ+qEEI8tgRSTjjzk6wJAwfH3wQlkIGsM5dlecfRZaoT+XCms/mf7G4kWNexrke6mnkRzNy6w8ebV177ow==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-win32-arm64@2.3.11': - resolution: {integrity: sha512-PZQ6ElCOnkYapSsysiTy0+fYX+agXPlWugh6+eQ6uPKI3vKAqNp6TnMhoM3oY2NltSB89hz59o8xIfOdyhi9Iw==} + '@biomejs/cli-win32-arm64@2.3.12': + resolution: {integrity: sha512-Re4I7UnOoyE4kHMqpgtG6UvSBGBbbtvsOvBROgCCoH7EgANN6plSQhvo2W7OCITvTp7gD6oZOyZy72lUdXjqZg==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.3.11': - resolution: {integrity: sha512-43VrG813EW+b5+YbDbz31uUsheX+qFKCpXeY9kfdAx+ww3naKxeVkTD9zLIWxUPfJquANMHrmW3wbe/037G0Qg==} + '@biomejs/cli-win32-x64@2.3.12': + resolution: {integrity: sha512-qqGVWqNNek0KikwPZlOIoxtXgsNGsX+rgdEzgw82Re8nF02W+E2WokaQhpF5TdBh/D/RQ3TLppH+otp6ztN0lw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -2294,39 +2294,39 @@ snapshots: '@babel/runtime@7.28.4': {} - '@biomejs/biome@2.3.11': + '@biomejs/biome@2.3.12': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.3.11 - '@biomejs/cli-darwin-x64': 2.3.11 - '@biomejs/cli-linux-arm64': 2.3.11 - '@biomejs/cli-linux-arm64-musl': 2.3.11 - '@biomejs/cli-linux-x64': 2.3.11 - '@biomejs/cli-linux-x64-musl': 2.3.11 - '@biomejs/cli-win32-arm64': 2.3.11 - '@biomejs/cli-win32-x64': 2.3.11 - - '@biomejs/cli-darwin-arm64@2.3.11': + '@biomejs/cli-darwin-arm64': 2.3.12 + '@biomejs/cli-darwin-x64': 2.3.12 + '@biomejs/cli-linux-arm64': 2.3.12 + '@biomejs/cli-linux-arm64-musl': 2.3.12 + '@biomejs/cli-linux-x64': 2.3.12 + '@biomejs/cli-linux-x64-musl': 2.3.12 + '@biomejs/cli-win32-arm64': 2.3.12 + '@biomejs/cli-win32-x64': 2.3.12 + + '@biomejs/cli-darwin-arm64@2.3.12': optional: true - '@biomejs/cli-darwin-x64@2.3.11': + '@biomejs/cli-darwin-x64@2.3.12': optional: true - '@biomejs/cli-linux-arm64-musl@2.3.11': + '@biomejs/cli-linux-arm64-musl@2.3.12': optional: true - '@biomejs/cli-linux-arm64@2.3.11': + '@biomejs/cli-linux-arm64@2.3.12': optional: true - '@biomejs/cli-linux-x64-musl@2.3.11': + '@biomejs/cli-linux-x64-musl@2.3.12': optional: true - '@biomejs/cli-linux-x64@2.3.11': + '@biomejs/cli-linux-x64@2.3.12': optional: true - '@biomejs/cli-win32-arm64@2.3.11': + '@biomejs/cli-win32-arm64@2.3.12': optional: true - '@biomejs/cli-win32-x64@2.3.11': + '@biomejs/cli-win32-x64@2.3.12': optional: true '@commitlint/cli@19.8.1(@types/node@25.0.9)(typescript@5.9.3)': From 48917037714720d7b9746516abdd1831c6b8cd58 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:27:48 +0000 Subject: [PATCH 006/492] chore(deps-dev): bump systeminformation from 5.30.5 to 5.30.6 Bumps [systeminformation](https://github.com/sebhildebrandt/systeminformation) from 5.30.5 to 5.30.6. - [Release notes](https://github.com/sebhildebrandt/systeminformation/releases) - [Changelog](https://github.com/sebhildebrandt/systeminformation/blob/master/CHANGELOG.md) - [Commits](https://github.com/sebhildebrandt/systeminformation/compare/v5.30.5...v5.30.6) --- updated-dependencies: - dependency-name: systeminformation dependency-version: 5.30.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index e278b9d68..41d1987b0 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "prettier": "^3.8.1", "prettier-plugin-organize-imports": "^4.3.0", "react-icons": "^5.5.0", - "systeminformation": "^5.30.5", + "systeminformation": "^5.30.6", "ts-node": "^10.9.2", "tsc-files": "^1.1.4", "typescript": "^5.8.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fff2b8649..35b233174 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,8 +127,8 @@ importers: specifier: ^5.5.0 version: 5.5.0(react@19.2.1) systeminformation: - specifier: ^5.30.5 - version: 5.30.5 + specifier: ^5.30.6 + version: 5.30.6 ts-node: specifier: ^10.9.2 version: 10.9.2(@swc/core@1.15.8(@swc/helpers@0.5.18))(@types/node@25.0.9)(typescript@5.9.3) @@ -2099,8 +2099,8 @@ packages: resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} engines: {node: '>=10'} - systeminformation@5.30.5: - resolution: {integrity: sha512-DpWmpCckhwR3hG+6udb6/aQB7PpiqVnvSljrjbKxNSvTRsGsg7NVE3/vouoYf96xgwMxXFKcS4Ux+cnkFwYM7A==} + systeminformation@5.30.6: + resolution: {integrity: sha512-LEIyK1aEv5P3BhAPW3swdlIyCihxwEq/Gki+kcONieU4PIeRCSLDuGkk0Va/56PSBgjVgEksOM88dmY6YqOyfQ==} engines: {node: '>=8.0.0'} os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android] hasBin: true @@ -3242,7 +3242,7 @@ snapshots: proxy-from-env: 1.0.0 request-progress: 3.0.0 supports-color: 8.1.1 - systeminformation: 5.30.5 + systeminformation: 5.30.6 tmp: 0.2.5 tree-kill: 1.2.2 untildify: 4.0.0 @@ -4205,7 +4205,7 @@ snapshots: dependencies: has-flag: 4.0.0 - systeminformation@5.30.5: {} + systeminformation@5.30.6: {} text-extensions@2.4.0: {} From 8139126f5e4e06d9259b5b2e39feac9f8363c242 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:28:29 +0000 Subject: [PATCH 007/492] chore(deps): bump webiny/action-conventional-commits from 1.3.0 to 1.3.1 Bumps [webiny/action-conventional-commits](https://github.com/webiny/action-conventional-commits) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/webiny/action-conventional-commits/releases) - [Commits](https://github.com/webiny/action-conventional-commits/compare/8bc41ff4e7d423d56fa4905f6ff79209a78776c7...faccb24fc2550dd15c0390d944379d2d8ed9690e) --- updated-dependencies: - dependency-name: webiny/action-conventional-commits dependency-version: 1.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/commit_checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit_checks.yaml b/.github/workflows/commit_checks.yaml index 7c9472b40..c24004b57 100644 --- a/.github/workflows/commit_checks.yaml +++ b/.github/workflows/commit_checks.yaml @@ -27,7 +27,7 @@ jobs: egress-policy: audit - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0 + - uses: webiny/action-conventional-commits@faccb24fc2550dd15c0390d944379d2d8ed9690e # v1.3.1 - uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # main - name: Check deny listed files From 516451120fb7d285a4f80007ebfae49b55ae634a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:28:57 +0000 Subject: [PATCH 008/492] chore(deps): bump github/codeql-action from 4.31.10 to 4.31.11 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.10 to 4.31.11. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/cdefb33c0f6224e58673d9004f47f7cb3e328b89...19b2f06db2b6f5108140aeb04014ef02b648f789) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.31.11 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/scorecard.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3d07d18ff..61436e0af 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -66,7 +66,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10 + uses: github/codeql-action/init@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -94,6 +94,6 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10 + uses: github/codeql-action/analyze@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11 with: category: '/language:${{matrix.language}}' diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 5ca7f2cfe..6e49eb8cb 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -55,6 +55,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10 + uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11 with: sarif_file: results.sarif From 784b88142dba99f954374daa4fa34fe7a7bc65ad Mon Sep 17 00:00:00 2001 From: Taanvi Khevaria Date: Tue, 20 Jan 2026 12:03:19 +0530 Subject: [PATCH 009/492] fix: Use batch API for license clearing count to prevent 502 error --- .../[locale]/projects/components/Projects.tsx | 53 ++++++++++++++++++- src/components/LicenseClearing.tsx | 18 +++++-- 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/src/app/[locale]/projects/components/Projects.tsx b/src/app/[locale]/projects/components/Projects.tsx index b6152ac6e..df7473e74 100644 --- a/src/app/[locale]/projects/components/Projects.tsx +++ b/src/app/[locale]/projects/components/Projects.tsx @@ -20,7 +20,7 @@ import { AdvancedSearch, Breadcrumb, PageSizeSelector, SW360Table, TableFooter } import { type JSX, useEffect, useMemo, useState } from 'react' import { Dropdown, OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' import { BsCheck2Square, BsClipboard, BsFillTrashFill, BsPencil } from 'react-icons/bs' -import LicenseClearing from '@/components/LicenseClearing' +import LicenseClearing, { type LicenseClearingData } from '@/components/LicenseClearing' import { useConfigValue } from '@/contexts' import { Embedded, @@ -40,6 +40,7 @@ import DeleteProjectDialog from './DeleteProjectDialog' import ImportSBOMModal from './ImportSBOMModal' type EmbeddedProjects = Embedded +type LicenseClearingMap = Record const Capitalize = (text: string) => text.split('_').reduce((s, c) => s + ' ' + (c.charAt(0) + c.substring(1).toLocaleLowerCase()), '') @@ -66,6 +67,7 @@ function Project(): JSX.Element { const [showViewCRModal, setShowViewCRModal] = useState(false) const [clearingRequestId, setClearingRequestId] = useState('') + const [licenseClearingData, setLicenseClearingData] = useState({}) useEffect(() => { if (status === 'unauthenticated') { @@ -193,7 +195,16 @@ function Project(): JSX.Element { enableSorting: false, cell: ({ row }) => { const id = row.original['_links']['self']['href'].split('/').at(-1) - return <>{id && } + return ( + <> + {id && ( + + )} + + ) }, meta: { width: '10%', @@ -310,6 +321,7 @@ function Project(): JSX.Element { ], [ t, + licenseClearingData, ], ) const [pageableQueryParam, setPageableQueryParam] = useState({ @@ -398,6 +410,43 @@ function Project(): JSX.Element { params.toString(), ]) + // Fetch license clearing counts in batch after project data is loaded + useEffect(() => { + if (projectData.length === 0) { + setLicenseClearingData({}) + return + } + + void (async () => { + try { + const session = await getSession() + if (CommonUtils.isNullOrUndefined(session)) return signOut() + + const projectIds = projectData + .map((project) => project['_links']['self']['href'].split('/').at(-1)) + .filter((id): id is string => id !== undefined) + + if (projectIds.length === 0) return + + const response = await ApiUtils.POST( + 'projects/licenseClearingCount', + projectIds, + session.user.access_token, + ) + + if (response.status !== StatusCodes.OK) { + const err = (await response.json()) as ErrorDetails + throw new ApiError(err.message, { status: response.status }) + } + + const data = (await response.json()) as LicenseClearingMap + setLicenseClearingData(data) + } catch (error) { + ApiUtils.reportError(error) + } + })() + }, [projectData]) + const table = useReactTable({ data: memoizedData, columns, diff --git a/src/components/LicenseClearing.tsx b/src/components/LicenseClearing.tsx index 4b6f23e26..11e5a59b1 100644 --- a/src/components/LicenseClearing.tsx +++ b/src/components/LicenseClearing.tsx @@ -16,14 +16,25 @@ import { Spinner } from 'react-bootstrap' import { ErrorDetails } from '@/object-types' import { ApiError, ApiUtils, CommonUtils } from '@/utils' -interface LicenseClearingData { +export interface LicenseClearingData { 'Release Count': number 'Approved Count': number } -export default function LicenseClearing({ projectId }: { projectId: string }): ReactNode { - const [lcData, setLcData] = useState(null) +interface LicenseClearingProps { + projectId: string + data?: LicenseClearingData +} + +export default function LicenseClearing({ projectId, data }: LicenseClearingProps): ReactNode { + const [lcData, setLcData] = useState(data ?? null) + useEffect(() => { + if (data) { + setLcData(data) + return + } + const controller = new AbortController() const signal = controller.signal void (async () => { @@ -53,6 +64,7 @@ export default function LicenseClearing({ projectId }: { projectId: string }): R return () => controller.abort() }, [ projectId, + data, ]) return ( From 8e6e51303fe4fd5e619934706234f66a506c63ce Mon Sep 17 00:00:00 2001 From: Taanvi Khevaria Date: Fri, 23 Jan 2026 15:29:11 +0530 Subject: [PATCH 010/492] fix: Format code with biome --- src/app/[locale]/projects/components/Projects.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/[locale]/projects/components/Projects.tsx b/src/app/[locale]/projects/components/Projects.tsx index df7473e74..27f35c23c 100644 --- a/src/app/[locale]/projects/components/Projects.tsx +++ b/src/app/[locale]/projects/components/Projects.tsx @@ -436,7 +436,9 @@ function Project(): JSX.Element { if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails - throw new ApiError(err.message, { status: response.status }) + throw new ApiError(err.message, { + status: response.status, + }) } const data = (await response.json()) as LicenseClearingMap @@ -445,7 +447,9 @@ function Project(): JSX.Element { ApiUtils.reportError(error) } })() - }, [projectData]) + }, [ + projectData, + ]) const table = useReactTable({ data: memoizedData, From 3cbb4f032f62608f4a088401d315a02807340111 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 10:32:55 +0000 Subject: [PATCH 011/492] chore(deps): bump next from 16.1.3 to 16.1.4 Bumps [next](https://github.com/vercel/next.js) from 16.1.3 to 16.1.4. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v16.1.3...v16.1.4) --- updated-dependencies: - dependency-name: next dependency-version: 16.1.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 110 ++++++++++++++++++++++++------------------------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/package.json b/package.json index 41d1987b0..c26f9365b 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "html-react-parser": "^5.2.12", "http-status-codes": "^2.3.0", "jwt-decode": "^4.0.0", - "next": "16.1.3", + "next": "16.1.4", "next-auth": "^4.24.13", "next-intl": "^4.7.0", "next-themes": "^0.4.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 35b233174..711149e2e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,14 +45,14 @@ importers: specifier: ^4.0.0 version: 4.0.0 next: - specifier: 16.1.3 - version: 16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + specifier: 16.1.4 + version: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-auth: specifier: ^4.24.13 - version: 4.24.13(next@16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + version: 4.24.13(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-intl: specifier: ^4.7.0 - version: 4.7.0(@swc/helpers@0.5.18)(next@16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3) + version: 4.7.0(@swc/helpers@0.5.18)(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3) next-themes: specifier: ^0.4.6 version: 0.4.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -519,53 +519,53 @@ packages: '@jridgewell/trace-mapping@0.3.9': resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@next/env@16.1.3': - resolution: {integrity: sha512-BLP14oBOvZWXgfdJf9ao+VD8O30uE+x7PaV++QtACLX329WcRSJRO5YJ+Bcvu0Q+c/lei41TjSiFf6pXqnpbQA==} + '@next/env@16.1.4': + resolution: {integrity: sha512-gkrXnZyxPUy0Gg6SrPQPccbNVLSP3vmW8LU5dwEttEEC1RwDivk8w4O+sZIjFvPrSICXyhQDCG+y3VmjlJf+9A==} - '@next/swc-darwin-arm64@16.1.3': - resolution: {integrity: sha512-CpOD3lmig6VflihVoGxiR/l5Jkjfi4uLaOR4ziriMv0YMDoF6cclI+p5t2nstM8TmaFiY6PCTBgRWB57/+LiBA==} + '@next/swc-darwin-arm64@16.1.4': + resolution: {integrity: sha512-T8atLKuvk13XQUdVLCv1ZzMPgLPW0+DWWbHSQXs0/3TjPrKNxTmUIhOEaoEyl3Z82k8h/gEtqyuoZGv6+Ugawg==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@16.1.3': - resolution: {integrity: sha512-aF4us2JXh0zn3hNxvL1Bx3BOuh8Lcw3p3Xnurlvca/iptrDH1BrpObwkw9WZra7L7/0qB9kjlREq3hN/4x4x+Q==} + '@next/swc-darwin-x64@16.1.4': + resolution: {integrity: sha512-AKC/qVjUGUQDSPI6gESTx0xOnOPQ5gttogNS3o6bA83yiaSZJek0Am5yXy82F1KcZCx3DdOwdGPZpQCluonuxg==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@16.1.3': - resolution: {integrity: sha512-8VRkcpcfBtYvhGgXAF7U3MBx6+G1lACM1XCo1JyaUr4KmAkTNP8Dv2wdMq7BI+jqRBw3zQE7c57+lmp7jCFfKA==} + '@next/swc-linux-arm64-gnu@16.1.4': + resolution: {integrity: sha512-POQ65+pnYOkZNdngWfMEt7r53bzWiKkVNbjpmCt1Zb3V6lxJNXSsjwRuTQ8P/kguxDC8LRkqaL3vvsFrce4dMQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@16.1.3': - resolution: {integrity: sha512-UbFx69E2UP7MhzogJRMFvV9KdEn4sLGPicClwgqnLht2TEi204B71HuVfps3ymGAh0c44QRAF+ZmvZZhLLmhNg==} + '@next/swc-linux-arm64-musl@16.1.4': + resolution: {integrity: sha512-3Wm0zGYVCs6qDFAiSSDL+Z+r46EdtCv/2l+UlIdMbAq9hPJBvGu/rZOeuvCaIUjbArkmXac8HnTyQPJFzFWA0Q==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-x64-gnu@16.1.3': - resolution: {integrity: sha512-SzGTfTjR5e9T+sZh5zXqG/oeRQufExxBF6MssXS7HPeZFE98JDhCRZXpSyCfWrWrYrzmnw/RVhlP2AxQm+wkRQ==} + '@next/swc-linux-x64-gnu@16.1.4': + resolution: {integrity: sha512-lWAYAezFinaJiD5Gv8HDidtsZdT3CDaCeqoPoJjeB57OqzvMajpIhlZFce5sCAH6VuX4mdkxCRqecCJFwfm2nQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@16.1.3': - resolution: {integrity: sha512-HlrDpj0v+JBIvQex1mXHq93Mht5qQmfyci+ZNwGClnAQldSfxI6h0Vupte1dSR4ueNv4q7qp5kTnmLOBIQnGow==} + '@next/swc-linux-x64-musl@16.1.4': + resolution: {integrity: sha512-fHaIpT7x4gA6VQbdEpYUXRGyge/YbRrkG6DXM60XiBqDM2g2NcrsQaIuj375egnGFkJow4RHacgBOEsHfGbiUw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-win32-arm64-msvc@16.1.3': - resolution: {integrity: sha512-3gFCp83/LSduZMSIa+lBREP7+5e7FxpdBoc9QrCdmp+dapmTK9I+SLpY60Z39GDmTXSZA4huGg9WwmYbr6+WRw==} + '@next/swc-win32-arm64-msvc@16.1.4': + resolution: {integrity: sha512-MCrXxrTSE7jPN1NyXJr39E+aNFBrQZtO154LoCz7n99FuKqJDekgxipoodLNWdQP7/DZ5tKMc/efybx1l159hw==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-x64-msvc@16.1.3': - resolution: {integrity: sha512-1SZVfFT8zmMB+Oblrh5OKDvUo5mYQOkX2We6VGzpg7JUVZlqe4DYOFGKYZKTweSx1gbMixyO1jnFT4thU+nNHQ==} + '@next/swc-win32-x64-msvc@16.1.4': + resolution: {integrity: sha512-JSVlm9MDhmTXw/sO2PE/MRj+G6XOSMZB+BcZ0a7d6KwVFZVpkHcb2okyoYFBaco6LeiL53BBklRlOrDDbOeE5w==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -925,8 +925,8 @@ packages: base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - baseline-browser-mapping@2.9.15: - resolution: {integrity: sha512-kX8h7K2srmDyYnXRIppo4AH/wYgzWVCs+eKr3RusRSQ5PvRYoEFmR/I0PbdTjKFAoKqp5+kbxnNTFO9jOfSVJg==} + baseline-browser-mapping@2.9.18: + resolution: {integrity: sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==} hasBin: true bcrypt-pbkdf@1.0.2: @@ -969,8 +969,8 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - caniuse-lite@1.0.30001765: - resolution: {integrity: sha512-LWcNtSyZrakjECqmpP4qdg0MMGdN368D7X8XvvAqOcqMv0RxnlqVKZl2V6/mBR68oYMxOZPLw/gO7DuisMHUvQ==} + caniuse-lite@1.0.30001766: + resolution: {integrity: sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==} caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} @@ -1720,8 +1720,8 @@ packages: react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - next@16.1.3: - resolution: {integrity: sha512-gthG3TRD+E3/mA0uDQb9lqBmx1zVosq5kIwxNN6+MRNd085GzD+9VXMPUs+GGZCbZ+GDZdODUq4Pm7CTXK6ipw==} + next@16.1.4: + resolution: {integrity: sha512-gKSecROqisnV7Buen5BfjmXAm7Xlpx9o2ueVQRo5DxQcjC8d330dOM1xiGWc2k3Dcnz0In3VybyRPOsudwgiqQ==} engines: {node: '>=20.9.0'} hasBin: true peerDependencies: @@ -2717,30 +2717,30 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@next/env@16.1.3': {} + '@next/env@16.1.4': {} - '@next/swc-darwin-arm64@16.1.3': + '@next/swc-darwin-arm64@16.1.4': optional: true - '@next/swc-darwin-x64@16.1.3': + '@next/swc-darwin-x64@16.1.4': optional: true - '@next/swc-linux-arm64-gnu@16.1.3': + '@next/swc-linux-arm64-gnu@16.1.4': optional: true - '@next/swc-linux-arm64-musl@16.1.3': + '@next/swc-linux-arm64-musl@16.1.4': optional: true - '@next/swc-linux-x64-gnu@16.1.3': + '@next/swc-linux-x64-gnu@16.1.4': optional: true - '@next/swc-linux-x64-musl@16.1.3': + '@next/swc-linux-x64-musl@16.1.4': optional: true - '@next/swc-win32-arm64-msvc@16.1.3': + '@next/swc-win32-arm64-msvc@16.1.4': optional: true - '@next/swc-win32-x64-msvc@16.1.3': + '@next/swc-win32-x64-msvc@16.1.4': optional: true '@panva/hkdf@1.2.1': {} @@ -3030,7 +3030,7 @@ snapshots: base64-js@1.5.1: {} - baseline-browser-mapping@2.9.15: {} + baseline-browser-mapping@2.9.18: {} bcrypt-pbkdf@1.0.2: dependencies: @@ -3069,7 +3069,7 @@ snapshots: callsites@3.1.0: {} - caniuse-lite@1.0.30001765: {} + caniuse-lite@1.0.30001766: {} caseless@0.12.0: {} @@ -3772,13 +3772,13 @@ snapshots: negotiator@1.0.0: {} - next-auth@4.24.13(next@16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1): + next-auth@4.24.13(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: '@babel/runtime': 7.28.4 '@panva/hkdf': 1.2.1 cookie: 0.7.2 jose: 4.15.9 - next: 16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + next: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) oauth: 0.9.15 openid-client: 5.7.1 preact: 10.28.2 @@ -3789,13 +3789,13 @@ snapshots: next-intl-swc-plugin-extractor@4.7.0: {} - next-intl@4.7.0(@swc/helpers@0.5.18)(next@16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3): + next-intl@4.7.0(@swc/helpers@0.5.18)(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3): dependencies: '@formatjs/intl-localematcher': 0.5.10 '@parcel/watcher': 2.5.1 '@swc/core': 1.15.8(@swc/helpers@0.5.18) negotiator: 1.0.0 - next: 16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + next: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-intl-swc-plugin-extractor: 4.7.0 po-parser: 2.1.1 react: 19.2.1 @@ -3810,25 +3810,25 @@ snapshots: react: 19.2.1 react-dom: 19.2.1(react@19.2.1) - next@16.1.3(react-dom@19.2.1(react@19.2.1))(react@19.2.1): + next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: - '@next/env': 16.1.3 + '@next/env': 16.1.4 '@swc/helpers': 0.5.15 - baseline-browser-mapping: 2.9.15 - caniuse-lite: 1.0.30001765 + baseline-browser-mapping: 2.9.18 + caniuse-lite: 1.0.30001766 postcss: 8.4.31 react: 19.2.1 react-dom: 19.2.1(react@19.2.1) styled-jsx: 5.1.6(react@19.2.1) optionalDependencies: - '@next/swc-darwin-arm64': 16.1.3 - '@next/swc-darwin-x64': 16.1.3 - '@next/swc-linux-arm64-gnu': 16.1.3 - '@next/swc-linux-arm64-musl': 16.1.3 - '@next/swc-linux-x64-gnu': 16.1.3 - '@next/swc-linux-x64-musl': 16.1.3 - '@next/swc-win32-arm64-msvc': 16.1.3 - '@next/swc-win32-x64-msvc': 16.1.3 + '@next/swc-darwin-arm64': 16.1.4 + '@next/swc-darwin-x64': 16.1.4 + '@next/swc-linux-arm64-gnu': 16.1.4 + '@next/swc-linux-arm64-musl': 16.1.4 + '@next/swc-linux-x64-gnu': 16.1.4 + '@next/swc-linux-x64-musl': 16.1.4 + '@next/swc-win32-arm64-msvc': 16.1.4 + '@next/swc-win32-x64-msvc': 16.1.4 sharp: 0.34.5 transitivePeerDependencies: - '@babel/core' From 3f30aa185c210506dad5a6073b3a1f551808cf7a Mon Sep 17 00:00:00 2001 From: amritkv Date: Tue, 20 Jan 2026 22:58:10 +0530 Subject: [PATCH 012/492] fix(AdvSearch): Fixed luceneSearch param in adv search Signed-off-by: amritkv --- messages/de.json | 2 +- messages/en.json | 2 +- messages/es.json | 2 +- messages/fr.json | 2 +- messages/ja.json | 2 +- messages/ko.json | 2 +- messages/pt-BR.json | 2 +- messages/vi.json | 2 +- messages/zh-CN.json | 2 +- messages/zh-TW.json | 2 +- .../components/Vulnerabilities.tsx | 1 - .../sw360/AdvancedSearch/AdvancedSearch.tsx | 61 ++++++++----------- .../sw360/ShowInfoOnHover/ShowInfoOnHover.tsx | 2 +- 13 files changed, 36 insertions(+), 48 deletions(-) diff --git a/messages/de.json b/messages/de.json index 61ba09074..07516b533 100644 --- a/messages/de.json +++ b/messages/de.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "Jede Aufgabe hat erfolgreich auรŸerplanmรครŸig auรŸerhalbgesagt!", "Everyone": "Alle", "Exact Match": "Exaktes Match", - "Exact_Match_Info": "Das Suchergebnis zeigt Elemente an, die genau mit der Eingabe รผbereinstimmen. \nEntspricht der Verwendung von (\") um das Suchwort. Wird auf den Komponentennamen angewendet.", + "Exact_Match_Info": "Das Suchergebnis zeigt Elemente an, die genau mit der Eingabe รผbereinstimmen. \nEntspricht der Verwendung von (\") um das Suchwort. Wird auf den Namen angewendet.", "Excel report generation has started": "Die Erstellung des Excel-Berichts hat begonnen. \nSobald der Vorgang abgeschlossen ist, senden wir Ihnen eine E-Mail mit dem Download-Link!", "Expand Next Level": "Erweitern Sie die nรคchste Ebene", "Expand next level": "Erweitern Sie das nรคchste Level", diff --git a/messages/en.json b/messages/en.json index cbd26fe4e..ccda2dd22 100644 --- a/messages/en.json +++ b/messages/en.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "Every task unscheduled successfully!", "Everyone": "Everyone", "Exact Match": "Exact Match", - "Exact_Match_Info": "The search result will display elements exactly matching the input. Equivalent to using (\") around the search keyword. Applied on Component Name.", + "Exact_Match_Info": "The search result will display elements exactly matching the input. Equivalent to using (\") around the search keyword. Applied on Name.", "Excel report generation has started": "Excel report generation has started. We will send you an email with download link once completed!", "Expand Next Level": "Expand Next Level", "Expand next level": "Expand next level", diff --git a/messages/es.json b/messages/es.json index 7619720b6..63c8149a9 100644 --- a/messages/es.json +++ b/messages/es.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "ยกCada tarea no programada con รฉxito!", "Everyone": "Todos", "Exact Match": "Partido Exacto", - "Exact_Match_Info": "El resultado de la bรบsqueda mostrarรก elementos que coincidan exactamente con la entrada. \nEquivale a utilizar (\") alrededor de la palabra clave de bรบsqueda. Se aplica al nombre del componente.", + "Exact_Match_Info": "El resultado de la bรบsqueda mostrarรก elementos que coincidan exactamente con la entrada. \nEquivale a utilizar (\") alrededor de la palabra clave de bรบsqueda. Se aplica al nombre.", "Excel report generation has started": "La generaciรณn del informe Excel ha comenzado. \nยกLe enviaremos un correo electrรณnico con el enlace de descarga una vez completado!", "Expand Next Level": "Expandir el siguiente nivel", "Expand next level": "Expandir el siguiente nivel", diff --git a/messages/fr.json b/messages/fr.json index 0567be681..eea2bfaad 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "Chaque tรขche imprรฉvue avec succรจs!", "Everyone": "Tous", "Exact Match": "Correspondance exacte", - "Exact_Match_Info": "Le rรฉsultat de la recherche affichera les รฉlรฉments correspondant exactement ร  lโ€™entrรฉe. \nร‰quivaut ร  l'utilisation de (\") autour du mot-clรฉ de recherche. Appliquรฉ au nom du composant.", + "Exact_Match_Info": "Le rรฉsultat de la recherche affichera les รฉlรฉments correspondant exactement ร  lโ€™entrรฉe. \nร‰quivaut ร  l'utilisation de (\") autour du mot-clรฉ de recherche. Appliquรฉ sur le nom.", "Excel report generation has started": "La gรฉnรฉration du rapport Excel a commencรฉ. \nNous vous enverrons un e-mail avec le lien de tรฉlรฉchargement une fois terminรฉย !", "Expand Next Level": "Dรฉvelopper le niveau suivant", "Expand next level": "Dรฉvelopper le niveau suivant", diff --git a/messages/ja.json b/messages/ja.json index 98e6d0271..5381ad5ae 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "ใ™ในใฆใฎใ‚ฟใ‚นใ‚ฏใŒไบˆๅฎšๅค–ใซๆญฃๅธธใซไบˆๅฎšใ•ใ‚Œใฆใ„ใพใ™๏ผ", "Everyone": "ใฟใ‚“ใช", "Exact Match": "ๅฎŒๅ…จใซไธ€่‡ด", - "Exact_Match_Info": "ๆคœ็ดข็ตๆžœใฏใ€ๅ…ฅๅŠ›ใซๆญฃ็ขบใซไธ€่‡ดใ™ใ‚‹่ฆ็ด ใ‚’่กจ็คบใ—ใพใ™ใ€‚\nๆคœ็ดขใ‚ญใƒผใƒฏใƒผใƒ‰ใฎๅ‘จใ‚Šใซ๏ผˆ \"๏ผ‰ใ‚’ไฝฟ็”จใ™ใ‚‹ใฎใจๅŒ็ญ‰ใงใ™ใ€‚ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆๅใซ้ฉ็”จใ•ใ‚Œใพใ™ใ€‚", + "Exact_Match_Info": "ๆคœ็ดข็ตๆžœใซใฏใ€ๅ…ฅๅŠ›ใจๅฎŒๅ…จใซไธ€่‡ดใ™ใ‚‹่ฆ็ด ใŒ่กจ็คบใ•ใ‚Œใพใ™ใ€‚\nๆคœ็ดขใ‚ญใƒผใƒฏใƒผใƒ‰ใ‚’ (\") ใงๅ›ฒใ‚€ใฎใจๅŒใ˜ใงใ™ใ€‚ๅๅ‰ใซ้ฉ็”จใ•ใ‚Œใพใ™ใ€‚", "Excel report generation has started": "Excel ใƒฌใƒใƒผใƒˆใฎ็”ŸๆˆใŒ้–‹ๅง‹ใ•ใ‚Œใพใ—ใŸใ€‚\nๅฎŒไบ†ใ—ใŸใ‚‰ใ€ใƒ€ใ‚ฆใƒณใƒญใƒผใƒ‰ใƒชใƒณใ‚ฏใ‚’่จ˜่ผ‰ใ—ใŸใƒกใƒผใƒซใ‚’้€ไฟกใ—ใพใ™ใ€‚", "Expand Next Level": "ๆฌกใฎใƒฌใƒ™ใƒซใ‚’ๅฑ•้–‹", "Expand next level": "ๆฌกใฎใƒฌใƒ™ใƒซใ‚’ๅฑ•้–‹ใ—ใพใ™", diff --git a/messages/ko.json b/messages/ko.json index 5514d96b1..302c3ca67 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "๋ชจ๋“  ์ž‘์—…์ด ์„ฑ๊ณต์ ์œผ๋กœ ์˜ˆ์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค!", "Everyone": "ํ•œ๊ตญ์–ด", "Exact Match": "Exact ์ผ์น˜", - "Exact_Match_Info": "๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์—๋Š” ์ž…๋ ฅ๊ณผ ์ •ํ™•ํžˆ ์ผ์น˜ํ•˜๋Š” ์š”์†Œ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. \n๊ฒ€์ƒ‰ ํ‚ค์›Œ๋“œ ์ฃผ์œ„์— ( \")๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๊ณผ ๋™์ผํ•ฉ๋‹ˆ๋‹ค. ๊ตฌ์„ฑ ์š”์†Œ ์ด๋ฆ„์— ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.", + "Exact_Match_Info": "๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์—๋Š” ์ž…๋ ฅ๊ณผ ์ •ํ™•ํžˆ ์ผ์น˜ํ•˜๋Š” ์š”์†Œ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. \n๊ฒ€์ƒ‰์–ด ์•ž๋’ค์— (\")๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ด๋ฆ„์— ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.", "Excel report generation has started": "Excel ๋ณด๊ณ ์„œ ์ƒ์„ฑ์ด ์‹œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. \n์™„๋ฃŒ๋˜๋ฉด ๋‹ค์šด๋กœ๋“œ ๋งํฌ๊ฐ€ ํฌํ•จ๋œ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค!", "Expand Next Level": "๋‹ค์Œ ๋ ˆ๋ฒจ ํ™•์žฅ", "Expand next level": "๋‹ค์Œ ๋‹จ๊ณ„๋ฅผ ํ™•์žฅํ•˜์‹ญ์‹œ์˜ค", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index b71e7df08..b628a44fb 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "Toda tarefa nรฃo programada com sucesso!", "Everyone": "Todos", "Exact Match": "Correspondรชncia exata", - "Exact_Match_Info": "O resultado da pesquisa exibirรก elementos correspondentes exatamente ร  entrada. \nEquivalente a usar (\") em torno da palavra -chave de pesquisa. Aplicado no nome do componente.", + "Exact_Match_Info": "O resultado da pesquisa exibirรก elementos que correspondem exatamente ร  entrada. \nEquivalente a usar (\") ao redor da palavra-chave de pesquisa. Aplicado em Nome.", "Excel report generation has started": "A geraรงรฃo de relatรณrios do Excel foi iniciada. \nEnviaremos um e-mail com o link para download assim que concluรญdo!", "Expand Next Level": "Expanda o prรณximo nรญvel", "Expand next level": "Expanda o prรณximo nรญvel", diff --git a/messages/vi.json b/messages/vi.json index ad3d2f4de..ae5bd7669 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "Mแปi nhiแป‡m vแปฅ ฤ‘รฃ ฤ‘ฦฐแปฃc trรฌnh bร y thร nh cรดng!", "Everyone": "Mแปi ngฦฐแปi", "Exact Match": "Kแบฟt hแปฃp chuแบฉn xรกc", - "Exact_Match_Info": "Kแบฟt quแบฃ tรฌm kiแบฟm sแบฝ hiแปƒn thแป‹ cรกc yแบฟu tแป‘ khแป›p chรญnh xรกc vแป›i ฤ‘แบงu vร o. \nTฦฐฦกng ฤ‘ฦฐฦกng vแป›i viแป‡c sแปญ dแปฅng (\") xung quanh tแปซ khรณa tรฌm kiแบฟm. รp dแปฅng trรชn tรชn thร nh phแบงn.", + "Exact_Match_Info": "Kแบฟt quแบฃ tรฌm kiแบฟm sแบฝ hiแปƒn thแป‹ cรกc phแบงn tแปญ khแป›p chรญnh xรกc vแป›i ฤ‘แบงu vร o. \nTฦฐฦกng ฤ‘ฦฐฦกng vแป›i viแป‡c sแปญ dแปฅng (\") xung quanh tแปซ khรณa tรฌm kiแบฟm. รp dแปฅng trรชn Tรชn.", "Excel report generation has started": "Viแป‡c tแบกo bรกo cรกo Excel ฤ‘รฃ bแบฏt ฤ‘แบงu. \nChรบng tรดi sแบฝ gแปญi cho bแบกn mแป™t email cรณ liรชn kแบฟt tแบฃi xuแป‘ng sau khi hoร n tแบฅt!", "Expand Next Level": "MแปŸ rแป™ng cแบฅp ฤ‘แป™ tiแบฟp theo", "Expand next level": "MแปŸ rแป™ng cแบฅp ฤ‘แป™ tiแบฟp theo", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index 6168731e2..f3442b6b6 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "ๆฏไธชไปปๅŠก้ƒฝๆˆๅŠŸๅฎŒๆˆไบ†๏ผ", "Everyone": "ๆฏไธชไบบ", "Exact Match": "ๅฎŒๅ…จ็ฌฆๅˆ", - "Exact_Match_Info": "ๆœ็ดข็ป“ๆžœๅฐ†ๆ˜พ็คบไธŽ่พ“ๅ…ฅๅฎŒๅ…จๅŒน้…็š„ๅ…ƒ็ด ใ€‚\n็ญ‰ๆ•ˆไบŽๅœจๆœ็ดขๅ…ณ้”ฎๅญ—ไธŠไฝฟ็”จ๏ผˆโ€œ๏ผ‰ใ€‚ๅบ”็”จไบŽ็ป„ไปถๅ็งฐใ€‚", + "Exact_Match_Info": "ๆœ็ดข็ป“ๆžœๅฐ†ๆ˜พ็คบไธŽ่พ“ๅ…ฅๅฎŒๅ…จๅŒน้…็š„ๅ…ƒ็ด ใ€‚\n็›ธๅฝ“ไบŽๅœจๆœ็ดขๅ…ณ้”ฎๅญ—ๅ‘จๅ›ดไฝฟ็”จ (\")ใ€‚ๅบ”็”จไบŽๅ็งฐใ€‚", "Excel report generation has started": "Excel ๆŠฅๅ‘Š็”Ÿๆˆๅทฒๅผ€ๅง‹ใ€‚\nๅฎŒๆˆๅŽ๏ผŒๆˆ‘ไปฌๅฐ†ๅ‘ๆ‚จๅ‘้€ไธ€ๅฐๅŒ…ๅซไธ‹่ฝฝ้“พๆŽฅ็š„็”ตๅญ้‚ฎไปถ๏ผ", "Expand Next Level": "ๅฑ•ๅผ€ไธ‹ไธ€ไธช็บงๅˆซ", "Expand next level": "ๆ‰ฉๅฑ•ไธ‹ไธ€ไธช็บงๅˆซ", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index 49f603d1d..829e371b8 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -600,7 +600,7 @@ "Every task unscheduled successfully": "ๆฏๅ€‹ไปปๅ‹™้ƒฝๆˆๅŠŸๅฎŒๆˆไบ†๏ผ", "Everyone": "ๅ„ไฝ", "Exact Match": "ๅฎŒๅ…จๅŒน้…", - "Exact_Match_Info": "ๆœ็ดข็ตๆžœๅฐ‡้กฏ็คบ่ˆ‡่ผธๅ…ฅๅฎŒๅ…จๅŒน้…็š„ๅ…ƒ็ด ใ€‚็ญ‰ๆ•ˆๆ–ผๅœจๆœ็ดข้—œ้ตๅญ—ไธŠไฝฟ็”จ๏ผˆโ€œ๏ผ‰ใ€‚ๆ‡‰็”จๆ–ผ็ต„ไปถๅ็จฑใ€‚", + "Exact_Match_Info": "ๆœ็ดข็ตๆžœๅฐ‡้กฏ็คบ่ˆ‡่ผธๅ…ฅๅฎŒๅ…จๅŒน้…็š„ๅ…ƒ็ด ใ€‚็›ธ็•ถๆ–ผๅœจๆœ็ดข้—œ้ตๅญ—ๅ‘จๅœไฝฟ็”จ (\")ใ€‚ๆ‡‰็”จๆ–ผๅ็จฑใ€‚", "Excel report generation has started": "Excel ๅ ฑ่กจ็”ข็”Ÿๅทฒ้–‹ๅง‹ใ€‚\nๅฎŒๆˆๅพŒ๏ผŒๆˆ‘ๅ€‘ๅฐ‡ๅ‘ๆ‚จ็™ผ้€ไธ€ๅฐๅŒ…ๅซไธ‹่ผ‰้€ฃ็ต็š„้›ปๅญ้ƒตไปถ๏ผ", "Expand Next Level": "ๅฑ•้–‹ไธ‹ไธ€ๅ€‹็ดšๅˆฅ", "Expand next level": "ๆ“ดๅฑ•ไธ‹ไธ€ๅ€‹็ดšๅˆฅ", diff --git a/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx b/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx index f70dac410..b99f6c37a 100644 --- a/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx +++ b/src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx @@ -375,7 +375,6 @@ function Vulnerabilities(): ReactNode {
diff --git a/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx b/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx index 13edff0f7..5030b9551 100644 --- a/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx +++ b/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx @@ -34,18 +34,20 @@ interface Field { interface Props { title: string fields?: Array - enableExactMatch?: boolean } interface SearchParams { [k: string]: string } -function AdvancedSearch({ title = 'Advanced Search', fields, enableExactMatch = true }: Props): JSX.Element { +function AdvancedSearch({ title = 'Advanced Search', fields }: Props): JSX.Element { const router = useRouter() const t = useTranslations('default') const params = Object.fromEntries(useSearchParams()) - const [searchParams, setSearchParam] = useState(params) + const [searchParams, setSearchParam] = useState({ + ...params, + luceneSearch: params.luceneSearch || 'true', + }) const [createdOnSearchOption, setCreatedOnSearchOption] = useState('') const [isUsersPage, setIsUsersPage] = useState(false) const [isPackagesPage, setIsPackagesPage] = useState(false) @@ -248,38 +250,31 @@ function AdvancedSearch({ title = 'Advanced Search', fields, enableExactMatch =
{fields?.map((field) => renderField(field))} - - {enableExactMatch && ( - - )} + diff --git a/src/components/sw360/ShowInfoOnHover/ShowInfoOnHover.tsx b/src/components/sw360/ShowInfoOnHover/ShowInfoOnHover.tsx index aa3d8b307..f584f2561 100644 --- a/src/components/sw360/ShowInfoOnHover/ShowInfoOnHover.tsx +++ b/src/components/sw360/ShowInfoOnHover/ShowInfoOnHover.tsx @@ -19,7 +19,7 @@ const ShowInfoOnHover = ({ text }: { text: string | ReactNode }): JSX.Element => placement='bottom' > - + From 6ace9b025fe27e8b47c83fc1e7885b121ce1f3de Mon Sep 17 00:00:00 2001 From: Bibhuti Bhusan Dash Date: Wed, 21 Jan 2026 18:28:37 +0530 Subject: [PATCH 013/492] feat(admin): Add configurable REST API token length property --- messages/de.json | 4 ++ messages/en.json | 4 ++ messages/es.json | 4 ++ messages/fr.json | 4 ++ messages/ja.json | 4 ++ messages/ko.json | 4 ++ messages/pt-BR.json | 4 ++ messages/vi.json | 4 ++ messages/zh-CN.json | 4 ++ messages/zh-TW.json | 4 ++ .../components/FeatureConfigurations.tsx | 17 +++++ .../components/RestConfigurations.tsx | 68 +++++++++++++++++++ src/object-types/enums/ConfigKeys.ts | 1 + 13 files changed, 126 insertions(+) create mode 100644 src/app/[locale]/admin/configurations/components/RestConfigurations.tsx diff --git a/messages/de.json b/messages/de.json index 07516b533..6a4c99847 100644 --- a/messages/de.json +++ b/messages/de.json @@ -33,6 +33,8 @@ "Add": "Hinzufรผgen", "Add Additional Data": "Zusรคtzliche Daten", "Add Attachment": "Anhang hinzufรผgen", + "API Token Length": "API-Token-Lรคnge", + "API Token Length must be at least 20": "Die API-Token-Lรคnge muss mindestens 20 betragen", "Add Comment": "Einen Kommentar hinzufรผgen", "Add Component": "In den Warenkorb", "Add License": "Lizenz hinzufรผgen", @@ -1085,6 +1087,7 @@ "REST API Token": "REST-API-Token", "REST API Tokens": "REST-API-Tokens", "RESTRICT TO TYPE": "RESTRICKT AUF TYPE", + "Rest Configurations": "Rest-Konfigurationen", "Rating": "Bewertung", "Rational Team Concert": "Rational Team Konzert", "Re-Check connection": "รœberprรผfen Sie die Verbindung erneut", @@ -1636,6 +1639,7 @@ "ui_project_type": "Liste der Typen zur Klassifizierung von Projekten", "ui_release_externalkeys": "Liste der externen Schlรผssel fรผr Releases", "ui_rest_apitoken_generator_enable": "Erlauben Sie die Generierung von API-Tokens รผber die Benutzeroberflรคche", + "rest_api_token_length_description": "Konfigurieren Sie die Lรคnge der generierten REST-API-Token", "ui_software_platforms": "Liste der Softwareplattformen, die in Releases angezeigt werden sollen", "ui_state": "Liste der zulรคssigen Projektlebenszyklusstatus", "updated successfully": "Erfolgreich geupdated!", diff --git a/messages/en.json b/messages/en.json index ccda2dd22..b10963c41 100644 --- a/messages/en.json +++ b/messages/en.json @@ -33,6 +33,8 @@ "Add": "Add", "Add Additional Data": "Add Additional Data", "Add Attachment": "Add Attachment", + "API Token Length": "API Token Length", + "API Token Length must be at least 20": "API Token Length must be at least 20", "Add Comment": "Add Comment", "Add Component": "Add Component", "Add License": "Add License", @@ -1085,6 +1087,7 @@ "REST API Token": "REST API Token", "REST API Tokens": "REST API Tokens", "RESTRICT TO TYPE": "RESTRICT TO TYPE", + "Rest Configurations": "Rest Configurations", "Rating": "Rating", "Rational Team Concert": "Rational Team Concert", "Re-Check connection": "Re-Check connection", @@ -1636,6 +1639,7 @@ "ui_project_type": "List of types to classify Projects", "ui_release_externalkeys": "List of External Keys for Releases", "ui_rest_apitoken_generator_enable": "Allow generation of API Tokens from the UI", + "rest_api_token_length_description": "Configure the length of generated REST API tokens", "ui_software_platforms": "List of Software Platforms to display in Releases", "ui_state": "List of allowed Project lifecycle states", "updated successfully": "updated successfully!", diff --git a/messages/es.json b/messages/es.json index 63c8149a9..ab134a5fe 100644 --- a/messages/es.json +++ b/messages/es.json @@ -33,6 +33,8 @@ "Add": "Agregar", "Add Additional Data": "Aรฑada datos adicionales", "Add Attachment": "Add Attachment", + "API Token Length": "Longitud del token API", + "API Token Length must be at least 20": "La longitud del token API debe ser al menos 20", "Add Comment": "Agregar comentario", "Add Component": "Add Component", "Add License": "Aรฑadir Licencia", @@ -1085,6 +1087,7 @@ "REST API Token": "Token API REST", "REST API Tokens": "Fichas API REST", "RESTRICT TO TYPE": "RESTRICT TO TYPE", + "Rest Configurations": "Configuraciones Rest", "Rating": "Clasificaciรณn", "Rational Team Concert": "Concierto de equipo racional", "Re-Check connection": "Volver a verificar la conexiรณn", @@ -1636,6 +1639,7 @@ "ui_project_type": "Lista de tipos para clasificar Proyectos", "ui_release_externalkeys": "Lista de claves externas para versiones", "ui_rest_apitoken_generator_enable": "Permitir la generaciรณn de tokens API desde la interfaz de usuario", + "rest_api_token_length_description": "Configurar la longitud de los tokens API REST generados", "ui_software_platforms": "Lista de plataformas de software para mostrar en versiones", "ui_state": "Lista de estados permitidos del ciclo de vida del proyecto", "updated successfully": "actualizado exitosamente!", diff --git a/messages/fr.json b/messages/fr.json index eea2bfaad..f78b8d9ad 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -33,6 +33,8 @@ "Add": "Ajouter", "Add Additional Data": "Ajouter des donnรฉes supplรฉmentaires", "Add Attachment": "Ajouter une piรจce jointe", + "API Token Length": "Longueur du jeton API", + "API Token Length must be at least 20": "La longueur du jeton API doit รชtre d'au moins 20", "Add Comment": "Ajouter un commentaire", "Add Component": "Ajouter un composant", "Add License": "Ajouter une licence", @@ -1085,6 +1087,7 @@ "REST API Token": "Jeton API REST", "REST API Tokens": "Jetons d'API REST", "RESTRICT TO TYPE": "RESTRICTION AU TYPE", + "Rest Configurations": "Configurations Rest", "Rating": "Notation", "Rational Team Concert": "Concert d'รฉquipe rationnelle", "Re-Check connection": "Repeindre la connexion", @@ -1636,6 +1639,7 @@ "ui_project_type": "Liste des types pour classer les projets", "ui_release_externalkeys": "Liste des clรฉs externes pour les versions", "ui_rest_apitoken_generator_enable": "Autoriser la gรฉnรฉration de jetons API ร  partir de l'interface utilisateur", + "rest_api_token_length_description": "Configurer la longueur des jetons API REST gรฉnรฉrรฉs", "ui_software_platforms": "Liste des plates-formes logicielles ร  afficher dans les versions", "ui_state": "Liste des รฉtats autorisรฉs du cycle de vie du projet", "updated successfully": "Mis ร  jour avec succรฉs!", diff --git a/messages/ja.json b/messages/ja.json index 5381ad5ae..556dba447 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -33,6 +33,8 @@ "Add": "่ฟฝๅŠ ", "Add Additional Data": "่ฟฝๅŠ ใƒ‡ใƒผใ‚ฟใฎ่ฟฝๅŠ ", "Add Attachment": "ๆทปไป˜ใƒ•ใ‚กใ‚คใƒซใ‚’่ฟฝๅŠ ใ™ใ‚‹", + "API Token Length": "APIใƒˆใƒผใ‚ฏใƒณใฎ้•ทใ•", + "API Token Length must be at least 20": "APIใƒˆใƒผใ‚ฏใƒณใฎ้•ทใ•ใฏ20ไปฅไธŠใงใ‚ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™", "Add Comment": "ใ‚ณใƒกใƒณใƒˆใ‚’่ฟฝๅŠ ", "Add Component": "ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใฎ่ฟฝๅŠ ", "Add License": "ใƒฉใ‚คใ‚ปใƒณใ‚นใฎ่ฟฝๅŠ ", @@ -1085,6 +1087,7 @@ "REST API Token": "REST APIใƒˆใƒผใ‚ฏใƒณ", "REST API Tokens": "REST APIใƒˆใƒผใ‚ฏใƒณ", "RESTRICT TO TYPE": "RESTRICT TO TYPE", + "Rest Configurations": "Rest่จญๅฎš", "Rating": "่ฉ•ไพก", "Rational Team Concert": "ๅˆ็†็š„ใƒใƒผใƒ ใ‚ณใƒณใ‚ตใƒผใƒˆ", "Re-Check connection": "ๆŽฅ็ถšใ‚’ๅ†็ขบ่ชใ—ใพใ™", @@ -1636,6 +1639,7 @@ "ui_project_type": "ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ๅˆ†้กžใ™ใ‚‹ใ‚ฟใ‚คใƒ—ใฎใƒชใ‚นใƒˆ", "ui_release_externalkeys": "ใƒชใƒชใƒผใ‚น็”จใฎๅค–้ƒจใ‚ญใƒผใฎใƒชใ‚นใƒˆ", "ui_rest_apitoken_generator_enable": "UI ใ‹ใ‚‰ใฎ API ใƒˆใƒผใ‚ฏใƒณใฎ็”Ÿๆˆใ‚’่จฑๅฏใ™ใ‚‹", + "rest_api_token_length_description": "็”Ÿๆˆใ•ใ‚Œใ‚‹REST APIใƒˆใƒผใ‚ฏใƒณใฎ้•ทใ•ใ‚’่จญๅฎšใ™ใ‚‹", "ui_software_platforms": "ใƒชใƒชใƒผใ‚นใซ่กจ็คบใ™ใ‚‹ใ‚ฝใƒ•ใƒˆใ‚ฆใ‚งใ‚ข ใƒ—ใƒฉใƒƒใƒˆใƒ•ใ‚ฉใƒผใƒ ใฎใƒชใ‚นใƒˆ", "ui_state": "่จฑๅฏใ•ใ‚Œใ‚‹ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใฎใƒฉใ‚คใƒ•ใ‚ตใ‚คใ‚ฏใƒซ็Šถๆ…‹ใฎใƒชใ‚นใƒˆ", "updated successfully": "ๆ›ดๆ–ฐๆˆๅŠŸ๏ผ", diff --git a/messages/ko.json b/messages/ko.json index 302c3ca67..09ed702e3 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -33,6 +33,8 @@ "Add": "์ถ”๊ฐ€ํ•˜๋‹ค", "Add Additional Data": "์ถ”๊ฐ€ Data", "Add Attachment": "์ฒจ๋ถ€ํŒŒ์ผ", + "API Token Length": "API ํ† ํฐ ๊ธธ์ด", + "API Token Length must be at least 20": "API ํ† ํฐ ๊ธธ์ด๋Š” ์ตœ์†Œ 20์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค", "Add Comment": "๋Œ“๊ธ€ ์ถ”๊ฐ€", "Add Component": "Component ์ถ”๊ฐ€", "Add License": "๋น„๋ฐ€๋ฒˆํ˜ธ", @@ -1085,6 +1087,7 @@ "REST API Token": "REST API ํ† ํฐ", "REST API Tokens": "REST API ํ† ํฐ", "RESTRICT TO TYPE": "์œ ํ˜•์— RESTRICT", + "Rest Configurations": "Rest ๊ตฌ์„ฑ", "Rating": "ํ‰๊ฐ€", "Rational Team Concert": "Rational ํŒ€ ์ฝ˜์„œํŠธ", "Re-Check connection": "์—ฐ๊ฒฐ์„ ๋‹ค์‹œ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค", @@ -1636,6 +1639,7 @@ "ui_project_type": "ํ”„๋กœ์ ํŠธ๋ฅผ ๋ถ„๋ฅ˜ํ•  ์œ ํ˜• ๋ชฉ๋ก", "ui_release_externalkeys": "๋ฆด๋ฆฌ์Šค์šฉ ์™ธ๋ถ€ ํ‚ค ๋ชฉ๋ก", "ui_rest_apitoken_generator_enable": "UI์—์„œ API ํ† ํฐ ์ƒ์„ฑ ํ—ˆ์šฉ", + "rest_api_token_length_description": "์ƒ์„ฑ๋œ REST API ํ† ํฐ์˜ ๊ธธ์ด๋ฅผ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค", "ui_software_platforms": "๋ฆด๋ฆฌ์Šค์— ํ‘œ์‹œํ•  ์†Œํ”„ํŠธ์›จ์–ด ํ”Œ๋žซํผ ๋ชฉ๋ก", "ui_state": "ํ—ˆ์šฉ๋˜๋Š” ํ”„๋กœ์ ํŠธ ์ˆ˜๋ช… ์ฃผ๊ธฐ ์ƒํƒœ ๋ชฉ๋ก", "updated successfully": "์„ฑ๊ณต์ ์œผ๋กœ ์—…๋ฐ์ดํŠธ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index b628a44fb..fad278604 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -33,6 +33,8 @@ "Add": "Adicionar", "Add Additional Data": "Dados Adicionais", "Add Attachment": "Adicionar Anexo", + "API Token Length": "Comprimento do token API", + "API Token Length must be at least 20": "O comprimento do token API deve ser pelo menos 20", "Add Comment": "Adicionar comentรกrio", "Add Component": "Adicionar Componente", "Add License": "Adicionar licenรงa", @@ -1085,6 +1087,7 @@ "REST API Token": "Token da API REST", "REST API Tokens": "Tokens de API REST", "RESTRICT TO TYPE": "Restringir", + "Rest Configurations": "Configuraรงรตes Rest", "Rating": "Avaliaรงรฃo", "Rational Team Concert": "Rational Team Concert", "Re-Check connection": "Verifique novamente a conexรฃo", @@ -1636,6 +1639,7 @@ "ui_project_type": "Lista de tipos para classificar Projetos", "ui_release_externalkeys": "Lista de chaves externas para lanรงamentos", "ui_rest_apitoken_generator_enable": "Permitir a geraรงรฃo de tokens de API a partir da IU", + "rest_api_token_length_description": "Configurar o comprimento dos tokens de API REST gerados", "ui_software_platforms": "Lista de plataformas de software a serem exibidas em versรตes", "ui_state": "Lista de estados permitidos do ciclo de vida do projeto", "updated successfully": "Atualizado com sucesso!", diff --git a/messages/vi.json b/messages/vi.json index ae5bd7669..c0bcf3891 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -33,6 +33,8 @@ "Add": "Thรชm vร o", "Add Additional Data": "Thรชm dแปฏ liแป‡u bแป• sung", "Add Attachment": "Thรชm bแบฃn ฤ‘รญnh kรจm", + "API Token Length": "ฤแป™ dร i mรฃ thรดng bรกo API", + "API Token Length must be at least 20": "ฤแป™ dร i mรฃ thรดng bรกo API phแบฃi รญt nhแบฅt lร  20", "Add Comment": "Thรชm bรฌnh luแบญn", "Add Component": "Thรชm thร nh phแบงn", "Add License": "Thรชm giแบฅy phรฉp", @@ -1085,6 +1087,7 @@ "REST API Token": "Mรฃ thรดng bรกo API REST", "REST API Tokens": "Mรฃ thรดng bรกo API REST", "RESTRICT TO TYPE": "Hแบ N CHแบพ LOแบ I", + "Rest Configurations": "Cแบฅu hรฌnh Rest", "Rating": "Xแบฟp hแบกng", "Rational Team Concert": "Buแป•i hรฒa nhแบกc cแปงa nhรณm Rational", "Re-Check connection": "Kiแปƒm tra lแบกi kแบฟt nแป‘i", @@ -1636,6 +1639,7 @@ "ui_project_type": "Danh sรกch cรกc loแบกi ฤ‘แปƒ phรขn loแบกi Dแปฑ รกn", "ui_release_externalkeys": "Danh sรกch cรกc khรณa bรชn ngoร i cho cรกc bแบฃn phรกt hร nh", "ui_rest_apitoken_generator_enable": "Cho phรฉp tแบกo Mรฃ thรดng bรกo API tแปซ giao diแป‡n ngฦฐแปi dรนng", + "rest_api_token_length_description": "Cแบฅu hรฌnh ฤ‘แป™ dร i cแปงa mรฃ thรดng bรกo REST API ฤ‘ฦฐแปฃc tแบกo", "ui_software_platforms": "Danh sรกch Nแปn tแบฃng phแบงn mแปm sแบฝ hiแปƒn thแป‹ trong Bแบฃn phรกt hร nh", "ui_state": "Danh sรกch cรกc trแบกng thรกi vรฒng ฤ‘แปi Dแปฑ รกn ฤ‘ฦฐแปฃc phรฉp", "updated successfully": "cแบญp nhแบญt thร nh cรดng!", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index f3442b6b6..94af12f6c 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -33,6 +33,8 @@ "Add": "ๆทปๅŠ ", "Add Additional Data": "ๆทปๅŠ ้™„ๅŠ ๆ•ฐๆฎ", "Add Attachment": "ๆทปๅŠ ้™„ไปถ", + "API Token Length": "API ไปค็‰Œ้•ฟๅบฆ", + "API Token Length must be at least 20": "API ไปค็‰Œ้•ฟๅบฆๅฟ…้กป่‡ณๅฐ‘ไธบ 20", "Add Comment": "ๆทปๅŠ ่ฏ„่ฎบ", "Add Component": "ๆทปๅŠ ็ป„ไปถ", "Add License": "ๆทปๅŠ ่ฎธๅฏ่ฏ", @@ -1085,6 +1087,7 @@ "REST API Token": "REST API ไปค็‰Œ", "REST API Tokens": "REST API ไปค็‰Œ", "RESTRICT TO TYPE": "้™ๅˆถ่พ“ๅ…ฅ", + "Rest Configurations": "Rest ้…็ฝฎ", "Rating": "่ฏ„ๅˆ†", "Rational Team Concert": "Rational ๅ›ข้˜Ÿ้Ÿณไนไผš", "Re-Check connection": "้‡ๆ–ฐๆฃ€ๆŸฅ่ฟžๆŽฅ", @@ -1636,6 +1639,7 @@ "ui_project_type": "้กน็›ฎๅˆ†็ฑป็ฑปๅž‹ๅˆ—่กจ", "ui_release_externalkeys": "็”จไบŽๅ‘ๅธƒ็š„ๅค–้ƒจๅฏ†้’ฅๅˆ—่กจ", "ui_rest_apitoken_generator_enable": "ๅ…่ฎธไปŽ UI ็”Ÿๆˆ API ไปค็‰Œ", + "rest_api_token_length_description": "้…็ฝฎ็”Ÿๆˆ็š„ REST API ไปค็‰Œ็š„้•ฟๅบฆ", "ui_software_platforms": "็‰ˆๆœฌไธญๆ˜พ็คบ็š„่ฝฏไปถๅนณๅฐๅˆ—่กจ", "ui_state": "ๅ…่ฎธ็š„้กน็›ฎ็”Ÿๅ‘ฝๅ‘จๆœŸ็Šถๆ€ๅˆ—่กจ", "updated successfully": "ๆ›ดๆ–ฐๆˆๅŠŸ๏ผ", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index 829e371b8..9ed519126 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -33,6 +33,8 @@ "Add": "ๆทปๅŠ ", "Add Additional Data": "ๆ–ฐๅขž่ณ‡ๆ–™", "Add Attachment": "ๆ–ฐๅขž้™„ไปถ", + "API Token Length": "API ไปค็‰Œ้•ทๅบฆ", + "API Token Length must be at least 20": "API ไปค็‰Œ้•ทๅบฆๅฟ…้ ˆ่‡ณๅฐ‘็‚บ 20", "Add Comment": "ๆ–ฐๅขž่ฉ•่ซ–", "Add Component": "ๆ–ฐๅขžๅ…ƒไปถ", "Add License": "ๆ–ฐๅขžๆŽˆๆฌŠ", @@ -1085,6 +1087,7 @@ "REST API Token": "REST API ไปค็‰Œ", "REST API Tokens": "REST API ไปค็‰Œ", "RESTRICT TO TYPE": "้™ๅˆถ็ฑปๅˆซ", + "Rest Configurations": "Rest ้…็ฝฎ", "Rating": "่ฉ•ๅˆ†", "Rational Team Concert": "ๅˆ็†ๅœ˜้šŠ้Ÿณๆจ‚ๆœƒ", "Re-Check connection": "้‡ๆ–ฐๆชขๆŸฅ้€ฃๆŽฅ", @@ -1636,6 +1639,7 @@ "ui_project_type": "้ …็›ฎๅˆ†้กž้กžๅž‹ๅˆ—่กจ", "ui_release_externalkeys": "็”จๆ–ผ็™ผๅธƒ็š„ๅค–้ƒจๅฏ†้‘ฐๅˆ—่กจ", "ui_rest_apitoken_generator_enable": "ๅ…่จฑๅพž UI ็”Ÿๆˆ API ไปค็‰Œ", + "rest_api_token_length_description": "้…็ฝฎ็”Ÿๆˆ็š„ REST API ไปค็‰Œ็š„้•ทๅบฆ", "ui_software_platforms": "็‰ˆๆœฌไธญ้กฏ็คบ็š„่ปŸไปถๅนณๅฐๅˆ—่กจ", "ui_state": "ๅ…่จฑ็š„้ …็›ฎ็”Ÿๅ‘ฝ้€ฑๆœŸ็‹€ๆ…‹ๅˆ—่กจ", "updated successfully": "ๆ›ดๆ–ฐๆˆๅŠŸ๏ผ", diff --git a/src/app/[locale]/admin/configurations/components/FeatureConfigurations.tsx b/src/app/[locale]/admin/configurations/components/FeatureConfigurations.tsx index 58a59d11c..f7bea54a1 100644 --- a/src/app/[locale]/admin/configurations/components/FeatureConfigurations.tsx +++ b/src/app/[locale]/admin/configurations/components/FeatureConfigurations.tsx @@ -23,6 +23,7 @@ import AttachmentStorageConfigurations from './AttachmentStorageConfigurations' import MailConfigurations from './MailConfigurations' import OnOffSwitch from './OnOffSwitch' import PackageManagementConfigurations from './PackageManagementConfigurations' +import RestConfigurations from './RestConfigurations' import SelectUserGroup from './SelectUserGroup' const FeatureConfigurations = (): JSX.Element => { @@ -64,6 +65,18 @@ const FeatureConfigurations = (): JSX.Element => { const updateConfig = async (event: React.MouseEvent) => { event.preventDefault() if (currentConfig === undefined) return + + // Validate API Token Length + const apiTokenLength = parseInt(currentConfig[ConfigKeys.REST_API_TOKEN_LENGTH]) + if ( + currentConfig[ConfigKeys.REST_API_TOKEN_LENGTH] !== undefined && + currentConfig[ConfigKeys.REST_API_TOKEN_LENGTH] !== '' && + (isNaN(apiTokenLength) || apiTokenLength < 20) + ) { + MessageService.error(t('API Token Length must be at least 20')) + return + } + const session = await getSession() if (CommonUtils.isNullOrUndefined(session)) { MessageService.error(t('Session has expired')) @@ -300,6 +313,10 @@ const FeatureConfigurations = (): JSX.Element => { currentConfig={currentConfig} setCurrentConfig={setCurrentConfig} /> + ) : ( diff --git a/src/app/[locale]/admin/configurations/components/RestConfigurations.tsx b/src/app/[locale]/admin/configurations/components/RestConfigurations.tsx new file mode 100644 index 000000000..005a69b5e --- /dev/null +++ b/src/app/[locale]/admin/configurations/components/RestConfigurations.tsx @@ -0,0 +1,68 @@ +// Copyright (C) Siemens AG, 2026. Part of the SW360 Frontend Project. + +// This program and the accompanying materials are made +// available under the terms of the Eclipse Public License 2.0 +// which is available at https://www.eclipse.org/legal/epl-2.0/ + +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE + +'use client' +import { useTranslations } from 'next-intl' +import { Dispatch, type JSX, SetStateAction } from 'react' +import { ConfigKeys, Configuration } from '@/object-types' + +interface Props { + currentConfig: Configuration + setCurrentConfig: Dispatch> +} + +const RestConfigurations = ({ currentConfig, setCurrentConfig }: Props): JSX.Element => { + const t = useTranslations('default') + + const onConfigChange = (e: React.ChangeEvent) => { + setCurrentConfig((prev) => { + return { + ...prev, + [e.target.name]: e.target.value, + } as Configuration + }) + } + + return ( + <> +
{t('Rest Configurations')}
+ + + + + + + + + + + + + + + +
{t('Name')}{t('Value')}{t('Description')}
{t('API Token Length')} + + {t('rest_api_token_length_description')}
+ + ) +} + +export default RestConfigurations diff --git a/src/object-types/enums/ConfigKeys.ts b/src/object-types/enums/ConfigKeys.ts index 292eed985..c79a9306d 100644 --- a/src/object-types/enums/ConfigKeys.ts +++ b/src/object-types/enums/ConfigKeys.ts @@ -30,6 +30,7 @@ enum ConfigKeys { IS_ADMIN_PRIVATE_ACCESS_ENABLED = 'admin.private.project.access.enabled', IS_PACKAGE_PORTLET_ENABLED = 'package.portlet.enabled', RELEASE_SOURCECODE_URL_SKIP_DOMAINS = 'release.sourcecodeurl.skip.domains', + REST_API_TOKEN_LENGTH = 'rest.apitoken.length', } export default ConfigKeys From 70ee1678399a0e5c975f45e30facf3435c0f9418 Mon Sep 17 00:00:00 2001 From: Dearsh Oberoi Date: Thu, 22 Jan 2026 16:58:23 +0530 Subject: [PATCH 014/492] fix(relation): Add missing release relation for releases of root project --- .../projects/detail/[id]/components/TreeView.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx b/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx index d2c419143..8883433b9 100644 --- a/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/TreeView.tsx @@ -398,8 +398,8 @@ export default function TreeView({ projectId }: { projectId: string }): JSX.Elem if (row.original.node.type === 'release') { const { id: releaseId } = row.original.node.entity const entity = row.getParentRow()?.original.node.entity as Project - if (!CommonUtils.isNullOrUndefined(entity?.linkedReleases)) { - const linkedRelease = entity.linkedReleases.filter( + if (!CommonUtils.isNullOrUndefined(entity)) { + const linkedRelease = entity.linkedReleases?.filter( (lr) => lr.release.split('/').at(-1) === releaseId, ) if (!CommonUtils.isNullOrUndefined(linkedRelease?.[0])) { @@ -412,6 +412,17 @@ export default function TreeView({ projectId }: { projectId: string }): JSX.Elem
) } + } else { + const index = (memoizedLicenseClearing?.linkedReleases ?? []).findIndex( + (rel) => rel.release.split('/').at(-1) === releaseId, + ) + if (index !== -1) { + return ( +
+ {Capitalize(memoizedLicenseClearing?.linkedReleases[index].relation ?? '')} +
+ ) + } } } }, @@ -616,6 +627,7 @@ export default function TreeView({ projectId }: { projectId: string }): JSX.Elem expandLevel, columnFilters, showFilter, + memoizedLicenseClearing, ], ) From ccfdaba26ce4bdfd9e201e0cd679320267ecf623 Mon Sep 17 00:00:00 2001 From: Dearsh Oberoi Date: Thu, 22 Jan 2026 16:59:48 +0530 Subject: [PATCH 015/492] fix(loop): Fix render loop in useeffect --- src/app/[locale]/projects/detail/[id]/components/ListView.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/[locale]/projects/detail/[id]/components/ListView.tsx b/src/app/[locale]/projects/detail/[id]/components/ListView.tsx index 1bcf4c7ea..0f347f043 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ListView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ListView.tsx @@ -696,7 +696,6 @@ export default function ListView({ projectId, session, columnFilters, - memoizedLicenseClearing, ]) useEffect(() => { From 322ea59cb37c470108bfb44ac9d9ab28bf2d1fef Mon Sep 17 00:00:00 2001 From: Dearsh Oberoi Date: Thu, 22 Jan 2026 17:01:07 +0530 Subject: [PATCH 016/492] fix(downloadlicenseinfo): Fix options in download license info modal --- .../components/DownloadLicenseInfoModal.tsx | 272 +++++++++++------- .../[id]/components/GenerateLicenseInfo.tsx | 269 +++++++++-------- src/utils/common.utils.ts | 35 ++- 3 files changed, 345 insertions(+), 231 deletions(-) diff --git a/src/app/[locale]/projects/generateLicenseInfo/[id]/components/DownloadLicenseInfoModal.tsx b/src/app/[locale]/projects/generateLicenseInfo/[id]/components/DownloadLicenseInfoModal.tsx index 4aae006ea..0887d2088 100644 --- a/src/app/[locale]/projects/generateLicenseInfo/[id]/components/DownloadLicenseInfoModal.tsx +++ b/src/app/[locale]/projects/generateLicenseInfo/[id]/components/DownloadLicenseInfoModal.tsx @@ -10,16 +10,64 @@ 'use client' import { StatusCodes } from 'http-status-codes' -import { notFound, useSearchParams } from 'next/navigation' -import { getSession, signOut, useSession } from 'next-auth/react' +import { useSearchParams } from 'next/navigation' +import { signOut, useSession } from 'next-auth/react' import { useTranslations } from 'next-intl' import { ChangeEvent, Dispatch, ReactNode, SetStateAction, useEffect, useState } from 'react' import { Modal } from 'react-bootstrap' import { BsQuestionCircle } from 'react-icons/bs' -import { SaveUsagesPayload } from '@/object-types' +import { ErrorDetails, FilterOption, SaveUsagesPayload } from '@/object-types' import DownloadService from '@/services/download.service' +import MessageService from '@/services/message.service' import { ApiUtils, CommonUtils } from '@/utils' +const relationFilterOptions: FilterOption[] = [ + { + tag: 'Contained', + value: 'CONTAINED', + }, + { + tag: 'Related', + value: 'REFERRED', + }, + { + tag: 'Unknown', + value: 'UNKNOWN', + }, + { + tag: 'Dynamically Linked', + value: 'DYNAMICALLY_LINKED', + }, + { + tag: 'Statically Linked', + value: 'STATICALLY_LINKED', + }, + { + tag: 'Side By Side', + value: 'SIDE_BY_SIDE', + }, + { + tag: 'Standalone', + value: 'STANDALONE', + }, + { + tag: 'Internal Use', + value: 'INTERNAL_USE', + }, + { + tag: 'Optional', + value: 'OPTIONAL', + }, + { + tag: 'To Be Replaced', + value: 'TO_BE_REPLACED', + }, + { + tag: 'Code Snippet', + value: 'CODE_SNIPPET', + }, +] + export default function DownloadLicenseInfoModal({ show, setShow, @@ -27,6 +75,7 @@ export default function DownloadLicenseInfoModal({ setShowConfirmation, projectId, isCalledFromProjectLicenseTab, + projectRelationships, }: { show: boolean setShow: Dispatch> @@ -34,48 +83,78 @@ export default function DownloadLicenseInfoModal({ saveUsagesPayload: SaveUsagesPayload projectId: string isCalledFromProjectLicenseTab: boolean + projectRelationships: string[] }): ReactNode { const t = useTranslations('default') const params = useSearchParams() const [generatorClassName, setGeneratorClassName] = useState('DocxGenerator') - const { status } = useSession() + const [withSubProject, setWithSubProject] = useState(true) + const [selectedRelRelationship, setSelectedRelRelationship] = useState([]) + const session = useSession() + const [loading, setLoading] = useState(false) useEffect(() => { - if (status === 'unauthenticated') { + if (session.status === 'unauthenticated') { signOut() } }, [ - status, + session, + ]) + + useEffect(() => { + if (Object.hasOwn(Object.fromEntries(params), 'withSubProjects') === false) { + setWithSubProject(false) + } + }, [ + params, + ]) + + useEffect(() => { + setSelectedRelRelationship(projectRelationships) + }, [ + projectRelationships, ]) const handleLicenseInfoDownload = async (projectId: string) => { try { - const searchParams = Object.fromEntries(params) - if (Object.hasOwn(searchParams, 'withSubProjects') === false) { - return - } - const session = await getSession() - if (CommonUtils.isNullOrUndefined(session)) { - return signOut() - } + if (CommonUtils.isNullOrUndefined(session.data)) return signOut() + setLoading(true) const response = await ApiUtils.POST( `projects/${projectId}/saveAttachmentUsages`, saveUsagesPayload, - session.user.access_token, + session.data.user.access_token, ) if (response.status !== StatusCodes.CREATED) { - return notFound() + const err = (await response.json()) as ErrorDetails + throw new Error(err.message) } const currentDate = new Date().toISOString().split('T')[0] - DownloadService.download( - `reports?withlinkedreleases=false&projectId=${projectId}&module=licenseInfo&withSubProject=${ - searchParams.withSubProjects - }&generatorClassName=${generatorClassName}&variant=DISCLOSURE`, - session, + const downloadUrl = CommonUtils.createUrlWithParams(`reports`, { + withlinkedreleases: 'false', + projectId, + module: 'licenseInfo', + withSubProject: withSubProject ? 'true' : 'false', + generatorClassName, + variant: 'DISCLOSURE', + selectedRelRelationship, + }) + const downloadStatus = await DownloadService.download( + downloadUrl, + session.data, `LicenseInfo-${currentDate}.zip`, ) - } catch (e) { - console.error(e) + if (downloadStatus === StatusCodes.OK) { + setShowConfirmation(true) + setShow(false) + } + } catch (error) { + if (error instanceof DOMException && error.name === 'AbortError') { + return + } + const message = error instanceof Error ? error.message : String(error) + MessageService.error(message) + } finally { + setLoading(false) } } @@ -103,57 +182,59 @@ export default function DownloadLicenseInfoModal({
{t('Uncheck project release relationships to be excluded')}:
-
- - -
- -
{t('Uncheck Linked Project Relationships to be excluded')}:
- + {relationFilterOptions + .filter((fil) => projectRelationships.indexOf(fil.value) !== -1) + .map((fil) => ( +
+ { + const ind = selectedRelRelationship.indexOf(fil.value) + if (ind !== -1) { + const newSelectedRelRelationship = selectedRelRelationship.toSpliced(ind, 1) + setSelectedRelRelationship(newSelectedRelRelationship) + } else { + const newSelectedRelRelationship = [ + ...selectedRelRelationship, + fil.value, + ] + setSelectedRelRelationship(newSelectedRelRelationship) + } + }} + checked={selectedRelRelationship.indexOf(fil.value) !== -1} + /> + +
+ ))} + {Object.hasOwn(Object.fromEntries(params), 'withSubProjects') === true && ( + <> +
{t('Uncheck Linked Project Relationships to be excluded')}:
+
+ setWithSubProject(!withSubProject)} + /> + +
+ + )}
{t('Select output format')}:
- + {isCalledFromProjectLicenseTab && ( +
+ + +
+ )}
diff --git a/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx b/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx index 5de7c47fe..0d687161b 100644 --- a/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx +++ b/src/app/[locale]/projects/generateLicenseInfo/[id]/components/GenerateLicenseInfo.tsx @@ -267,6 +267,19 @@ const buildTable = ( return tableData } +const fetchReleaseRelationsFromLinkedProjects = (linkedProjects: Project[], filters: string[]) => { + for (const p of linkedProjects) { + for (const l of p.linkedReleases ?? []) { + const ind = filters.indexOf(l.relation) + + if (ind === -1) { + filters.push(l.relation) + } + } + fetchReleaseRelationsFromLinkedProjects(p._embedded?.['sw360:linkedProjects'] ?? [], filters) + } +} + function GenerateLicenseInfo({ projectId, }: Readonly<{ @@ -287,6 +300,7 @@ function GenerateLicenseInfo({ const [key, setKey] = useState('show_all') const [showConfirmation, setShowConfirmation] = useState(false) const [isCalledFromProjectLicenseTab, setIsCalledFromProjectLicenseTab] = useState(false) + const [projectRelationships, setProjectRelationships] = useState([]) const session = useSession() useEffect(() => { @@ -333,6 +347,24 @@ function GenerateLicenseInfo({ ], ) + useEffect(() => { + if (!project || !memoizedLinkedProjects) return + + const filters: string[] = [] + + for (const l of project.linkedReleases ?? []) { + const ind = filters.indexOf(l.relation) + + if (ind === -1) { + filters.push(l.relation) + } + } + fetchReleaseRelationsFromLinkedProjects(project._embedded?.['sw360:linkedProjects'] ?? [], filters) + setProjectRelationships(filters) + }, [ + project, + ]) + const columns = useMemo< ColumnDef>[] >( @@ -911,133 +943,126 @@ function GenerateLicenseInfo({ saveUsagesPayload, ]) - if (project === undefined) { - return ( -
- -
- ) - } else { - return ( - <> - - -
-
-
-
{t('GENERATE LICENSE INFORMATION')}
-
- {project.name} {project.version !== undefined && `(${project.version})`} -
+ return ( + <> + + +
+
+
+
{t('GENERATE LICENSE INFORMATION')}
+
+ {project && `${project.name} ${project.version !== undefined && `(${project.version})`}`}
-
- {data ? ( - setKey(k === null ? 'show_all' : k)} - > -
- -
-
+
+ {data ? ( + setKey(k === null ? 'show_all' : k)} + > +
+
- - -
- {table ? ( - - ) : ( -
- -
- )} -
-
- -
- {table ? ( - - ) : ( -
- -
- )} -
-
-
-
- ) : ( -
- + + + + + + + + + {t('Show All')} + + + + + {t('Only Approved')} + + +
- )} -
+
+ {t( + 'No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading', + )} +
+ + +
+ {table ? ( + + ) : ( +
+ +
+ )} +
+
+ +
+ {table ? ( + + ) : ( +
+ +
+ )} +
+
+
+ + ) : ( +
+ +
+ )}
- - ) - } +
+ + ) } // Pass notAllowedUserGroups to AccessControl to restrict access diff --git a/src/utils/common.utils.ts b/src/utils/common.utils.ts index da3511d44..4068d1097 100644 --- a/src/utils/common.utils.ts +++ b/src/utils/common.utils.ts @@ -38,7 +38,7 @@ const isNullEmptyOrUndefinedString = (str: string | undefined | null): str is nu } interface UrlWithParams { - [key: string]: string + [key: string]: string | string[] } /** @@ -49,18 +49,27 @@ interface UrlWithParams { * @returns The URL with the query parameters. */ const createUrlWithParams = (url: string, params: UrlWithParams): string => { - const queryString = Object.keys(params) - .filter((key) => params[key]) - .map((key) => { - return [ - key, - params[key], - ] - .map(encodeURIComponent) - .join('=') - }) - .join('&') - return `${url}?${queryString}` + const queryParts: string[] = [] + + Object.keys(params).forEach((key) => { + const value = params[key] + + if (Array.isArray(value)) { + value.forEach((item) => { + if (item !== undefined && item !== null && item !== '') { + queryParts.push(`${encodeURIComponent(key)}=${encodeURIComponent(item)}`) + } + }) + } else { + queryParts.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`) + } + }) + + if (queryParts.length === 0) { + return url // No parameters to add + } + + return `${url}?${queryParts.join('&')}` } /** From 3932ca87027c2cd5083258064782ac03be1c4749 Mon Sep 17 00:00:00 2001 From: sandyp025 Date: Sun, 25 Jan 2026 03:42:06 +0530 Subject: [PATCH 017/492] feat(auth): Add refresh token support for Keycloak --- nextauth.d.ts | 4 +- .../auth/[...nextauth]/keycloakAuthOption.ts | 72 ++++++++++++++++++- 2 files changed, 73 insertions(+), 3 deletions(-) diff --git a/nextauth.d.ts b/nextauth.d.ts index dddfa6693..abd7f0a7a 100644 --- a/nextauth.d.ts +++ b/nextauth.d.ts @@ -9,6 +9,7 @@ // License-Filename: LICENSE import 'next-auth' +import { JwtPayload } from 'jwt-decode' import { UserGroupType } from '@/object-types' import { Profile, DefaultUser } from 'next-auth' @@ -25,7 +26,8 @@ interface SW360User extends DefaultUser { email: string userGroup: UserGroupType id_token: string - decoded: string + decoded: JwtPayload + error?: string } interface SW360Profile extends Profile { diff --git a/src/app/api/auth/[...nextauth]/keycloakAuthOption.ts b/src/app/api/auth/[...nextauth]/keycloakAuthOption.ts index 0c16e289a..1c0d1ed63 100644 --- a/src/app/api/auth/[...nextauth]/keycloakAuthOption.ts +++ b/src/app/api/auth/[...nextauth]/keycloakAuthOption.ts @@ -9,10 +9,25 @@ import { jwtDecode } from 'jwt-decode' import { NextAuthOptions } from 'next-auth' +import { JWT } from 'next-auth/jwt' import KeycloakProvider from 'next-auth/providers/keycloak' import { UserGroupType } from '@/object-types' import { AUTH_ISSUER, SW360_KEYCLOAK_CLIENT_ID, SW360_KEYCLOAK_CLIENT_SECRET } from '@/utils/env' +interface KeycloakRefreshTokenResponse { + access_token: string + id_token: string + expires_in: number + refresh_token: string + token_type: string + scope: string +} + +interface KeycloakRefreshTokenError { + error: string + error_description: string +} + const keycloakProvider = KeycloakProvider({ clientId: SW360_KEYCLOAK_CLIENT_ID, clientSecret: SW360_KEYCLOAK_CLIENT_SECRET, @@ -35,7 +50,7 @@ const keycloakAuthOption: NextAuthOptions = { }, callbacks: { - jwt({ token, account }) { + async jwt({ token, account }) { if ( account && account.access_token !== undefined && @@ -52,8 +67,14 @@ const keycloakAuthOption: NextAuthOptions = { } const userGroup = getUserGroup(tokenDetails) token.userGroup = userGroup[0] + return token } - return token + + if (Date.now() < (token.expires_in - 30) * 1000) { + return token + } + + return await refreshAccessToken(token) }, session({ session, token }) { // Send properties to the client, like an access_token from a provider. @@ -97,4 +118,51 @@ function getUserGroup(tokenDetails: { userGroup?: string[] }): UserGroupType[] { ] } +async function refreshAccessToken(token: JWT): Promise { + try { + const tokenEndpoint = `${AUTH_ISSUER}/protocol/openid-connect/token` + const response = await fetch(tokenEndpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + body: new URLSearchParams({ + client_id: SW360_KEYCLOAK_CLIENT_ID, + client_secret: SW360_KEYCLOAK_CLIENT_SECRET, + grant_type: 'refresh_token', + refresh_token: token.refresh_token, + }), + }) + + const refreshedTokens = (await response.json()) as KeycloakRefreshTokenResponse | KeycloakRefreshTokenError + + if (!response.ok) { + const errorResponse = refreshedTokens as KeycloakRefreshTokenError + throw new Error(errorResponse.error_description || errorResponse.error) + } + + const successResponse = refreshedTokens as KeycloakRefreshTokenResponse + const decoded = jwtDecode(successResponse.access_token) + const tokenDetails = JSON.parse(JSON.stringify(decoded)) as { + userGroup?: string[] + } + const userGroup = getUserGroup(tokenDetails) + + return { + ...token, + access_token: 'Bearer ' + successResponse.id_token, + expires_in: Math.floor(Date.now() / 1000) + successResponse.expires_in, + refresh_token: successResponse.refresh_token ?? token.refresh_token, + decoded: decoded, + userGroup: userGroup[0], + } + } catch (error) { + console.error(error) + return { + ...token, + error: 'RefreshAccessTokenError', + } + } +} + export default keycloakAuthOption From 1b6e556f80d9cd92e803946c99737c7ba2a69d62 Mon Sep 17 00:00:00 2001 From: chauhan-varun Date: Sun, 25 Jan 2026 09:29:04 +0530 Subject: [PATCH 018/492] refactor: Improve loading state in dependency network views --- .../components/DependencyNetworkListView.tsx | 31 +++++++++++-------- .../components/DependencyNetworkTreeView.tsx | 18 +++++++++-- 2 files changed, 33 insertions(+), 16 deletions(-) diff --git a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx index 92397ca65..2f507d2f6 100644 --- a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkListView.tsx @@ -183,16 +183,15 @@ const DependencyNetworkListView = ({ projectId }: { projectId: string }) => { const [columnFilters, setColumnFilters] = useState([]) const [showFilter, setShowFilter] = useState() - const [showProcessing, setShowProcessing] = useState(false) + // Track loading state for API call and data readiness separately + const [isLoading, setIsLoading] = useState(true) + const [isDataReady, setIsDataReady] = useState(false) + + // Show processing until API call completes AND data is ready to render + const showProcessing = isLoading || !isDataReady const [listViewData, setListViewData] = useState([]) const [rowData, setRowData] = useState([]) - const memoizedRowData = useMemo( - () => rowData, - [ - rowData, - ], - ) const [search, setSearch] = useState<{ search: string }>({ @@ -416,10 +415,15 @@ const DependencyNetworkListView = ({ projectId }: { projectId: string }) => { return true }) setRowData(data) + // Mark data as ready only after setting row data + if (listViewData.length > 0 || !isLoading) { + setIsDataReady(true) + } }, [ search, columnFilters, listViewData, + isLoading, ]) const table = useReactTable({ @@ -449,10 +453,9 @@ const DependencyNetworkListView = ({ projectId }: { projectId: string }) => { const controller = new AbortController() const signal = controller.signal - const timeLimit = memoizedRowData.length === 0 ? 700 : 0 - const timeout = setTimeout(() => { - setShowProcessing(true) - }, timeLimit) + // Reset loading states when starting new fetch + setIsLoading(true) + setIsDataReady(false) void (async () => { try { @@ -474,12 +477,14 @@ const DependencyNetworkListView = ({ projectId }: { projectId: string }) => { } catch (error) { ApiUtils.reportError(error) } finally { - clearTimeout(timeout) - setShowProcessing(false) + setIsLoading(false) } })() + + return () => controller.abort() }, [ projectId, + session.status, ]) const searchFunction = (event: React.KeyboardEvent) => { diff --git a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx index f052a02e0..6a0bfcf5e 100644 --- a/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/DependencyNetworkTreeView.tsx @@ -202,7 +202,12 @@ const DependencyNetworkTreeView = ({ projectId }: Props) => { const [expandedState, setExpandedState] = useState({}) const [columnFilters, setColumnFilters] = useState([]) - const [showProcessing, setShowProcessing] = useState(false) + // Track loading state for API call and data readiness separately + const [isLoading, setIsLoading] = useState(true) + const [isDataReady, setIsDataReady] = useState(false) + + // Show processing until API call completes AND data is ready to render + const showProcessing = isLoading || !isDataReady const [showFilter, setShowFilter] = useState() const [search, setSearch] = useState('') @@ -551,7 +556,9 @@ const DependencyNetworkTreeView = ({ projectId }: Props) => { const controller = new AbortController() const signal = controller.signal - setShowProcessing(true) + // Reset loading states when starting new fetch + setIsLoading(true) + setIsDataReady(false) void (async () => { try { @@ -573,11 +580,14 @@ const DependencyNetworkTreeView = ({ projectId }: Props) => { } catch (error) { ApiUtils.reportError(error) } finally { - setShowProcessing(false) + setIsLoading(false) } })() + + return () => controller.abort() }, [ projectId, + session.status, ]) const fetchReleasesRecursive = ( @@ -653,6 +663,8 @@ const DependencyNetworkTreeView = ({ projectId }: Props) => { } tableData.push(root) setRowData(tableData) + // Mark data as ready only after setting row data + setIsDataReady(true) }, [ projectClearingState, search, From 1a1ca9bf4317641463546a4e3c5fe8427482a429 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 10:32:08 +0000 Subject: [PATCH 019/492] chore(deps): bump actions/checkout from 6.0.1 to 6.0.2 Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/build_deploy.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/commit_checks.yaml | 2 +- .github/workflows/dependency-review.yml | 2 +- .github/workflows/docker_deploy.yml | 2 +- .github/workflows/scorecard.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 258288ba6..255f009cf 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -28,7 +28,7 @@ jobs: egress-policy: audit - name: Checkout source code - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: pnpm-setup uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 61436e0af..66a31f8c7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -62,7 +62,7 @@ jobs: egress-policy: audit - name: Checkout repository - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/commit_checks.yaml b/.github/workflows/commit_checks.yaml index c24004b57..bc5c6c6af 100644 --- a/.github/workflows/commit_checks.yaml +++ b/.github/workflows/commit_checks.yaml @@ -26,7 +26,7 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: webiny/action-conventional-commits@faccb24fc2550dd15c0390d944379d2d8ed9690e # v1.3.1 - uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # main diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 93101e796..0869e0d70 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -22,6 +22,6 @@ jobs: egress-policy: audit - name: 'Checkout Repository' - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: 'Dependency Review' uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 diff --git a/.github/workflows/docker_deploy.yml b/.github/workflows/docker_deploy.yml index 595942364..431db886f 100644 --- a/.github/workflows/docker_deploy.yml +++ b/.github/workflows/docker_deploy.yml @@ -38,7 +38,7 @@ jobs: egress-policy: audit - name: Checkout main repository - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set environment variables run: | diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 6e49eb8cb..cad941064 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -36,7 +36,7 @@ jobs: egress-policy: audit - name: "Checkout code" - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false From f54005c537a7969dbb244ee6326e1ad60ae42c87 Mon Sep 17 00:00:00 2001 From: manhuu14 Date: Sun, 25 Jan 2026 14:48:04 +0530 Subject: [PATCH 020/492] fix: Resolve license clearing table issues - Replace FaPencilAlt with BsPencil icon per CONTRIBUTING.md guidelines - Fix render loop by removing memoizedLicenseClearing from useEffect dependencies - Improve modal UI with list-unstyled class and file icons - Simplify showProcessing logic to prevent continuous hover state Fixes feedback from PR #1385 Signed-off-by: manhuu14 --- .../detail/[id]/components/ListView.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/app/[locale]/projects/detail/[id]/components/ListView.tsx b/src/app/[locale]/projects/detail/[id]/components/ListView.tsx index 0f347f043..2477a81ce 100644 --- a/src/app/[locale]/projects/detail/[id]/components/ListView.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/ListView.tsx @@ -23,7 +23,8 @@ import { useTranslations } from 'next-intl' import { ClientSidePageSizeSelector, ClientSideTableFooter, FilterComponent, SW360Table } from 'next-sw360' import { type JSX, useCallback, useEffect, useMemo, useState } from 'react' import { Button, Modal, OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' -import { FaFile, FaPencilAlt } from 'react-icons/fa' +import { BsPencil } from 'react-icons/bs' +import { FaFile } from 'react-icons/fa' import { Embedded, ErrorDetails, FilterOption, LicenseClearing, Project, Release, TypedEntity } from '@/object-types' import { ApiError, ApiUtils, CommonUtils } from '@/utils' @@ -606,7 +607,7 @@ export default function ListView({ href={url} className='overlay-trigger' > - + {row.original.type === 'release' && ( @@ -777,15 +778,22 @@ export default function ListView({ {licenseFiles.length > 0 ? ( -
    - {licenseFiles.map((file, index) => ( -
  • {file}
  • +
      + {licenseFiles.map((file) => ( +
    • + + {file} +
    • ))}
    ) : ( -

    {t('No license files available')}

    +

    {t('No license files available')}

    )} + + +// โœ… Correct: Bootstrap utility classes +
    Content
    + + +// โœ… Correct: Custom class in globals.css +
    Content
    +``` + +When you need custom styles, add them to `src/styles/globals.css`: +```css +/* src/styles/globals.css */ +.custom-card-container { + margin-left: 10px; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} +``` + +### Biome Linting & Formatting + +Always run Biome before committing: + +```bash +# Check code for issues +npx biome check src/ + +# Auto-fix formatting issues +npx biome format --write src/ + +# Check and fix specific file +npx biome check --write src/components/MyComponent.tsx + +# Fix with unsafe changes (use carefully) +npx biome check --write --unsafe src/ +``` + +#### Biome Rules (from biome.json) +| Rule | Value | +|------|-------| +| Indentation | 4 spaces | +| Line width | 120 characters | +| Quotes | Single quotes | +| Trailing commas | All | +| Line endings | LF | +| Semicolons | As needed | + +#### Key Linter Rules +- `noUnusedImports` - Remove unused imports +- `noUnusedVariables` - Remove unused variables +- `useAwait` - Async functions must use await +- `noExplicitAny` - Warn on `any` type usage + +### Import Organization + +```typescript +// 1. React imports +import { type JSX, useState, useEffect, useCallback, useMemo } from 'react' + +// 2. Next.js imports +import Link from 'next/link' +import { useRouter } from 'next/navigation' + +// 3. External library imports +import { getSession, signOut } from 'next-auth/react' +import { useTranslations } from 'next-intl' +import { Button, Form, Modal } from 'react-bootstrap' +import { StatusCodes } from 'http-status-codes' + +// 4. Internal imports (using path aliases) +import { User, Project } from '@/object-types' +import { ApiUtils, CommonUtils } from '@/utils' +import { SW360Table, TableFooter } from 'next-sw360' +import MessageService from '@/services/message.service' +``` + +### Error Handling Pattern + +```typescript +// โœ… Correct: Centralized error handling +try { + const response = await ApiUtils.GET('endpoint', token) + if (response.status !== StatusCodes.OK) { + throw new ApiError('Request failed', { status: response.status }) + } + // Process successful response +} catch (error) { + ApiUtils.reportError(error) // Shows toast notification +} + +// For form submissions with user feedback +try { + await submitData() + MessageService.success(t('Operation successful')) +} catch (error) { + MessageService.error(t('Operation failed')) + console.error('Submit error:', error) +} +``` + +--- + +## Project Structure + +``` +sw360-frontend/ +โ”œโ”€โ”€ src/ +โ”‚ โ”œโ”€โ”€ app/ # Next.js App Router pages +โ”‚ โ”‚ โ”œโ”€โ”€ [locale]/ # Locale-prefixed routes +โ”‚ โ”‚ โ”œโ”€โ”€ api/ # API routes (auth, session) +โ”‚ โ”‚ โ””โ”€โ”€ provider.tsx # Session provider +โ”‚ โ”œโ”€โ”€ components/ # Reusable components +โ”‚ โ”‚ โ””โ”€โ”€ sw360/ # Core SW360 components (aliased as 'next-sw360') +โ”‚ โ”œโ”€โ”€ contexts/ # React Context providers +โ”‚ โ”œโ”€โ”€ hooks/ # Custom React hooks +โ”‚ โ”œโ”€โ”€ i18n/ # Internationalization config +โ”‚ โ”œโ”€โ”€ object-types/ # TypeScript interfaces and types +โ”‚ โ”‚ โ””โ”€โ”€ enums/ # Enumeration types +โ”‚ โ”œโ”€โ”€ services/ # Service layer (auth, download, message) +โ”‚ โ”œโ”€โ”€ styles/ # Global CSS styles (globals.css) +โ”‚ โ””โ”€โ”€ utils/ # Utility functions +โ”‚ โ””โ”€โ”€ api/ # API utilities (ApiUtils) +โ”œโ”€โ”€ messages/ # Translation files (10 locales) +โ”œโ”€โ”€ cypress/ # E2E tests +โ”œโ”€โ”€ biome.json # Biome linter config +โ””โ”€โ”€ tsconfig.json # TypeScript configuration +``` + +### Import Path Aliases + +```typescript +import { User, Project } from '@/object-types' // src/object-types +import { ApiUtils, CommonUtils } from '@/utils' // src/utils +import { SW360Table, TableFooter } from 'next-sw360' // src/components/sw360 +import MessageService from '@/services/message.service' // src/services +import { useUiConfig } from '@/hooks' // src/hooks +``` + +--- + +## Component Development + +### License Header (Required) + +All files must include the EPL-2.0 license header: +```typescript +// Copyright (C) [Organization], [Year]. Part of the SW360 Frontend Project. + +// This program and the accompanying materials are made +// available under the terms of the Eclipse Public License 2.0 +// which is available at https://www.eclipse.org/legal/epl-2.0/ + +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE +``` + +### When to Use 'use client' + +Add `'use client'` directive for components with: +- React hooks (useState, useEffect, useCallback, etc.) +- Event handlers (onClick, onChange, etc.) +- Browser APIs +- next-auth session access + +--- + +## API Communication + +### ApiUtils Pattern + +```typescript +import { ApiUtils, ApiError } from '@/utils' +import { getSession, signOut } from 'next-auth/react' +import { StatusCodes } from 'http-status-codes' + +// Always use async/await +const fetchData = async () => { + const session = await getSession() + if (!session) return signOut() + + try { + const response = await ApiUtils.GET('users', session.user.access_token) + if (response.status === StatusCodes.OK) { + const data = await response.json() + return data + } + } catch (error) { + ApiUtils.reportError(error) + } +} + +// POST with data +const createUser = async (userData: UserPayload) => { + const session = await getSession() + if (!session) return signOut() + + const response = await ApiUtils.POST('users', userData, session.user.access_token) + // Handle response +} +``` + +### Data Fetching in useEffect + +```typescript +useEffect(() => { + const controller = new AbortController() + + const fetchData = async () => { + const session = await getSession() + if (!session) return signOut() + + try { + const response = await ApiUtils.GET(url, session.user.access_token, controller.signal) + // Process response + } catch (error) { + ApiUtils.reportError(error) + } + } + + fetchData() + return () => controller.abort() +}, [dependencies]) +``` + +### File Upload Pattern + +```typescript +const handleUpload = async (file: File) => { + const session = await getSession() + if (!session) return signOut() + + const formData = new FormData() + formData.append('fieldName', file) + + const response = await fetch( + `${SW360_API_URL}/resource/api/endpoint`, + { + method: 'POST', + headers: { Authorization: session.user.access_token }, + body: formData, + } + ) +} +``` + +--- + +## Internationalization (i18n) + +### Supported Locales +`en`, `de`, `es`, `fr`, `ja`, `ko`, `pt-BR`, `vi`, `zh-CN`, `zh-TW` + +### Using Translations + +```typescript +import { useTranslations } from 'next-intl' + +function MyComponent() { + const t = useTranslations('default') + + return ( +
    +

    {t('Users')}

    +

    {t.rich('showing page entries', { + entryStart: 1, + entryEnd: 10, + totalElements: 100, + })}

    +
    + ) +} +``` + +### Adding New Translations + +**IMPORTANT**: Add keys to ALL 10 locale files in `messages/` + +```json +// messages/en.json +{ + "Bulk User Upload": "Bulk User Upload", + "Upload successful entries created": "Upload successful: {count} entries created" +} +``` + +--- + +## State Management + +### Component State + +```typescript +const [loading, setLoading] = useState(false) +const [data, setData] = useState([]) +``` + +### Refresh Trigger Pattern + +```typescript +const [refreshTrigger, setRefreshTrigger] = useState(0) + +const handleSuccess = useCallback(() => { + setRefreshTrigger(prev => prev + 1) +}, []) + +useEffect(() => { + // Fetch data +}, [refreshTrigger]) +``` + +### Toast Messages + +```typescript +import MessageService from '@/services/message.service' + +MessageService.success('Operation completed') +MessageService.error('Operation failed') +MessageService.info('Information message') +MessageService.warn('Warning message') +``` + +--- + +## Tables with @tanstack/react-table + +```typescript +import { ColumnDef, getCoreRowModel, useReactTable } from '@tanstack/react-table' +import { SW360Table, TableFooter, PageSizeSelector } from 'next-sw360' + +const columns = useMemo[]>(() => [ + { + id: 'email', + accessorKey: 'email', + header: t('Email'), + enableSorting: true, + cell: ({ row }) => ( + + {row.original.email} + + ), + meta: { width: '25%' }, + }, +], [t]) + +const table = useReactTable({ + data: userData, + columns, + getCoreRowModel: getCoreRowModel(), + manualPagination: true, + pageCount: paginationMeta?.totalPages ?? 1, +}) + +return ( + <> + + + +) +``` + +--- + +## Authentication + +### Session Access + +```typescript +import { getSession, useSession, signOut } from 'next-auth/react' + +// Hook usage +const { data: session, status } = useSession() + +useEffect(() => { + if (status === 'unauthenticated') { + void signOut() + } +}, [status]) + +// For API calls +const session = await getSession() +if (!session) return signOut() +const response = await ApiUtils.GET('endpoint', session.user.access_token) +``` + +### Auth Providers +Configured via `NEXT_PUBLIC_SW360_AUTH_PROVIDER`: `sw360basic` | `sw360oauth` | `keycloak` + +--- + +## Utility Functions + +### CommonUtils + +```typescript +import { CommonUtils } from '@/utils' + +CommonUtils.isNullOrUndefined(obj) +CommonUtils.isNullEmptyOrUndefinedString(str) +CommonUtils.isNullEmptyOrUndefinedArray(arr) +CommonUtils.createUrlWithParams(url, params) +CommonUtils.getIdFromUrl(url) // '/users/abc123' -> 'abc123' +``` + +--- + +## Testing + +```bash +pnpm cypress:open # Open Cypress UI +pnpm cypress:run # Run headless +``` + +--- + +## Development Commands + +```bash +pnpm install # Install dependencies +pnpm dev # Start dev server +pnpm build # Production build +pnpm lint # Run Biome linter +``` + +--- + +## Configuration + +### Key Environment Variables + +| Variable | Description | +|----------|-------------| +| `NEXT_PUBLIC_SW360_API_URL` | Backend API URL | +| `NEXT_PUBLIC_SW360_AUTH_PROVIDER` | Auth provider: `sw360basic`, `sw360oauth`, `keycloak` | +| `NEXTAUTH_URL` | Frontend URL | +| `NEXTAUTH_SECRET` | Session encryption secret | + +See `.env` and `docs/templates/template.env` for full list. + +--- + +## Git Workflow + +For commit message format, branch naming conventions, and PR guidelines, see: +**[git-commit-instructions.md](./git-commit-instructions.md)** + +--- + +## AI Copilot Checklist + +When generating code for SW360 Frontend: + +- [ ] Include license header +- [ ] Use `'use client'` for interactive components +- [ ] Use TypeScript strict types for all props and state +- [ ] Use functional components only +- [ ] Use `async/await` for all async operations +- [ ] Use path aliases (`@/`) for imports +- [ ] Use `next-sw360` barrel exports for SW360 components +- [ ] Translate all user-facing text with `useTranslations` +- [ ] Handle errors with `ApiUtils.reportError()` +- [ ] No inline CSS - use Bootstrap utilities or globals.css +- [ ] Add translations to ALL 10 locale files +- [ ] Run `npx biome check` before committing + +### File Naming + +| Type | Pattern | Example | +|------|---------|---------| +| Page | `page.tsx` | `src/app/[locale]/admin/users/page.tsx` | +| Component | `PascalCase.tsx` | `UserAdministration.tsx` | +| Hook | `useCamelCase.ts` | `useLocalStorage.ts` | +| Type | `PascalCase.ts` | `User.ts` | +| Utility | `camelCase.utils.ts` | `common.utils.ts` | + +--- + +*For versions, see `package.json`. For latest standards, see source code and `biome.json`.* From 630b96e69c3a914b0b521bb4bbd3f331de37325b Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Wed, 28 Jan 2026 19:36:15 +0100 Subject: [PATCH 025/492] feat(ai): Normalize instructions and remove old ones Signed-off-by: Helio Chissini de Castro --- .claude/CLAUDE.md | 3 ++- .copilot/prompt.md | 4 +++- .github/instructions/git-commit-instructions.md | 4 +++- ai-guidelines.md | 14 -------------- 4 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 ai-guidelines.md diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 6ae8017d1..5bc03ae1b 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -1 +1,2 @@ -@ai-guidelines.md \ No newline at end of file +@.github/instructions/git-commit-instructions.md +@.github/instructions/sw360_frontend.instructions.md diff --git a/.copilot/prompt.md b/.copilot/prompt.md index 5afe13029..5236ded3a 100644 --- a/.copilot/prompt.md +++ b/.copilot/prompt.md @@ -1,6 +1,8 @@ # Copilot Project Instructions -Use the rules defined in the file ai-guidelines.md at the root of this repository. +Use the rules defined in the followunf files: +- .github/instructions/git-commit-instructions.md +- .github/instructions/sw360_frontend.instructions.md Always follow those rules when: - generating commit messages diff --git a/.github/instructions/git-commit-instructions.md b/.github/instructions/git-commit-instructions.md index b82f36689..8203efa42 100644 --- a/.github/instructions/git-commit-instructions.md +++ b/.github/instructions/git-commit-instructions.md @@ -14,13 +14,15 @@ Signed-off-by: Your Name ### Rules - Use the conventional commit format: `(): ` -- **REQUIRED**: All commits must include `Signed-off-by` line (use `git commit -s`) + - Follow specification https://www.conventionalcommits.org/en/v1.0.0/#specification +- **REQUIRED**: All commits must have DCO - Keep the subject line concise (under 72 characters, ideally under 50) - Use imperative mood (e.g., "add" not "added" or "adds") - Don't end the subject with a period - Use lowercase for the first word unless it's a proper noun - Separate subject from body with a blank line - Wrap body at 72 characters +- Every commit should mention thet was produced by AI, and origin of AI service as an independent line ### Types | Type | Description | Example | diff --git a/ai-guidelines.md b/ai-guidelines.md deleted file mode 100644 index 834c79a21..000000000 --- a/ai-guidelines.md +++ /dev/null @@ -1,14 +0,0 @@ -# AI Project Guidelines - -## Commit Message Rules -Use Conventional Commits: -(): - -Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert. - -## Code Style -- Use TypeScript strict mode -- Prefer functional components -- Use async/await -- Not use inline css styles, always update globals.css -- Always use biome tooling to check using local biome.json config \ No newline at end of file From 72e97113da03d6ceed543f2d1d0a61570804f1b4 Mon Sep 17 00:00:00 2001 From: Gaurav Mishra Date: Mon, 9 Dec 2024 12:45:19 +0530 Subject: [PATCH 026/492] fix(actions): do not build docker cron --- .github/workflows/docker_deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker_deploy.yml b/.github/workflows/docker_deploy.yml index 431db886f..a049b6698 100644 --- a/.github/workflows/docker_deploy.yml +++ b/.github/workflows/docker_deploy.yml @@ -10,8 +10,8 @@ name: Docker Build on: - schedule: - - cron: '0 0 * * *' # Midnight +# schedule: +# - cron: '0 0 * * *' # Midnight workflow_dispatch: push: tags: From 140b470aadf3c4b840eda49eaa7be1c82bafc34e Mon Sep 17 00:00:00 2001 From: Bibhuti Bhusan Dash Date: Tue, 27 Jan 2026 16:52:15 +0530 Subject: [PATCH 027/492] feat(admin): Add bulk user upload functionality Signed-off-by: Bibhuti Bhusan Dash --- messages/de.json | 4 + messages/en.json | 4 + messages/es.json | 4 + messages/fr.json | 4 + messages/ja.json | 4 + messages/ko.json | 4 + messages/pt-BR.json | 4 + messages/vi.json | 4 + messages/zh-CN.json | 4 + messages/zh-TW.json | 4 + .../admin/users/components/BulkUserUpload.tsx | 133 ++++++++++++++++++ .../users/components/UserAdministration.tsx | 8 ++ 12 files changed, 181 insertions(+) create mode 100644 src/app/[locale]/admin/users/components/BulkUserUpload.tsx diff --git a/messages/de.json b/messages/de.json index 6a4c99847..f061a4969 100644 --- a/messages/de.json +++ b/messages/de.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "Massenablehnungs-Moderationsanfragen", "Bulk Release Deleting Feature": "Lรถschfunktion der Bulk -Release", "Bulk Release Edit": "Bulk Release Edit", + "Bulk User Upload": "Massen-Benutzer-Upload", "Business Area Line": "Geschรคftsbereich/Linie", "CHECKED": "CHECED", "CLEARING": "CLEARING", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "Wรคhlen Sie Zugriff Komplexitรคt", "Select Access Vector": "Wรคhlen Sie Zugriff Vector", "Select Availability": "Verfรผgbarkeit auswรคhlen", + "Selected file": "Ausgewรคhlte Datei", "Select Confidentiality": "Vertraulichkeit auswรคhlen", "Select Domain": "Domain auswรคhlen", "Select Integrity": "Integrity auswรคhlen", @@ -1445,6 +1447,7 @@ "Upload Licenses": "Lizenzen hochladen", "Upload Project SBOM": "{importType} SBOM hochladen?", "Upload Release Links": "Release -Links hochladen", + "Upload Users": "Benutzer hochladen", "Upload SBOM": "Hochladen SBOM", "Upload SBOM to Existing Project": "Laden Sie SBOM in vorhandenes Projekt hoch", "Upload and Import": "Hochladen und importieren", @@ -1469,6 +1472,7 @@ "User preferences": "Nutzerpreferenzen", "User with the same email already exists": "Der Benutzer mit der gleichen E -Mail gibt es bereits!", "Users": "Benutzer", + "Users uploaded successfully": "Benutzer erfolgreich hochgeladen", "VALUE": "Wert", "VCS URLs were redirected": "VCS -URLs wurden umgeleitet", "VENDORS": "VENDOREN", diff --git a/messages/en.json b/messages/en.json index b10963c41..cfac35d0b 100644 --- a/messages/en.json +++ b/messages/en.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "Bulk Decline Moderation Requests", "Bulk Release Deleting Feature": "Bulk Release Deleting Feature", "Bulk Release Edit": "Bulk Release Edit", + "Bulk User Upload": "Bulk User Upload", "Business Area Line": "Business Area/Line", "CHECKED": "CHECKED", "CLEARING": "CLEARING", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "Select Access Complexity", "Select Access Vector": "Select Access Vector", "Select Availability": "Select Availability", + "Selected file": "Selected file", "Select Confidentiality": "Select Confidentiality", "Select Domain": "Select Domain", "Select Integrity": "Select Integrity", @@ -1445,6 +1447,7 @@ "Upload Licenses": "Upload Licenses", "Upload Project SBOM": "Upload {importType} SBOM?", "Upload Release Links": "Upload Release Links", + "Upload Users": "Upload Users", "Upload SBOM": "Upload SBOM", "Upload SBOM to Existing Project": "Upload SBOM to existing project", "Upload and Import": "Upload and Import", @@ -1469,6 +1472,7 @@ "User preferences": "User preferences", "User with the same email already exists": "User with the same email already exists!", "Users": "Users", + "Users uploaded successfully": "Users uploaded successfully", "VALUE": "value", "VCS URLs were redirected": "VCS URLs were redirected", "VENDORS": "VENDORS", diff --git a/messages/es.json b/messages/es.json index ab134a5fe..7285054f5 100644 --- a/messages/es.json +++ b/messages/es.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "Solicitudes de moderaciรณn de rechazo masivo", "Bulk Release Deleting Feature": "Funciรณn de eliminaciรณn de lanzamiento a granel", "Bulk Release Edit": "Ediciรณn de lanzamiento a granel", + "Bulk User Upload": "Carga masiva de usuarios", "Business Area Line": "รrea/Lรญnea de Negocio", "CHECKED": "CHECKED", "CLEARING": "CLARO", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "Seleccione Complejidad de acceso", "Select Access Vector": "Seleccione Acceso Vector", "Select Availability": "Seleccione", + "Selected file": "Archivo seleccionado", "Select Confidentiality": "Seleccione Confidencialidad", "Select Domain": "Seleccionar dominio", "Select Integrity": "Seleccionar integridad", @@ -1445,6 +1447,7 @@ "Upload Licenses": "Subir licencias", "Upload Project SBOM": "ยฟSubir {importType} SBOM?", "Upload Release Links": "Subir enlaces de lanzamiento", + "Upload Users": "Subir usuarios", "Upload SBOM": "Subir SBOM", "Upload SBOM to Existing Project": "Subir SBOM al proyecto existente", "Upload and Import": "Cargar e importar", @@ -1469,6 +1472,7 @@ "User preferences": "Preferencias del usuario", "User with the same email already exists": "ยกEl usuario con el mismo correo electrรณnico ya existe!", "Users": "Usuarios", + "Users uploaded successfully": "Usuarios subidos exitosamente", "VALUE": "valor", "VCS URLs were redirected": "Las URL de VCS fueron redirigidas", "VENDORS": "VENDORS", diff --git a/messages/fr.json b/messages/fr.json index f78b8d9ad..9fb8c086b 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "Demandes de modรฉration de refus groupรฉes", "Bulk Release Deleting Feature": "Fonctionnement de suppression de version en vrac", "Bulk Release Edit": "ร‰dition de version en vrac", + "Bulk User Upload": "Tรฉlรฉchargement en masse des utilisateurs", "Business Area Line": "Domaine/Ligne d'activitรฉ", "CHECKED": "CONTRร”LE", "CLEARING": "CLAIRIรˆRE", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "Sรฉlectionner la complexitรฉ d'accรจs", "Select Access Vector": "Sรฉlectionner le vecteur d'accรจs", "Select Availability": "Sรฉlectionner la disponibilitรฉ", + "Selected file": "Fichier sรฉlectionnรฉ", "Select Confidentiality": "Sรฉlectionner la confidentialitรฉ", "Select Domain": "Sรฉlectionner un domaine", "Select Integrity": "Sรฉlectionner l'intรฉgritรฉ", @@ -1445,6 +1447,7 @@ "Upload Licenses": "Tรฉlรฉcharger les licences", "Upload Project SBOM": "Tรฉlรฉcharger {importType} SBOMย ?", "Upload Release Links": "Tรฉlรฉcharger les liens de version", + "Upload Users": "Tรฉlรฉcharger les utilisateurs", "Upload SBOM": "Tรฉlรฉcharger SBOM", "Upload SBOM to Existing Project": "Tรฉlรฉcharger SBOM vers le projet existant", "Upload and Import": "Tรฉlรฉcharger et importer", @@ -1469,6 +1472,7 @@ "User preferences": "Prรฉfรฉrences de l'utilisateur", "User with the same email already exists": "L'utilisateur avec le mรชme e-mail existe dรฉjร !", "Users": "Utilisateur", + "Users uploaded successfully": "Utilisateurs tรฉlรฉchargรฉs avec succรจs", "VALUE": "valeur", "VCS URLs were redirected": "Les URL VCS ont รฉtรฉ redirigรฉes", "VENDORS": "VENDEURS", diff --git a/messages/ja.json b/messages/ja.json index 556dba447..4413766b3 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "ใƒขใƒ‡ใƒฌใƒผใƒˆใƒชใ‚ฏใ‚จใ‚นใƒˆใฎไธ€ๆ‹ฌๆ‹’ๅฆ", "Bulk Release Deleting Feature": "ใƒใƒซใ‚ฏใƒชใƒชใƒผใ‚นๅ‰Š้™คๆฉŸ่ƒฝ", "Bulk Release Edit": "ไธ€ๆ‹ฌใƒชใƒชใƒผใ‚น็ทจ้›†", + "Bulk User Upload": "ใƒฆใƒผใ‚ถใƒผใฎไธ€ๆ‹ฌใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰", "Business Area Line": "ใƒ“ใ‚ธใƒใ‚นใ‚จใƒชใ‚ข/ใƒฉใ‚คใƒณ", "CHECKED": "ใƒใ‚งใƒƒใ‚ฏๆธˆใฟ", "CLEARING": "ใ‚ฏใƒชใ‚ขใƒชใƒณใ‚ฐ", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "ใ‚ขใ‚ฏใ‚ปใ‚นใฎ่ค‡้›‘ใ•ใ‚’้ธๆŠžใ—ใพใ™", "Select Access Vector": "ใ‚ขใ‚ฏใ‚ปใ‚นใƒ™ใ‚ฏใ‚ฟใƒผใฎ้ธๆŠž", "Select Availability": "ๅฏ็”จๆ€งใ‚’้ธๆŠžใ—ใฆใใ ใ•ใ„", + "Selected file": "้ธๆŠžใ•ใ‚ŒใŸใƒ•ใ‚กใ‚คใƒซ", "Select Confidentiality": "ๆฉŸๅฏ†ๆ€งใ‚’้ธๆŠžใ—ใฆใใ ใ•ใ„", "Select Domain": "ใƒ‰ใƒกใ‚คใƒณใฎ้ธๆŠž", "Select Integrity": "ๆ•ดๅˆๆ€งใฎ้ธๆŠž", @@ -1445,6 +1447,7 @@ "Upload Licenses": "ใƒฉใ‚คใ‚ปใƒณใ‚นใฎใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰", "Upload Project SBOM": "{importType} SBOM ใ‚’ใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใ—ใพใ™ใ‹?", "Upload Release Links": "ใƒชใƒชใƒผใ‚นใƒชใƒณใ‚ฏใ‚’ใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใ—ใพใ™", + "Upload Users": "ใƒฆใƒผใ‚ถใƒผใ‚’ใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰", "Upload SBOM": "Upload SBOM", "Upload SBOM to Existing Project": "SBOMใ‚’ๆ—ขๅญ˜ใฎใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใซใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใ—ใพใ™", "Upload and Import": "ใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใจใ‚คใƒณใƒใƒผใƒˆ", @@ -1469,6 +1472,7 @@ "User preferences": "ใƒฆใƒผใ‚ถใƒผ่จญๅฎš", "User with the same email already exists": "ๅŒใ˜ใƒกใƒผใƒซใ‚’ๆŒใคใƒฆใƒผใ‚ถใƒผใฏใ™ใงใซๅญ˜ๅœจใ—ใฆใ„ใพใ™๏ผ", "Users": "Users", + "Users uploaded successfully": "ใƒฆใƒผใ‚ถใƒผใŒๆญฃๅธธใซใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใ•ใ‚Œใพใ—ใŸ", "VALUE": "ไพกๅ€ค", "VCS URLs were redirected": "VCS URLใŒใƒชใƒ€ใ‚คใƒฌใ‚ฏใƒˆใ•ใ‚Œใพใ—ใŸ", "VENDORS": "VENDORS", diff --git a/messages/ko.json b/messages/ko.json index 09ed702e3..00394e0d4 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "๋Œ€๋Ÿ‰ ๊ฑฐ๋ถ€ ์กฐ์ • ์š”์ฒญ", "Bulk Release Deleting Feature": "๋Œ€๋Ÿ‰ ๋ฆด๋ฆฌ์Šค ์‚ญ์ œ ๊ธฐ๋Šฅ", "Bulk Release Edit": "๋Œ€๋Ÿ‰ ๋ฆด๋ฆฌ์Šค ํŽธ์ง‘", + "Bulk User Upload": "๋Œ€๋Ÿ‰ ์‚ฌ์šฉ์ž ์—…๋กœ๋“œ", "Business Area Line": "์‚ฌ์—…์˜์—ญ/๋ผ์ธ", "CHECKED": "๊ตฌ๋งคํ•˜๊ธฐ", "CLEARING": "์ฒญ์‚ฐ", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "์˜ค์‹œ๋Š” ๊ธธ", "Select Access Vector": "์•ก์„ธ์Šค ๋ฒกํ„ฐ ์„ ํƒ", "Select Availability": "์„ ํƒ ๊ฐ€๋Šฅ", + "Selected file": "์„ ํƒ๋œ ํŒŒ์ผ", "Select Confidentiality": "Confidentiality ์„ ํƒ", "Select Domain": "๋„๋ฉ”์ธ ์„ ํƒ", "Select Integrity": "Integrity ์„ ํƒ", @@ -1445,6 +1447,7 @@ "Upload Licenses": "๋น„๋ฐ€๋ฒˆํ˜ธ", "Upload Project SBOM": "{importType} SBOM์„ ์—…๋กœ๋“œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?", "Upload Release Links": "๋ฆด๋ฆฌ์Šค ๋งํฌ๋ฅผ ์—…๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค", + "Upload Users": "์‚ฌ์šฉ์ž ์—…๋กœ๋“œ", "Upload SBOM": "SBOM ๋‹ค์šด๋กœ๋“œ", "Upload SBOM to Existing Project": "SBOM์„ ๊ธฐ์กด ํ”„๋กœ์ ํŠธ์— ์—…๋กœ๋“œํ•˜์‹ญ์‹œ์˜ค", "Upload and Import": "์—…๋กœ๋“œ ๋ฐ ๊ฐ€์ ธ์˜ค๊ธฐ", @@ -1469,6 +1472,7 @@ "User preferences": "์‚ฌ์šฉ์ž ํ™˜๊ฒฝ์„ค์ •", "User with the same email already exists": "๋™์ผํ•œ ์ด๋ฉ”์ผ์„ ๊ฐ€์ง„ ์‚ฌ์šฉ์ž๊ฐ€ ์ด๋ฏธ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค!", "Users": "์ด๋ฆ„ *", + "Users uploaded successfully": "์‚ฌ์šฉ์ž๊ฐ€ ์„ฑ๊ณต์ ์œผ๋กœ ์—…๋กœ๋“œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค", "VALUE": "์ œํ’ˆ์ •๋ณด", "VCS URLs were redirected": "VCS URL์„ ๋ฆฌ๋””๋ ‰์…˜ํ–ˆ์Šต๋‹ˆ๋‹ค", "VENDORS": "ํšŒ์‚ฌ์—ฐํ˜", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index fad278604..e4447f683 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "Solicitaรงรตes de moderaรงรฃo de recusa em massa", "Bulk Release Deleting Feature": "Recurso de exclusรฃo de liberaรงรฃo em massa", "Bulk Release Edit": "Bulk Release Edit", + "Bulk User Upload": "Upload de usuรกrios em massa", "Business Area Line": "รrea/Linha de Negรณcios", "CHECKED": "VERIFICADO", "CLEARING": "LIMPEZA", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "Selecionar Complexidade de Acesso", "Select Access Vector": "Selecionar vetor de acesso", "Select Availability": "Selecione uma disponibilidade", + "Selected file": "Arquivo selecionado", "Select Confidentiality": "Selecione Confidencialidade", "Select Domain": "Selecionar Domรญnio", "Select Integrity": "Selecione Integridade", @@ -1445,6 +1447,7 @@ "Upload Licenses": "Carregar licenรงas", "Upload Project SBOM": "Carregar {importType} SBOM?", "Upload Release Links": "Carregar links de liberaรงรฃo", + "Upload Users": "Carregar usuรกrios", "Upload SBOM": "Carregar SBOM", "Upload SBOM to Existing Project": "Carregue o SBOM para o projeto existente", "Upload and Import": "Carregar e importar", @@ -1469,6 +1472,7 @@ "User preferences": "Preferรชncias de usuรกrio", "User with the same email already exists": "Usuรกrio com o mesmo email jรก existe!", "Users": "Usuรกrios", + "Users uploaded successfully": "Usuรกrios carregados com sucesso", "VALUE": "Valor", "VCS URLs were redirected": "URLs de VCS foram redirecionados", "VENDORS": "VENDORS", diff --git a/messages/vi.json b/messages/vi.json index c0bcf3891..b7029eb8b 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "Yรชu cแบงu kiแปƒm duyแป‡t tแปซ chแป‘i hร ng loแบกt", "Bulk Release Deleting Feature": "Tรญnh nฤƒng xรณa phรกt hร nh sแป‘ lฦฐแปฃng lแป›n", "Bulk Release Edit": "Bulk Release Edit", + "Bulk User Upload": "Tแบฃi lรชn ngฦฐแปi dรนng hร ng loแบกt", "Business Area Line": "Khu vแปฑc/Lฤฉnh vแปฑc kinh doanh", "CHECKED": "ฤรƒ KIแป‚M TRA", "CLEARING": "Xร“A", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "Chแปn ฤ‘แป™ phแปฉc tแบกp cแปงa quyแปn truy cแบญp", "Select Access Vector": "Chแปn vectฦก truy cแบญp", "Select Availability": "Chแปn tรฌnh trแบกng sแบตn cรณ", + "Selected file": "Tแป‡p ฤ‘รฃ chแปn", "Select Confidentiality": "Chแปn bแบฃo mแบญt", "Select Domain": "Chแปn tรชn miแปn", "Select Integrity": "Chแปn tรญnh toร n vแบนn", @@ -1445,6 +1447,7 @@ "Upload Licenses": "Tแบฃi lรชn giแบฅy phรฉp", "Upload Project SBOM": "Tแบฃi lรชn {importType SBOM?", "Upload Release Links": "Tแบฃi lรชn liรชn kแบฟt phรกt hร nh", + "Upload Users": "Tแบฃi lรชn ngฦฐแปi dรนng", "Upload SBOM": "Tแบฃi lรชn SBOM", "Upload SBOM to Existing Project": "Tแบฃi SBOM lรชn dแปฑ รกn hiแป‡n cรณ", "Upload and Import": "Tแบฃi lรชn vร  nhแบญp", @@ -1469,6 +1472,7 @@ "User preferences": "SแปŸ thรญch cแปงa ngฦฐแปi sแปญ dแปฅng", "User with the same email already exists": "Ngฦฐแปi dรนng cรณ cรนng mแป™t email ฤ‘รฃ tแป“n tแบกi!", "Users": "Ngฦฐแปi dรนng", + "Users uploaded successfully": "Ngฦฐแปi dรนng ฤ‘รฃ ฤ‘ฦฐแปฃc tแบฃi lรชn thร nh cรดng", "VALUE": "giรก trแป‹", "VCS URLs were redirected": "URL VCS ฤ‘รฃ ฤ‘ฦฐแปฃc chuyแปƒn hฦฐแป›ng", "VENDORS": "VENDORS", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index 94af12f6c..e9e6a82aa 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "ๆ‰น้‡ๆ‹’็ปๅฎกๆ ธ่ฏทๆฑ‚", "Bulk Release Deleting Feature": "ๆ‰น้‡ๅ‘ๅธƒๅˆ ้™คๅŠŸ่ƒฝ", "Bulk Release Edit": "Bulk Release Edit", + "Bulk User Upload": "ๆ‰น้‡ไธŠไผ ็”จๆˆท", "Business Area Line": "่ฅไธšๅŒบๅŸŸ/็บฟ่ทฏ", "CHECKED": "ๅทฒๆฃ€ๆŸฅ", "CLEARING": "ๆธ…็ฎ—", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "้€‰ๆ‹ฉ่ฎฟ้—ฎๅคๆ‚ๆ€ง", "Select Access Vector": "้€‰ๆ‹ฉ่ฎฟ้—ฎๅ‘้‡", "Select Availability": "้€‰ๆ‹ฉๅฏ็”จๆ€ง", + "Selected file": "ๅทฒ้€‰ๆ‹ฉ็š„ๆ–‡ไปถ", "Select Confidentiality": "้€‰ๆ‹ฉไฟๅฏ†ๆ€ง", "Select Domain": "้€‰ๆ‹ฉๅŸŸๅ", "Select Integrity": "้€‰ๆ‹ฉ่ฏšไฟก", @@ -1445,6 +1447,7 @@ "Upload Licenses": "ไธŠไผ ่ฎธๅฏ่ฏ", "Upload Project SBOM": "ไธŠไผ {importType} SBOM๏ผŸ", "Upload Release Links": "ไธŠไผ ๅ‘ๅธƒ้“พๆŽฅ", + "Upload Users": "ไธŠไผ ็”จๆˆท", "Upload SBOM": "ไธŠไผ SBOM", "Upload SBOM to Existing Project": "ๅฐ†SBOMไธŠไผ ๅˆฐ็Žฐๆœ‰้กน็›ฎ", "Upload and Import": "ไธŠไผ ๅ’Œๅฏผๅ…ฅ", @@ -1469,6 +1472,7 @@ "User preferences": "็”จๆˆทๅๅฅฝ", "User with the same email already exists": "ไฝฟ็”จ็›ธๅŒ็”ตๅญ้‚ฎไปถ็š„็”จๆˆทๅทฒ็ปๅญ˜ๅœจ๏ผ", "Users": "็”จๆˆท", + "Users uploaded successfully": "็”จๆˆทไธŠไผ ๆˆๅŠŸ", "VALUE": "ไปทๅ€ผ", "VCS URLs were redirected": "VCS URL่ขซ้‡ๅฎšๅ‘", "VENDORS": "VENDORS", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index 9ed519126..98e8ed6c6 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -127,6 +127,7 @@ "Bulk Decline Moderation Requests": "ๆ‰น้‡ๆ‹’็ต•ๅฏฉๆ ธ่ซ‹ๆฑ‚", "Bulk Release Deleting Feature": "ๆ‰น้‡็™ผๅธƒๅˆช้™คๅŠŸ่ƒฝ", "Bulk Release Edit": "ๆ‰น้‡ๆ”พ่กŒ็ทจ่ผฏ", + "Bulk User Upload": "ๆ‰น้‡ไธŠๅ‚ณไฝฟ็”จ่€…", "Business Area Line": "็‡Ÿๆฅญๅ€/็ทš่ทฏ", "CHECKED": "ๆชขๆŸฅ", "CLEARING": "ๆธ…็ฎ—", @@ -1260,6 +1261,7 @@ "Select Access Complexity": "้ธๆ“‡ๅญ˜ๅ–่ค‡้›œๅบฆ", "Select Access Vector": "้ธๆ“‡ๅญ˜ๅ–็Ÿข้‡", "Select Availability": "้ธๆ“‡ๅฏ็”จๆ€ง", + "Selected file": "ๅทฒ้ธๆ“‡็š„ๆช”ๆกˆ", "Select Confidentiality": "้ธๆ“‡ไฟๅฏ†", "Select Domain": "้ธๆ“‡็ถฒๅŸŸ", "Select Integrity": "้ธๆ“‡ๅฎŒๆ•ดๆ€ง", @@ -1445,6 +1447,7 @@ "Upload Licenses": "ไธŠๅ‚ณๆŽˆๆฌŠ", "Upload Project SBOM": "ไธŠๅ‚ณ{importType} SBOM๏ผŸ", "Upload Release Links": "ไธŠๅ‚ณ็™ผๅธƒ้ˆๆŽฅ", + "Upload Users": "ไธŠๅ‚ณไฝฟ็”จ่€…", "Upload SBOM": "ไธŠๅ‚ณ SBOM", "Upload SBOM to Existing Project": "ๅฐ‡SBOMไธŠๅ‚ณๅˆฐ็พๆœ‰้ …็›ฎ", "Upload and Import": "ไธŠๅ‚ณๅ’ŒๅฐŽๅ…ฅ", @@ -1469,6 +1472,7 @@ "User preferences": "ไฝฟ็”จ่€…ๅๅฅฝ", "User with the same email already exists": "ไฝฟ็”จ็›ธๅŒ้›ปๅญ้ƒตไปถ็š„็”จๆˆถๅทฒ็ถ“ๅญ˜ๅœจ๏ผ", "Users": "ไฝฟ็”จ่€…", + "Users uploaded successfully": "ไฝฟ็”จ่€…ไธŠๅ‚ณๆˆๅŠŸ", "VALUE": "ๅ€ผ", "VCS URLs were redirected": "VCS URL่ขซ้‡ๅฎšๅ‘", "VENDORS": "้€‰ๆฐ‘", diff --git a/src/app/[locale]/admin/users/components/BulkUserUpload.tsx b/src/app/[locale]/admin/users/components/BulkUserUpload.tsx new file mode 100644 index 000000000..7dee0a3d6 --- /dev/null +++ b/src/app/[locale]/admin/users/components/BulkUserUpload.tsx @@ -0,0 +1,133 @@ +// Copyright (C) Siemens AG, 2026. Part of the SW360 Frontend Project. + +// This program and the accompanying materials are made +// available under the terms of the Eclipse Public License 2.0 +// which is available at https://www.eclipse.org/legal/epl-2.0/ + +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE + +'use client' + +import { StatusCodes } from 'http-status-codes' +import { getSession, signOut } from 'next-auth/react' +import { useTranslations } from 'next-intl' +import { type JSX, useRef, useState } from 'react' +import { Spinner } from 'react-bootstrap' +import { BsUpload } from 'react-icons/bs' +import { ErrorDetails } from '@/object-types' +import MessageService from '@/services/message.service' +import { ApiUtils } from '@/utils' + +interface Props { + onUploadSuccess?: () => void +} + +export default function BulkUserUpload({ onUploadSuccess }: Props): JSX.Element { + const t = useTranslations('default') + const usersCsvFile = useRef(undefined) + const fileInputRef = useRef(null) + const [selectedFileName, setSelectedFileName] = useState('') + const [uploading, setUploading] = useState(false) + + const handleFileChange = (e: React.ChangeEvent) => { + const files = e.currentTarget.files + + if (!files || files.length === 0) { + usersCsvFile.current = undefined + setSelectedFileName('') + return + } + + usersCsvFile.current = files[0] + setSelectedFileName(files[0].name) + } + + const handleUpload = async () => { + try { + if (!usersCsvFile.current) { + MessageService.error(t('Please select a file')) + return + } + + setUploading(true) + + const formData = new FormData() + formData.append('usersCsv', usersCsvFile.current, usersCsvFile.current.name) + + const session = await getSession() + if (!session) { + return signOut() + } + + const response = await ApiUtils.POST('importExport/usersCsv', formData, session.user.access_token) + + if (response.status === StatusCodes.UNAUTHORIZED) { + MessageService.error(t('Session has expired')) + return signOut() + } + + if (response.status !== StatusCodes.OK) { + const err = (await response.json()) as ErrorDetails + throw new Error(err.message) + } + + MessageService.success(t('Users uploaded successfully')) + usersCsvFile.current = undefined + setSelectedFileName('') + if (fileInputRef.current) { + fileInputRef.current.value = '' + } + onUploadSuccess?.() + } catch (error: unknown) { + if (error instanceof DOMException && error.name === 'AbortError') { + return + } + const message = error instanceof Error ? error.message : String(error) + MessageService.error(message) + } finally { + setUploading(false) + } + } + + return ( +
    +
    {t('Bulk User Upload')}
    +
    +
    +
    +
    + + {selectedFileName && ( + + {t('Selected file')}: {selectedFileName} + + )} +
    + +
    +
    +
    +
    + ) +} diff --git a/src/app/[locale]/admin/users/components/UserAdministration.tsx b/src/app/[locale]/admin/users/components/UserAdministration.tsx index 6b301672c..9ab605e3b 100644 --- a/src/app/[locale]/admin/users/components/UserAdministration.tsx +++ b/src/app/[locale]/admin/users/components/UserAdministration.tsx @@ -24,6 +24,7 @@ import DownloadService from '@/services/download.service' import MessageService from '@/services/message.service' import CommonUtils from '@/utils/common.utils' import { ApiError, ApiUtils } from '@/utils/index' +import BulkUserUpload from './BulkUserUpload' import EditSecondaryDepartmentAndRolesModal from './EditSecondaryDepartmentsAndRolesModal' type EmbeddedUsers = Embedded @@ -36,6 +37,7 @@ export default function UserAdminstration(): JSX.Element { const [departments, setDepartments] = useState>([]) const [openEditSecondaryDepartmentAndRolesModal, setOpenEditSecondaryDepartmentAndRolesModal] = useState(false) + const [refreshTrigger, setRefreshTrigger] = useState(0) const params = useSearchParams() const session = useSession() @@ -51,6 +53,10 @@ export default function UserAdminstration(): JSX.Element { router.push('/admin/users/add') } + const handleUploadSuccess = useCallback(() => { + setRefreshTrigger((prev) => prev + 1) + }, []) + const downloadUsers = () => { getSession() .then((session) => { @@ -318,6 +324,7 @@ export default function UserAdminstration(): JSX.Element { pageableQueryParam, params.toString(), session, + refreshTrigger, ]) useEffect(() => { @@ -521,6 +528,7 @@ export default function UserAdminstration(): JSX.Element {
)}
+
From f7a07d38222df9ba068f268bc1ed2265f8a8f259 Mon Sep 17 00:00:00 2001 From: rudra-superrr Date: Tue, 27 Jan 2026 15:22:42 +0530 Subject: [PATCH 028/492] fix(search): double encoding for search parameters --- src/components/sw360/AdvancedSearch/AdvancedSearch.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx b/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx index 5030b9551..19d44a7f1 100644 --- a/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx +++ b/src/components/sw360/AdvancedSearch/AdvancedSearch.tsx @@ -81,8 +81,7 @@ function AdvancedSearch({ title = 'Advanced Search', fields }: Props): JSX.Eleme searchUrl.searchParams.append(key, value) } }) - const encodedUrl = encodeURI(searchUrl.toString().replace(/%40/g, '@')) - router.push(encodedUrl) + router.push(searchUrl.toString()) } const handleSubmit = (e: React.FormEvent) => { From 9bb39580dbdd9312a95984e2520b6ddd3c0443d5 Mon Sep 17 00:00:00 2001 From: sandyp025 Date: Thu, 29 Jan 2026 01:09:51 +0530 Subject: [PATCH 029/492] fix(license-table): Handle empty shortName and fix license detail link --- src/app/[locale]/licenses/components/LicensePage.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/[locale]/licenses/components/LicensePage.tsx b/src/app/[locale]/licenses/components/LicensePage.tsx index d48354291..2ad787b9b 100644 --- a/src/app/[locale]/licenses/components/LicensePage.tsx +++ b/src/app/[locale]/licenses/components/LicensePage.tsx @@ -81,15 +81,20 @@ function LicensePage(): ReactNode { () => [ { id: 'shortName', + accessorKey: 'shortName', header: t('License Shortname'), cell: ({ row }) => { - const { shortName } = row.original + const { shortName, _links } = row.original + const licenseId = _links?.self?.href?.split('/').filter(Boolean).at(-1) + if (!licenseId) { + return <>{shortName || '--'} + } return ( - {shortName} + {shortName || licenseId || '--'} ) }, From ccb9535a36b904eebe545285f3273ea4b9cf88b2 Mon Sep 17 00:00:00 2001 From: suhas-SHS Date: Mon, 19 Jan 2026 12:19:57 +0530 Subject: [PATCH 030/492] fix: Resolve merge conflicts Signed-off-by: suhas-SHS --- messages/de.json | 1 + messages/en.json | 1 + messages/es.json | 1 + messages/fr.json | 1 + messages/ja.json | 1 + messages/ko.json | 1 + messages/pt-BR.json | 1 + messages/vi.json | 1 + messages/zh-CN.json | 1 + messages/zh-TW.json | 1 + .../[id]/components/ComponentGeneral.tsx | 11 +++++------ .../[id]/components/ComponentEditSummary.tsx | 1 + .../GeneralInfoComponent.tsx | 18 ++++++++++++++++++ src/object-types/Component.ts | 2 +- src/object-types/ComponentPayLoad.ts | 1 + 15 files changed, 36 insertions(+), 7 deletions(-) diff --git a/messages/de.json b/messages/de.json index f061a4969..cccc2d076 100644 --- a/messages/de.json +++ b/messages/de.json @@ -1474,6 +1474,7 @@ "Users": "Benutzer", "Users uploaded successfully": "Benutzer erfolgreich hochgeladen", "VALUE": "Wert", + "VCS/Repository URL": "VCS-/Repository-URL", "VCS URLs were redirected": "VCS -URLs wurden umgeleitet", "VENDORS": "VENDOREN", "VIEWER": "Zuschauer", diff --git a/messages/en.json b/messages/en.json index cfac35d0b..1e4b070c4 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1474,6 +1474,7 @@ "Users": "Users", "Users uploaded successfully": "Users uploaded successfully", "VALUE": "value", + "VCS/Repository URL": "VCS/Repository URL", "VCS URLs were redirected": "VCS URLs were redirected", "VENDORS": "VENDORS", "VIEWER": "Viewer", diff --git a/messages/es.json b/messages/es.json index 7285054f5..141ca1982 100644 --- a/messages/es.json +++ b/messages/es.json @@ -1474,6 +1474,7 @@ "Users": "Usuarios", "Users uploaded successfully": "Usuarios subidos exitosamente", "VALUE": "valor", + "VCS/Repository URL": "URL del repositorio VCS", "VCS URLs were redirected": "Las URL de VCS fueron redirigidas", "VENDORS": "VENDORS", "VIEWER": "Espectador", diff --git a/messages/fr.json b/messages/fr.json index 9fb8c086b..9a55d8359 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -1474,6 +1474,7 @@ "Users": "Utilisateur", "Users uploaded successfully": "Utilisateurs tรฉlรฉchargรฉs avec succรจs", "VALUE": "valeur", + "VCS/Repository URL": "URL du dรฉpรดt VCS", "VCS URLs were redirected": "Les URL VCS ont รฉtรฉ redirigรฉes", "VENDORS": "VENDEURS", "VIEWER": "Tรฉlรฉspectateur", diff --git a/messages/ja.json b/messages/ja.json index 4413766b3..8c95a919f 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -1474,6 +1474,7 @@ "Users": "Users", "Users uploaded successfully": "ใƒฆใƒผใ‚ถใƒผใŒๆญฃๅธธใซใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใ•ใ‚Œใพใ—ใŸ", "VALUE": "ไพกๅ€ค", + "VCS/Repository URL": "VCS๏ผใƒชใƒใ‚ธใƒˆใƒช URL", "VCS URLs were redirected": "VCS URLใŒใƒชใƒ€ใ‚คใƒฌใ‚ฏใƒˆใ•ใ‚Œใพใ—ใŸ", "VENDORS": "VENDORS", "VIEWER": "่ฆ–่ด่€…", diff --git a/messages/ko.json b/messages/ko.json index 00394e0d4..2a33d6b4c 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -1474,6 +1474,7 @@ "Users": "์ด๋ฆ„ *", "Users uploaded successfully": "์‚ฌ์šฉ์ž๊ฐ€ ์„ฑ๊ณต์ ์œผ๋กœ ์—…๋กœ๋“œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค", "VALUE": "์ œํ’ˆ์ •๋ณด", + "VCS/Repository URL": "VCS/๋ฆฌํฌ์ง€ํ† ๋ฆฌ URL", "VCS URLs were redirected": "VCS URL์„ ๋ฆฌ๋””๋ ‰์…˜ํ–ˆ์Šต๋‹ˆ๋‹ค", "VENDORS": "ํšŒ์‚ฌ์—ฐํ˜", "VIEWER": "๋ทฐ์–ด", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index e4447f683..f7287bf0a 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -1474,6 +1474,7 @@ "Users": "Usuรกrios", "Users uploaded successfully": "Usuรกrios carregados com sucesso", "VALUE": "Valor", + "VCS/Repository URL": "URL do repositรณrio VCS", "VCS URLs were redirected": "URLs de VCS foram redirecionados", "VENDORS": "VENDORS", "VIEWER": "Espectador", diff --git a/messages/vi.json b/messages/vi.json index b7029eb8b..e830f876d 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -1474,6 +1474,7 @@ "Users": "Ngฦฐแปi dรนng", "Users uploaded successfully": "Ngฦฐแปi dรนng ฤ‘รฃ ฤ‘ฦฐแปฃc tแบฃi lรชn thร nh cรดng", "VALUE": "giรก trแป‹", + "VCS/Repository URL": "URL kho mรฃ nguแป“n VCS", "VCS URLs were redirected": "URL VCS ฤ‘รฃ ฤ‘ฦฐแปฃc chuyแปƒn hฦฐแป›ng", "VENDORS": "VENDORS", "VIEWER": "Ngฦฐแปi xem", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index e9e6a82aa..111523bd1 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -1474,6 +1474,7 @@ "Users": "็”จๆˆท", "Users uploaded successfully": "็”จๆˆทไธŠไผ ๆˆๅŠŸ", "VALUE": "ไปทๅ€ผ", + "VCS/Repository URL": "VCS/ไปฃ็ ไป“ๅบ“ URL", "VCS URLs were redirected": "VCS URL่ขซ้‡ๅฎšๅ‘", "VENDORS": "VENDORS", "VIEWER": "่ง‚ไผ—", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index 98e8ed6c6..a2304c3b7 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -1474,6 +1474,7 @@ "Users": "ไฝฟ็”จ่€…", "Users uploaded successfully": "ไฝฟ็”จ่€…ไธŠๅ‚ณๆˆๅŠŸ", "VALUE": "ๅ€ผ", + "VCS/Repository URL": "VCS/็จ‹ๅผ็ขผๅ„ฒๅญ˜ๅบซ URL", "VCS URLs were redirected": "VCS URL่ขซ้‡ๅฎšๅ‘", "VENDORS": "้€‰ๆฐ‘", "VIEWER": "่ง€็œพ", diff --git a/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx b/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx index d95affff9..db321f4e8 100644 --- a/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx +++ b/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx @@ -141,22 +141,21 @@ const ComponentGeneral = ({ component, componentId }: Props): ReactNode => { - {t('VCS / Repository URL')}: + {t('VCS/Repository URL')}: - {!CommonUtils.isNullEmptyOrUndefinedString(component.vcsUrl) ? ( + {!CommonUtils.isNullEmptyOrUndefinedString(component.vcs) && ( - {component.vcsUrl} + {component.vcs} - ) : ( - '-' )} + {t('Blog')}: diff --git a/src/app/[locale]/components/edit/[id]/components/ComponentEditSummary.tsx b/src/app/[locale]/components/edit/[id]/components/ComponentEditSummary.tsx index d1b9ab4ca..e0bd66675 100644 --- a/src/app/[locale]/components/edit/[id]/components/ComponentEditSummary.tsx +++ b/src/app/[locale]/components/edit/[id]/components/ComponentEditSummary.tsx @@ -153,6 +153,7 @@ export default function ComponentEditSummary({ defaultVendorId: component.defaultVendorId, categories: component.categories, homepage: component.homepage, + vcs: component.vcs, mailinglist: component.mailinglist, wiki: component.wiki, blog: component.blog, diff --git a/src/components/GeneralInfoComponent/GeneralInfoComponent.tsx b/src/components/GeneralInfoComponent/GeneralInfoComponent.tsx index 3b327257b..ffaf77c45 100644 --- a/src/components/GeneralInfoComponent/GeneralInfoComponent.tsx +++ b/src/components/GeneralInfoComponent/GeneralInfoComponent.tsx @@ -250,6 +250,24 @@ const GeneralInfoComponent = ({ componentPayload, setComponentPayload, vendor, s value={componentPayload.homepage ?? ''} />
+
+ + +
diff --git a/src/object-types/Component.ts b/src/object-types/Component.ts index 9883efd5b..3a79d77e8 100644 --- a/src/object-types/Component.ts +++ b/src/object-types/Component.ts @@ -23,7 +23,6 @@ interface Component { ownerAccountingUnit?: string ownerGroup?: string ownerCountry?: string - vcsUrl?: string visbility?: string externalIds?: { [k: string]: string @@ -39,6 +38,7 @@ interface Component { softwarePlatforms?: Array operatingSystems?: Array homepage?: string + vcs?: string mailinglist?: string wiki?: string blog?: string diff --git a/src/object-types/ComponentPayLoad.ts b/src/object-types/ComponentPayLoad.ts index b657d2e07..52b150563 100644 --- a/src/object-types/ComponentPayLoad.ts +++ b/src/object-types/ComponentPayLoad.ts @@ -34,6 +34,7 @@ export default interface ComponentPayload { defaultVendorId?: string categories?: Array | null homepage?: string + vcs?: string mailinglist?: string wiki?: string blog?: string From e184979bc4e4301834b1296e6e19b8eafb8fb578 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 03:25:41 +0000 Subject: [PATCH 031/492] chore(deps-dev): bump @biomejs/biome from 2.3.12 to 2.3.13 Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.3.12 to 2.3.13. - [Release notes](https://github.com/biomejs/biome/releases) - [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md) - [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.3.13/packages/@biomejs/biome) --- updated-dependencies: - dependency-name: "@biomejs/biome" dependency-version: 2.3.13 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 76 +++++++++++++++++++++++++------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index c26f9365b..74439390a 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "rxjs": "^7.8.2" }, "devDependencies": { - "@biomejs/biome": "2.3.12", + "@biomejs/biome": "2.3.13", "@commitlint/cli": "20.3.1", "@commitlint/config-conventional": "19.8.0", "@types/country-list": "^2.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 711149e2e..e370b0f16 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -76,8 +76,8 @@ importers: version: 7.8.2 devDependencies: '@biomejs/biome': - specifier: 2.3.12 - version: 2.3.12 + specifier: 2.3.13 + version: 2.3.13 '@commitlint/cli': specifier: 20.3.1 version: 20.3.1(@types/node@25.0.9)(typescript@5.9.3) @@ -153,55 +153,55 @@ packages: resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} - '@biomejs/biome@2.3.12': - resolution: {integrity: sha512-AR7h4aSlAvXj7TAajW/V12BOw2EiS0AqZWV5dGozf4nlLoUF/ifvD0+YgKSskT0ylA6dY1A8AwgP8kZ6yaCQnA==} + '@biomejs/biome@2.3.13': + resolution: {integrity: sha512-Fw7UsV0UAtWIBIm0M7g5CRerpu1eKyKAXIazzxhbXYUyMkwNrkX/KLkGI7b+uVDQ5cLUMfOC9vR60q9IDYDstA==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.3.12': - resolution: {integrity: sha512-cO6fn+KiMBemva6EARDLQBxeyvLzgidaFRJi8G7OeRqz54kWK0E+uSjgFaiHlc3DZYoa0+1UFE8mDxozpc9ieg==} + '@biomejs/cli-darwin-arm64@2.3.13': + resolution: {integrity: sha512-0OCwP0/BoKzyJHnFdaTk/i7hIP9JHH9oJJq6hrSCPmJPo8JWcJhprK4gQlhFzrwdTBAW4Bjt/RmCf3ZZe59gwQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.3.12': - resolution: {integrity: sha512-/fiF/qmudKwSdvmSrSe/gOTkW77mHHkH8Iy7YC2rmpLuk27kbaUOPa7kPiH5l+3lJzTUfU/t6x1OuIq/7SGtxg==} + '@biomejs/cli-darwin-x64@2.3.13': + resolution: {integrity: sha512-AGr8OoemT/ejynbIu56qeil2+F2WLkIjn2d8jGK1JkchxnMUhYOfnqc9sVzcRxpG9Ycvw4weQ5sprRvtb7Yhcw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.3.12': - resolution: {integrity: sha512-aqkeSf7IH+wkzFpKeDVPSXy9uDjxtLpYA6yzkYsY+tVjwFFirSuajHDI3ul8en90XNs1NA0n8kgBrjwRi5JeyA==} + '@biomejs/cli-linux-arm64-musl@2.3.13': + resolution: {integrity: sha512-TUdDCSY+Eo/EHjhJz7P2GnWwfqet+lFxBZzGHldrvULr59AgahamLs/N85SC4+bdF86EhqDuuw9rYLvLFWWlXA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-arm64@2.3.12': - resolution: {integrity: sha512-nbOsuQROa3DLla5vvsTZg+T5WVPGi9/vYxETm9BOuLHBJN3oWQIg3MIkE2OfL18df1ZtNkqXkH6Yg9mdTPem7A==} + '@biomejs/cli-linux-arm64@2.3.13': + resolution: {integrity: sha512-xvOiFkrDNu607MPMBUQ6huHmBG1PZLOrqhtK6pXJW3GjfVqJg0Z/qpTdhXfcqWdSZHcT+Nct2fOgewZvytESkw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-x64-musl@2.3.12': - resolution: {integrity: sha512-kVGWtupRRsOjvw47YFkk5mLiAdpCPMWBo1jOwAzh+juDpUb2sWarIp+iq+CPL1Wt0LLZnYtP7hH5kD6fskcxmg==} + '@biomejs/cli-linux-x64-musl@2.3.13': + resolution: {integrity: sha512-0bdwFVSbbM//Sds6OjtnmQGp4eUjOTt6kHvR/1P0ieR9GcTUAlPNvPC3DiavTqq302W34Ae2T6u5VVNGuQtGlQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-linux-x64@2.3.12': - resolution: {integrity: sha512-CQtqrJ+qEEI8tgRSTjjzk6wJAwfH3wQlkIGsM5dlecfRZaoT+XCms/mf7G4kWNexrke6mnkRzNy6w8ebV177ow==} + '@biomejs/cli-linux-x64@2.3.13': + resolution: {integrity: sha512-s+YsZlgiXNq8XkgHs6xdvKDFOj/bwTEevqEY6rC2I3cBHbxXYU1LOZstH3Ffw9hE5tE1sqT7U23C00MzkXztMw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-win32-arm64@2.3.12': - resolution: {integrity: sha512-Re4I7UnOoyE4kHMqpgtG6UvSBGBbbtvsOvBROgCCoH7EgANN6plSQhvo2W7OCITvTp7gD6oZOyZy72lUdXjqZg==} + '@biomejs/cli-win32-arm64@2.3.13': + resolution: {integrity: sha512-QweDxY89fq0VvrxME+wS/BXKmqMrOTZlN9SqQ79kQSIc3FrEwvW/PvUegQF6XIVaekncDykB5dzPqjbwSKs9DA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.3.12': - resolution: {integrity: sha512-qqGVWqNNek0KikwPZlOIoxtXgsNGsX+rgdEzgw82Re8nF02W+E2WokaQhpF5TdBh/D/RQ3TLppH+otp6ztN0lw==} + '@biomejs/cli-win32-x64@2.3.13': + resolution: {integrity: sha512-trDw2ogdM2lyav9WFQsdsfdVy1dvZALymRpgmWsvSez0BJzBjulhOT/t+wyKeh3pZWvwP3VMs1SoOKwO3wecMQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -2294,39 +2294,39 @@ snapshots: '@babel/runtime@7.28.4': {} - '@biomejs/biome@2.3.12': + '@biomejs/biome@2.3.13': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.3.12 - '@biomejs/cli-darwin-x64': 2.3.12 - '@biomejs/cli-linux-arm64': 2.3.12 - '@biomejs/cli-linux-arm64-musl': 2.3.12 - '@biomejs/cli-linux-x64': 2.3.12 - '@biomejs/cli-linux-x64-musl': 2.3.12 - '@biomejs/cli-win32-arm64': 2.3.12 - '@biomejs/cli-win32-x64': 2.3.12 - - '@biomejs/cli-darwin-arm64@2.3.12': + '@biomejs/cli-darwin-arm64': 2.3.13 + '@biomejs/cli-darwin-x64': 2.3.13 + '@biomejs/cli-linux-arm64': 2.3.13 + '@biomejs/cli-linux-arm64-musl': 2.3.13 + '@biomejs/cli-linux-x64': 2.3.13 + '@biomejs/cli-linux-x64-musl': 2.3.13 + '@biomejs/cli-win32-arm64': 2.3.13 + '@biomejs/cli-win32-x64': 2.3.13 + + '@biomejs/cli-darwin-arm64@2.3.13': optional: true - '@biomejs/cli-darwin-x64@2.3.12': + '@biomejs/cli-darwin-x64@2.3.13': optional: true - '@biomejs/cli-linux-arm64-musl@2.3.12': + '@biomejs/cli-linux-arm64-musl@2.3.13': optional: true - '@biomejs/cli-linux-arm64@2.3.12': + '@biomejs/cli-linux-arm64@2.3.13': optional: true - '@biomejs/cli-linux-x64-musl@2.3.12': + '@biomejs/cli-linux-x64-musl@2.3.13': optional: true - '@biomejs/cli-linux-x64@2.3.12': + '@biomejs/cli-linux-x64@2.3.13': optional: true - '@biomejs/cli-win32-arm64@2.3.12': + '@biomejs/cli-win32-arm64@2.3.13': optional: true - '@biomejs/cli-win32-x64@2.3.12': + '@biomejs/cli-win32-x64@2.3.13': optional: true '@commitlint/cli@19.8.1(@types/node@25.0.9)(typescript@5.9.3)': From d6ed20805e72c7a345aee44c909e15b76f380886 Mon Sep 17 00:00:00 2001 From: Dearsh Oberoi Date: Tue, 20 Jan 2026 15:57:47 +0530 Subject: [PATCH 032/492] fix(translations): Add missing translations --- messages/de.json | 6 +++++- messages/en.json | 6 +++++- messages/es.json | 6 +++++- messages/fr.json | 6 +++++- messages/ja.json | 6 +++++- messages/ko.json | 6 +++++- messages/pt-BR.json | 6 +++++- messages/vi.json | 6 +++++- messages/zh-CN.json | 6 +++++- messages/zh-TW.json | 6 +++++- .../components/detail/[id]/components/ComponentGeneral.tsx | 2 +- 11 files changed, 51 insertions(+), 11 deletions(-) diff --git a/messages/de.json b/messages/de.json index cccc2d076..c1922f318 100644 --- a/messages/de.json +++ b/messages/de.json @@ -368,6 +368,7 @@ "Cwe": "Wir", "Cyclic Hierarchy": "Zyklische Hierarchie", "CycloneDX": "Zyklon", + "CycloneDX Component Type": "CycloneDX-Komponententyp", "CycloneDx import condition 1": "Der Import schlรคgt fehl, wenn im SBOM-Tag metadata bereits ein Projekt mit demselben Namen und derselben Version wie die Komponente vorhanden ist.", "CycloneDx import condition 1 on existing project": "Import wird fail Wenn der aktuelle Projektname und die Version nicht gleich sind wie die Komponente, die in SBOM Metadaten vorhanden ist.", "CycloneDx import condition 2": "Komponenten", @@ -417,6 +418,7 @@ "Delete component success!": "Komponentenerfolg lรถschen!", "Delete license successful": "Lizenz erfolgreich lรถschen!", "Delete link to release": "Link zur Verรถffentlichung lรถschen", + "Delete linked project": "Verknรผpftes Projekt lรถschen", "Delete linked release": "Verlinkte Version lรถschen", "Delete project successful": "Projekt erfolgreich lรถschen!", "Delete release success!": "Lรถschen Sie Release-Erfolg!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "Lizenzoffenlegung als DOCX", "License Disclosure as TEXT": "Offenlegung der Lizenz als Text", "License Disclosure as XHTML": "Lizenz Offenlegung als xhtml", + "License Files": "Lizenzdateien", "License Fullname": "Vollstรคndiger Name", "License Info": "Lizenzinformationen", "License Info Header": "Lizenz Info Header", @@ -905,6 +908,7 @@ "No changes in attachments": "Keine ร„nderungen an den Anhรคngen", "No changes in basic details": "Keine ร„nderungen in grundlegenden Details", "No data available in table": "Keine Daten in der Tabelle verfรผgbar", + "No license files available": "Keine Lizenzdateien verfรผgbar", "No linked releases or projects": "Keine verknรผpften Verรถffentlichungen oder Projekte", "No matching data found": "Keine รผbereinstimmenden Daten gefunden!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "Keine vorherige Auswahl gefunden. \nWenn Sie Schreibrechte fรผr dieses Projekt haben, wird Ihre Auswahl beim Herunterladen automatisch gespeichert.", @@ -1474,7 +1478,7 @@ "Users": "Benutzer", "Users uploaded successfully": "Benutzer erfolgreich hochgeladen", "VALUE": "Wert", - "VCS/Repository URL": "VCS-/Repository-URL", + "VCS": "VCS", "VCS URLs were redirected": "VCS -URLs wurden umgeleitet", "VENDORS": "VENDOREN", "VIEWER": "Zuschauer", diff --git a/messages/en.json b/messages/en.json index 1e4b070c4..53c4d7525 100644 --- a/messages/en.json +++ b/messages/en.json @@ -368,6 +368,7 @@ "Cwe": "Cwe", "Cyclic Hierarchy": "Cyclic Hierarchy", "CycloneDX": "CycloneDX", + "CycloneDX Component Type": "CycloneDX Component Type", "CycloneDx import condition 1": "Import will fail if there is already an existing project with same name and version as component present in SBOM metadata tag.", "CycloneDx import condition 1 on existing project": "Import will fail if current project name and version is not same as component present in SBOM metadata tag.", "CycloneDx import condition 2": "Components & Releases will not be created for those packages which does not contain VCS (Version Control System) URL.", @@ -417,6 +418,7 @@ "Delete component success!": "Delete component success!", "Delete license successful": "Delete license successful!", "Delete link to release": "Delete link to release", + "Delete linked project": "Delete linked project", "Delete linked release": "Delete linked release", "Delete project successful": "Delete project successful!", "Delete release success!": "Delete release success!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "License Disclosure as DOCX", "License Disclosure as TEXT": "License Disclosure as TEXT", "License Disclosure as XHTML": "License Disclosure as XHTML", + "License Files": "License Files", "License Fullname": "License Fullname", "License Info": "License Info", "License Info Header": "License Info Header", @@ -905,6 +908,7 @@ "No changes in attachments": "No changes in attachments", "No changes in basic details": "No changes in basic details", "No data available in table": "No data available in table", + "No license files available": "No license files available", "No linked releases or projects": "No linked releases or projects", "No matching data found": "No matching data found!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "No previous selection found. If you have writing permissions to this project, your selection will be stored automatically when downloading.", @@ -1474,7 +1478,7 @@ "Users": "Users", "Users uploaded successfully": "Users uploaded successfully", "VALUE": "value", - "VCS/Repository URL": "VCS/Repository URL", + "VCS": "VCS", "VCS URLs were redirected": "VCS URLs were redirected", "VENDORS": "VENDORS", "VIEWER": "Viewer", diff --git a/messages/es.json b/messages/es.json index 141ca1982..a29409dcd 100644 --- a/messages/es.json +++ b/messages/es.json @@ -368,6 +368,7 @@ "Cwe": "Cwe", "Cyclic Hierarchy": "Jerarquรญa cรญclica", "CycloneDX": "CycloneDX", + "CycloneDX Component Type": "Tipo de componente CycloneDX", "CycloneDx import condition 1": "La importaciรณn fallarรก si ya existe un proyecto con el mismo nombre y versiรณn que el componente presente en la etiqueta SBOM metadata.", "CycloneDx import condition 1 on existing project": "Importar Will Fail Si el nombre y la versiรณn actuales del proyecto no son los mismos que el componente presente en la etiqueta SBOM MetAdata .", "CycloneDx import condition 2": "Componentes", @@ -417,6 +418,7 @@ "Delete component success!": "Eliminar el รฉxito del componente!", "Delete license successful": "ยกEliminar la licencia exitosa!", "Delete link to release": "Eliminar enlace para liberar", + "Delete linked project": "Eliminar proyecto vinculado", "Delete linked release": "Eliminar versiรณn vinculada", "Delete project successful": "ยกEliminar el proyecto exitoso!", "Delete release success!": "Eliminar el รฉxito de la liberaciรณn!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "Divulgaciรณn de licencias como DOCX", "License Disclosure as TEXT": "Divulgaciรณn de licencias como texto", "License Disclosure as XHTML": "Divulgaciรณn de licencias como XHTML", + "License Files": "Archivos de licencia", "License Fullname": "Licencia Nombre completo", "License Info": "Informaciรณn de licencia", "License Info Header": "Informaciรณn de licencia", @@ -905,6 +908,7 @@ "No changes in attachments": "No hay cambios en los archivos adjuntos.", "No changes in basic details": "Sin cambios en los detalles bรกsicos.", "No data available in table": "No hay datos disponibles en la tabla", + "No license files available": "No hay archivos de licencia disponibles", "No linked releases or projects": "No hay lanzamientos ni proyectos vinculados", "No matching data found": "ยกNo se encontraron datos coincidentes!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "No se encontrรณ ninguna selecciรณn anterior. \nSi tiene permisos de escritura para este proyecto, su selecciรณn se almacenarรก automรกticamente al descargarlo.", @@ -1474,7 +1478,7 @@ "Users": "Usuarios", "Users uploaded successfully": "Usuarios subidos exitosamente", "VALUE": "valor", - "VCS/Repository URL": "URL del repositorio VCS", + "VCS": "VCS", "VCS URLs were redirected": "Las URL de VCS fueron redirigidas", "VENDORS": "VENDORS", "VIEWER": "Espectador", diff --git a/messages/fr.json b/messages/fr.json index 9a55d8359..a025ec6fe 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -368,6 +368,7 @@ "Cwe": "Porc", "Cyclic Hierarchy": "Hiรฉrarchie cyclique", "CycloneDX": "CycloneDX", + "CycloneDX Component Type": "Type de composant CycloneDX", "CycloneDx import condition 1": "L'importation รฉchouera s'il existe dรฉjร  un projet existant avec le mรชme nom et la mรชme version que le composant prรฉsent dans la balise SBOM metadata.", "CycloneDx import condition 1 on existing project": "L'importation sera รฉchouรฉ Si le nom et la version du projet actuels ne sont pas les mรชmes que le composant prรฉsent dans la balise SBOM Metadata .", "CycloneDx import condition 2": "Composants", @@ -417,6 +418,7 @@ "Delete component success!": "Supprimer le succรจs du composant!", "Delete license successful": "Supprimer la licence rรฉussie!", "Delete link to release": "Supprimer le lien pour publier", + "Delete linked project": "Supprimer le projet liรฉ", "Delete linked release": "Supprimer la version liรฉe", "Delete project successful": "Supprimer le projet rรฉussi!", "Delete release success!": "Supprimer le succรจs de la publication!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "Licence Divulgation comme docx", "License Disclosure as TEXT": "Divulgation de licence comme texte", "License Disclosure as XHTML": "Divulgation de licence comme XHTML", + "License Files": "Fichiers de licence", "License Fullname": "Nom complet de licence", "License Info": "Informations sur la licence", "License Info Header": "En-tรชte des informations de licence", @@ -905,6 +908,7 @@ "No changes in attachments": "Aucun changement dans les piรจces jointes", "No changes in basic details": "Aucun changement dans les dรฉtails de base", "No data available in table": "Aucune donnรฉe disponible dans le tableau", + "No license files available": "Aucun fichier de licence disponible", "No linked releases or projects": "Aucune version ou projet liรฉ", "No matching data found": "Aucune donnรฉe correspondante trouvรฉe!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "Aucune sรฉlection prรฉcรฉdente trouvรฉe. \nSi vous disposez des autorisations d'รฉcriture sur ce projet, votre sรฉlection sera automatiquement stockรฉe lors du tรฉlรฉchargement.", @@ -1474,7 +1478,7 @@ "Users": "Utilisateur", "Users uploaded successfully": "Utilisateurs tรฉlรฉchargรฉs avec succรจs", "VALUE": "valeur", - "VCS/Repository URL": "URL du dรฉpรดt VCS", + "VCS": "VCS", "VCS URLs were redirected": "Les URL VCS ont รฉtรฉ redirigรฉes", "VENDORS": "VENDEURS", "VIEWER": "Tรฉlรฉspectateur", diff --git a/messages/ja.json b/messages/ja.json index 8c95a919f..c001a5e15 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -368,6 +368,7 @@ "Cwe": "ใ‚ญใƒฅใƒผ", "Cyclic Hierarchy": "ๅพช็’ฐ้šŽๅฑค", "CycloneDX": "CycloneDX", + "CycloneDX Component Type": "CycloneDX ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใฎ็จฎ้กž", "CycloneDx import condition 1": "SBOM ใฎ metadata ใ‚ฟใ‚ฐใซๅญ˜ๅœจใ™ใ‚‹ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใจๅŒใ˜ๅๅ‰ใจใƒใƒผใ‚ธใƒงใƒณใ‚’ๆŒใคๆ—ขๅญ˜ใฎใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใŒใ™ใงใซๅญ˜ๅœจใ™ใ‚‹ๅ ดๅˆใ€ใ‚คใƒณใƒใƒผใƒˆใฏ ๅคฑๆ•—ใ—ใพใ™ใ€‚", "CycloneDx import condition 1 on existing project": "็พๅœจใฎใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆๅใจใƒใƒผใ‚ธใƒงใƒณใŒsbom metadata ใ‚ฟใ‚ฐใซๅญ˜ๅœจใ™ใ‚‹ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใจๅŒใ˜ใงใชใ„ๅ ดๅˆใ€ faile ใ€‚", "CycloneDx import condition 2": "ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆ", @@ -417,6 +418,7 @@ "Delete component success!": "ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใฎๅ‰Š้™คใŒๆˆๅŠŸใ—ใพใ—ใŸใ€‚", "Delete license successful": "ใƒฉใ‚คใ‚ปใƒณใ‚นใฎๅ‰Š้™คใŒๆˆๅŠŸใ—ใพใ—ใŸ๏ผ", "Delete link to release": "ใƒชใƒชใƒผใ‚นใธใฎใƒชใƒณใ‚ฏใ‚’ๅ‰Š้™ค", + "Delete linked project": "ใƒชใƒณใ‚ฏใ•ใ‚ŒใŸใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ๅ‰Š้™คใ™ใ‚‹", "Delete linked release": "ใƒชใƒณใ‚ฏใ•ใ‚ŒใŸใƒชใƒชใƒผใ‚นใ‚’ๅ‰Š้™คใ™ใ‚‹", "Delete project successful": "ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใฎๅ‰Š้™คใŒๆˆๅŠŸใ—ใพใ—ใŸ๏ผ", "Delete release success!": "ๅ‰Š้™คใƒชใƒชใƒผใ‚นๆˆๅŠŸ!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "docxใจใ—ใฆใฎใƒฉใ‚คใ‚ปใƒณใ‚น้–‹็คบ", "License Disclosure as TEXT": "ใƒ†ใ‚ญใ‚นใƒˆใจใ—ใฆใฎใƒฉใ‚คใ‚ปใƒณใ‚น้–‹็คบ", "License Disclosure as XHTML": "XHTMLใจใ—ใฆใฎใƒฉใ‚คใ‚ปใƒณใ‚น้–‹็คบ", + "License Files": "ใƒฉใ‚คใ‚ปใƒณใ‚นใƒ•ใ‚กใ‚คใƒซ", "License Fullname": "ใƒฉใ‚คใ‚ปใƒณใ‚นใฎใƒ•ใƒซใƒใƒผใƒ ", "License Info": "ใƒฉใ‚คใ‚ปใƒณใ‚นๆƒ…ๅ ฑ", "License Info Header": "License Info Header", @@ -905,6 +908,7 @@ "No changes in attachments": "ๆทปไป˜ใƒ•ใ‚กใ‚คใƒซใซๅค‰ๆ›ดใฏใ‚ใ‚Šใพใ›ใ‚“", "No changes in basic details": "ๅŸบๆœฌ็š„ใชๅ†…ๅฎนใซๅค‰ๆ›ดใฏใ‚ใ‚Šใพใ›ใ‚“", "No data available in table": "ใƒ†ใƒผใƒ–ใƒซใซใฏใƒ‡ใƒผใ‚ฟใŒใ‚ใ‚Šใพใ›ใ‚“", + "No license files available": "ๅˆฉ็”จๅฏ่ƒฝใชใƒฉใ‚คใ‚ปใƒณใ‚น ใƒ•ใ‚กใ‚คใƒซใŒใ‚ใ‚Šใพใ›ใ‚“", "No linked releases or projects": "ใƒชใƒณใ‚ฏใ•ใ‚ŒใŸใƒชใƒชใƒผใ‚นใพใŸใฏใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใฏใ‚ใ‚Šใพใ›ใ‚“", "No matching data found": "ไธ€่‡ดใ™ใ‚‹ใƒ‡ใƒผใ‚ฟใฏ่ฆ‹ใคใ‹ใ‚Šใพใ›ใ‚“๏ผ", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "ไปฅๅ‰ใฎ้ธๆŠžใŒ่ฆ‹ใคใ‹ใ‚Šใพใ›ใ‚“ใ€‚\nใ“ใฎใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใธใฎๆ›ธใ่พผใฟๆจฉ้™ใŒใ‚ใ‚‹ๅ ดๅˆใ€้ธๆŠžๅ†…ๅฎนใฏใƒ€ใ‚ฆใƒณใƒญใƒผใƒ‰ๆ™‚ใซ่‡ชๅ‹•็š„ใซไฟๅญ˜ใ•ใ‚Œใพใ™ใ€‚", @@ -1474,7 +1478,7 @@ "Users": "Users", "Users uploaded successfully": "ใƒฆใƒผใ‚ถใƒผใŒๆญฃๅธธใซใ‚ขใƒƒใƒ—ใƒญใƒผใƒ‰ใ•ใ‚Œใพใ—ใŸ", "VALUE": "ไพกๅ€ค", - "VCS/Repository URL": "VCS๏ผใƒชใƒใ‚ธใƒˆใƒช URL", + "VCS": "VCS", "VCS URLs were redirected": "VCS URLใŒใƒชใƒ€ใ‚คใƒฌใ‚ฏใƒˆใ•ใ‚Œใพใ—ใŸ", "VENDORS": "VENDORS", "VIEWER": "่ฆ–่ด่€…", diff --git a/messages/ko.json b/messages/ko.json index 2a33d6b4c..3e6a52e59 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -368,6 +368,7 @@ "Cwe": "์‚ฌ์ดํŠธ๋งต", "Cyclic Hierarchy": "์ˆœํ™˜ ๊ณ„์ธต", "CycloneDX": "์‚ฌ์ดํด๋ก DX", + "CycloneDX Component Type": "CycloneDX ์ปดํฌ๋„ŒํŠธ ์œ ํ˜•", "CycloneDx import condition 1": "SBOM ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ํƒœ๊ทธ์— ๊ตฌ์„ฑ์š”์†Œ์™€ ์ด๋ฆ„ ๋ฐ ๋ฒ„์ „์ด ๋™์ผํ•œ ๊ธฐ์กด ํ”„๋กœ์ ํŠธ๊ฐ€ ์ด๋ฏธ ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ ธ์˜ค๊ธฐ๊ฐ€ ์‹คํŒจ๋ฉ๋‹ˆ๋‹ค.", "CycloneDx import condition 1 on existing project": "ํ˜„์žฌ ํ”„๋กœ์ ํŠธ ์ด๋ฆ„๊ณผ ๋ฒ„์ „์ด sbom ๋ฉ”ํƒ€ ๋ฐ์ดํ„ฐ์— ์กด์žฌํ•˜๋Š” ๊ตฌ์„ฑ ์š”์†Œ์™€ ๋™์ผํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ import ์‹คํŒจ .", "CycloneDx import condition 2": "๊ตฌ์„ฑ์š”์†Œ", @@ -417,6 +418,7 @@ "Delete component success!": "๋ถ€ํ’ˆ ์„ฑ๊ณต ์‚ญ์ œ!", "Delete license successful": "๋ผ์ด์„ผ์Šค ์‚ญ์ œ ์„ฑ๊ณต!", "Delete link to release": "์ถœ์‹œ ๋งํฌ ์‚ญ์ œ", + "Delete linked project": "์—ฐ๊ฒฐ๋œ ํ”„๋กœ์ ํŠธ ์‚ญ์ œ", "Delete linked release": "์—ฐ๊ฒฐ๋œ ๋ฆด๋ฆฌ์Šค ์‚ญ์ œ", "Delete project successful": "ํ”„๋กœ์ ํŠธ๋ฅผ ์„ฑ๊ณต์ ์œผ๋กœ ์‚ญ์ œํ•˜์‹ญ์‹œ์˜ค!", "Delete release success!": "๋ฆด๋ฆฌ์Šค ์„ฑ๊ณต ์‚ญ์ œ!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "๋ผ์ด์„ผ์Šค ๊ณต๊ฐœ DOCX", "License Disclosure as TEXT": "๋ผ์ด์„ผ์Šค ๊ณต๊ฐœ ํ…์ŠคํŠธ๋กœ ๊ณต๊ฐœ", "License Disclosure as XHTML": "๋ผ์ด์„ผ์Šค ๊ณต๊ฐœ xhtml", + "License Files": "๋ผ์ด์„ผ์Šค ํŒŒ์ผ", "License Fullname": "๋ผ์ด์„ผ์Šค Fullname", "License Info": "๋ผ์ด์„ผ์Šค ์ •๋ณด", "License Info Header": "๋ผ์ด์„ผ์Šค ์ •๋ณด Header", @@ -905,6 +908,7 @@ "No changes in attachments": "์ฒจ๋ถ€ํŒŒ์ผ์— ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์—†์Šต๋‹ˆ๋‹ค.", "No changes in basic details": "๊ธฐ๋ณธ ์‚ฌํ•ญ์—๋Š” ๋ณ€ํ™”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.", "No data available in table": "ํ…Œ์ด๋ธ”์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜์žˆ๋Š” ๋ฐ์ดํ„ฐ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค", + "No license files available": "์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ผ์ด์„ผ์Šค ํŒŒ์ผ์ด ์—†์Šต๋‹ˆ๋‹ค.", "No linked releases or projects": "์—ฐ๊ฒฐ๋œ ๋ฆด๋ฆฌ์Šค ๋˜๋Š” ํ”„๋กœ์ ํŠธ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.", "No matching data found": "์ผ์น˜ํ•˜๋Š” ๋ฐ์ดํ„ฐ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "์ด์ „ ์„ ํƒ ํ•ญ๋ชฉ์ด ์—†์Šต๋‹ˆ๋‹ค. \n์ด ํ”„๋กœ์ ํŠธ์— ๋Œ€ํ•œ ์“ฐ๊ธฐ ๊ถŒํ•œ์ด ์žˆ๋Š” ๊ฒฝ์šฐ ๋‹ค์šด๋กœ๋“œ ์‹œ ์„ ํƒ ์‚ฌํ•ญ์ด ์ž๋™์œผ๋กœ ์ €์žฅ๋ฉ๋‹ˆ๋‹ค.", @@ -1474,7 +1478,7 @@ "Users": "์ด๋ฆ„ *", "Users uploaded successfully": "์‚ฌ์šฉ์ž๊ฐ€ ์„ฑ๊ณต์ ์œผ๋กœ ์—…๋กœ๋“œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค", "VALUE": "์ œํ’ˆ์ •๋ณด", - "VCS/Repository URL": "VCS/๋ฆฌํฌ์ง€ํ† ๋ฆฌ URL", + "VCS": "VCS", "VCS URLs were redirected": "VCS URL์„ ๋ฆฌ๋””๋ ‰์…˜ํ–ˆ์Šต๋‹ˆ๋‹ค", "VENDORS": "ํšŒ์‚ฌ์—ฐํ˜", "VIEWER": "๋ทฐ์–ด", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index f7287bf0a..36b0253c6 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -368,6 +368,7 @@ "Cwe": "Cwe", "Cyclic Hierarchy": "Hierarquia Cรญclica", "CycloneDX": "CycloneDX", + "CycloneDX Component Type": "Tipo de componente CycloneDX", "CycloneDx import condition 1": "A importaรงรฃo falharรก se jรก existir um projeto com o mesmo nome e versรฃo do componente presente na tag metadados do SBOM.", "CycloneDx import condition 1 on existing project": "Importarรก FAIL Se o nome e a versรฃo do projeto atual nรฃo forem o mesmo que o componente presente na tag SBOM Metadata .", "CycloneDx import condition 2": "Componentes", @@ -417,6 +418,7 @@ "Delete component success!": "Excluir componente com sucesso!", "Delete license successful": "Exclua a licenรงa bem -sucedida!", "Delete link to release": "Excluir link para lanรงamento", + "Delete linked project": "Excluir projeto vinculado", "Delete linked release": "Excluir versรฃo vinculada", "Delete project successful": "Exclua o projeto bem -sucedido!", "Delete release success!": "Excluir release com sucesso!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "Divulgaรงรฃo de licenรงa como docx", "License Disclosure as TEXT": "Divulgaรงรฃo de licenรงa como texto", "License Disclosure as XHTML": "Divulgaรงรฃo de licenรงa como xhtml", + "License Files": "Arquivos de licenรงa", "License Fullname": "Nome completo da licenรงa", "License Info": "Informaรงรตes sobre licenรงa", "License Info Header": "Cabeรงalho das informaรงรตes da licenรงa", @@ -905,6 +908,7 @@ "No changes in attachments": "Sem alteraรงรตes nos anexos", "No changes in basic details": "Sem alteraรงรตes nos detalhes bรกsicos", "No data available in table": "Sem dados disponรญveis na tabela", + "No license files available": "Nenhum arquivo de licenรงa disponรญvel", "No linked releases or projects": "Nรฃo hรก lanรงamentos ou projetos vinculados", "No matching data found": "Nรฃo foram encontrados dados correspondentes!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "Nenhuma seleรงรฃo anterior encontrada. \nSe vocรช tiver permissรฃo de gravaรงรฃo para este projeto, sua seleรงรฃo serรก armazenada automaticamente durante o download.", @@ -1474,7 +1478,7 @@ "Users": "Usuรกrios", "Users uploaded successfully": "Usuรกrios carregados com sucesso", "VALUE": "Valor", - "VCS/Repository URL": "URL do repositรณrio VCS", + "VCS": "VC", "VCS URLs were redirected": "URLs de VCS foram redirecionados", "VENDORS": "VENDORS", "VIEWER": "Espectador", diff --git a/messages/vi.json b/messages/vi.json index e830f876d..9d29566bf 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -368,6 +368,7 @@ "Cwe": "รดi", "Cyclic Hierarchy": "Hแป‡ thแป‘ng phรขn cแบฅp tuแบงn hoร n", "CycloneDX": "Lแป‘c xoรกyDX", + "CycloneDX Component Type": "Loแบกi thร nh phแบงn CycloneDX", "CycloneDx import condition 1": "Quรก trรฌnh nhแบญp sแบฝ thแบฅt bแบกi nแบฟu ฤ‘รฃ cรณ sแบตn mแป™t dแปฑ รกn cรณ cรนng tรชn vร  phiรชn bแบฃn vแป›i thร nh phแบงn cรณ trong thแบป SBOM siรชu dแปฏ liแป‡u.", "CycloneDx import condition 1 on existing project": "Nhแบญp sแบฝ Fail nแบฟu tรชn vร  phiรชn bแบฃn dแปฑ รกn hiแป‡n tแบกi khรดng giแป‘ng nhฦฐ thร nh phแบงn cรณ trong thแบป SBOM Siรชu dแปฏ liแป‡u .", "CycloneDx import condition 2": "Thร nh phแบงn", @@ -417,6 +418,7 @@ "Delete component success!": "Xรณa thร nh phแบงn thร nh cรดng!", "Delete license successful": "Xรณa giแบฅy phรฉp thร nh cรดng!", "Delete link to release": "Xรณa liรชn kแบฟt ฤ‘แปƒ phรกt hร nh", + "Delete linked project": "Xรณa dแปฑ รกn ฤ‘ฦฐแปฃc liรชn kแบฟt", "Delete linked release": "Xรณa bแบฃn phรกt hร nh ฤ‘ฦฐแปฃc liรชn kแบฟt", "Delete project successful": "Xรณa dแปฑ รกn thร nh cรดng!", "Delete release success!": "Xรณa phรกt hร nh thร nh cรดng!", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "Tiแบฟt lแป™ giแบฅy phรฉp dฦฐแป›i dแบกng docx", "License Disclosure as TEXT": "Tiแบฟt lแป™ giแบฅy phรฉp dฦฐแป›i dแบกng vฤƒn bแบฃn", "License Disclosure as XHTML": "Tiแบฟt lแป™ giแบฅy phรฉp nhฦฐ XHTML", + "License Files": "Tแป‡p giแบฅy phรฉp", "License Fullname": "Tรชn ฤ‘แบงy ฤ‘แปง cแปงa giแบฅy phรฉp", "License Info": "Thรดng tin giแบฅy phรฉp", "License Info Header": "Tiรชu ฤ‘แป thรดng tin giแบฅy phรฉp", @@ -905,6 +908,7 @@ "No changes in attachments": "Khรดng cรณ thay ฤ‘แป•i trong tแป‡p ฤ‘รญnh kรจm", "No changes in basic details": "Khรดng cรณ thay ฤ‘แป•i vแป chi tiแบฟt cฦก bแบฃn", "No data available in table": "Khรดng cรณ dแปฏ liแป‡u trong bแบฃng", + "No license files available": "Khรดng cรณ tแบญp tin giแบฅy phรฉp cรณ sแบตn", "No linked releases or projects": "Khรดng cรณ bแบฃn phรกt hร nh hoแบทc dแปฑ รกn ฤ‘ฦฐแปฃc liรชn kแบฟt", "No matching data found": "Khรดng tรฌm thแบฅy dแปฏ liแป‡u phรน hแปฃp!", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "Khรดng tรฌm thแบฅy lแปฑa chแปn trฦฐแป›c ฤ‘รณ. \nNแบฟu bแบกn cรณ quyแปn ghi vร o dแปฑ รกn nร y, lแปฑa chแปn cแปงa bแบกn sแบฝ ฤ‘ฦฐแปฃc lฦฐu trแปฏ tแปฑ ฤ‘แป™ng khi tแบฃi xuแป‘ng.", @@ -1474,7 +1478,7 @@ "Users": "Ngฦฐแปi dรนng", "Users uploaded successfully": "Ngฦฐแปi dรนng ฤ‘รฃ ฤ‘ฦฐแปฃc tแบฃi lรชn thร nh cรดng", "VALUE": "giรก trแป‹", - "VCS/Repository URL": "URL kho mรฃ nguแป“n VCS", + "VCS": "VCS", "VCS URLs were redirected": "URL VCS ฤ‘รฃ ฤ‘ฦฐแปฃc chuyแปƒn hฦฐแป›ng", "VENDORS": "VENDORS", "VIEWER": "Ngฦฐแปi xem", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index 111523bd1..1f410a54b 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -368,6 +368,7 @@ "Cwe": "ๅบ“้Ÿฆ", "Cyclic Hierarchy": "ๅพช็Žฏๅฑ‚ๆฌก็ป“ๆž„", "CycloneDX": "ๆ—‹้ฃŽDX", + "CycloneDX Component Type": "CycloneDX ็ป„ไปถ็ฑปๅž‹", "CycloneDx import condition 1": "ๅฆ‚ๆžœๅทฒๅญ˜ๅœจไธŽ SBOM ๅ…ƒๆ•ฐๆฎ ๆ ‡่ฎฐไธญ็š„็ป„ไปถๅ…ทๆœ‰็›ธๅŒๅ็งฐๅ’Œ็‰ˆๆœฌ็š„็Žฐๆœ‰้กน็›ฎ๏ผŒๅฏผๅ…ฅๅฐ†ๅคฑ่ดฅใ€‚", "CycloneDx import condition 1 on existing project": "ๅฏผๅ…ฅๅฐ†<็บข>ๅคฑ่ดฅๅฆ‚ๆžœๅฝ“ๅ‰้กน็›ฎๅ็งฐๅ’Œ็‰ˆๆœฌไธŽSBOM Metadata ๆ ‡็ญพไธญ็š„็ป„ไปถไธๅŒใ€‚", "CycloneDx import condition 2": "็ป„ไปถ", @@ -417,6 +418,7 @@ "Delete component success!": "ๅˆ ้™ค็ป„ไปถๆˆๅŠŸ๏ผ", "Delete license successful": "ๅˆ ้™ค่ฎธๅฏ่ฏๆˆๅŠŸ๏ผ", "Delete link to release": "ๅˆ ้™คๅ‘ๅธƒ้“พๆŽฅ", + "Delete linked project": "ๅˆ ้™ค้“พๆŽฅ็š„้กน็›ฎ", "Delete linked release": "ๅˆ ้™ค้“พๆŽฅ็‰ˆๆœฌ", "Delete project successful": "ๅˆ ้™ค้กน็›ฎๆˆๅŠŸ๏ผ", "Delete release success!": "ๅˆ ้™คๅ‘ๅธƒๆˆๅŠŸ๏ผ", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "่ฎธๅฏ่ฏๆŠซ้œฒไฝœไธบDOCX", "License Disclosure as TEXT": "่ฎธๅฏๆŠซ้œฒไฝœไธบๆ–‡ๆœฌ", "License Disclosure as XHTML": "่ฎธๅฏๆŠซ้œฒไธบXHTML", + "License Files": "่ฎธๅฏๆ–‡ไปถ", "License Fullname": "่ฎธๅฏ่ฏๅ…จๅ", "License Info": "่ฎธๅฏ่ฏไฟกๆฏ", "License Info Header": "่ฎธๅฏ่ฏไฟกๆฏๆ ‡ๅคด", @@ -905,6 +908,7 @@ "No changes in attachments": "้™„ไปถๆฒกๆœ‰ๅ˜ๅŒ–", "No changes in basic details": "ๅŸบๆœฌ็ป†่Š‚ๆฒกๆœ‰ๅ˜ๅŒ–", "No data available in table": "่กจไธญๆฒกๆœ‰ๅฏ็”จ็š„ๆ•ฐๆฎ", + "No license files available": "ๆฒกๆœ‰ๅฏ็”จ็š„่ฎธๅฏ่ฏๆ–‡ไปถ", "No linked releases or projects": "ๆฒกๆœ‰้“พๆŽฅ็š„็‰ˆๆœฌๆˆ–้กน็›ฎ", "No matching data found": "ๆ‰พไธๅˆฐๅŒน้…็š„ๆ•ฐๆฎ๏ผ", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "ๆ‰พไธๅˆฐไปฅๅ‰็š„้€‰ๆ‹ฉใ€‚\nๅฆ‚ๆžœๆ‚จๅฏนๆญค้กน็›ฎๅ…ทๆœ‰ๅ†™ๅ…ฅๆƒ้™๏ผŒๅˆ™ไธ‹่ฝฝๆ—ถๅฐ†่‡ชๅŠจๅญ˜ๅ‚จๆ‚จ็š„้€‰ๆ‹ฉใ€‚", @@ -1474,7 +1478,7 @@ "Users": "็”จๆˆท", "Users uploaded successfully": "็”จๆˆทไธŠไผ ๆˆๅŠŸ", "VALUE": "ไปทๅ€ผ", - "VCS/Repository URL": "VCS/ไปฃ็ ไป“ๅบ“ URL", + "VCS": "VCS", "VCS URLs were redirected": "VCS URL่ขซ้‡ๅฎšๅ‘", "VENDORS": "VENDORS", "VIEWER": "่ง‚ไผ—", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index a2304c3b7..7adec517d 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -368,6 +368,7 @@ "Cwe": "ๅ…‹้ฒ", "Cyclic Hierarchy": "ๅพช็’ฐๅฑคๆฌก็ตๆง‹", "CycloneDX": "ๆฐฃๆ—‹DX", + "CycloneDX Component Type": "CycloneDX ็ต„ไปถ้กžๅž‹", "CycloneDx import condition 1": "ๅฆ‚ๆžœๅทฒๅญ˜ๅœจ่ˆ‡ SBOM ๅ…ƒ่ณ‡ๆ–™ ๆจ™็ฑคไธญ็š„ๅ…ƒไปถๅ…ทๆœ‰็›ธๅŒๅ็จฑๅ’Œ็‰ˆๆœฌ็š„็พๆœ‰้ …็›ฎ๏ผŒๅŒฏๅ…ฅๅฐ‡ๅคฑๆ•—ใ€‚", "CycloneDx import condition 1 on existing project": "ๅฐŽๅ…ฅๅฐ‡<็ด…>ๅคฑๆ•—ๅฆ‚ๆžœ็•ถๅ‰้ …็›ฎๅ็จฑๅ’Œ็‰ˆๆœฌ่ˆ‡SBOM Metadata ๆจ™็ฑคไธญ็š„็ต„ไปถไธๅŒใ€‚", "CycloneDx import condition 2": "ๅ…ƒไปถ", @@ -417,6 +418,7 @@ "Delete component success!": "ๅˆช้™คๅ…ƒไปถๆˆๅŠŸ !", "Delete license successful": "ๅˆช้™ค่จฑๅฏ่ญ‰ๆˆๅŠŸ๏ผ", "Delete link to release": "ๅˆช้™ค็™ผๅธƒ้€ฃ็ต", + "Delete linked project": "ๅˆช้™ค้ˆๆŽฅ็š„้ …็›ฎ", "Delete linked release": "ๅˆช้™ค้ˆๆŽฅ็‰ˆๆœฌ", "Delete project successful": "ๅˆช้™ค้ …็›ฎๆˆๅŠŸ๏ผ", "Delete release success!": "ๅˆช้™คๆ”พ่กŒๆˆๅŠŸ !", @@ -784,6 +786,7 @@ "License Disclosure as DOCX": "่จฑๅฏ่ญ‰ๆŠซ้œฒไฝœ็‚บDOCX", "License Disclosure as TEXT": "่จฑๅฏๆŠซ้œฒไฝœ็‚บๆ–‡ๆœฌ", "License Disclosure as XHTML": "่จฑๅฏๆŠซ้œฒ็‚บXHTML", + "License Files": "่จฑๅฏๆ–‡ไปถ", "License Fullname": "้ง•็…งๅ…จๅ", "License Info": "่จฑๅฏ่ญ‰่ณ‡่จŠ", "License Info Header": "ๅŸท็…ง่ณ‡่จŠไฟก้ ญ", @@ -905,6 +908,7 @@ "No changes in attachments": "้™„ไปถๆฒ’ๆœ‰่ฎŠๅŒ–", "No changes in basic details": "ๅŸบๆœฌ็ดฐ็ฏ€ๆฒ’ๆœ‰่ฎŠๅŒ–", "No data available in table": "่กจไธญๆฒ’ๆœ‰ๅฏ็”จ็š„ๆ•ธๆ“š", + "No license files available": "ๆฒ’ๆœ‰ๅฏ็”จ็š„่จฑๅฏ่ญ‰ๆ–‡ไปถ", "No linked releases or projects": "ๆฒ’ๆœ‰้€ฃ็ต็š„็‰ˆๆœฌๆˆ–้ …็›ฎ", "No matching data found": "ๆ‰พไธๅˆฐๅŒน้…็š„ๆ•ธๆ“š๏ผ", "No previous selection found If you have writing permissions to this project your selection will be stored automatically when downloading": "ๆ‰พไธๅˆฐไปฅๅ‰็š„้ธๆ“‡ใ€‚\nๅฆ‚ๆžœๆ‚จๅฐๆญค้ …็›ฎๅ…ทๆœ‰ๅฏซๅ…ฅๆฌŠ้™๏ผŒๅ‰‡ไธ‹่ผ‰ๆ™‚ๅฐ‡่‡ชๅ‹•ๅ„ฒๅญ˜ๆ‚จ็š„้ธๆ“‡ใ€‚", @@ -1474,7 +1478,7 @@ "Users": "ไฝฟ็”จ่€…", "Users uploaded successfully": "ไฝฟ็”จ่€…ไธŠๅ‚ณๆˆๅŠŸ", "VALUE": "ๅ€ผ", - "VCS/Repository URL": "VCS/็จ‹ๅผ็ขผๅ„ฒๅญ˜ๅบซ URL", + "VCS": "VCS", "VCS URLs were redirected": "VCS URL่ขซ้‡ๅฎšๅ‘", "VENDORS": "้€‰ๆฐ‘", "VIEWER": "่ง€็œพ", diff --git a/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx b/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx index db321f4e8..ad101ba99 100644 --- a/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx +++ b/src/app/[locale]/components/detail/[id]/components/ComponentGeneral.tsx @@ -141,7 +141,7 @@ const ComponentGeneral = ({ component, componentId }: Props): ReactNode => { - {t('VCS/Repository URL')}: + {`${t('VCS')} / ${t('Repository URL')}`}: {!CommonUtils.isNullEmptyOrUndefinedString(component.vcs) && ( Date: Mon, 2 Feb 2026 03:25:51 +0000 Subject: [PATCH 033/492] chore(deps): bump preact from 10.28.2 to 10.28.3 Bumps [preact](https://github.com/preactjs/preact) from 10.28.2 to 10.28.3. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.28.2...10.28.3) --- updated-dependencies: - dependency-name: preact dependency-version: 10.28.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 74439390a..c2fa30170 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "next-auth": "^4.24.13", "next-intl": "^4.7.0", "next-themes": "^0.4.6", - "preact": "^10.28.2", + "preact": "^10.28.3", "react": "19.2.1", "react-bootstrap": "^2.10.10", "react-cookie": "^8.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e370b0f16..ac030bfd1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,8 +57,8 @@ importers: specifier: ^0.4.6 version: 0.4.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) preact: - specifier: ^10.28.2 - version: 10.28.2 + specifier: ^10.28.3 + version: 10.28.3 react: specifier: 19.2.1 version: 19.2.1 @@ -1846,8 +1846,8 @@ packages: peerDependencies: preact: '>=10' - preact@10.28.2: - resolution: {integrity: sha512-lbteaWGzGHdlIuiJ0l2Jq454m6kcpI1zNje6d8MlGAFlYvP2GO4ibnat7P74Esfz4sPTdM6UxtTwh/d3pwM9JA==} + preact@10.28.3: + resolution: {integrity: sha512-tCmoRkPQLpBeWzpmbhryairGnhW9tKV6c6gr/w+RhoRoKEJwsjzipwp//1oCpGPOchvSLaAPlpcJi9MwMmoPyA==} prettier-plugin-organize-imports@4.3.0: resolution: {integrity: sha512-FxFz0qFhyBsGdIsb697f/EkvHzi5SZOhWAjxcx2dLt+Q532bAlhswcXGYB1yzjZ69kW8UoadFBw7TyNwlq96Iw==} @@ -3781,8 +3781,8 @@ snapshots: next: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) oauth: 0.9.15 openid-client: 5.7.1 - preact: 10.28.2 - preact-render-to-string: 5.2.6(preact@10.28.2) + preact: 10.28.3 + preact-render-to-string: 5.2.6(preact@10.28.3) react: 19.2.1 react-dom: 19.2.1(react@19.2.1) uuid: 8.3.2 @@ -3918,12 +3918,12 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - preact-render-to-string@5.2.6(preact@10.28.2): + preact-render-to-string@5.2.6(preact@10.28.3): dependencies: - preact: 10.28.2 + preact: 10.28.3 pretty-format: 3.8.0 - preact@10.28.2: {} + preact@10.28.3: {} prettier-plugin-organize-imports@4.3.0(prettier@3.8.1)(typescript@5.9.3): dependencies: From 268bfbb989ad8f571cb35d6fc05a05fc630a908d Mon Sep 17 00:00:00 2001 From: Akshit Joshi Date: Thu, 29 Jan 2026 15:28:22 +0530 Subject: [PATCH 034/492] fix(licensClearing): Use camelCase for license clearing count props Signed-off-by: Akshit Joshi --- src/components/LicenseClearing.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/LicenseClearing.tsx b/src/components/LicenseClearing.tsx index 11e5a59b1..bf5b7dc83 100644 --- a/src/components/LicenseClearing.tsx +++ b/src/components/LicenseClearing.tsx @@ -17,8 +17,8 @@ import { ErrorDetails } from '@/object-types' import { ApiError, ApiUtils, CommonUtils } from '@/utils' export interface LicenseClearingData { - 'Release Count': number - 'Approved Count': number + releaseCount: number + approvedCount: number } interface LicenseClearingProps { @@ -70,7 +70,7 @@ export default function LicenseClearing({ projectId, data }: LicenseClearingProp return ( <> {lcData ? ( -
{`${lcData['Approved Count']}/${lcData['Release Count']}`}
+
{`${lcData.approvedCount}/${lcData.releaseCount}`}
) : (
Date: Mon, 2 Feb 2026 03:27:42 +0000 Subject: [PATCH 035/492] chore(deps): bump step-security/harden-runner from 2.14.0 to 2.14.1 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.14.0 to 2.14.1. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/20cf305ff2072d973412fa9b1e3a4f227bda3c76...e3f713f2d8f53843e71c69a996d56f51aa9adfb9) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.14.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/build_deploy.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/commit_checks.yaml | 2 +- .github/workflows/dependency-review.yml | 2 +- .github/workflows/docker_deploy.yml | 2 +- .github/workflows/scorecard.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 255f009cf..1dbd6eb7e 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 66a31f8c7..65c2125ab 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -57,7 +57,7 @@ jobs: # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit diff --git a/.github/workflows/commit_checks.yaml b/.github/workflows/commit_checks.yaml index bc5c6c6af..14ef5ea03 100644 --- a/.github/workflows/commit_checks.yaml +++ b/.github/workflows/commit_checks.yaml @@ -22,7 +22,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0869e0d70..222623af3 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit diff --git a/.github/workflows/docker_deploy.yml b/.github/workflows/docker_deploy.yml index a049b6698..920469d2d 100644 --- a/.github/workflows/docker_deploy.yml +++ b/.github/workflows/docker_deploy.yml @@ -33,7 +33,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index cad941064..3baa4325c 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit From 57380fb2920cc876bc7fa847cab3f875520db30f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 08:14:16 +0000 Subject: [PATCH 036/492] chore(deps): bump next from 16.1.4 to 16.1.6 Bumps [next](https://github.com/vercel/next.js) from 16.1.4 to 16.1.6. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v16.1.4...v16.1.6) --- updated-dependencies: - dependency-name: next dependency-version: 16.1.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 110 ++++++++++++++++++++++++------------------------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/package.json b/package.json index c2fa30170..7bc86f665 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "html-react-parser": "^5.2.12", "http-status-codes": "^2.3.0", "jwt-decode": "^4.0.0", - "next": "16.1.4", + "next": "16.1.6", "next-auth": "^4.24.13", "next-intl": "^4.7.0", "next-themes": "^0.4.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ac030bfd1..3206ed27b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,14 +45,14 @@ importers: specifier: ^4.0.0 version: 4.0.0 next: - specifier: 16.1.4 - version: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + specifier: 16.1.6 + version: 16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-auth: specifier: ^4.24.13 - version: 4.24.13(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + version: 4.24.13(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-intl: specifier: ^4.7.0 - version: 4.7.0(@swc/helpers@0.5.18)(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3) + version: 4.7.0(@swc/helpers@0.5.18)(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3) next-themes: specifier: ^0.4.6 version: 0.4.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -519,53 +519,53 @@ packages: '@jridgewell/trace-mapping@0.3.9': resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@next/env@16.1.4': - resolution: {integrity: sha512-gkrXnZyxPUy0Gg6SrPQPccbNVLSP3vmW8LU5dwEttEEC1RwDivk8w4O+sZIjFvPrSICXyhQDCG+y3VmjlJf+9A==} + '@next/env@16.1.6': + resolution: {integrity: sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==} - '@next/swc-darwin-arm64@16.1.4': - resolution: {integrity: sha512-T8atLKuvk13XQUdVLCv1ZzMPgLPW0+DWWbHSQXs0/3TjPrKNxTmUIhOEaoEyl3Z82k8h/gEtqyuoZGv6+Ugawg==} + '@next/swc-darwin-arm64@16.1.6': + resolution: {integrity: sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@16.1.4': - resolution: {integrity: sha512-AKC/qVjUGUQDSPI6gESTx0xOnOPQ5gttogNS3o6bA83yiaSZJek0Am5yXy82F1KcZCx3DdOwdGPZpQCluonuxg==} + '@next/swc-darwin-x64@16.1.6': + resolution: {integrity: sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@16.1.4': - resolution: {integrity: sha512-POQ65+pnYOkZNdngWfMEt7r53bzWiKkVNbjpmCt1Zb3V6lxJNXSsjwRuTQ8P/kguxDC8LRkqaL3vvsFrce4dMQ==} + '@next/swc-linux-arm64-gnu@16.1.6': + resolution: {integrity: sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@16.1.4': - resolution: {integrity: sha512-3Wm0zGYVCs6qDFAiSSDL+Z+r46EdtCv/2l+UlIdMbAq9hPJBvGu/rZOeuvCaIUjbArkmXac8HnTyQPJFzFWA0Q==} + '@next/swc-linux-arm64-musl@16.1.6': + resolution: {integrity: sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-x64-gnu@16.1.4': - resolution: {integrity: sha512-lWAYAezFinaJiD5Gv8HDidtsZdT3CDaCeqoPoJjeB57OqzvMajpIhlZFce5sCAH6VuX4mdkxCRqecCJFwfm2nQ==} + '@next/swc-linux-x64-gnu@16.1.6': + resolution: {integrity: sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@16.1.4': - resolution: {integrity: sha512-fHaIpT7x4gA6VQbdEpYUXRGyge/YbRrkG6DXM60XiBqDM2g2NcrsQaIuj375egnGFkJow4RHacgBOEsHfGbiUw==} + '@next/swc-linux-x64-musl@16.1.6': + resolution: {integrity: sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-win32-arm64-msvc@16.1.4': - resolution: {integrity: sha512-MCrXxrTSE7jPN1NyXJr39E+aNFBrQZtO154LoCz7n99FuKqJDekgxipoodLNWdQP7/DZ5tKMc/efybx1l159hw==} + '@next/swc-win32-arm64-msvc@16.1.6': + resolution: {integrity: sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-x64-msvc@16.1.4': - resolution: {integrity: sha512-JSVlm9MDhmTXw/sO2PE/MRj+G6XOSMZB+BcZ0a7d6KwVFZVpkHcb2okyoYFBaco6LeiL53BBklRlOrDDbOeE5w==} + '@next/swc-win32-x64-msvc@16.1.6': + resolution: {integrity: sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -925,8 +925,8 @@ packages: base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - baseline-browser-mapping@2.9.18: - resolution: {integrity: sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==} + baseline-browser-mapping@2.9.19: + resolution: {integrity: sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==} hasBin: true bcrypt-pbkdf@1.0.2: @@ -969,8 +969,8 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - caniuse-lite@1.0.30001766: - resolution: {integrity: sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==} + caniuse-lite@1.0.30001767: + resolution: {integrity: sha512-34+zUAMhSH+r+9eKmYG+k2Rpt8XttfE4yXAjoZvkAPs15xcYQhyBYdalJ65BzivAvGRMViEjy6oKr/S91loekQ==} caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} @@ -1720,8 +1720,8 @@ packages: react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - next@16.1.4: - resolution: {integrity: sha512-gKSecROqisnV7Buen5BfjmXAm7Xlpx9o2ueVQRo5DxQcjC8d330dOM1xiGWc2k3Dcnz0In3VybyRPOsudwgiqQ==} + next@16.1.6: + resolution: {integrity: sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==} engines: {node: '>=20.9.0'} hasBin: true peerDependencies: @@ -2717,30 +2717,30 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@next/env@16.1.4': {} + '@next/env@16.1.6': {} - '@next/swc-darwin-arm64@16.1.4': + '@next/swc-darwin-arm64@16.1.6': optional: true - '@next/swc-darwin-x64@16.1.4': + '@next/swc-darwin-x64@16.1.6': optional: true - '@next/swc-linux-arm64-gnu@16.1.4': + '@next/swc-linux-arm64-gnu@16.1.6': optional: true - '@next/swc-linux-arm64-musl@16.1.4': + '@next/swc-linux-arm64-musl@16.1.6': optional: true - '@next/swc-linux-x64-gnu@16.1.4': + '@next/swc-linux-x64-gnu@16.1.6': optional: true - '@next/swc-linux-x64-musl@16.1.4': + '@next/swc-linux-x64-musl@16.1.6': optional: true - '@next/swc-win32-arm64-msvc@16.1.4': + '@next/swc-win32-arm64-msvc@16.1.6': optional: true - '@next/swc-win32-x64-msvc@16.1.4': + '@next/swc-win32-x64-msvc@16.1.6': optional: true '@panva/hkdf@1.2.1': {} @@ -3030,7 +3030,7 @@ snapshots: base64-js@1.5.1: {} - baseline-browser-mapping@2.9.18: {} + baseline-browser-mapping@2.9.19: {} bcrypt-pbkdf@1.0.2: dependencies: @@ -3069,7 +3069,7 @@ snapshots: callsites@3.1.0: {} - caniuse-lite@1.0.30001766: {} + caniuse-lite@1.0.30001767: {} caseless@0.12.0: {} @@ -3772,13 +3772,13 @@ snapshots: negotiator@1.0.0: {} - next-auth@4.24.13(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1): + next-auth@4.24.13(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: '@babel/runtime': 7.28.4 '@panva/hkdf': 1.2.1 cookie: 0.7.2 jose: 4.15.9 - next: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + next: 16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) oauth: 0.9.15 openid-client: 5.7.1 preact: 10.28.3 @@ -3789,13 +3789,13 @@ snapshots: next-intl-swc-plugin-extractor@4.7.0: {} - next-intl@4.7.0(@swc/helpers@0.5.18)(next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3): + next-intl@4.7.0(@swc/helpers@0.5.18)(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3): dependencies: '@formatjs/intl-localematcher': 0.5.10 '@parcel/watcher': 2.5.1 '@swc/core': 1.15.8(@swc/helpers@0.5.18) negotiator: 1.0.0 - next: 16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + next: 16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-intl-swc-plugin-extractor: 4.7.0 po-parser: 2.1.1 react: 19.2.1 @@ -3810,25 +3810,25 @@ snapshots: react: 19.2.1 react-dom: 19.2.1(react@19.2.1) - next@16.1.4(react-dom@19.2.1(react@19.2.1))(react@19.2.1): + next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: - '@next/env': 16.1.4 + '@next/env': 16.1.6 '@swc/helpers': 0.5.15 - baseline-browser-mapping: 2.9.18 - caniuse-lite: 1.0.30001766 + baseline-browser-mapping: 2.9.19 + caniuse-lite: 1.0.30001767 postcss: 8.4.31 react: 19.2.1 react-dom: 19.2.1(react@19.2.1) styled-jsx: 5.1.6(react@19.2.1) optionalDependencies: - '@next/swc-darwin-arm64': 16.1.4 - '@next/swc-darwin-x64': 16.1.4 - '@next/swc-linux-arm64-gnu': 16.1.4 - '@next/swc-linux-arm64-musl': 16.1.4 - '@next/swc-linux-x64-gnu': 16.1.4 - '@next/swc-linux-x64-musl': 16.1.4 - '@next/swc-win32-arm64-msvc': 16.1.4 - '@next/swc-win32-x64-msvc': 16.1.4 + '@next/swc-darwin-arm64': 16.1.6 + '@next/swc-darwin-x64': 16.1.6 + '@next/swc-linux-arm64-gnu': 16.1.6 + '@next/swc-linux-arm64-musl': 16.1.6 + '@next/swc-linux-x64-gnu': 16.1.6 + '@next/swc-linux-x64-musl': 16.1.6 + '@next/swc-win32-arm64-msvc': 16.1.6 + '@next/swc-win32-x64-msvc': 16.1.6 sharp: 0.34.5 transitivePeerDependencies: - '@babel/core' From b8103373557d89a409e310b459746727c63360d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 09:48:19 +0100 Subject: [PATCH 037/492] chore(deps-dev): bump @types/node from 25.0.9 to 25.2.0 (#1432) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 25.0.9 to 25.2.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 25.2.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 7bc86f665..549bfdbee 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@types/country-list": "^2.1.4", "@types/crypto-js": "^4.2.2", "@types/he": "^1.2.3", - "@types/node": "^25.0.9", + "@types/node": "^25.2.0", "@types/react": "19.2.2", "@types/react-dom": "19.2.3", "bootstrap": "^5.3.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3206ed27b..faf8dc9e3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,7 +80,7 @@ importers: version: 2.3.13 '@commitlint/cli': specifier: 20.3.1 - version: 20.3.1(@types/node@25.0.9)(typescript@5.9.3) + version: 20.3.1(@types/node@25.2.0)(typescript@5.9.3) '@commitlint/config-conventional': specifier: 19.8.0 version: 19.8.0 @@ -94,8 +94,8 @@ importers: specifier: ^1.2.3 version: 1.2.3 '@types/node': - specifier: ^25.0.9 - version: 25.0.9 + specifier: ^25.2.0 + version: 25.2.0 '@types/react': specifier: 19.2.2 version: 19.2.2 @@ -107,7 +107,7 @@ importers: version: 5.3.8(@popperjs/core@2.11.8) commitlint: specifier: ^19.8.0 - version: 19.8.1(@types/node@25.0.9)(typescript@5.9.3) + version: 19.8.1(@types/node@25.2.0)(typescript@5.9.3) cypress: specifier: ^15.9.0 version: 15.9.0 @@ -131,7 +131,7 @@ importers: version: 5.30.6 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.15.8(@swc/helpers@0.5.18))(@types/node@25.0.9)(typescript@5.9.3) + version: 10.9.2(@swc/core@1.15.8(@swc/helpers@0.5.18))(@types/node@25.2.0)(typescript@5.9.3) tsc-files: specifier: ^1.1.4 version: 1.1.4(typescript@5.9.3) @@ -804,8 +804,8 @@ packages: peerDependencies: '@types/react': 19.2.2 - '@types/node@25.0.9': - resolution: {integrity: sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==} + '@types/node@25.2.0': + resolution: {integrity: sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w==} '@types/prop-types@15.7.15': resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==} @@ -2329,11 +2329,11 @@ snapshots: '@biomejs/cli-win32-x64@2.3.13': optional: true - '@commitlint/cli@19.8.1(@types/node@25.0.9)(typescript@5.9.3)': + '@commitlint/cli@19.8.1(@types/node@25.2.0)(typescript@5.9.3)': dependencies: '@commitlint/format': 19.8.1 '@commitlint/lint': 19.8.1 - '@commitlint/load': 19.8.1(@types/node@25.0.9)(typescript@5.9.3) + '@commitlint/load': 19.8.1(@types/node@25.2.0)(typescript@5.9.3) '@commitlint/read': 19.8.1 '@commitlint/types': 19.8.1 tinyexec: 1.0.2 @@ -2342,11 +2342,11 @@ snapshots: - '@types/node' - typescript - '@commitlint/cli@20.3.1(@types/node@25.0.9)(typescript@5.9.3)': + '@commitlint/cli@20.3.1(@types/node@25.2.0)(typescript@5.9.3)': dependencies: '@commitlint/format': 20.3.1 '@commitlint/lint': 20.3.1 - '@commitlint/load': 20.3.1(@types/node@25.0.9)(typescript@5.9.3) + '@commitlint/load': 20.3.1(@types/node@25.2.0)(typescript@5.9.3) '@commitlint/read': 20.3.1 '@commitlint/types': 20.3.1 tinyexec: 1.0.2 @@ -2426,7 +2426,7 @@ snapshots: '@commitlint/rules': 20.3.1 '@commitlint/types': 20.3.1 - '@commitlint/load@19.8.1(@types/node@25.0.9)(typescript@5.9.3)': + '@commitlint/load@19.8.1(@types/node@25.2.0)(typescript@5.9.3)': dependencies: '@commitlint/config-validator': 19.8.1 '@commitlint/execute-rule': 19.8.1 @@ -2434,7 +2434,7 @@ snapshots: '@commitlint/types': 19.8.1 chalk: 5.6.2 cosmiconfig: 9.0.0(typescript@5.9.3) - cosmiconfig-typescript-loader: 6.2.0(@types/node@25.0.9)(cosmiconfig@9.0.0(typescript@5.9.3))(typescript@5.9.3) + cosmiconfig-typescript-loader: 6.2.0(@types/node@25.2.0)(cosmiconfig@9.0.0(typescript@5.9.3))(typescript@5.9.3) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -2442,7 +2442,7 @@ snapshots: - '@types/node' - typescript - '@commitlint/load@20.3.1(@types/node@25.0.9)(typescript@5.9.3)': + '@commitlint/load@20.3.1(@types/node@25.2.0)(typescript@5.9.3)': dependencies: '@commitlint/config-validator': 20.3.1 '@commitlint/execute-rule': 20.0.0 @@ -2450,7 +2450,7 @@ snapshots: '@commitlint/types': 20.3.1 chalk: 5.6.2 cosmiconfig: 9.0.0(typescript@5.9.3) - cosmiconfig-typescript-loader: 6.2.0(@types/node@25.0.9)(cosmiconfig@9.0.0(typescript@5.9.3))(typescript@5.9.3) + cosmiconfig-typescript-loader: 6.2.0(@types/node@25.2.0)(cosmiconfig@9.0.0(typescript@5.9.3))(typescript@5.9.3) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -2917,7 +2917,7 @@ snapshots: '@types/conventional-commits-parser@5.0.2': dependencies: - '@types/node': 25.0.9 + '@types/node': 25.2.0 '@types/country-list@2.1.4': {} @@ -2930,7 +2930,7 @@ snapshots: '@types/react': 19.2.2 hoist-non-react-statics: 3.3.2 - '@types/node@25.0.9': + '@types/node@25.2.0': dependencies: undici-types: 7.16.0 @@ -2958,7 +2958,7 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 25.0.9 + '@types/node': 25.2.0 optional: true JSONStream@1.3.5: @@ -3137,9 +3137,9 @@ snapshots: commander@6.2.1: {} - commitlint@19.8.1(@types/node@25.0.9)(typescript@5.9.3): + commitlint@19.8.1(@types/node@25.2.0)(typescript@5.9.3): dependencies: - '@commitlint/cli': 19.8.1(@types/node@25.0.9)(typescript@5.9.3) + '@commitlint/cli': 19.8.1(@types/node@25.2.0)(typescript@5.9.3) '@commitlint/types': 19.8.1 transitivePeerDependencies: - '@types/node' @@ -3173,9 +3173,9 @@ snapshots: core-util-is@1.0.2: {} - cosmiconfig-typescript-loader@6.2.0(@types/node@25.0.9)(cosmiconfig@9.0.0(typescript@5.9.3))(typescript@5.9.3): + cosmiconfig-typescript-loader@6.2.0(@types/node@25.2.0)(cosmiconfig@9.0.0(typescript@5.9.3))(typescript@5.9.3): dependencies: - '@types/node': 25.0.9 + '@types/node': 25.2.0 cosmiconfig: 9.0.0(typescript@5.9.3) jiti: 2.6.1 typescript: 5.9.3 @@ -4233,14 +4233,14 @@ snapshots: tree-kill@1.2.2: {} - ts-node@10.9.2(@swc/core@1.15.8(@swc/helpers@0.5.18))(@types/node@25.0.9)(typescript@5.9.3): + ts-node@10.9.2(@swc/core@1.15.8(@swc/helpers@0.5.18))(@types/node@25.2.0)(typescript@5.9.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.12 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 25.0.9 + '@types/node': 25.2.0 acorn: 8.15.0 acorn-walk: 8.3.4 arg: 4.1.3 From 0f45887b3ef8bdc47267a7a2a2a6391056685415 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 03:27:30 +0000 Subject: [PATCH 038/492] chore(deps): bump github/codeql-action from 4.31.11 to 4.32.0 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.11 to 4.32.0. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/19b2f06db2b6f5108140aeb04014ef02b648f789...b20883b0cd1f46c72ae0ba6d1090936928f9fa30) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.32.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/scorecard.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 65c2125ab..e2e358a04 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -66,7 +66,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11 + uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -94,6 +94,6 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11 + uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0 with: category: '/language:${{matrix.language}}' diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 3baa4325c..196805390 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -55,6 +55,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11 + uses: github/codeql-action/upload-sarif@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0 with: sarif_file: results.sarif From b115c6c31a0fbbc3b6cb941d4a045ab88c2a487b Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Mon, 2 Feb 2026 09:52:10 +0100 Subject: [PATCH 039/492] feat(deps): Update next-intl Signed-off-by: Helio Chissini de Castro --- package.json | 2 +- pnpm-lock.yaml | 92 ++++++++++++++++++++++++++++---------------------- 2 files changed, 52 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index 549bfdbee..3c5f851e0 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "jwt-decode": "^4.0.0", "next": "16.1.6", "next-auth": "^4.24.13", - "next-intl": "^4.7.0", + "next-intl": "^4.8.1", "next-themes": "^0.4.6", "preact": "^10.28.3", "react": "19.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index faf8dc9e3..2106a6506 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,8 +51,8 @@ importers: specifier: ^4.24.13 version: 4.24.13(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react-dom@19.2.1(react@19.2.1))(react@19.2.1) next-intl: - specifier: ^4.7.0 - version: 4.7.0(@swc/helpers@0.5.18)(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3) + specifier: ^4.8.1 + version: 4.8.1(@swc/helpers@0.5.18)(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3) next-themes: specifier: ^0.4.6 version: 0.4.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -354,23 +354,23 @@ packages: '@emnapi/runtime@1.8.1': resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==} - '@formatjs/ecma402-abstract@2.3.6': - resolution: {integrity: sha512-HJnTFeRM2kVFVr5gr5kH1XP6K0JcJtE7Lzvtr3FS/so5f1kpsqqqxy5JF+FRaO6H2qmcMfAUIox7AJteieRtVw==} + '@formatjs/ecma402-abstract@3.1.1': + resolution: {integrity: sha512-jhZbTwda+2tcNrs4kKvxrPLPjx8QsBCLCUgrrJ/S+G9YrGHWLhAyFMMBHJBnBoOwuLHd7L14FgYudviKaxkO2Q==} - '@formatjs/fast-memoize@2.2.7': - resolution: {integrity: sha512-Yabmi9nSvyOMrlSeGGWDiH7rf3a7sIwplbvo/dlz9WCIjzIQAfy1RMf4S0X3yG724n5Ghu2GmEl5NJIV6O9sZQ==} + '@formatjs/fast-memoize@3.1.0': + resolution: {integrity: sha512-b5mvSWCI+XVKiz5WhnBCY3RJ4ZwfjAidU0yVlKa3d3MSgKmH1hC3tBGEAtYyN5mqL7N0G5x0BOUYyO8CEupWgg==} - '@formatjs/icu-messageformat-parser@2.11.4': - resolution: {integrity: sha512-7kR78cRrPNB4fjGFZg3Rmj5aah8rQj9KPzuLsmcSn4ipLXQvC04keycTI1F7kJYDwIXtT2+7IDEto842CfZBtw==} + '@formatjs/icu-messageformat-parser@3.5.1': + resolution: {integrity: sha512-sSDmSvmmoVQ92XqWb499KrIhv/vLisJU8ITFrx7T7NZHUmMY7EL9xgRowAosaljhqnj/5iufG24QrdzB6X3ItA==} - '@formatjs/icu-skeleton-parser@1.8.16': - resolution: {integrity: sha512-H13E9Xl+PxBd8D5/6TVUluSpxGNvFSlN/b3coUp0e0JpuWXXnQDiavIpY3NnvSp4xhEMoXyyBvVfdFX8jglOHQ==} + '@formatjs/icu-skeleton-parser@2.1.1': + resolution: {integrity: sha512-PSFABlcNefjI6yyk8f7nyX1DC7NHmq6WaCHZLySEXBrXuLOB2f935YsnzuPjlz+ibhb9yWTdPeVX1OVcj24w2Q==} '@formatjs/intl-localematcher@0.5.10': resolution: {integrity: sha512-af3qATX+m4Rnd9+wHcjJ4w2ijq+rAVP3CCinJQvFv1kgSu1W6jypUmvleJxcewdxmutM8dmIRZFxO/IQBZmP2Q==} - '@formatjs/intl-localematcher@0.6.2': - resolution: {integrity: sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==} + '@formatjs/intl-localematcher@0.8.1': + resolution: {integrity: sha512-xwEuwQFdtSq1UKtQnyTZWC+eHdv7Uygoa+H2k/9uzBVQjDyp9r20LNDNKedWXll7FssT3GRHvqsdJGYSUWqYFA==} '@img/colour@1.0.0': resolution: {integrity: sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==} @@ -1425,6 +1425,9 @@ packages: engines: {node: '>=18'} hasBin: true + icu-minify@4.8.1: + resolution: {integrity: sha512-RhXrTA19/PUt5/xs3B/eyx3DCjnMmcfdgqNYBE5vdrEqM4PQK2GWjHa1zdArTxPGgEc4jfuDMH1LkKhmIxwLFw==} + ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -1450,8 +1453,8 @@ packages: inline-style-parser@0.2.7: resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==} - intl-messageformat@10.7.18: - resolution: {integrity: sha512-m3Ofv/X/tV8Y3tHXLohcuVuhWKo7BBq62cqY15etqmLxg2DZ34AGGgQDeR+SCta2+zICb1NX83af0GJmbQ1++g==} + intl-messageformat@11.1.2: + resolution: {integrity: sha512-ucSrQmZGAxfiBHfBRXW/k7UC8MaGFlEj4Ry1tKiDcmgwQm1y3EDl40u+4VNHYomxJQMJi9NEI3riDRlth96jKg==} invariant@2.2.4: resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} @@ -1701,11 +1704,11 @@ packages: nodemailer: optional: true - next-intl-swc-plugin-extractor@4.7.0: - resolution: {integrity: sha512-iAqflu2FWdQMWhwB0B2z52X7LmEpvnMNJXqVERZQ7bK5p9iqQLu70ur6Ka6NfiXLxfb+AeAkUX5qIciQOg+87A==} + next-intl-swc-plugin-extractor@4.8.1: + resolution: {integrity: sha512-4RXyce0ZrQl/6lkfwvDpP8r5B7wbAQakCW9BuMPh+7/DgXFyE+cBXxcmfDkxFDkpXvBFqBZ2HsN4pav49reAZQ==} - next-intl@4.7.0: - resolution: {integrity: sha512-gvROzcNr/HM0jTzQlKWQxUNk8jrZ0bREz+bht3wNbv+uzlZ5Kn3J+m+viosub18QJ72S08UJnVK50PXWcUvwpQ==} + next-intl@4.8.1: + resolution: {integrity: sha512-7V0Ewm6bP12Lgn6cjcKi6NbVy0JeIp1K9EzHfTIsuLAUn4NuH8dhon2WYJywHCyWnxKepm34xF6G1fR2dsNoqA==} peerDependencies: next: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0 @@ -2212,8 +2215,8 @@ packages: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} engines: {node: '>=8'} - use-intl@4.7.0: - resolution: {integrity: sha512-jyd8nSErVRRsSlUa+SDobKHo9IiWs5fjcPl9VBUnzUyEQpVM5mwJCgw8eUiylhvBpLQzUGox1KN0XlRivSID9A==} + use-intl@4.8.1: + resolution: {integrity: sha512-wH85ro36JAw9NrtogpEsqHghD21Ul6/zAKxTqHktnO6WTQzqhbcfPkO5iXu3YOnJBA8Anm7IvWSTqSzRE+2PsA==} peerDependencies: react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0 @@ -2581,34 +2584,35 @@ snapshots: tslib: 2.8.1 optional: true - '@formatjs/ecma402-abstract@2.3.6': + '@formatjs/ecma402-abstract@3.1.1': dependencies: - '@formatjs/fast-memoize': 2.2.7 - '@formatjs/intl-localematcher': 0.6.2 + '@formatjs/fast-memoize': 3.1.0 + '@formatjs/intl-localematcher': 0.8.1 decimal.js: 10.6.0 tslib: 2.8.1 - '@formatjs/fast-memoize@2.2.7': + '@formatjs/fast-memoize@3.1.0': dependencies: tslib: 2.8.1 - '@formatjs/icu-messageformat-parser@2.11.4': + '@formatjs/icu-messageformat-parser@3.5.1': dependencies: - '@formatjs/ecma402-abstract': 2.3.6 - '@formatjs/icu-skeleton-parser': 1.8.16 + '@formatjs/ecma402-abstract': 3.1.1 + '@formatjs/icu-skeleton-parser': 2.1.1 tslib: 2.8.1 - '@formatjs/icu-skeleton-parser@1.8.16': + '@formatjs/icu-skeleton-parser@2.1.1': dependencies: - '@formatjs/ecma402-abstract': 2.3.6 + '@formatjs/ecma402-abstract': 3.1.1 tslib: 2.8.1 '@formatjs/intl-localematcher@0.5.10': dependencies: tslib: 2.8.1 - '@formatjs/intl-localematcher@0.6.2': + '@formatjs/intl-localematcher@0.8.1': dependencies: + '@formatjs/fast-memoize': 3.1.0 tslib: 2.8.1 '@img/colour@1.0.0': @@ -3547,6 +3551,10 @@ snapshots: husky@9.1.7: {} + icu-minify@4.8.1: + dependencies: + '@formatjs/icu-messageformat-parser': 3.5.1 + ieee754@1.2.1: {} import-fresh@3.3.1: @@ -3564,11 +3572,11 @@ snapshots: inline-style-parser@0.2.7: {} - intl-messageformat@10.7.18: + intl-messageformat@11.1.2: dependencies: - '@formatjs/ecma402-abstract': 2.3.6 - '@formatjs/fast-memoize': 2.2.7 - '@formatjs/icu-messageformat-parser': 2.11.4 + '@formatjs/ecma402-abstract': 3.1.1 + '@formatjs/fast-memoize': 3.1.0 + '@formatjs/icu-messageformat-parser': 3.5.1 tslib: 2.8.1 invariant@2.2.4: @@ -3787,19 +3795,20 @@ snapshots: react-dom: 19.2.1(react@19.2.1) uuid: 8.3.2 - next-intl-swc-plugin-extractor@4.7.0: {} + next-intl-swc-plugin-extractor@4.8.1: {} - next-intl@4.7.0(@swc/helpers@0.5.18)(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3): + next-intl@4.8.1(@swc/helpers@0.5.18)(next@16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(react@19.2.1)(typescript@5.9.3): dependencies: '@formatjs/intl-localematcher': 0.5.10 '@parcel/watcher': 2.5.1 '@swc/core': 1.15.8(@swc/helpers@0.5.18) + icu-minify: 4.8.1 negotiator: 1.0.0 next: 16.1.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1) - next-intl-swc-plugin-extractor: 4.7.0 + next-intl-swc-plugin-extractor: 4.8.1 po-parser: 2.1.1 react: 19.2.1 - use-intl: 4.7.0(react@19.2.1) + use-intl: 4.8.1(react@19.2.1) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -4295,11 +4304,12 @@ snapshots: untildify@4.0.0: {} - use-intl@4.7.0(react@19.2.1): + use-intl@4.8.1(react@19.2.1): dependencies: - '@formatjs/fast-memoize': 2.2.7 + '@formatjs/fast-memoize': 3.1.0 '@schummar/icu-type-parser': 1.21.5 - intl-messageformat: 10.7.18 + icu-minify: 4.8.1 + intl-messageformat: 11.1.2 react: 19.2.1 uuid@8.3.2: {} From 7206503d2653ca61c78c1ceaa6ae718a3430c579 Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Mon, 2 Feb 2026 12:03:06 +0100 Subject: [PATCH 040/492] feat(codeowners): Remove myself of CODEOWNERS Signed-off-by: Helio Chissini de Castro --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8cfaf1baf..d0a0ab2ad 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # Lead developers -* @heliocastro @amritkv @GMishx @deo002 +* @amritkv @GMishx @deo002 From fa7b8c343f9fb85e9ae2d25d0cee77cf1d703f27 Mon Sep 17 00:00:00 2001 From: Taanvi Khevaria Date: Thu, 29 Jan 2026 22:26:31 +0530 Subject: [PATCH 041/492] feat(home): Add filter dropdown for My Projects widget Add filtering functionality to the My Projects section on the Home page: - Add dropdown with Role In Project checkboxes - Add Clearing State checkboxes (Open, Closed, In Progress) - Add Search button to apply filters Closes #1337 --- .../home/components/HomeTableHeader.tsx | 154 +++++++++++++++++- .../home/components/MyProjectsWidget.tsx | 63 ++++++- src/styles/globals.css | 12 ++ 3 files changed, 222 insertions(+), 7 deletions(-) diff --git a/src/app/[locale]/home/components/HomeTableHeader.tsx b/src/app/[locale]/home/components/HomeTableHeader.tsx index 8137d4b0e..9858cb1c4 100644 --- a/src/app/[locale]/home/components/HomeTableHeader.tsx +++ b/src/app/[locale]/home/components/HomeTableHeader.tsx @@ -8,19 +8,167 @@ // SPDX-License-Identifier: EPL-2.0 // License-Filename: LICENSE -import { ReactNode } from 'react' +'use client' + +import { useTranslations } from 'next-intl' +import { ReactNode, useState } from 'react' +import { Button, Dropdown, Form } from 'react-bootstrap' import { BsArrowRepeat } from 'react-icons/bs' interface HomeTableHeaderProps { title: string setReload: React.Dispatch> + roles?: string[] + setRoles?: React.Dispatch> + clearingStates?: string[] + setClearingStates?: React.Dispatch> + onSearch?: () => void } -function HomeTableHeader({ title = '', setReload }: HomeTableHeaderProps): ReactNode { +const ROLE_OPTIONS = [ + { + key: 'createdBy', + label: 'Creator', + }, + { + key: 'moderator', + label: 'Moderator', + }, + { + key: 'contributor', + label: 'Contributor', + }, + { + key: 'projectOwner', + label: 'Project Owner', + }, + { + key: 'leadArchitect', + label: 'Lead Architect', + }, + { + key: 'projectResponsible', + label: 'Project Responsible', + }, + { + key: 'securityResponsible', + label: 'Security Responsible', + }, +] + +const CLEARING_STATE_OPTIONS = [ + { + key: 'stateOpen', + label: 'Open', + }, + { + key: 'stateClosed', + label: 'Closed', + }, + { + key: 'stateInProgress', + label: 'In Progress', + }, +] + +function HomeTableHeader({ + title = '', + setReload, + roles, + setRoles, + clearingStates, + setClearingStates, + onSearch, +}: HomeTableHeaderProps): ReactNode { + const t = useTranslations('default') + const [showDropdown, setShowDropdown] = useState(false) + const hasFilters = roles !== undefined && setRoles !== undefined + + const handleRoleChange = (key: string, checked: boolean) => { + if (!setRoles || !roles) return + if (checked) { + setRoles([ + ...roles, + key, + ]) + } else { + setRoles(roles.filter((r) => r !== key)) + } + } + + const handleClearingStateChange = (key: string, checked: boolean) => { + if (!setClearingStates || !clearingStates) return + if (checked) { + setClearingStates([ + ...clearingStates, + key, + ]) + } else { + setClearingStates(clearingStates.filter((s) => s !== key)) + } + } + + const handleSearch = () => { + setShowDropdown(false) + onSearch?.() + } + return ( <>
-

{title}

+

+ {title} + {hasFilters && ( + setShowDropdown(isOpen)} + autoClose={false} + className='d-inline-block ms-2' + > + + +
Role In Project
+ {ROLE_OPTIONS.map((option) => ( + handleRoleChange(option.key, e.target.checked)} + className='mb-1' + /> + ))} +
+
{t('Clearing State')}
+ {CLEARING_STATE_OPTIONS.map((option) => ( + handleClearingStateChange(option.key, e.target.checked)} + className='mb-1' + /> + ))} +
+
+ +
+
+
+ )} +

{ diff --git a/src/app/[locale]/home/components/MyProjectsWidget.tsx b/src/app/[locale]/home/components/MyProjectsWidget.tsx index 8203c84ab..1879dfbb2 100644 --- a/src/app/[locale]/home/components/MyProjectsWidget.tsx +++ b/src/app/[locale]/home/components/MyProjectsWidget.tsx @@ -26,6 +26,27 @@ type EmbeddedProjects = Embedded export default function MyProjectsWidget(): ReactNode { const t = useTranslations('default') const [reload, setReload] = useState(false) + const [roles, setRoles] = useState([]) + const [clearingStates, setClearingStates] = useState([]) + const [appliedFilters, setAppliedFilters] = useState<{ + roles: string[] + clearingStates: string[] + }>({ + roles: [], + clearingStates: [], + }) + + const handleSearch = () => { + setAppliedFilters({ + roles, + clearingStates, + }) + setPageableQueryParam((prev) => ({ + ...prev, + page: 0, + })) + setReload((prev) => !prev) + } const columns = useMemo[]>( () => [ @@ -111,15 +132,43 @@ export default function MyProjectsWidget(): ReactNode { const session = await getSession() if (CommonUtils.isNullOrUndefined(session)) return signOut() - const queryUrl = CommonUtils.createUrlWithParams( - `projects/myprojects`, - Object.fromEntries( + const queryParams: Record = { + ...Object.fromEntries( Object.entries(pageableQueryParam).map(([key, value]) => [ key, String(value), ]), ), - ) + } + + const allRoleKeys = [ + 'createdBy', + 'moderator', + 'contributor', + 'projectOwner', + 'leadArchitect', + 'projectResponsible', + 'securityResponsible', + ] + const allClearingStateKeys = [ + 'stateOpen', + 'stateClosed', + 'stateInProgress', + ] + + if (appliedFilters.roles.length > 0) { + allRoleKeys.forEach((key) => { + queryParams[key] = appliedFilters.roles.includes(key) ? 'true' : 'false' + }) + } + + if (appliedFilters.clearingStates.length > 0) { + allClearingStateKeys.forEach((key) => { + queryParams[key] = appliedFilters.clearingStates.includes(key) ? 'true' : 'false' + }) + } + + const queryUrl = CommonUtils.createUrlWithParams(`projects/myprojects`, queryParams) const response = await ApiUtils.GET(queryUrl, session.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails @@ -147,6 +196,7 @@ export default function MyProjectsWidget(): ReactNode { }, [ pageableQueryParam, reload, + appliedFilters, ]) const table = useReactTable({ @@ -225,6 +275,11 @@ export default function MyProjectsWidget(): ReactNode {
{pageableQueryParam && table && paginationMeta ? ( diff --git a/src/styles/globals.css b/src/styles/globals.css index baaab3693..6bf3e81cf 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -637,6 +637,18 @@ body { padding-top: 20px; } +.tableHeader .dropdown .tableHeaderFilterToggle.btn { + text-decoration: none; + cursor: pointer; + padding: 0; + color: #5d8ea9; +} + +.tableHeader .dropdown .dropdown-menu.tableHeaderFilterMenu { + min-width: 250px; + padding: 10px; +} + .subscriptionBox { border: 1px solid #2e5aac; background-color: #eef2fa; From 02b62689de84411ff1c9578ae1978028a81ebaeb Mon Sep 17 00:00:00 2001 From: Taanvi Khevaria Date: Sat, 31 Jan 2026 21:06:51 +0530 Subject: [PATCH 042/492] fix(home): Address PR review feedback for My Projects filter --- messages/de.json | 3 ++ messages/en.json | 3 ++ messages/es.json | 3 ++ messages/fr.json | 3 ++ messages/ja.json | 3 ++ messages/ko.json | 3 ++ messages/pt-BR.json | 3 ++ messages/vi.json | 3 ++ messages/zh-CN.json | 3 ++ messages/zh-TW.json | 3 ++ .../home/components/HomeTableHeader.tsx | 26 +++++----- .../home/components/MyProjectsWidget.tsx | 51 +++++++++++-------- src/styles/globals.css | 5 ++ 13 files changed, 78 insertions(+), 34 deletions(-) diff --git a/messages/de.json b/messages/de.json index c1922f318..55ae7b728 100644 --- a/messages/de.json +++ b/messages/de.json @@ -868,6 +868,7 @@ "Moderation Request Information": "Informationen zur Moderationsanfrage", "Moderation request is already closed": "Die Moderationsanfrage ist bereits geschlossen. \nDer Vorgang kann nicht ausgefรผhrt werden.", "Moderation request is created": "Die Moderationsanforderung wird erstellt!", + "Moderator": "Moderator", "Moderators": "Moderatoren", "Modified By": "Geรคndert von", "Modified On": "Geรคndert auf", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "Revisionskontrollsystem (RCS)", "Revoke Token": "Token widerrufen", "Revoke token sucessfully": "Token erfolgreich widerrufen", + "Role In Project": "Rolle im Projekt", "Roles": "Roggen", "SANITY_CHECK": "รœberprรผfung der geistigen Gesundheit", "SAP Design Time Repository (DTR)": "SAP Design Time Repository (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "Sekundรคre Abteilung", "Secondary Department Role": "Rolle der sekundรคren Abteilung", "Secondary Departments and Roles": "Sekundรคrabteilungen und Rollen", + "Security Responsible": "Sicherheitsverantwortlicher", "Security Responsibles": "Sicherheitsverantwortliche", "Security Vulnerabilities Display": "Anzeige von Sicherheitslรผcken", "Security Vulnerability Monitoring": "รœberwachung von Sicherheitslรผcken", diff --git a/messages/en.json b/messages/en.json index 53c4d7525..7a673a502 100644 --- a/messages/en.json +++ b/messages/en.json @@ -868,6 +868,7 @@ "Moderation Request Information": "Moderation Request Information", "Moderation request is already closed": "Moderation request is already closed. Can not perform operation.", "Moderation request is created": "Moderation request is created!", + "Moderator": "Moderator", "Moderators": "Moderators", "Modified By": "Modified By", "Modified On": "Modified On", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "Revision Control System (RCS)", "Revoke Token": "Revoke Token", "Revoke token sucessfully": "Revoke token sucessfully", + "Role In Project": "Role In Project", "Roles": "Roles", "SANITY_CHECK": "Sanity Check", "SAP Design Time Repository (DTR)": "SAP Design Time Repository (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "Secondary Department", "Secondary Department Role": "Secondary Department Role", "Secondary Departments and Roles": "Secondary Departments and Roles", + "Security Responsible": "Security Responsible", "Security Responsibles": "Security Responsibles", "Security Vulnerabilities Display": "Security Vulnerabilities Display", "Security Vulnerability Monitoring": "Security Vulnerability Monitoring", diff --git a/messages/es.json b/messages/es.json index a29409dcd..ccc211476 100644 --- a/messages/es.json +++ b/messages/es.json @@ -868,6 +868,7 @@ "Moderation Request Information": "Informaciรณn de solicitud de moderaciรณn", "Moderation request is already closed": "La solicitud de moderaciรณn ya estรก cerrada. \nNo se puede realizar la operaciรณn.", "Moderation request is created": "ยกSe crea una solicitud de moderaciรณn!", + "Moderator": "Moderador", "Moderators": "Moderadores", "Modified By": "Modificado por", "Modified On": "Modificado en", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "Revision Control System (RCS)", "Revoke Token": "Revocar ficha", "Revoke token sucessfully": "Revocar token con รฉxito", + "Role In Project": "Rol en el Proyecto", "Roles": "Funciones", "SANITY_CHECK": "Control de cordura", "SAP Design Time Repository (DTR)": "SAP Design Time Repository (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "Departamento de Secundaria", "Secondary Department Role": "Funciรณn del departamento de secundaria", "Secondary Departments and Roles": "Departamentos y roles secundarios", + "Security Responsible": "Responsable de Seguridad", "Security Responsibles": "Responsables de seguridad", "Security Vulnerabilities Display": "Visualizaciรณn de vulnerabilidades de seguridad", "Security Vulnerability Monitoring": "Monitoreo de vulnerabilidades de seguridad", diff --git a/messages/fr.json b/messages/fr.json index a025ec6fe..87107f990 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -868,6 +868,7 @@ "Moderation Request Information": "Informations sur la demande de modรฉration", "Moderation request is already closed": "La demande de modรฉration est dรฉjร  fermรฉe. \nImpossible d'effectuer l'opรฉration.", "Moderation request is created": "La demande de modรฉration est crรฉรฉe!", + "Moderator": "Modรฉrateur", "Moderators": "Animateurs", "Modified By": "Modifiรฉ par", "Modified On": "Modifiรฉ le", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "Systรจme de contrรดle de rรฉvision (SCR)", "Revoke Token": "Rรฉvoquer le jeton", "Revoke token sucessfully": "Rรฉvoquer le jeton avec succรจs", + "Role In Project": "Rรดle dans le Projet", "Roles": "Rรดles", "SANITY_CHECK": "Contrรดle de santรฉ mentale", "SAP Design Time Repository (DTR)": "Dรฉpรดt de temps de conception SAP (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "Dรฉpartement secondaire", "Secondary Department Role": "Rรดle du dรฉpartement secondaire", "Secondary Departments and Roles": "Services et rรดles secondaires", + "Security Responsible": "Responsable de la Sรฉcuritรฉ", "Security Responsibles": "Responsables de la sรฉcuritรฉ", "Security Vulnerabilities Display": "Affichage des vulnรฉrabilitรฉs de sรฉcuritรฉ", "Security Vulnerability Monitoring": "Surveillance des vulnรฉrabilitรฉs de sรฉcuritรฉ", diff --git a/messages/ja.json b/messages/ja.json index c001a5e15..17146164c 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -868,6 +868,7 @@ "Moderation Request Information": "ใƒขใƒ‡ใƒฌใƒผใ‚ทใƒงใƒณใƒชใ‚ฏใ‚จใ‚นใƒˆๆƒ…ๅ ฑ", "Moderation request is already closed": "ใƒขใƒ‡ใƒฌใƒผใ‚ทใƒงใƒณใƒชใ‚ฏใ‚จใ‚นใƒˆใฏใ™ใงใซ็ต‚ไบ†ใ—ใฆใ„ใพใ™ใ€‚\nๆ“ไฝœใŒใงใใพใ›ใ‚“ใ€‚", "Moderation request is created": "ใƒขใƒ‡ใƒฌใƒผใƒˆใƒชใ‚ฏใ‚จใ‚นใƒˆใŒไฝœๆˆใ•ใ‚Œใพใ™๏ผ", + "Moderator": "ใƒขใƒ‡ใƒฌใƒผใ‚ฟใƒผ", "Moderators": "ใƒขใƒ‡ใƒฌใƒผใ‚ฟ", "Modified By": "ๅค‰ๆ›ดๆ–นๆณ•", "Modified On": "ๅค‰ๆ›ดใ•ใ‚ŒใŸ", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "ใƒชใƒ“ใ‚ธใƒงใƒณ็ฎก็†ใ‚ทใ‚นใƒ†ใƒ  (RCS)", "Revoke Token": "ใƒˆใƒผใ‚ฏใƒณใฎๅ–ใ‚Šๆถˆใ—", "Revoke token sucessfully": "ใƒˆใƒผใ‚ฏใƒณใ‚’ๆญฃๅธธใซๅ–ใ‚Šๆถˆใ—ใพใ™", + "Role In Project": "ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใงใฎๅฝนๅ‰ฒ", "Roles": "ๅฝนๅ‰ฒ", "SANITY_CHECK": "ๅฅๅ…จๆ€งใƒใ‚งใƒƒใ‚ฏ", "SAP Design Time Repository (DTR)": "SAP ใƒ‡ใ‚ถใ‚คใƒณใ‚ฟใ‚คใƒ  ใƒชใƒใ‚ธใƒˆใƒช (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "ไธญ็ญ‰้ƒจ้–€", "Secondary Department Role": "ไบŒๆฌก้ƒจ้–€ใฎๅฝนๅ‰ฒ", "Secondary Departments and Roles": "ไบŒๆฌก้ƒจ้–€ใจๅฝนๅ‰ฒ", + "Security Responsible": "ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃ่ฒฌไปป่€…", "Security Responsibles": "ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃ่ฒฌไปป่€…", "Security Vulnerabilities Display": "ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃ่„†ๅผฑๆ€งใฎ่กจ็คบ", "Security Vulnerability Monitoring": "ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃ่„†ๅผฑๆ€งใฎ็›ฃ่ฆ–", diff --git a/messages/ko.json b/messages/ko.json index 3e6a52e59..35c1ca57b 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -868,6 +868,7 @@ "Moderation Request Information": "์ค‘์žฌ ์š”์ฒญ ์ •๋ณด", "Moderation request is already closed": "๊ฒ€ํ†  ์š”์ฒญ์ด ์ด๋ฏธ ์ข…๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. \n์ž‘์—…์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.", "Moderation request is created": "์ค‘์žฌ ์š”์ฒญ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค!", + "Moderator": "๋ชจ๋”๋ ˆ์ดํ„ฐ", "Moderators": "๋ชจ๋”๋ ˆ์ดํ„ฐ", "Modified By": "์ˆ˜์ • ์‚ฌํ•ญ", "Modified On": "๊ด€๋ จ ๊ธฐ์‚ฌ", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "๊ฐœ์ • ์ œ์–ด ์‹œ์Šคํ…œ (RCS)", "Revoke Token": "ํ† ํฐ ์ทจ์†Œ", "Revoke token sucessfully": "ํ† ํฐ์„ ์„ฑ๊ณต์ ์œผ๋กœ ์ทจ์†Œํ–ˆ์Šต๋‹ˆ๋‹ค.", + "Role In Project": "ํ”„๋กœ์ ํŠธ์—์„œ์˜ ์—ญํ• ", "Roles": "์ œํ’ˆ์ •๋ณด", "SANITY_CHECK": "์ •์‹ ์ƒํƒœ ํ™•์ธ", "SAP Design Time Repository (DTR)": "SAP ์„ค๊ณ„ ์‹œ๊ฐ„ ์ €์žฅ์†Œ (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "์ค‘๋“ฑ๋ถ€", "Secondary Department Role": "๋ณด์กฐ ๋ถ€์„œ ์—ญํ• ", "Secondary Departments and Roles": "์ค‘๋“ฑ ๋ถ€์„œ ๋ฐ ์—ญํ• ", + "Security Responsible": "๋ณด์•ˆ ์ฑ…์ž„์ž", "Security Responsibles": "๋ณด์•ˆ ์ฑ…์ž„", "Security Vulnerabilities Display": "๋ณด์•ˆ ์ทจ์•ฝ์  ํ‘œ์‹œ", "Security Vulnerability Monitoring": "๋ณด์•ˆ ์ทจ์•ฝ์  ๋ชจ๋‹ˆํ„ฐ๋ง", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index 36b0253c6..3bfc153db 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -868,6 +868,7 @@ "Moderation Request Information": "Informaรงรตes sobre solicitaรงรฃo de moderaรงรฃo", "Moderation request is already closed": "O pedido de moderaรงรฃo jรก estรก fechado. \nNรฃo รฉ possรญvel realizar a operaรงรฃo.", "Moderation request is created": "A solicitaรงรฃo de moderaรงรฃo รฉ criada!", + "Moderator": "Moderador", "Moderators": "Moderadores", "Modified By": "Modificado por", "Modified On": "Modificado em", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "Sistema de Controle de Revisรฃo (RCS)", "Revoke Token": "Revogar token", "Revoke token sucessfully": "Revogar token com sucesso", + "Role In Project": "Papel no Projeto", "Roles": "Funรงรตes", "SANITY_CHECK": "Verificaรงรฃo de Sanidade", "SAP Design Time Repository (DTR)": "Repositรณrio de Tempo de Projeto SAP (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "Departamento Secundรกrio", "Secondary Department Role": "Funรงรฃo do Departamento Secundรกrio", "Secondary Departments and Roles": "Departamentos e papรฉis secundรกrios", + "Security Responsible": "Responsรกvel de Seguranรงa", "Security Responsibles": "Responsรกveis de Seguranรงa", "Security Vulnerabilities Display": "Exibiรงรฃo de vulnerabilidades de seguranรงa", "Security Vulnerability Monitoring": "Monitoramento de vulnerabilidades de seguranรงa", diff --git a/messages/vi.json b/messages/vi.json index 9d29566bf..b3d17decf 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -868,6 +868,7 @@ "Moderation Request Information": "Thรดng tin yรชu cแบงu kiแปƒm duyแป‡t", "Moderation request is already closed": "Yรชu cแบงu kiแปƒm duyแป‡t ฤ‘รฃ bแป‹ ฤ‘รณng. \nKhรดng thแปƒ thแปฑc hiแป‡n thao tรกc.", "Moderation request is created": "Yรชu cแบงu kiแปƒm duyแป‡t ฤ‘ฦฐแปฃc tแบกo!", + "Moderator": "Ngฦฐแปi ฤ‘iแปu hร nh", "Moderators": "Ngฦฐแปi ฤ‘iแปu hร nh", "Modified By": "ฤ‘ฦฐแปฃc sแปญa ฤ‘แป•i bแปŸi", "Modified On": "ฤรฃ sแปญa ฤ‘แป•i Bแบญt", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "Hแป‡ thแป‘ng kiแปƒm soรกt sแปญa ฤ‘แป•i (RCS)", "Revoke Token": "Thu hแป“i mรฃ thรดng bรกo", "Revoke token sucessfully": "Thu hแป“i token thร nh cรดng", + "Role In Project": "Vai trรฒ trong Dแปฑ รกn", "Roles": "Vai trรฒ", "SANITY_CHECK": "Kiแปƒm tra vแป‡ sinh", "SAP Design Time Repository (DTR)": "Kho lฦฐu trแปฏ thแปi gian thiแบฟt kแบฟ SAP (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "Khoa Trung hแปc", "Secondary Department Role": "Vai trรฒ cแปงa Bแป™ phแบญn Trung hแปc", "Secondary Departments and Roles": "Bแป™ phแบญn thแปฉ cแบฅp vร  vai trรฒ", + "Security Responsible": "Ngฦฐแปi chแป‹u trรกch nhiแป‡m vแป an ninh", "Security Responsibles": "Ngฦฐแปi chแป‹u trรกch nhiแป‡m vแป an ninh", "Security Vulnerabilities Display": "Hiแปƒn thแป‹ lแป— hแป•ng bแบฃo mแบญt", "Security Vulnerability Monitoring": "Giรกm sรกt lแป— hแป•ng bแบฃo mแบญt", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index 1f410a54b..cd37e2f79 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -868,6 +868,7 @@ "Moderation Request Information": "ๅฎกๆ ธ่ฏทๆฑ‚ไฟกๆฏ", "Moderation request is already closed": "ๅฎกๆ ธ่ฏทๆฑ‚ๅทฒๅ…ณ้—ญใ€‚\nๆ— ๆณ•ๆ‰ง่กŒๆ“ไฝœใ€‚", "Moderation request is created": "ๅˆ›ๅปบไบ†่Š‚ๅˆถ่ฏทๆฑ‚๏ผ", + "Moderator": "็‰ˆไธป", "Moderators": "็‰ˆไธป", "Modified By": "ไฟฎๆ”น่€…", "Modified On": "ไฟฎๆ”นไบŽ", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "็‰ˆๆœฌๆŽงๅˆถ็ณป็ปŸ (RCS)", "Revoke Token": "ๆ’ค้”€ไปค็‰Œ", "Revoke token sucessfully": "ๆ’ค้”€tokenๆˆๅŠŸ", + "Role In Project": "้กน็›ฎไธญ็š„่ง’่‰ฒ", "Roles": "่ง’่‰ฒ", "SANITY_CHECK": "ๅฅๅ…จๆ€งๆฃ€ๆŸฅ", "SAP Design Time Repository (DTR)": "SAP ่ฎพ่ฎกๆ—ถๅญ˜ๅ‚จๅบ“ (DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "ไธญๅญฆ้ƒจ", "Secondary Department Role": "ไบŒ็บง้ƒจ้—จ่ง’่‰ฒ", "Secondary Departments and Roles": "ไธญๅญฆ้ƒจ้—จๅ’Œ่ง’่‰ฒ", + "Security Responsible": "ๅฎ‰ๅ…จ่ดฃไปปไบบ", "Security Responsibles": "ๅฎ‰ๅ…จ่ดฃไปปไบบ", "Security Vulnerabilities Display": "ๅฎ‰ๅ…จๆผๆดžๅฑ•็คบ", "Security Vulnerability Monitoring": "ๅฎ‰ๅ…จๆผๆดž็›‘ๆŽง", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index 7adec517d..c6f171eb1 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -868,6 +868,7 @@ "Moderation Request Information": "ๅฏฉๆ ธ่ซ‹ๆฑ‚่จŠๆฏ", "Moderation request is already closed": "ๅฏฉๆ ธ่ซ‹ๆฑ‚ๅทฒ้—œ้–‰ใ€‚\n็„กๆณ•ๅŸท่กŒๆ“ไฝœใ€‚", "Moderation request is created": "ๅ‰ตๅปบไบ†็ฏ€ๅˆถ่ซ‹ๆฑ‚๏ผ", + "Moderator": "ไธปๆŒไบบ", "Moderators": "ไธปๆŒไบบ", "Modified By": "ๅทฒไฟฎๆ”น", "Modified On": "ไฟฎๆ”นไบŽ", @@ -1177,6 +1178,7 @@ "Revision Control System (RCS)": "็‰ˆๆœฌๆŽงๅˆถ็ณป็ตฑ( RCS)", "Revoke Token": "ๆ’ค้Šทไปค็‰Œ", "Revoke token sucessfully": "ๆ’ค้ŠทtokenๆˆๅŠŸ", + "Role In Project": "ๅฐˆๆกˆไธญ็š„่ง’่‰ฒ", "Roles": "่ง’่‰ฒ", "SANITY_CHECK": "ๅฅๅ…จๆ€งๆชขๆŸฅ", "SAP Design Time Repository (DTR)": "SAP ่จญ่จˆๆ™‚้–“ไป“ๅบ“( DTR)", @@ -1257,6 +1259,7 @@ "Secondary Department": "ไธญๅญธ้ƒจ", "Secondary Department Role": "ไบŒ็ดš้ƒจ้–€่ง’่‰ฒ", "Secondary Departments and Roles": "ไธญๅญธ้ƒจ้–€ๅ’Œ่ง’่‰ฒ", + "Security Responsible": "ๅฎ‰ๅ…จ่ฒ ่ฒฌไบบ", "Security Responsibles": "ๅฎ‰ไฟ่ดฃไปป", "Security Vulnerabilities Display": "ๅฎ‰ๅ…จๆผๆดžๅฑ•็คบ", "Security Vulnerability Monitoring": "ๅฎ‰ๅ…จๆผๆดž็›ฃๆŽง", diff --git a/src/app/[locale]/home/components/HomeTableHeader.tsx b/src/app/[locale]/home/components/HomeTableHeader.tsx index 9858cb1c4..faa212f8f 100644 --- a/src/app/[locale]/home/components/HomeTableHeader.tsx +++ b/src/app/[locale]/home/components/HomeTableHeader.tsx @@ -28,46 +28,46 @@ interface HomeTableHeaderProps { const ROLE_OPTIONS = [ { key: 'createdBy', - label: 'Creator', + labelKey: 'Creator', }, { key: 'moderator', - label: 'Moderator', + labelKey: 'Moderator', }, { key: 'contributor', - label: 'Contributor', + labelKey: 'Contributor', }, { key: 'projectOwner', - label: 'Project Owner', + labelKey: 'Project Owner', }, { key: 'leadArchitect', - label: 'Lead Architect', + labelKey: 'Lead Architect', }, { key: 'projectResponsible', - label: 'Project Responsible', + labelKey: 'Project Responsible', }, { key: 'securityResponsible', - label: 'Security Responsible', + labelKey: 'Security Responsible', }, ] const CLEARING_STATE_OPTIONS = [ { key: 'stateOpen', - label: 'Open', + labelKey: 'Open', }, { key: 'stateClosed', - label: 'Closed', + labelKey: 'Closed', }, { key: 'stateInProgress', - label: 'In Progress', + labelKey: 'In Progress', }, ] @@ -130,13 +130,13 @@ function HomeTableHeader({ className='tableHeaderFilterToggle' /> -
Role In Project
+
{t('Role In Project')}
{ROLE_OPTIONS.map((option) => ( handleRoleChange(option.key, e.target.checked)} className='mb-1' @@ -149,7 +149,7 @@ function HomeTableHeader({ key={option.key} type='checkbox' id={`clearing-${option.key}`} - label={option.label} + label={t(option.labelKey)} checked={clearingStates?.includes(option.key) ?? false} onChange={(e) => handleClearingStateChange(option.key, e.target.checked)} className='mb-1' diff --git a/src/app/[locale]/home/components/MyProjectsWidget.tsx b/src/app/[locale]/home/components/MyProjectsWidget.tsx index 1879dfbb2..c2dc41e97 100644 --- a/src/app/[locale]/home/components/MyProjectsWidget.tsx +++ b/src/app/[locale]/home/components/MyProjectsWidget.tsx @@ -23,17 +23,41 @@ import HomeTableHeader from './HomeTableHeader' type EmbeddedProjects = Embedded +const ALL_ROLE_KEYS = [ + 'createdBy', + 'moderator', + 'contributor', + 'projectOwner', + 'leadArchitect', + 'projectResponsible', + 'securityResponsible', +] + +const ALL_CLEARING_STATE_KEYS = [ + 'stateOpen', + 'stateClosed', + 'stateInProgress', +] + export default function MyProjectsWidget(): ReactNode { const t = useTranslations('default') const [reload, setReload] = useState(false) - const [roles, setRoles] = useState([]) - const [clearingStates, setClearingStates] = useState([]) + const [roles, setRoles] = useState([ + ...ALL_ROLE_KEYS, + ]) + const [clearingStates, setClearingStates] = useState([ + ...ALL_CLEARING_STATE_KEYS, + ]) const [appliedFilters, setAppliedFilters] = useState<{ roles: string[] clearingStates: string[] }>({ - roles: [], - clearingStates: [], + roles: [ + ...ALL_ROLE_KEYS, + ], + clearingStates: [ + ...ALL_CLEARING_STATE_KEYS, + ], }) const handleSearch = () => { @@ -141,29 +165,14 @@ export default function MyProjectsWidget(): ReactNode { ), } - const allRoleKeys = [ - 'createdBy', - 'moderator', - 'contributor', - 'projectOwner', - 'leadArchitect', - 'projectResponsible', - 'securityResponsible', - ] - const allClearingStateKeys = [ - 'stateOpen', - 'stateClosed', - 'stateInProgress', - ] - if (appliedFilters.roles.length > 0) { - allRoleKeys.forEach((key) => { + ALL_ROLE_KEYS.forEach((key) => { queryParams[key] = appliedFilters.roles.includes(key) ? 'true' : 'false' }) } if (appliedFilters.clearingStates.length > 0) { - allClearingStateKeys.forEach((key) => { + ALL_CLEARING_STATE_KEYS.forEach((key) => { queryParams[key] = appliedFilters.clearingStates.includes(key) ? 'true' : 'false' }) } diff --git a/src/styles/globals.css b/src/styles/globals.css index 6bf3e81cf..47b7ac400 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -649,6 +649,11 @@ body { padding: 10px; } +.tableHeader .dropdown .dropdown-menu.tableHeaderFilterMenu .form-check-label { + font-weight: normal; + text-transform: none; +} + .subscriptionBox { border: 1px solid #2e5aac; background-color: #eef2fa; From a90277ab5dcde04907c33cda399954a98bf51fea Mon Sep 17 00:00:00 2001 From: bibhuti230185 Date: Wed, 4 Feb 2026 16:16:06 +0530 Subject: [PATCH 043/492] docs(instructions): add Copilot instructions for frontend development (#1426) - Add git-commit-instructions.md with commit format, scopes, and PR guidelines - Add sw360_frontend.instructions.md with code style, patterns, and AI checklist Tested-by: amrit.verma@siemens.com Reviewed-by: amrit.verma@siemens.com --- .../instructions/git-commit.instructions.md | 435 ++++++++++++++++++ .../sw360_frontend.instructions.md | 6 +- 2 files changed, 440 insertions(+), 1 deletion(-) create mode 100644 .github/instructions/git-commit.instructions.md diff --git a/.github/instructions/git-commit.instructions.md b/.github/instructions/git-commit.instructions.md new file mode 100644 index 000000000..600002881 --- /dev/null +++ b/.github/instructions/git-commit.instructions.md @@ -0,0 +1,435 @@ +--- +applyTo: "**/*" +--- + +# SW360 Frontend Git Commit & Contribution Instructions + +> **Eclipse SW360 Frontend follows conventional commits with signed-off commits (DCO)** + +## Commit Message Format + +``` +(): + +[optional body with more details] + +Signed-off-by: Your Name +``` + +### Rules +- Use the conventional commit format: `(): ` + - Follow specification https://www.conventionalcommits.org/en/v1.0.0/#specification +- **REQUIRED**: All commits must have DCO +- Keep the subject line concise (under 72 characters, ideally under 50) +- Use imperative mood (e.g., "add" not "added" or "adds") +- Don't end the subject with a period +- Use lowercase for the first word unless it's a proper noun +- Separate subject from body with a blank line +- Wrap body at 72 characters +- Every commit should mention thet was produced by AI, and origin of AI service as an independent line + +### Types +| Type | Description | Example | +|------|-------------|---------| +| `feat` | New feature | `feat(admin): add bulk user upload functionality` | +| `fix` | Bug fix | `fix(projects): resolve null check for dependencies` | +| `docs` | Documentation only | `docs(readme): update development setup instructions` | +| `style` | Formatting, no code change | `style(components): fix indentation in table components` | +| `refactor` | Code restructure, no behavior change | `refactor(utils): extract API error handling logic` | +| `test` | Adding/fixing tests | `test(cypress): add e2e tests for license page` | +| `chore` | Build, CI, dependencies, cleanup | `chore(deps): bump next from 16.1.3 to 16.1.4` | +| `build` | Build system changes | `build(docker): update Node.js base image` | + +### Common Scopes (SW360 Frontend-specific) +| Scope | Description | +|-------|-------------| +| `admin` | Admin pages (users, vendors, configurations, etc.) | +| `auth` | Authentication (NextAuth, Keycloak, tokens) | +| `projects` | Projects module | +| `licenses` | Licenses module | +| `components` | Components module | +| `releases` | Releases module | +| `packages` | Packages module | +| `requests` | Moderation requests | +| `CR` | Clearing requests | +| `UI` | General UI/UX changes | +| `navbar` | Navigation bar | +| `footer` | Footer component | +| `attachments` | Attachments functionality | +| `AdvSearch` | Advanced search | +| `repo` | Repository configuration (CODEOWNERS, etc.) | +| `biome` | Biome linter configuration | +| `lint` | Linting changes | +| `deps` | Production dependency updates | +| `deps-dev` | Dev dependency updates | +| `translations` | Internationalization/translations | +| `css` | Styling changes | +| `styles` | Styling refactors | +| `icons` | Icon changes | +| `statuscodes` | HTTP status code handling | +| `loop` | Render loop fixes | +| `Config` | Configuration pages | +| `import` | Import functionality | +| `token` | Token handling | +| `link` | Link/routing fixes | +| `intl` | Internationalization | +| `ai` | AI-related features | + +### Examples from Project History +```bash +# Feature +feat(admin): Add bulk user upload functionality +feat(auth): Add refresh token support for Keycloak +feat(licenses): Add functionality to ignore licenses + +# Fix +fix(repo): fix CODEOWNERS de002 to deo002 +fix(loop): Fix render loop in useeffect +fix(navbar): Redirect SW360 logo to home page + +# Refactor +refactor(styles): Unify all styles in globals +refactor(icons): Standardize icon usage and styling site wide + +# Chore +chore(deps): bump next from 16.1.3 to 16.1.4 +chore(deps-dev): bump @biomejs/biome from 2.3.11 to 2.3.12 +chore(biome): Add noUnusedImports check as error +``` + +--- + +## Branch Naming Conventions + +- **Always create** new branch from `https://github.com/eclipse-sw360/sw360-frontend/main` +- Use kebab-case (lowercase with hyphens) +- Follow the pattern: `/` or `/-` + +### Branch Types +| Type | Description | Example | +|------|-------------|---------| +| `feat` | New feature | `feat/bulk-user-upload` | +| `fix` | Bug fix | `fix/session-expiry-handling` | +| `docs` | Documentation | `docs/update-api-docs` | +| `refactor` | Code refactor | `refactor/cleanup-api-utils` | +| `chore` | Maintenance | `chore/update-dependencies` | + +--- + +## Pre-Commit Checks + +### Biome Linting & Formatting +The project uses [Biome](https://biomejs.dev/) for linting and formatting. Before committing: + +```bash +# Check for issues +pnpm biome check + +# Auto-fix issues +pnpm biome check --fix + +# Run CI check locally (same as GitHub Actions) +pnpm biome ci +``` + +### Common Biome Issues to Watch For +| Issue | Description | Solution | +|-------|-------------|----------| +| `noUnusedImports` | Unused import detected | Remove the unused import | +| `noRedeclare` | Variable/import declared twice | Remove duplicate declaration | +| `organizeImports` | Imports not sorted | Run `pnpm biome check --fix` | +| `File content differs` | Formatting mismatch (often line endings) | Run `pnpm biome format --fix` | + +### Line Endings (Windows Users) +The project enforces LF line endings. If you see formatting errors on all lines: + +```bash +# Configure Git to not auto-convert line endings +git config core.autocrlf false + +# Or bypass pre-commit hooks if needed (use sparingly) +git commit --no-verify -m "your message" +``` + +### Internationalization (i18n) +When adding new UI text: +1. Add translation keys to **ALL 10 locale files** in `messages/`: + - `en.json`, `de.json`, `es.json`, `fr.json`, `ja.json` + - `ko.json`, `pt-BR.json`, `vi.json`, `zh-CN.json`, `zh-TW.json` +2. Use the `useTranslations` hook in components: + ```tsx + const t = useTranslations('default') + // Usage: {t('Your Translation Key')} + ``` + +--- + +## Git Workflow + +### Before Starting Work +```bash +# Sync with upstream main +git fetch eclipse-sw360-frontend +git checkout main +git rebase eclipse-sw360-frontend/main + +# Create feature branch +git checkout -b feat/my-feature +``` + +### Committing Changes +```bash +# Stage changes +git add . + +# Commit with sign-off (REQUIRED) +git commit -s -m "feat(admin): add new functionality" + +# For additional changes, amend the commit +git add . +git commit --amend -s --no-edit +``` + +### Before Pushing +```bash +# Run linting/formatting checks +pnpm biome ci + +# Rebase on latest main +git fetch eclipse-sw360-frontend +git rebase eclipse-sw360-frontend/main + +# Push to your fork (siemens remote) +git push -u siemens-frontend feat/my-feature + +# If you amended, force push with lease +git push siemens-frontend feat/my-feature --force-with-lease +``` + +### Remotes Setup +```bash +# Upstream (eclipse-sw360 - main project) +git remote add eclipse-sw360-frontend git@github.com:eclipse-sw360/sw360-frontend.git + +# Your fork (siemens - push here for PRs) +git remote add siemens-frontend git@github.com:siemens/sw360-frontend.git + +# Verify remotes +git remote -v +``` + +--- + +## Pull Request Guidelines + +### Before Creating PR +- [ ] All commits are signed-off (`Signed-off-by:` line present) +- [ ] Branch is rebased on latest `main` +- [ ] `pnpm biome ci` passes locally +- [ ] All 10 locale files updated (if adding UI text) +- [ ] New files have EPL-2.0 license headers with correct year + +### License Header Format +```tsx +// Copyright , . Part of the SW360 Frontend Project. + +// This program and the accompanying materials are made +// available under the terms of the Eclipse Public License 2.0 +// which is available at https://www.eclipse.org/legal/epl-2.0/ + +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE +``` + +**Examples:** +```tsx +// Copyright Siemens AG, 2026. Part of the SW360 Frontend Project. +// Copyright Bosch.IO GmbH, 2025. Part of the SW360 Frontend Project. +// Copyright Siemens AG, 2023-2026. Part of the SW360 Frontend Project. // For files modified over multiple years +``` + +### PR Description Template +```markdown +## Summary +Brief description of changes + +## Related Issue +Fixes # + + +## Changes +- List of specific changes made +- Files added/modified + +## Testing +Steps to test the changes + +## Screenshots +(If UI changes) + +## Checklist +- [ ] Biome CI passes +- [ ] All locales updated (if adding UI text) +- [ ] Tested locally +- [ ] Self-reviewed my code + +## Reviewers +@ + +``` + +### After PR is Open +- Ensure all CI checks pass (GitHub Actions) +- Respond to review comments promptly +- Squash commits if requested by reviewers +- Keep the PR focused and small when possible + +### Eclipse Contributor Agreement +- You must have signed the [Eclipse Contributor Agreement (ECA)](http://www.eclipse.org/legal/ECA.php) +- Your commits must include `Signed-off-by` with the same email as your ECA + +> **โš ๏ธ Common Pitfall: ECA Email Mismatch** +> +> Many contributors sign the ECA with one email but have a different email configured in Git. +> The `Signed-off-by` email **must match** the email used to sign the ECA. +> +> **AI Hint**: Before committing, verify the user's Git email configuration: +> ```bash +> # Check current Git email configuration +> git config user.email +> git config user.name +> +> # If email doesn't match ECA, configure it: +> git config user.email "your.eca.email@example.com" +> git config user.name "Your Full Name" +> ``` +> +> **Troubleshooting Checklist**: +> - [ ] Verify `git config user.email` matches the email used for ECA sign-up +> - [ ] If email was wrong when you committed, amend with: `git commit --amend --reset-author -s` +> - [ ] For multiple commits with wrong email, use interactive rebase: `git rebase -i HEAD~N` and mark commits for `edit` + +--- + +## Quick Reference + +```bash +# Standard commit with sign-off +git commit -s -m "feat(admin): add user upload feature" + +# Amend last commit (keep message) +git commit --amend -s --no-edit + +# Amend last commit (change message) +git commit --amend -s + +# Run linting before push +pnpm biome ci + +# Push to siemens fork with tracking +git push -u siemens-frontend my-branch + +# Force push after rebase/amend (safer) +git push siemens-frontend my-branch --force-with-lease + +# Bypass pre-commit hooks (use sparingly) +git commit --no-verify -s -m "message" +``` + +--- + +## Troubleshooting + +### CI Failing with Biome Errors +```bash +# Run locally to see exact errors +pnpm biome ci + +# Auto-fix what can be fixed +pnpm biome check --fix + +# Check specific file +pnpm biome check "src/path/to/file.tsx" + +# Check only changed files (faster) +pnpm biome ci --changed --since=HEAD~1 +``` + +### Common Biome Error Types + +#### 1. Unused Imports (`noUnusedImports`) +```tsx +// โŒ Error: This import is unused +import { useState, useEffect } from 'react' // useEffect not used + +// โœ… Fix: Remove unused import +import { useState } from 'react' +``` + +#### 2. Duplicate/Redeclare (`noRedeclare`) +```tsx +// โŒ Error: Shouldn't redeclare 'ApiUtils' +import { ApiUtils } from '@/utils/index' +import { ApiError, ApiUtils } from '@/utils/index' + +// โœ… Fix: Combine into single import +import { ApiError, ApiUtils } from '@/utils/index' +``` + +#### 3. Unsorted Imports (`organizeImports`) +```bash +# Fix: Run biome to auto-organize +pnpm biome check --fix "src/path/to/file.tsx" +``` + +#### 4. Formatting Mismatch (`File content differs`) +Often caused by line endings (CRLF vs LF) or indentation: +```bash +# Fix formatting +pnpm biome format --fix "src/path/to/file.tsx" + +# Or fix all files +pnpm biome format --fix +``` + +#### 5. Indentation Issues +```tsx +// โŒ Error: Wrong indentation (4 spaces instead of 6) +? updater({ + pageIndex: pageableQueryParam.page, + pageSize: pageableQueryParam.page_entries, +}) + +// โœ… Fix: Correct indentation +? updater({ + pageIndex: pageableQueryParam.page, + pageSize: pageableQueryParam.page_entries, + }) +``` + +### Line Ending Issues on Windows +```bash +# Check current setting +git config core.autocrlf + +# Disable auto CRLF conversion +git config core.autocrlf false + +# Re-checkout files with correct line endings +git checkout -- . +``` + +### Stash/Unstash During Rebase +```bash +# Stash local changes +git stash + +# Pull/rebase +git pull origin main --rebase + +# Restore changes +git stash pop + +# If conflicts, resolve and drop stash +git stash drop +``` diff --git a/.github/instructions/sw360_frontend.instructions.md b/.github/instructions/sw360_frontend.instructions.md index 5cc0a74b2..4174e4d59 100644 --- a/.github/instructions/sw360_frontend.instructions.md +++ b/.github/instructions/sw360_frontend.instructions.md @@ -1,3 +1,7 @@ +--- +applyTo: "**/*" +--- + # SW360 Frontend Copilot Instructions > **Optimized for GitHub Copilot ASK, EDIT, and Agent modes** @@ -571,7 +575,7 @@ See `.env` and `docs/templates/template.env` for full list. ## Git Workflow For commit message format, branch naming conventions, and PR guidelines, see: -**[git-commit-instructions.md](./git-commit-instructions.md)** +**[git-commit.instructions.md](./git-commit.instructions.md)** --- From 7b9882964812a9f7eb6ca8f890403acb47c819a3 Mon Sep 17 00:00:00 2001 From: aaryan359 Date: Tue, 3 Feb 2026 01:57:44 +0530 Subject: [PATCH 044/492] fix(navbar): Hide toggle on auth page --- src/components/sw360/Navbar/Navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/sw360/Navbar/Navbar.tsx b/src/components/sw360/Navbar/Navbar.tsx index 968951262..c717f3f85 100644 --- a/src/components/sw360/Navbar/Navbar.tsx +++ b/src/components/sw360/Navbar/Navbar.tsx @@ -116,7 +116,7 @@ function Navbar(): JSX.Element { alt='SW360 Logo' /> - + {pathname != '/' && } {pathname != '/' && (
+ {showExportMessage && ( + setShowExportMessage(false)} + dismissible + > + {exportViaMail + ? t('Excel report generation has started') + : t('Spreadsheet download is successful')} + + )} + {showExportError && ( + setShowExportError(false)} + dismissible + > + {t('Export report generation has failed')} + + )}
Date: Tue, 10 Feb 2026 11:12:11 +0530 Subject: [PATCH 054/492] fix(UI): Report end point urls updation Signed-off-by: Keerthi B L --- src/components/sw360/Footer/Footer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/sw360/Footer/Footer.tsx b/src/components/sw360/Footer/Footer.tsx index a7a2904b9..2792ad8d5 100644 --- a/src/components/sw360/Footer/Footer.tsx +++ b/src/components/sw360/Footer/Footer.tsx @@ -58,7 +58,7 @@ function Footer(): JSX.Element { | @@ -68,7 +68,7 @@ function Footer(): JSX.Element { | From 99ef6524ea986f110006768c92580ec9ad07d17b Mon Sep 17 00:00:00 2001 From: Dearsh Oberoi Date: Thu, 12 Feb 2026 11:31:08 +0530 Subject: [PATCH 055/492] Revert "refactor(styles): Unify all styles in globals" This reverts commit 95a122b6c83807be0301aa984785bc06c02ed33e. --- .../[locale]/components/components.module.css | 64 ++ .../components/components/ImportSBOMModal.tsx | 9 +- .../[id]/components/EditSPDXDocument.tsx | 5 +- .../[id]/components/detail.module.css | 47 ++ .../[id]/components/spdx/CssButton.module.css | 29 + .../detail/[id]/components/DetailOverview.tsx | 10 +- .../detail/[id]/components/ReleaseGeneral.tsx | 5 +- .../[id]/components/SPDXLicenseView.tsx | 3 +- .../[id]/components/spdx/CssButton.module.css | 29 + .../[id]/components/spdx/SPDXDocumentTab.tsx | 6 +- .../releases/detail/[id]/detail.module.css | 47 ++ .../add/components/AddLicenseDetail.tsx | 3 +- .../add/components/AddLicenseText.tsx | 3 +- .../add/components/LicenseDetails.module.css | 62 ++ .../licenses/detail/components/Detail.tsx | 5 +- .../components/LicenseDetailOverview.tsx | 4 +- .../licenses/detail/components/Text.tsx | 3 +- .../licenses/detail/detail.module.css | 46 + .../edit/components/EditLicenseDetail.tsx | 3 +- .../edit/components/EditLicenseText.tsx | 3 +- .../edit/components/LicenseDetails.module.css | 62 ++ .../components/NotificationSettings.tsx | 7 +- .../components/UserAccessToken.tsx | 4 +- .../components/UserInformation.tsx | 13 +- .../components/UserPreferences.tsx | 8 +- .../preferences/preferences.module.css | 111 +++ .../projects/components/ImportSBOMModal.tsx | 7 +- .../components/ViewClearingRequestModal.tsx | 20 +- .../projects/detail/[id]/detail.module.css | 78 ++ src/app/[locale]/projects/projects.module.css | 23 + .../[id]/components/ClearingComments.tsx | 4 +- .../[id]/components/ClearingRequestDetail.tsx | 28 +- .../[id]/components/EditClearingDecision.tsx | 4 +- .../[id]/components/EditClearingRequest.tsx | 32 +- .../components/EditClearingRequestInfo.tsx | 4 +- .../components/ModerationRequestDetail.tsx | 41 +- .../requests/requestDetail.module.css | 52 ++ .../Attachments/Attachment.module.css | 24 + .../SelectAttachment.module.css | 51 ++ .../SelectAttachment/SelectAttachment.tsx | 15 +- .../CommercialDetails.module.css | 62 ++ .../EditDependencyNetwork.tsx | 5 +- .../EditDepedencyNetwork/component.module.css | 22 + .../SummaryComponent.module.css | 62 ++ .../TableLinkedObligations/FilterSearch.tsx | 5 +- .../TableLinkedObligations.module.css | 61 ++ .../LinkedReleases/LinkedReases.module.css | 24 + .../LinkedReleases/LinkedReleases.tsx | 3 +- .../TableLinkedReleases.module.css | 52 ++ .../TableLinkedReleases.tsx | 13 +- .../TitleLinkedReleases.module.css | 26 + .../TitleLinkedReleases.tsx | 12 +- .../ProfileDropdown.module.css | 18 + .../ProfileDropdown/ProfileDropdown.tsx | 3 +- .../ResourcesUsing/ComponentsUsing.tsx | 3 +- .../ResourcesUsing/ResourceUsing.module.css | 19 + .../VerificationTooltip.module.css | 102 +++ .../VerificationTooltip.tsx | 15 +- src/components/sw360/Footer/Footer.tsx | 15 +- src/components/sw360/Footer/footer.module.css | 35 + .../FossologyClearing/FossologyClearing.tsx | 3 +- .../fossologyClearing.module.css | 21 + .../sw360/Gravatar/Gravatar.module.css | 23 + src/components/sw360/Gravatar/Gravatar.tsx | 3 +- .../PageButtonHeader/PageButtonHeader.tsx | 15 +- .../pagebuttonheader.module.css | 40 + .../SearchObligations/CssButton.module.css | 21 + .../LinkedObligations.module.css | 66 ++ .../LinkedObligationsDialog.tsx | 3 +- .../sw360/SideBar/SideBar.module.css | 81 ++ src/components/sw360/SideBar/SideBar.tsx | 14 +- .../sw360/ToastContainer/toast.module.css | 18 + src/styles/globals.css | 795 ------------------ 73 files changed, 1676 insertions(+), 958 deletions(-) create mode 100644 src/app/[locale]/components/components.module.css create mode 100644 src/app/[locale]/components/editRelease/[id]/components/detail.module.css create mode 100644 src/app/[locale]/components/editRelease/[id]/components/spdx/CssButton.module.css create mode 100644 src/app/[locale]/components/releases/detail/[id]/components/spdx/CssButton.module.css create mode 100644 src/app/[locale]/components/releases/detail/[id]/detail.module.css create mode 100644 src/app/[locale]/licenses/add/components/LicenseDetails.module.css create mode 100644 src/app/[locale]/licenses/detail/detail.module.css create mode 100644 src/app/[locale]/licenses/edit/components/LicenseDetails.module.css create mode 100644 src/app/[locale]/preferences/preferences.module.css create mode 100644 src/app/[locale]/projects/detail/[id]/detail.module.css create mode 100644 src/app/[locale]/projects/projects.module.css create mode 100644 src/app/[locale]/requests/requestDetail.module.css create mode 100644 src/components/Attachments/Attachment.module.css create mode 100644 src/components/Attachments/SelectAttachment/SelectAttachment.module.css create mode 100644 src/components/CommercialDetails/CommercialDetails.module.css create mode 100644 src/components/EditDepedencyNetwork/component.module.css create mode 100644 src/components/GeneralInfoComponent/SummaryComponent.module.css create mode 100644 src/components/LinkedObligations/TableLinkedObligations/TableLinkedObligations.module.css create mode 100644 src/components/LinkedReleases/LinkedReases.module.css create mode 100644 src/components/LinkedReleases/TableLinkedReleases/TableLinkedReleases.module.css create mode 100644 src/components/LinkedReleases/TitleLinkedReleases/TitleLinkedReleases.module.css create mode 100644 src/components/ProfileDropdown/ProfileDropdown.module.css create mode 100644 src/components/ResourcesUsing/ResourceUsing.module.css create mode 100644 src/components/VerificationTooltip/VerificationTooltip.module.css create mode 100644 src/components/sw360/Footer/footer.module.css create mode 100644 src/components/sw360/FossologyClearing/fossologyClearing.module.css create mode 100644 src/components/sw360/Gravatar/Gravatar.module.css create mode 100644 src/components/sw360/PageButtonHeader/pagebuttonheader.module.css create mode 100644 src/components/sw360/SearchObligations/CssButton.module.css create mode 100644 src/components/sw360/SearchObligations/LinkedObligations.module.css create mode 100644 src/components/sw360/SideBar/SideBar.module.css create mode 100644 src/components/sw360/ToastContainer/toast.module.css diff --git a/src/app/[locale]/components/components.module.css b/src/app/[locale]/components/components.module.css new file mode 100644 index 000000000..18fe4a51d --- /dev/null +++ b/src/app/[locale]/components/components.module.css @@ -0,0 +1,64 @@ +/* + Copyright (C) TOSHIBA CORPORATION, 2023. Part of the SW360 Frontend Project. + Copyright (C) Toshiba Software Development (Vietnam) Co., Ltd., 2023. Part of the SW360 Frontend Project. + + This program and the accompanying materials are made + available under the terms of the Eclipse Public License 2.0 + which is available at https://www.eclipse.org/legal/epl-2.0/ + + SPDX-License-Identifier: EPL-2.0 + License-Filename: LICENSE +*/ + +.components tr th:last-child { + width: 6%; +} + +.components tr th:nth-child(4) { + width: 13%; +} + +.components tr th:nth-child(3) { + max-width: 30%; +} + +.components tr th:first-child { + width: 12%; +} + +.components tr td { + word-wrap: break-word; +} + +.delete-btn { + color: gray; + font-size: 14px; +} + +.delete-btn:hover { + cursor: pointer; +} + +.modal-body-first { + border: 3px dashed #ddd; + padding: 30px; +} + +.modal-body-second { + text-align: center; +} + +.input { + display: none; +} + +.button-browse { + border-radius: 0.25rem; + border-style: solid; + border-color: #cdced9; + color: #6b6c7e; + padding-bottom: 0.4375rem; + padding-left: 0.9375rem; + padding-right: 0.9375rem; + padding-top: 0.4375rem; +} diff --git a/src/app/[locale]/components/components/ImportSBOMModal.tsx b/src/app/[locale]/components/components/ImportSBOMModal.tsx index 4aec8a217..01826e8c9 100644 --- a/src/app/[locale]/components/components/ImportSBOMModal.tsx +++ b/src/app/[locale]/components/components/ImportSBOMModal.tsx @@ -20,6 +20,7 @@ import { Alert, Button, Modal } from 'react-bootstrap' import { Component } from '@/object-types' import { ApiUtils, CommonUtils } from '@/utils' +import styles from '../components.module.css' interface Props { show: boolean @@ -177,9 +178,9 @@ const ImportSBOMModal = ({ show, setShow }: Props): ReactNode => { {t('wrong_spdx_information')}.
-
+
@@ -188,7 +189,7 @@ const ImportSBOMModal = ({ show, setShow }: Props): ReactNode => { {t('Or')}
} type='file' accept='.rdf,.spdx' @@ -196,7 +197,7 @@ const ImportSBOMModal = ({ show, setShow }: Props): ReactNode => { placeholder={t('Drop a File Here')} /> +
+
+ +
diff --git a/src/components/LinkedReleases/TableLinkedReleases/TableLinkedReleases.tsx b/src/components/LinkedReleases/TableLinkedReleases/TableLinkedReleases.tsx index cb70ef92b..bd7901125 100644 --- a/src/components/LinkedReleases/TableLinkedReleases/TableLinkedReleases.tsx +++ b/src/components/LinkedReleases/TableLinkedReleases/TableLinkedReleases.tsx @@ -1,5 +1,6 @@ // Copyright (C) TOSHIBA CORPORATION, 2023. Part of the SW360 Frontend Project. // Copyright (C) Toshiba Software Development (Vietnam) Co., Ltd., 2023. Part of the SW360 Frontend Project. +// Copyright (C) Siemens AG, 2025. Part of the SW360 Frontend Project. // This program and the accompanying materials are made // available under the terms of the Eclipse Public License 2.0 @@ -8,9 +9,13 @@ // SPDX-License-Identifier: EPL-2.0 // License-Filename: LICENSE +'use client' + +import { ColumnDef, getCoreRowModel, useReactTable } from '@tanstack/react-table' import { useTranslations } from 'next-intl' -import React, { type JSX } from 'react' -import { BsFillTrashFill } from 'react-icons/bs' +import { type JSX, useCallback, useMemo } from 'react' +import { FaTrashAlt } from 'react-icons/fa' +import { SW360Table } from '@/components/sw360' import { ReleaseLink } from '@/object-types' interface Props { @@ -25,104 +30,155 @@ export default function TableLinkedReleases({ setReleaseIdToRelationshipsToReleasePayLoad, }: Props): JSX.Element { const t = useTranslations('default') - const handleInputChange = (e: React.ChangeEvent, index: number) => { - const { name, value } = e.target - const list = [ - ...releaseLinks, - ] - list[index][name as keyof ReleaseLink] = value as never - const map = new Map() - list.forEach((item) => { - map.set(item.id, item.releaseRelationship) - }) - setReleaseLinks(list) - setReleaseIdToRelationshipsToReleasePayLoad(map) - } - const handleClickDelete = (index: number) => { - const list: ReleaseLink[] = [ - ...releaseLinks, - ] - list.splice(index, 1) - const map = new Map() - list.forEach((item) => { - map.set(item.id, item.releaseRelationship) - }) - setReleaseLinks(list) - setReleaseIdToRelationshipsToReleasePayLoad(map) - } + const updateReleaseRelationship = useCallback( + (releaseId: string, updatedReleaseRelationship: string) => { + const updated = releaseLinks.map((item) => + item.id === releaseId + ? { + ...item, + releaseRelationship: updatedReleaseRelationship, + } + : item, + ) + setReleaseLinks(updated) + + const map = new Map() + updated.forEach((item) => { + map.set(item.id, item.releaseRelationship) + }) + setReleaseIdToRelationshipsToReleasePayLoad(map) + }, + [ + releaseLinks, + setReleaseLinks, + setReleaseIdToRelationshipsToReleasePayLoad, + ], + ) + + const handleClickDelete = useCallback( + (releaseId: string) => { + const updated = releaseLinks.filter((item) => item.id !== releaseId) + setReleaseLinks(updated) + + const map = new Map() + updated.forEach((item) => { + map.set(item.id, item.releaseRelationship) + }) + setReleaseIdToRelationshipsToReleasePayLoad(map) + }, + [ + releaseLinks, + setReleaseLinks, + setReleaseIdToRelationshipsToReleasePayLoad, + ], + ) + + const columns = useMemo[]>( + () => [ + { + id: 'vendor', + header: t('Vendor'), + cell: ({ row }) => <>{row.original.vendor}, + meta: { + width: '23%', + }, + }, + { + id: 'name', + header: t('Name'), + cell: ({ row }) => <>{row.original.name}, + meta: { + width: '23%', + }, + }, + { + id: 'version', + header: t('Version'), + cell: ({ row }) => <>{row.original.version}, + meta: { + width: '23%', + }, + }, + { + id: 'releaseRelationship', + header: t('Release Relation'), + cell: ({ row }) => ( +
+ +
+ ), + meta: { + width: '23%', + }, + }, + { + id: 'actions', + header: t('Actions'), + cell: ({ row }) => ( + + ), + meta: { + width: '8%', + }, + }, + ], + [ + t, + updateReleaseRelationship, + handleClickDelete, + ], + ) + + const memoizedData = useMemo( + () => releaseLinks, + [ + releaseLinks, + ], + ) + + const table = useReactTable({ + data: memoizedData, + columns, + getCoreRowModel: getCoreRowModel(), + }) + + // Always render the table. Let SW360Table show an empty state when there are + // no releases so users see the table structure instead of nothing. return ( <> -
- {releaseLinks.map((item: ReleaseLink, index: number) => { - return ( -
-
- - - - - -
-
-
- ) - })} -
+ ) } diff --git a/src/styles/globals.css b/src/styles/globals.css index 2dc2bfcf7..c6c5f0278 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -1292,6 +1292,10 @@ svg.action:hover { color: white !important; } +.linked-releases-table-compact-col { + width: 5%; +} + .import-department-success { background-color: #edf9f0 !important; border: 1px solid #5aca75 !important; From eb4c488f222e2e1936dfca8bbcc9fbff18787265 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:33:53 +0000 Subject: [PATCH 205/492] chore(deps): bump github/codeql-action from 4.35.2 to 4.35.3 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.35.2 to 4.35.3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/95e58e9a2cdfd71adc6e0353d5c52f41a045d225...e46ed2cbd01164d986452f91f178727624ae40d7) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.35.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/scorecard.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f905349cf..a1e6d8309 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -66,7 +66,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -94,6 +94,6 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: category: '/language:${{matrix.language}}' diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 6a46f1ee8..d1b424000 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -55,6 +55,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: sarif_file: results.sarif From c7a3fcbf549935d417c5df980100a778906d6a5c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:34:00 +0000 Subject: [PATCH 206/492] chore(deps-dev): bump @commitlint/cli from 20.5.0 to 20.5.3 Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 20.5.0 to 20.5.3. - [Release notes](https://github.com/conventional-changelog/commitlint/releases) - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md) - [Commits](https://github.com/conventional-changelog/commitlint/commits/v20.5.3/@commitlint/cli) --- updated-dependencies: - dependency-name: "@commitlint/cli" dependency-version: 20.5.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 140 +++++++++++++++++++++++++++++-------------------- 2 files changed, 83 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index 0c5202f7b..4e86d5407 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@biomejs/biome": "2.4.12", - "@commitlint/cli": "20.5.0", + "@commitlint/cli": "20.5.3", "@commitlint/config-conventional": "19.8.0", "@types/country-list": "^2.1.4", "@types/crypto-js": "^4.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 382027b11..49a2309c2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,8 +80,8 @@ importers: specifier: 2.4.12 version: 2.4.12 '@commitlint/cli': - specifier: 20.5.0 - version: 20.5.0(@types/node@25.6.0)(conventional-commits-parser@6.4.0)(typescript@6.0.3) + specifier: 20.5.3 + version: 20.5.3(@types/node@25.6.0)(conventional-commits-parser@6.4.0)(typescript@6.0.3) '@commitlint/config-conventional': specifier: 19.8.0 version: 19.8.0 @@ -216,8 +216,8 @@ packages: engines: {node: '>=v18'} hasBin: true - '@commitlint/cli@20.5.0': - resolution: {integrity: sha512-yNkyN/tuKTJS3wdVfsZ2tXDM4G4Gi7z+jW54Cki8N8tZqwKBltbIvUUrSbT4hz1bhW/h0CdR+5sCSpXD+wMKaQ==} + '@commitlint/cli@20.5.3': + resolution: {integrity: sha512-OJdL0EXWD5y9LPa0nr/geOwzaS8BsdaybKkcloB0JgsguGxNv2R+hC2FTPqrAcprg35zF33KOQerY0x8W1aesA==} engines: {node: '>=v18'} hasBin: true @@ -237,8 +237,8 @@ packages: resolution: {integrity: sha512-mXDnlJdvDzSObafjYrOSvZBwkD01cqB4gbnnFuVyNpGUM5ijwU/r/6uqUmBXAAOKRfyEjpkGVZxaDsCVnHAgyw==} engines: {node: '>=v18'} - '@commitlint/ensure@20.5.0': - resolution: {integrity: sha512-IpHqAUesBeW1EDDdjzJeaOxU9tnogLAyXLRBn03SHlj1SGENn2JGZqSWGkFvBJkJzfXAuCNtsoYzax+ZPS+puw==} + '@commitlint/ensure@20.5.3': + resolution: {integrity: sha512-4i4AgNvH62owG9MwSiWKrle7HGNpBHHdLnWFIp5fTsHUYe5kRuh15t08L/0pdbbrRk8JKXQxxN4hZQcn+szkrw==} engines: {node: '>=v18'} '@commitlint/execute-rule@19.8.1': @@ -269,16 +269,16 @@ packages: resolution: {integrity: sha512-52PFbsl+1EvMuokZXLRlOsdcLHf10isTPlWwoY1FQIidTsTvjKXVXYb7AvtpWkDzRO2ZsqIgPK7bI98x8LRUEw==} engines: {node: '>=v18'} - '@commitlint/lint@20.5.0': - resolution: {integrity: sha512-jiM3hNUdu04jFBf1VgPdjtIPvbuVfDTBAc6L98AWcoLjF5sYqkulBHBzlVWll4rMF1T5zeQFB6r//a+s+BBKlA==} + '@commitlint/lint@20.5.3': + resolution: {integrity: sha512-M7JbWBNr2gXKaPc4i/KipsuW1gkDHpj35KPjWtKy3Z+2AQw5wu1gBi1LIO0uoaij67CqY4K8PxPZSGens4evCw==} engines: {node: '>=v18'} '@commitlint/load@19.8.1': resolution: {integrity: sha512-9V99EKG3u7z+FEoe4ikgq7YGRCSukAcvmKQuTtUyiYPnOd9a2/H9Ak1J9nJA1HChRQp9OA/sIKPugGS+FK/k1A==} engines: {node: '>=v18'} - '@commitlint/load@20.5.0': - resolution: {integrity: sha512-sLhhYTL/KxeOTZjjabKDhwidGZan84XKK1+XFkwDYL/4883kIajcz/dZFAhBJmZPtL8+nBx6bnkzA95YxPeDPw==} + '@commitlint/load@20.5.3': + resolution: {integrity: sha512-1FDZWuKyu98Myb8i7Tp31jPU2rZpOwAdYRyJcy2KoGg7Xk2A+bgHN8smhMaaNSNkmE8fwt53BokywZq8Gv/5XQ==} engines: {node: '>=v18'} '@commitlint/message@19.8.1': @@ -309,16 +309,16 @@ packages: resolution: {integrity: sha512-GM0mAhFk49I+T/5UCYns5ayGStkTt4XFFrjjf0L4S26xoMTSkdCf9ZRO8en1kuopC4isDFuEm7ZOm/WRVeElVg==} engines: {node: '>=v18'} - '@commitlint/resolve-extends@20.5.0': - resolution: {integrity: sha512-3SHPWUW2v0tyspCTcfSsYml0gses92l6TlogwzvM2cbxDgmhSRc+fldDjvGkCXJrjSM87BBaWYTPWwwyASZRrg==} + '@commitlint/resolve-extends@20.5.3': + resolution: {integrity: sha512-+ogW9v/u9JqpvAgTrLra/YTFo0KkjU6iNblF89pPsj4NebNc+DAWctsludwezI8YnsjBmfHpApSwcXprN/f/ew==} engines: {node: '>=v18'} '@commitlint/rules@19.8.1': resolution: {integrity: sha512-Hnlhd9DyvGiGwjfjfToMi1dsnw1EXKGJNLTcsuGORHz6SS9swRgkBsou33MQ2n51/boIDrbsg4tIBbRpEWK2kw==} engines: {node: '>=v18'} - '@commitlint/rules@20.5.0': - resolution: {integrity: sha512-5NdQXQEdnDPT5pK8O39ZA7HohzPRHEsDGU23cyVCNPQy4WegAbAwrQk3nIu7p2sl3dutPk8RZd91yKTrMTnRkQ==} + '@commitlint/rules@20.5.3': + resolution: {integrity: sha512-MPlMnb9D3wbszYMp+1hPtuhtPJndRo6I6yfkZVA4+jR8w7Kqp0u2u/Y+gzbaItx5Lltq5rw7FSZQWJMoXUC4NQ==} engines: {node: '>=v18'} '@commitlint/to-lines@19.8.1': @@ -345,12 +345,12 @@ packages: resolution: {integrity: sha512-ZJoS8oSq2CAZEpc/YI9SulLrdiIyXeHb/OGqGrkUP6Q7YV+0ouNAa7GjqRdXeQPncHQIDz/jbCTlHScvYvO/gA==} engines: {node: '>=v18'} - '@conventional-changelog/git-client@2.6.0': - resolution: {integrity: sha512-T+uPDciKf0/ioNNDpMGc8FDsehJClZP0yR3Q5MN6wE/Y/1QZ7F+80OgznnTCOlMEG4AV0LvH2UJi3C/nBnaBUg==} + '@conventional-changelog/git-client@2.7.0': + resolution: {integrity: sha512-j7A8/LBEQ+3rugMzPXoKYzyUPpw/0CBQCyvtTR7Lmu4olG4yRC/Tfkq79Mr3yuPs0SUitlO2HwGP3gitMJnRFw==} engines: {node: '>=18'} peerDependencies: conventional-commits-filter: ^5.0.0 - conventional-commits-parser: ^6.3.0 + conventional-commits-parser: ^6.4.0 peerDependenciesMeta: conventional-commits-filter: optional: true @@ -895,8 +895,8 @@ packages: ajv@8.17.1: resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} - ajv@8.18.0: - resolution: {integrity: sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==} + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} @@ -1137,6 +1137,14 @@ packages: cosmiconfig: '>=9' typescript: '>=5' + cosmiconfig-typescript-loader@6.3.0: + resolution: {integrity: sha512-Akr82WH1Wfqatyiqpj8HDkO2o2KmJRu1FhKfSNJP3K4IdXwHfEyL7MOb62i1AGQVLtIQM+iCE9CGOtrfhR+mmA==} + engines: {node: '>=v18'} + peerDependencies: + '@types/node': '*' + cosmiconfig: '>=9' + typescript: '>=5' + cosmiconfig@9.0.0: resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} engines: {node: '>=14'} @@ -1298,6 +1306,9 @@ packages: resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} engines: {node: '>= 0.4'} + es-toolkit@1.46.1: + resolution: {integrity: sha512-5eNtXOs3tbfxXOj04tjjseeWkRWaoCjdEI+96DgwzZoe6c9juL49pXlzAFTI72aWC9Y8p7168g6XIKjh7k6pyQ==} + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -1404,6 +1415,10 @@ packages: resolution: {integrity: sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==} engines: {node: '>=18'} + global-directory@5.0.0: + resolution: {integrity: sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==} + engines: {node: '>=20'} + global-dirs@3.0.1: resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==} engines: {node: '>=10'} @@ -1499,6 +1514,10 @@ packages: resolution: {integrity: sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + ini@6.0.0: + resolution: {integrity: sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==} + engines: {node: ^20.17.0 || >=22.9.0} + inline-style-parser@0.2.7: resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==} @@ -2103,8 +2122,8 @@ packages: resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} engines: {node: '>=18'} - string-width@8.2.0: - resolution: {integrity: sha512-6hJPQ8N0V0P3SNmP6h2J99RLuzrWz2gvT7VnK5tKvrNqJoyS9W4/Fb8mo31UiPvy00z7DQXkP2hnKBVav76thw==} + string-width@8.2.1: + resolution: {integrity: sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==} engines: {node: '>=20'} strip-ansi@6.0.1: @@ -2162,14 +2181,14 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - tinyexec@1.0.4: - resolution: {integrity: sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==} - engines: {node: '>=18'} - tinyexec@1.1.1: resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==} engines: {node: '>=18'} + tinyexec@1.1.2: + resolution: {integrity: sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==} + engines: {node: '>=18'} + tldts-core@6.1.86: resolution: {integrity: sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==} @@ -2269,6 +2288,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true v8-compile-cache-lib@3.0.1: @@ -2388,20 +2408,20 @@ snapshots: '@commitlint/load': 19.8.1(@types/node@25.6.0)(typescript@6.0.3) '@commitlint/read': 19.8.1 '@commitlint/types': 19.8.1 - tinyexec: 1.1.1 + tinyexec: 1.1.2 yargs: 17.7.2 transitivePeerDependencies: - '@types/node' - typescript - '@commitlint/cli@20.5.0(@types/node@25.6.0)(conventional-commits-parser@6.4.0)(typescript@6.0.3)': + '@commitlint/cli@20.5.3(@types/node@25.6.0)(conventional-commits-parser@6.4.0)(typescript@6.0.3)': dependencies: '@commitlint/format': 20.5.0 - '@commitlint/lint': 20.5.0 - '@commitlint/load': 20.5.0(@types/node@25.6.0)(typescript@6.0.3) + '@commitlint/lint': 20.5.3 + '@commitlint/load': 20.5.3(@types/node@25.6.0)(typescript@6.0.3) '@commitlint/read': 20.5.0(conventional-commits-parser@6.4.0) '@commitlint/types': 20.5.0 - tinyexec: 1.0.4 + tinyexec: 1.1.2 yargs: 17.7.2 transitivePeerDependencies: - '@types/node' @@ -2422,7 +2442,7 @@ snapshots: '@commitlint/config-validator@20.5.0': dependencies: '@commitlint/types': 20.5.0 - ajv: 8.18.0 + ajv: 8.20.0 '@commitlint/ensure@19.8.1': dependencies: @@ -2433,14 +2453,10 @@ snapshots: lodash.startcase: 4.4.0 lodash.upperfirst: 4.3.1 - '@commitlint/ensure@20.5.0': + '@commitlint/ensure@20.5.3': dependencies: '@commitlint/types': 20.5.0 - lodash.camelcase: 4.3.0 - lodash.kebabcase: 4.1.1 - lodash.snakecase: 4.1.1 - lodash.startcase: 4.4.0 - lodash.upperfirst: 4.3.1 + es-toolkit: 1.46.1 '@commitlint/execute-rule@19.8.1': {} @@ -2473,11 +2489,11 @@ snapshots: '@commitlint/rules': 19.8.1 '@commitlint/types': 19.8.1 - '@commitlint/lint@20.5.0': + '@commitlint/lint@20.5.3': dependencies: '@commitlint/is-ignored': 20.5.0 '@commitlint/parse': 20.5.0 - '@commitlint/rules': 20.5.0 + '@commitlint/rules': 20.5.3 '@commitlint/types': 20.5.0 '@commitlint/load@19.8.1(@types/node@25.6.0)(typescript@6.0.3)': @@ -2496,16 +2512,16 @@ snapshots: - '@types/node' - typescript - '@commitlint/load@20.5.0(@types/node@25.6.0)(typescript@6.0.3)': + '@commitlint/load@20.5.3(@types/node@25.6.0)(typescript@6.0.3)': dependencies: '@commitlint/config-validator': 20.5.0 '@commitlint/execute-rule': 20.0.0 - '@commitlint/resolve-extends': 20.5.0 + '@commitlint/resolve-extends': 20.5.3 '@commitlint/types': 20.5.0 cosmiconfig: 9.0.1(typescript@6.0.3) - cosmiconfig-typescript-loader: 6.2.0(@types/node@25.6.0)(cosmiconfig@9.0.1(typescript@6.0.3))(typescript@6.0.3) + cosmiconfig-typescript-loader: 6.3.0(@types/node@25.6.0)(cosmiconfig@9.0.1(typescript@6.0.3))(typescript@6.0.3) + es-toolkit: 1.46.1 is-plain-obj: 4.1.0 - lodash.mergewith: 4.6.2 picocolors: 1.1.1 transitivePeerDependencies: - '@types/node' @@ -2533,7 +2549,7 @@ snapshots: '@commitlint/types': 19.8.1 git-raw-commits: 4.0.0 minimist: 1.2.8 - tinyexec: 1.1.1 + tinyexec: 1.1.2 '@commitlint/read@20.5.0(conventional-commits-parser@6.4.0)': dependencies: @@ -2541,7 +2557,7 @@ snapshots: '@commitlint/types': 20.5.0 git-raw-commits: 5.0.1(conventional-commits-parser@6.4.0) minimist: 1.2.8 - tinyexec: 1.0.4 + tinyexec: 1.1.2 transitivePeerDependencies: - conventional-commits-filter - conventional-commits-parser @@ -2555,13 +2571,13 @@ snapshots: lodash.mergewith: 4.6.2 resolve-from: 5.0.0 - '@commitlint/resolve-extends@20.5.0': + '@commitlint/resolve-extends@20.5.3': dependencies: '@commitlint/config-validator': 20.5.0 '@commitlint/types': 20.5.0 - global-directory: 4.0.1 + es-toolkit: 1.46.1 + global-directory: 5.0.0 import-meta-resolve: 4.2.0 - lodash.mergewith: 4.6.2 resolve-from: 5.0.0 '@commitlint/rules@19.8.1': @@ -2571,9 +2587,9 @@ snapshots: '@commitlint/to-lines': 19.8.1 '@commitlint/types': 19.8.1 - '@commitlint/rules@20.5.0': + '@commitlint/rules@20.5.3': dependencies: - '@commitlint/ensure': 20.5.0 + '@commitlint/ensure': 20.5.3 '@commitlint/message': 20.4.3 '@commitlint/to-lines': 20.0.0 '@commitlint/types': 20.5.0 @@ -2600,7 +2616,7 @@ snapshots: conventional-commits-parser: 6.4.0 picocolors: 1.1.1 - '@conventional-changelog/git-client@2.6.0(conventional-commits-parser@6.4.0)': + '@conventional-changelog/git-client@2.7.0(conventional-commits-parser@6.4.0)': dependencies: '@simple-libs/child-process-utils': 1.0.2 '@simple-libs/stream-utils': 1.2.0 @@ -3055,7 +3071,7 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - ajv@8.18.0: + ajv@8.20.0: dependencies: fast-deep-equal: 3.1.3 fast-uri: 3.1.0 @@ -3182,7 +3198,7 @@ snapshots: cli-truncate@5.2.0: dependencies: slice-ansi: 8.0.0 - string-width: 8.2.0 + string-width: 8.2.1 client-only@0.0.1: {} @@ -3263,7 +3279,7 @@ snapshots: jiti: 2.6.1 typescript: 6.0.3 - cosmiconfig-typescript-loader@6.2.0(@types/node@25.6.0)(cosmiconfig@9.0.1(typescript@6.0.3))(typescript@6.0.3): + cosmiconfig-typescript-loader@6.3.0(@types/node@25.6.0)(cosmiconfig@9.0.1(typescript@6.0.3))(typescript@6.0.3): dependencies: '@types/node': 25.6.0 cosmiconfig: 9.0.1(typescript@6.0.3) @@ -3454,6 +3470,8 @@ snapshots: has-tostringtag: 1.0.2 hasown: 2.0.2 + es-toolkit@1.46.1: {} + escalade@3.2.0: {} escape-string-regexp@1.0.5: {} @@ -3569,7 +3587,7 @@ snapshots: git-raw-commits@5.0.1(conventional-commits-parser@6.4.0): dependencies: - '@conventional-changelog/git-client': 2.6.0(conventional-commits-parser@6.4.0) + '@conventional-changelog/git-client': 2.7.0(conventional-commits-parser@6.4.0) meow: 13.2.0 transitivePeerDependencies: - conventional-commits-filter @@ -3579,6 +3597,10 @@ snapshots: dependencies: ini: 4.1.1 + global-directory@5.0.0: + dependencies: + ini: 6.0.0 + global-dirs@3.0.1: dependencies: ini: 2.0.0 @@ -3663,6 +3685,8 @@ snapshots: ini@4.1.1: {} + ini@6.0.0: {} + inline-style-parser@0.2.7: {} intl-messageformat@11.2.0: @@ -4267,7 +4291,7 @@ snapshots: get-east-asian-width: 1.5.0 strip-ansi: 7.2.0 - string-width@8.2.0: + string-width@8.2.1: dependencies: get-east-asian-width: 1.5.0 strip-ansi: 7.2.0 @@ -4311,10 +4335,10 @@ snapshots: through@2.3.8: {} - tinyexec@1.0.4: {} - tinyexec@1.1.1: {} + tinyexec@1.1.2: {} + tldts-core@6.1.86: {} tldts@6.1.86: From 7a152034afb5e1e13daa53fe06d92d7c084e5578 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:34:02 +0000 Subject: [PATCH 207/492] chore(deps): bump pnpm/action-setup from 6.0.3 to 6.0.4 Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.0.3 to 6.0.4. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/903f9c1a6ebcba6cf41d87230be49611ac97822e...26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: 6.0.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/build_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 4a9b2a8de..8e5ee4888 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -30,7 +30,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: pnpm-setup - uses: pnpm/action-setup@903f9c1a6ebcba6cf41d87230be49611ac97822e # v6.0.3 + uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4 with: version: 8 From c52731155f572ec8ba3239120c3e0fe46c429c69 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:34:22 +0000 Subject: [PATCH 208/492] chore(deps-dev): bump cypress from 15.13.1 to 15.14.2 Bumps [cypress](https://github.com/cypress-io/cypress) from 15.13.1 to 15.14.2. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](https://github.com/cypress-io/cypress/compare/v15.13.1...v15.14.2) --- updated-dependencies: - dependency-name: cypress dependency-version: 15.14.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 202 ++++--------------------------------------------- 2 files changed, 17 insertions(+), 187 deletions(-) diff --git a/package.json b/package.json index 4e86d5407..5c6cee09e 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "bootstrap": "^5.3.8", "classnames": "^2.3.2", "commitlint": "^19.8.0", - "cypress": "^15.13.1", + "cypress": "^15.14.2", "husky": "^9.1.7", "lint-staged": "^16.4.0", "prettier": "^3.8.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49a2309c2..a97c38fcb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -110,8 +110,8 @@ importers: specifier: ^19.8.0 version: 19.8.1(@types/node@25.6.0)(typescript@6.0.3) cypress: - specifier: ^15.13.1 - version: 15.13.1 + specifier: ^15.14.2 + version: 15.14.2 husky: specifier: ^9.1.7 version: 9.1.7 @@ -888,24 +888,12 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - aggregate-error@3.1.0: - resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} - engines: {node: '>=8'} - ajv@8.17.1: resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} ajv@8.20.0: resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - ansi-colors@4.1.3: - resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} - engines: {node: '>=6'} - - ansi-escapes@4.3.2: - resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} - engines: {node: '>=8'} - ansi-escapes@7.3.0: resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==} engines: {node: '>=18'} @@ -945,10 +933,6 @@ packages: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} engines: {node: '>=0.8'} - astral-regex@2.0.0: - resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} - engines: {node: '>=8'} - asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} @@ -1027,14 +1011,6 @@ packages: classnames@2.5.1: resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==} - clean-stack@2.2.0: - resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} - engines: {node: '>=6'} - - cli-cursor@3.1.0: - resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==} - engines: {node: '>=8'} - cli-cursor@5.0.0: resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} engines: {node: '>=18'} @@ -1043,10 +1019,6 @@ packages: resolution: {integrity: sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==} engines: {node: 10.* || >= 12.*} - cli-truncate@2.1.0: - resolution: {integrity: sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==} - engines: {node: '>=8'} - cli-truncate@5.2.0: resolution: {integrity: sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==} engines: {node: '>=20'} @@ -1179,8 +1151,8 @@ packages: csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} - cypress@15.13.1: - resolution: {integrity: sha512-jLkgo75zlwo7PhXp0XJot+zIfFSDzN1SvTml6Xf3ETM1XHRWnH3Q4LAR3orCo/BsnxPnhjG3m5HYSvn9DAtwBg==} + cypress@15.14.2: + resolution: {integrity: sha512-xMWg/iEImeIThRQZdnf3BFJT1a84apM/R91Feoa4vVWGuYWDphMT5jLhRVTBVlCgi+6axegF1zqhNyjhug2SsQ==} engines: {node: ^20.1.0 || ^22.0.0 || >=24.0.0} hasBin: true @@ -1271,10 +1243,6 @@ packages: end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} - enquirer@2.4.1: - resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} - engines: {node: '>=8.6'} - entities@8.0.0: resolution: {integrity: sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==} engines: {node: '>=20.19.0'} @@ -1313,10 +1281,6 @@ packages: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} - escape-string-regexp@1.0.5: - resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} - engines: {node: '>=0.8.0'} - eventemitter2@6.4.7: resolution: {integrity: sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==} @@ -1352,10 +1316,6 @@ packages: fd-slicer@1.1.0: resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} - figures@3.2.0: - resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} - engines: {node: '>=8'} - find-up@7.0.0: resolution: {integrity: sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==} engines: {node: '>=18'} @@ -1446,8 +1406,8 @@ packages: resolution: {integrity: sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==} engines: {node: '>=8'} - hasown@2.0.2: - resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + hasown@2.0.3: + resolution: {integrity: sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==} engines: {node: '>= 0.4'} he@1.2.0: @@ -1502,10 +1462,6 @@ packages: import-meta-resolve@4.2.0: resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==} - indent-string@4.0.0: - resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} - engines: {node: '>=8'} - ini@2.0.0: resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==} engines: {node: '>=10'} @@ -1612,8 +1568,8 @@ packages: json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} - jsonfile@6.2.0: - resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==} + jsonfile@6.2.1: + resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==} jsonparse@1.3.1: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} @@ -1635,15 +1591,6 @@ packages: engines: {node: '>=20.17'} hasBin: true - listr2@3.14.0: - resolution: {integrity: sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==} - engines: {node: '>=10.0.0'} - peerDependencies: - enquirer: '>= 2.3.0 < 3' - peerDependenciesMeta: - enquirer: - optional: true - listr2@9.0.5: resolution: {integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==} engines: {node: '>=20.0.0'} @@ -1689,10 +1636,6 @@ packages: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} engines: {node: '>=10'} - log-update@4.0.0: - resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==} - engines: {node: '>=10'} - log-update@6.1.0: resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==} engines: {node: '>=18'} @@ -1859,10 +1802,6 @@ packages: resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - p-map@4.0.0: - resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} - engines: {node: '>=10'} - parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -2018,10 +1957,6 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} - restore-cursor@3.1.0: - resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} - engines: {node: '>=8'} - restore-cursor@5.1.0: resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} engines: {node: '>=18'} @@ -2081,14 +2016,6 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - slice-ansi@3.0.0: - resolution: {integrity: sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==} - engines: {node: '>=8'} - - slice-ansi@4.0.0: - resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} - engines: {node: '>=10'} - slice-ansi@7.1.2: resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==} engines: {node: '>=18'} @@ -2240,10 +2167,6 @@ packages: tweetnacl@0.14.5: resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} - type-fest@0.21.3: - resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} - engines: {node: '>=10'} - type-fest@0.8.1: resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} engines: {node: '>=8'} @@ -2306,10 +2229,6 @@ packages: engines: {node: '>= 8'} hasBin: true - wrap-ansi@6.2.0: - resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} - engines: {node: '>=8'} - wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -3059,11 +2978,6 @@ snapshots: acorn@8.15.0: {} - aggregate-error@3.1.0: - dependencies: - clean-stack: 2.2.0 - indent-string: 4.0.0 - ajv@8.17.1: dependencies: fast-deep-equal: 3.1.3 @@ -3078,12 +2992,6 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - ansi-colors@4.1.3: {} - - ansi-escapes@4.3.2: - dependencies: - type-fest: 0.21.3 - ansi-escapes@7.3.0: dependencies: environment: 1.1.0 @@ -3112,8 +3020,6 @@ snapshots: assert-plus@1.0.0: {} - astral-regex@2.0.0: {} - asynckit@0.4.0: {} at-least-node@1.0.0: {} @@ -3174,12 +3080,6 @@ snapshots: classnames@2.5.1: {} - clean-stack@2.2.0: {} - - cli-cursor@3.1.0: - dependencies: - restore-cursor: 3.1.0 - cli-cursor@5.0.0: dependencies: restore-cursor: 5.1.0 @@ -3190,11 +3090,6 @@ snapshots: optionalDependencies: colors: 1.4.0 - cli-truncate@2.1.0: - dependencies: - slice-ansi: 3.0.0 - string-width: 4.2.3 - cli-truncate@5.2.0: dependencies: slice-ansi: 8.0.0 @@ -3318,7 +3213,7 @@ snapshots: csstype@3.2.3: {} - cypress@15.13.1: + cypress@15.14.2: dependencies: '@cypress/request': 3.0.10 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) @@ -3332,22 +3227,19 @@ snapshots: cachedir: 2.4.0 chalk: 4.1.2 ci-info: 4.4.0 - cli-cursor: 3.1.0 cli-table3: 0.6.1 commander: 6.2.1 common-tags: 1.8.2 dayjs: 1.11.20 debug: 4.4.3(supports-color@8.1.1) - enquirer: 2.4.1 eventemitter2: 6.4.7 execa: 4.1.0 executable: 4.1.1 extract-zip: 2.0.1(supports-color@8.1.1) - figures: 3.2.0 fs-extra: 9.1.0 hasha: 5.2.2 is-installed-globally: 0.4.0 - listr2: 3.14.0(enquirer@2.4.1) + listr2: 9.0.5 lodash: 4.18.1 log-symbols: 4.1.0 minimist: 1.2.8 @@ -3440,11 +3332,6 @@ snapshots: dependencies: once: 1.4.0 - enquirer@2.4.1: - dependencies: - ansi-colors: 4.1.3 - strip-ansi: 6.0.1 - entities@8.0.0: {} env-paths@2.2.1: {} @@ -3468,14 +3355,12 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.3.0 has-tostringtag: 1.0.2 - hasown: 2.0.2 + hasown: 2.0.3 es-toolkit@1.46.1: {} escalade@3.2.0: {} - escape-string-regexp@1.0.5: {} - eventemitter2@6.4.7: {} eventemitter3@5.0.4: {} @@ -3518,10 +3403,6 @@ snapshots: dependencies: pend: 1.2.0 - figures@3.2.0: - dependencies: - escape-string-regexp: 1.0.5 - find-up@7.0.0: dependencies: locate-path: 7.2.0 @@ -3537,14 +3418,14 @@ snapshots: asynckit: 0.4.0 combined-stream: 1.0.8 es-set-tostringtag: 2.1.0 - hasown: 2.0.2 + hasown: 2.0.3 mime-types: 2.1.35 fs-extra@9.1.0: dependencies: at-least-node: 1.0.0 graceful-fs: 4.2.11 - jsonfile: 6.2.0 + jsonfile: 6.2.1 universalify: 2.0.1 function-bind@1.1.2: {} @@ -3563,7 +3444,7 @@ snapshots: get-proto: 1.0.1 gopd: 1.2.0 has-symbols: 1.1.0 - hasown: 2.0.2 + hasown: 2.0.3 math-intrinsics: 1.1.0 get-proto@1.0.1: @@ -3622,7 +3503,7 @@ snapshots: is-stream: 2.0.1 type-fest: 0.8.1 - hasown@2.0.2: + hasown@2.0.3: dependencies: function-bind: 1.1.2 @@ -3679,8 +3560,6 @@ snapshots: import-meta-resolve@4.2.0: {} - indent-string@4.0.0: {} - ini@2.0.0: {} ini@4.1.1: {} @@ -3758,7 +3637,7 @@ snapshots: json-stringify-safe@5.0.1: {} - jsonfile@6.2.0: + jsonfile@6.2.1: dependencies: universalify: 2.0.1 optionalDependencies: @@ -3786,19 +3665,6 @@ snapshots: tinyexec: 1.1.1 yaml: 2.8.3 - listr2@3.14.0(enquirer@2.4.1): - dependencies: - cli-truncate: 2.1.0 - colorette: 2.0.20 - log-update: 4.0.0 - p-map: 4.0.0 - rfdc: 1.4.1 - rxjs: 7.8.2 - through: 2.3.8 - wrap-ansi: 7.0.0 - optionalDependencies: - enquirer: 2.4.1 - listr2@9.0.5: dependencies: cli-truncate: 5.2.0 @@ -3839,13 +3705,6 @@ snapshots: chalk: 4.1.2 is-unicode-supported: 0.1.0 - log-update@4.0.0: - dependencies: - ansi-escapes: 4.3.2 - cli-cursor: 3.1.0 - slice-ansi: 4.0.0 - wrap-ansi: 6.2.0 - log-update@6.1.0: dependencies: ansi-escapes: 7.3.0 @@ -3998,10 +3857,6 @@ snapshots: dependencies: p-limit: 4.0.0 - p-map@4.0.0: - dependencies: - aggregate-error: 3.1.0 - parent-module@1.0.1: dependencies: callsites: 3.1.0 @@ -4145,11 +4000,6 @@ snapshots: resolve-from@5.0.0: {} - restore-cursor@3.1.0: - dependencies: - onetime: 5.1.2 - signal-exit: 3.0.7 - restore-cursor@5.1.0: dependencies: onetime: 7.0.0 @@ -4239,18 +4089,6 @@ snapshots: signal-exit@4.1.0: {} - slice-ansi@3.0.0: - dependencies: - ansi-styles: 4.3.0 - astral-regex: 2.0.0 - is-fullwidth-code-point: 3.0.0 - - slice-ansi@4.0.0: - dependencies: - ansi-styles: 4.3.0 - astral-regex: 2.0.0 - is-fullwidth-code-point: 3.0.0 - slice-ansi@7.1.2: dependencies: ansi-styles: 6.2.3 @@ -4387,8 +4225,6 @@ snapshots: tweetnacl@0.14.5: {} - type-fest@0.21.3: {} - type-fest@0.8.1: {} typescript@6.0.3: {} @@ -4443,12 +4279,6 @@ snapshots: dependencies: isexe: 2.0.0 - wrap-ansi@6.2.0: - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi@7.0.0: dependencies: ansi-styles: 4.3.0 From 60afb45ee5bdade611bff5670f93cc3a2836e246 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:34:35 +0000 Subject: [PATCH 209/492] chore(deps-dev): bump systeminformation from 5.31.1 to 5.31.5 Bumps [systeminformation](https://github.com/sebhildebrandt/systeminformation) from 5.31.1 to 5.31.5. - [Release notes](https://github.com/sebhildebrandt/systeminformation/releases) - [Changelog](https://github.com/sebhildebrandt/systeminformation/blob/master/CHANGELOG.md) - [Commits](https://github.com/sebhildebrandt/systeminformation/compare/v5.31.1...v5.31.5) --- updated-dependencies: - dependency-name: systeminformation dependency-version: 5.31.5 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5c6cee09e..07e706941 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "prettier": "^3.8.3", "prettier-plugin-organize-imports": "^4.3.0", "react-icons": "^5.6.0", - "systeminformation": "^5.31.1", + "systeminformation": "^5.31.5", "ts-node": "^10.9.2", "tsc-files": "^1.1.4", "typescript": "^6.0.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a97c38fcb..0a9a94220 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,8 +128,8 @@ importers: specifier: ^5.6.0 version: 5.6.0(react@19.2.5) systeminformation: - specifier: ^5.31.1 - version: 5.31.1 + specifier: ^5.31.5 + version: 5.31.5 ts-node: specifier: ^10.9.2 version: 10.9.2(@swc/core@1.15.24(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3) @@ -2092,8 +2092,8 @@ packages: resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} engines: {node: '>=10'} - systeminformation@5.31.1: - resolution: {integrity: sha512-6pRwxoGeV/roJYpsfcP6tN9mep6pPeCtXbUOCdVa0nme05Brwcwdge/fVNhIZn2wuUitAKZm4IYa7QjnRIa9zA==} + systeminformation@5.31.5: + resolution: {integrity: sha512-5SyLdip4/3alxD4Kh+63bUQTJmu7YMfYQTC+koZy7X73HgNqZSD2P4wOZQWtUncvPvcEmnfIjCoygN4MRoEejQ==} engines: {node: '>=8.0.0'} os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android] hasBin: true @@ -3249,7 +3249,7 @@ snapshots: proxy-from-env: 1.0.0 request-progress: 3.0.0 supports-color: 8.1.1 - systeminformation: 5.31.1 + systeminformation: 5.31.5 tmp: 0.2.5 tree-kill: 1.2.2 tslib: 1.14.1 @@ -4165,7 +4165,7 @@ snapshots: dependencies: has-flag: 4.0.0 - systeminformation@5.31.1: {} + systeminformation@5.31.5: {} text-extensions@2.4.0: {} From f599c1e43359884a75abf0e8c306888f91fbb261 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:34:51 +0000 Subject: [PATCH 210/492] chore(deps): bump next-intl from 4.9.1 to 4.11.0 Bumps [next-intl](https://github.com/amannn/next-intl) from 4.9.1 to 4.11.0. - [Release notes](https://github.com/amannn/next-intl/releases) - [Changelog](https://github.com/amannn/next-intl/blob/main/CHANGELOG.md) - [Commits](https://github.com/amannn/next-intl/compare/v4.9.1...v4.11.0) --- updated-dependencies: - dependency-name: next-intl dependency-version: 4.11.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 210 ++++++++++++++++++++++--------------------------- 2 files changed, 97 insertions(+), 115 deletions(-) diff --git a/package.json b/package.json index 07e706941..d70dbb52e 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "jwt-decode": "^4.0.0", "next": "16.2.4", "next-auth": "^4.24.14", - "next-intl": "^4.9.1", + "next-intl": "^4.11.0", "next-themes": "^0.4.6", "preact": "^10.29.1", "react": "19.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0a9a94220..abcd4b87e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ importers: specifier: ^4.24.14 version: 4.24.14(next@16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react-dom@19.2.5(react@19.2.5))(react@19.2.5) next-intl: - specifier: ^4.9.1 - version: 4.9.1(@swc/helpers@0.5.21)(next@16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react@19.2.5)(typescript@6.0.3) + specifier: ^4.11.0 + version: 4.11.0(@swc/helpers@0.5.21)(next@16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react@19.2.5)(typescript@6.0.3) next-themes: specifier: ^0.4.6 version: 0.4.6(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -132,7 +132,7 @@ importers: version: 5.31.5 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.15.24(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3) + version: 10.9.2(@swc/core@1.15.32(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3) tsc-files: specifier: ^1.1.4 version: 1.1.4(typescript@6.0.3) @@ -371,23 +371,17 @@ packages: '@emnapi/runtime@1.10.0': resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} - '@formatjs/bigdecimal@0.2.0': - resolution: {integrity: sha512-GeaxHZbUoYvHL9tC5eltHLs+1zU70aPw0s7LwqgktIzF5oMhNY4o4deEtusJMsq7WFJF3Ye2zQEzdG8beVk73w==} + '@formatjs/fast-memoize@3.1.3': + resolution: {integrity: sha512-Ocd1vPuD68rW6BJDuAOtnnc1GPeVepY5kZXML1psGVFQ+1Q8CfkftT3Tnam+Mxx97Pz08jIEDCotl/GV+Naccg==} - '@formatjs/ecma402-abstract@3.2.0': - resolution: {integrity: sha512-dHnqHgBo6GXYGRsepaE1wmsC2etaivOWd5VaJstZd+HI2zR3DCUjbDVZRtoPGkkXZmyHvBwrdEUuqfvzhF/DtQ==} + '@formatjs/icu-messageformat-parser@3.5.6': + resolution: {integrity: sha512-04ZjRIeQCnR/h32wBP9/S7rkyy1hLAs2fXJcNwc7hseJd//K9TMBqK0ukb4dXqnALKQ9m5ruZeOD2qqEkK9ixg==} - '@formatjs/fast-memoize@3.1.1': - resolution: {integrity: sha512-CbNbf+tlJn1baRnPkNePnBqTLxGliG6DDgNa/UtV66abwIjwsliPMOt0172tzxABYzSuxZBZfcp//qI8AvBWPg==} + '@formatjs/icu-skeleton-parser@2.1.6': + resolution: {integrity: sha512-9f1VQ2kaaLHK0WPU1OrAmiNKCKJwyoDmwNzQXbUa6XtFBOgHZ4YZURE8sSedHmMr0kvpB75OtplB0hMYkfdwfg==} - '@formatjs/icu-messageformat-parser@3.5.3': - resolution: {integrity: sha512-HJWZ9S6JWey6iY5+YXE3Kd0ofWU1sC2KTTp56e1168g/xxWvVvr8k9G4fexIgwYV9wbtjY7kGYK5FjoWB3B2OQ==} - - '@formatjs/icu-skeleton-parser@2.1.3': - resolution: {integrity: sha512-9mFp8TJ166ZM2pcjKwsBWXrDnOJGT7vMEScVgLygUODPOsE8S6f/FHoacvrlHK1B4dYZk8vSCNruyPU64AfgJQ==} - - '@formatjs/intl-localematcher@0.8.2': - resolution: {integrity: sha512-q05KMYGJLyqFNFtIb8NhWLF5X3aK/k0wYt7dnRFuy6aLQL+vUwQ1cg5cO4qawEiINybeCPXAWlprY2mSBjSXAQ==} + '@formatjs/intl-localematcher@0.8.5': + resolution: {integrity: sha512-TEW/NR367c3PcQ2AXfkNig9jC740+qbkM0LgKl7UCE7Xtv7C5Uk1mvlu86MjQZBmscUai8HSWjcEETpwaVvJ6A==} '@img/colour@1.1.0': resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} @@ -708,80 +702,80 @@ packages: resolution: {integrity: sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==} engines: {node: '>=18'} - '@swc/core-darwin-arm64@1.15.24': - resolution: {integrity: sha512-uM5ZGfFXjtvtJ+fe448PVBEbn/CSxS3UAyLj3O9xOqKIWy3S6hPTXSPbszxkSsGDYKi+YFhzAsR4r/eXLxEQ0g==} + '@swc/core-darwin-arm64@1.15.32': + resolution: {integrity: sha512-/YWMvJDPu+AAwuUsM2G+DNQ/7zhodURGzdQyewEqcvgklAdDHs3LwQmLLnyn6SJl8DT8UOxkbzK+D1PmPeelRg==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] - '@swc/core-darwin-x64@1.15.24': - resolution: {integrity: sha512-fMIb/Zfn929pw25VMBhV7Ji2Dl+lCWtUPNdYJQYOke+00E5fcQ9ynxtP8+qhUo/HZc+mYQb1gJxwHM9vty+lXg==} + '@swc/core-darwin-x64@1.15.32': + resolution: {integrity: sha512-KOTXJXdAhWL+hZ77MYP3z+4pcMFaQhQ74yqyN1uz093q0YnbxpqMtYpPISbYvMHzVRNNx5kN+9RZAXEaadhWVA==} engines: {node: '>=10'} cpu: [x64] os: [darwin] - '@swc/core-linux-arm-gnueabihf@1.15.24': - resolution: {integrity: sha512-vOkjsyjjxnoYx3hMEWcGxQrMgnNrRm6WAegBXrN8foHtDAR+zpdhpGF5a4lj1bNPgXAvmysjui8cM1ov/Clkaw==} + '@swc/core-linux-arm-gnueabihf@1.15.32': + resolution: {integrity: sha512-oOoxLweljlc0A4X8ybsgxV7cVaYTwBOg2iMDJcFR3Sr48C+lsv9VzSmqdK/IVIXF4W4GjLc3VqTAdSMXlfVLuQ==} engines: {node: '>=10'} cpu: [arm] os: [linux] - '@swc/core-linux-arm64-gnu@1.15.24': - resolution: {integrity: sha512-h/oNu+upkXJ6Cicnq7YGVj9PkdfarLCdQa8l/FlHYvfv8CEiMaeeTnpLU7gSBH/rGxosM6Qkfa/J9mThGF9CLA==} + '@swc/core-linux-arm64-gnu@1.15.32': + resolution: {integrity: sha512-oDzEkdl6D6BAWdMtU5KGO7y3HR5fJcvByNLyEk9+ugj8nP5Ovb7P4kBcStBXc4MPExFGQryehiINMlmY8HlclA==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - '@swc/core-linux-arm64-musl@1.15.24': - resolution: {integrity: sha512-ZpF/pRe1guk6sKzQI9D1jAORtjTdNlyeXn9GDz8ophof/w2WhojRblvSDJaGe7rJjcPN8AaOkhwdRUh7q8oYIg==} + '@swc/core-linux-arm64-musl@1.15.32': + resolution: {integrity: sha512-omcqjoZP/b8D8PuczVoRwJieC6ibj7qIxTftNYokz4/aSmKFHvsd7nIFfPk5ZvtzncbH4AY7+Dkr/Lp2gWxYeA==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - '@swc/core-linux-ppc64-gnu@1.15.24': - resolution: {integrity: sha512-QZEsZfisHTSJlmyChgDFNmKPb3W6Lhbfo/O76HhIngfEdnQNmukS38/VSe1feho+xkV5A5hETyCbx3sALBZKAQ==} + '@swc/core-linux-ppc64-gnu@1.15.32': + resolution: {integrity: sha512-KGkTMyz/Tbn3PBNu0AVZ4GTDFKnICrYcTiNPZq8DrvK42pnFsf3GNDrIG9E5AtQlTmC0YigkWKmu0eMcfTrmgA==} engines: {node: '>=10'} cpu: [ppc64] os: [linux] - '@swc/core-linux-s390x-gnu@1.15.24': - resolution: {integrity: sha512-DLdJKVsJgglqQrJBuoUYNmzm3leI7kUZhLbZGHv42onfKsGf6JDS3+bzCUQfte/XOqDjh/tmmn1DR/CF/tCJFw==} + '@swc/core-linux-s390x-gnu@1.15.32': + resolution: {integrity: sha512-G3Aa4tVS/3OGZBkoNIwUF9F6RAy+Osb4GOlo62SinLmDiErz/ykmM7KH0wkz6l9kM8jJq1HyAM6atJTUEbBk7g==} engines: {node: '>=10'} cpu: [s390x] os: [linux] - '@swc/core-linux-x64-gnu@1.15.24': - resolution: {integrity: sha512-IpLYfposPA/XLxYOKpRfeccl1p5dDa3+okZDHHTchBkXEaVCnq5MADPmIWwIYj1tudt7hORsEHccG5no6IUQRw==} + '@swc/core-linux-x64-gnu@1.15.32': + resolution: {integrity: sha512-ERsjfGcj6CBmj3vJnGDO8m8rTvw6RqMcWo1dogOtNx3/+/0+NNpJiXDobJrr1GwInI/BHAEkvSFIH6d2LqPcUQ==} engines: {node: '>=10'} cpu: [x64] os: [linux] - '@swc/core-linux-x64-musl@1.15.24': - resolution: {integrity: sha512-JHy3fMSc0t/EPWgo74+OK5TGr51aElnzqfUPaiRf2qJ/BfX5CUCfMiWVBuhI7qmVMBnk1jTRnL/xZnOSHDPLYg==} + '@swc/core-linux-x64-musl@1.15.32': + resolution: {integrity: sha512-N4Ggahe/8SUbTX50P6EdhbW9YWcgbZVb52R4cq6MK+zsoMjRq7rGvV5ztA05QnbaCYqMYx8rTY7KAIA3Crdo4Q==} engines: {node: '>=10'} cpu: [x64] os: [linux] - '@swc/core-win32-arm64-msvc@1.15.24': - resolution: {integrity: sha512-Txj+qUH1z2bUd1P3JvwByfjKFti3cptlAxhWgmunBUUxy/IW3CXLZ6l6Gk4liANadKkU71nIU1X30Z5vpMT3BA==} + '@swc/core-win32-arm64-msvc@1.15.32': + resolution: {integrity: sha512-01yN0o9jvo8xBTP12aPK2wW8b41jmOlGbDDlAnoynotc4pO6xA0zby9f1z6j++qXDpGBttLySq1omgVrlQKYcw==} engines: {node: '>=10'} cpu: [arm64] os: [win32] - '@swc/core-win32-ia32-msvc@1.15.24': - resolution: {integrity: sha512-15D/nl3XwrhFpMv+MADFOiVwv3FvH9j8c6Rf8EXBT3Q5LoMh8YnDnSgPYqw1JzPnksvsBX6QPXLiPqmcR/Z4qQ==} + '@swc/core-win32-ia32-msvc@1.15.32': + resolution: {integrity: sha512-fLagI9XZYNpTcmlqAcp3KBtmj7E19WCmYD80Jxj1Kn5tGNa7yxNLd3NNdWxuZGUPl5iC0/KqZru7g08gF6Fsrw==} engines: {node: '>=10'} cpu: [ia32] os: [win32] - '@swc/core-win32-x64-msvc@1.15.24': - resolution: {integrity: sha512-PR0PlTlPra2JbaDphrOAzm6s0v9rA0F17YzB+XbWD95B4g2cWcZY9LAeTa4xll70VLw9Jr7xBrlohqlQmelMFQ==} + '@swc/core-win32-x64-msvc@1.15.32': + resolution: {integrity: sha512-gbc2bQ/T2CiR+w0OvcVKwLOFAcPZBvmWmolbwpg1E8UrpeC03DGtyMUApOHNXNYWA3SHFrYXCQtosrcMza1YFg==} engines: {node: '>=10'} cpu: [x64] os: [win32] - '@swc/core@1.15.24': - resolution: {integrity: sha512-5Hj8aNasue7yusUt8LGCUe/AjM7RMAce8ZoyDyiFwx7Al+GbYKL+yE7g4sJk8vEr1dKIkTRARkNIJENc4CjkBQ==} + '@swc/core@1.15.32': + resolution: {integrity: sha512-/eWL0n43D64QWEUHLtTE+jDqjkJhyidjkDhv6f0uJohOUAhywxQ9wXYp845DNNds0JpCdI4Uo0a9bl+vbXf+ew==} engines: {node: '>=10'} peerDependencies: '@swc/helpers': '>=0.5.17' @@ -1449,8 +1443,8 @@ packages: engines: {node: '>=18'} hasBin: true - icu-minify@4.9.1: - resolution: {integrity: sha512-6NkfF9GHHFouqnz+wuiLjCWQiyxoEyJ5liUv4Jxxo/8wyhV7MY0L0iTEGDAVEa4aAD58WqTxFMa20S5nyMjwNw==} + icu-minify@4.11.0: + resolution: {integrity: sha512-XRvblCwLqWXio5ZLcmDqXvJv7alSACK6UjXuuMOdQWB//d25AQX6xlVlI1FEbc3Q6iPLXXo6HaVLn8LcAFhn1Q==} ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -1477,8 +1471,8 @@ packages: inline-style-parser@0.2.7: resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==} - intl-messageformat@11.2.0: - resolution: {integrity: sha512-IhghAA8n4KSlXuWKzYsWyWb82JoYTzShfyvdSF85oJPnNOjvv4kAo7S7Jtkm3/vJ53C7dQNRO+Gpnj3iWgTjBQ==} + intl-messageformat@11.2.3: + resolution: {integrity: sha512-kZthTU+3WLcoWoRg5j6LOkN1TeUBtmkX0OIwSAbcHVIfQAEbGVdmANM8u6GL3eUDOqLwheYoXMUshAh1UdeXlQ==} invariant@2.2.4: resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} @@ -1711,11 +1705,11 @@ packages: nodemailer: optional: true - next-intl-swc-plugin-extractor@4.9.1: - resolution: {integrity: sha512-8whJJ6oxJz8JqkHarggmmuEDyXgC7nEnaPhZD91CJwEWW4xp0AST3Mw17YxvHyP2vAF3taWfFbs1maD+WWtz3w==} + next-intl-swc-plugin-extractor@4.11.0: + resolution: {integrity: sha512-WUGBSxGNd8eQ0rAsJHFmRw2H7+SZAXQIY/HAnYM57JaUsj5D2vx4KOz4zFtXlyKDtsw9awHfgWVvBae2/RDF9A==} - next-intl@4.9.1: - resolution: {integrity: sha512-N7ga0CjtYcdxNvaKNIi6eJ2mmatlHK5hp8rt0YO2Omoc1m0gean242/Ukdj6+gJNiReBVcYIjK0HZeNx7CV1ug==} + next-intl@4.11.0: + resolution: {integrity: sha512-Chp8rgEVUYOX/bCtYy+PXH6lDX3X+GPT9sR9HScHroL283em/4urP9btfdHEMEHJJXdq2W/5wDaDDtWONPdNSA==} peerDependencies: next: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0 @@ -2204,8 +2198,8 @@ packages: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} engines: {node: '>=8'} - use-intl@4.9.1: - resolution: {integrity: sha512-iGVV/xFYlhe3btafRlL8RPLD2Jsuet4yqn9DR6LWWbMhULsJnXgLonDkzDmsAIBIwFtk02oJuX/Ox2vwHKF+UQ==} + use-intl@4.11.0: + resolution: {integrity: sha512-7ILhTLuo3fnSKhoTGDk5X9591pjtWr6qB4inrlvGkN9OEyKhoiG73GZFoLSs68wz3BsSGtoWa62iWvrYEYU+iA==} peerDependencies: react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0 @@ -2580,28 +2574,17 @@ snapshots: tslib: 2.8.1 optional: true - '@formatjs/bigdecimal@0.2.0': {} - - '@formatjs/ecma402-abstract@3.2.0': - dependencies: - '@formatjs/bigdecimal': 0.2.0 - '@formatjs/fast-memoize': 3.1.1 - '@formatjs/intl-localematcher': 0.8.2 - - '@formatjs/fast-memoize@3.1.1': {} + '@formatjs/fast-memoize@3.1.3': {} - '@formatjs/icu-messageformat-parser@3.5.3': + '@formatjs/icu-messageformat-parser@3.5.6': dependencies: - '@formatjs/ecma402-abstract': 3.2.0 - '@formatjs/icu-skeleton-parser': 2.1.3 + '@formatjs/icu-skeleton-parser': 2.1.6 - '@formatjs/icu-skeleton-parser@2.1.3': - dependencies: - '@formatjs/ecma402-abstract': 3.2.0 + '@formatjs/icu-skeleton-parser@2.1.6': {} - '@formatjs/intl-localematcher@0.8.2': + '@formatjs/intl-localematcher@0.8.5': dependencies: - '@formatjs/fast-memoize': 3.1.1 + '@formatjs/fast-memoize': 3.1.3 '@img/colour@1.1.0': optional: true @@ -2836,59 +2819,59 @@ snapshots: '@simple-libs/stream-utils@1.2.0': {} - '@swc/core-darwin-arm64@1.15.24': + '@swc/core-darwin-arm64@1.15.32': optional: true - '@swc/core-darwin-x64@1.15.24': + '@swc/core-darwin-x64@1.15.32': optional: true - '@swc/core-linux-arm-gnueabihf@1.15.24': + '@swc/core-linux-arm-gnueabihf@1.15.32': optional: true - '@swc/core-linux-arm64-gnu@1.15.24': + '@swc/core-linux-arm64-gnu@1.15.32': optional: true - '@swc/core-linux-arm64-musl@1.15.24': + '@swc/core-linux-arm64-musl@1.15.32': optional: true - '@swc/core-linux-ppc64-gnu@1.15.24': + '@swc/core-linux-ppc64-gnu@1.15.32': optional: true - '@swc/core-linux-s390x-gnu@1.15.24': + '@swc/core-linux-s390x-gnu@1.15.32': optional: true - '@swc/core-linux-x64-gnu@1.15.24': + '@swc/core-linux-x64-gnu@1.15.32': optional: true - '@swc/core-linux-x64-musl@1.15.24': + '@swc/core-linux-x64-musl@1.15.32': optional: true - '@swc/core-win32-arm64-msvc@1.15.24': + '@swc/core-win32-arm64-msvc@1.15.32': optional: true - '@swc/core-win32-ia32-msvc@1.15.24': + '@swc/core-win32-ia32-msvc@1.15.32': optional: true - '@swc/core-win32-x64-msvc@1.15.24': + '@swc/core-win32-x64-msvc@1.15.32': optional: true - '@swc/core@1.15.24(@swc/helpers@0.5.21)': + '@swc/core@1.15.32(@swc/helpers@0.5.21)': dependencies: '@swc/counter': 0.1.3 '@swc/types': 0.1.26 optionalDependencies: - '@swc/core-darwin-arm64': 1.15.24 - '@swc/core-darwin-x64': 1.15.24 - '@swc/core-linux-arm-gnueabihf': 1.15.24 - '@swc/core-linux-arm64-gnu': 1.15.24 - '@swc/core-linux-arm64-musl': 1.15.24 - '@swc/core-linux-ppc64-gnu': 1.15.24 - '@swc/core-linux-s390x-gnu': 1.15.24 - '@swc/core-linux-x64-gnu': 1.15.24 - '@swc/core-linux-x64-musl': 1.15.24 - '@swc/core-win32-arm64-msvc': 1.15.24 - '@swc/core-win32-ia32-msvc': 1.15.24 - '@swc/core-win32-x64-msvc': 1.15.24 + '@swc/core-darwin-arm64': 1.15.32 + '@swc/core-darwin-x64': 1.15.32 + '@swc/core-linux-arm-gnueabihf': 1.15.32 + '@swc/core-linux-arm64-gnu': 1.15.32 + '@swc/core-linux-arm64-musl': 1.15.32 + '@swc/core-linux-ppc64-gnu': 1.15.32 + '@swc/core-linux-s390x-gnu': 1.15.32 + '@swc/core-linux-x64-gnu': 1.15.32 + '@swc/core-linux-x64-musl': 1.15.32 + '@swc/core-win32-arm64-msvc': 1.15.32 + '@swc/core-win32-ia32-msvc': 1.15.32 + '@swc/core-win32-x64-msvc': 1.15.32 '@swc/helpers': 0.5.21 '@swc/counter@0.1.3': {} @@ -3547,9 +3530,9 @@ snapshots: husky@9.1.7: {} - icu-minify@4.9.1: + icu-minify@4.11.0: dependencies: - '@formatjs/icu-messageformat-parser': 3.5.3 + '@formatjs/icu-messageformat-parser': 3.5.6 ieee754@1.2.1: {} @@ -3568,11 +3551,10 @@ snapshots: inline-style-parser@0.2.7: {} - intl-messageformat@11.2.0: + intl-messageformat@11.2.3: dependencies: - '@formatjs/ecma402-abstract': 3.2.0 - '@formatjs/fast-memoize': 3.1.1 - '@formatjs/icu-messageformat-parser': 3.5.3 + '@formatjs/fast-memoize': 3.1.3 + '@formatjs/icu-messageformat-parser': 3.5.6 invariant@2.2.4: dependencies: @@ -3764,20 +3746,20 @@ snapshots: react-dom: 19.2.5(react@19.2.5) uuid: 8.3.2 - next-intl-swc-plugin-extractor@4.9.1: {} + next-intl-swc-plugin-extractor@4.11.0: {} - next-intl@4.9.1(@swc/helpers@0.5.21)(next@16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react@19.2.5)(typescript@6.0.3): + next-intl@4.11.0(@swc/helpers@0.5.21)(next@16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react@19.2.5)(typescript@6.0.3): dependencies: - '@formatjs/intl-localematcher': 0.8.2 + '@formatjs/intl-localematcher': 0.8.5 '@parcel/watcher': 2.5.6 - '@swc/core': 1.15.24(@swc/helpers@0.5.21) - icu-minify: 4.9.1 + '@swc/core': 1.15.32(@swc/helpers@0.5.21) + icu-minify: 4.11.0 negotiator: 1.0.0 next: 16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - next-intl-swc-plugin-extractor: 4.9.1 + next-intl-swc-plugin-extractor: 4.11.0 po-parser: 2.1.1 react: 19.2.5 - use-intl: 4.9.1(react@19.2.5) + use-intl: 4.11.0(react@19.2.5) optionalDependencies: typescript: 6.0.3 transitivePeerDependencies: @@ -4191,7 +4173,7 @@ snapshots: tree-kill@1.2.2: {} - ts-node@10.9.2(@swc/core@1.15.24(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3): + ts-node@10.9.2(@swc/core@1.15.32(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.12 @@ -4209,7 +4191,7 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: - '@swc/core': 1.15.24(@swc/helpers@0.5.21) + '@swc/core': 1.15.32(@swc/helpers@0.5.21) tsc-files@1.1.4(typescript@6.0.3): dependencies: @@ -4253,12 +4235,12 @@ snapshots: untildify@4.0.0: {} - use-intl@4.9.1(react@19.2.5): + use-intl@4.11.0(react@19.2.5): dependencies: - '@formatjs/fast-memoize': 3.1.1 + '@formatjs/fast-memoize': 3.1.3 '@schummar/icu-type-parser': 1.21.5 - icu-minify: 4.9.1 - intl-messageformat: 11.2.0 + icu-minify: 4.11.0 + intl-messageformat: 11.2.3 react: 19.2.5 uuid@8.3.2: {} From f18f4460cfc5f33a799fbdd38991cf0d1b676dc3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:35:01 +0000 Subject: [PATCH 211/492] chore(deps): bump react-cookie from 8.1.0 to 8.1.2 Bumps [react-cookie](https://github.com/ItsBenCodes/cookies) from 8.1.0 to 8.1.2. - [Release notes](https://github.com/ItsBenCodes/cookies/releases) - [Commits](https://github.com/ItsBenCodes/cookies/compare/v8.1.0...v8.1.2) --- updated-dependencies: - dependency-name: react-cookie dependency-version: 8.1.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d70dbb52e..a5ebe6a5d 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "preact": "^10.29.1", "react": "19.2.5", "react-bootstrap": "^2.10.10", - "react-cookie": "^8.1.0", + "react-cookie": "^8.1.2", "react-dom": "19.2.5", "rxjs": "^7.8.2" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index abcd4b87e..c0334ea81 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -67,8 +67,8 @@ importers: specifier: ^2.10.10 version: 2.10.10(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) react-cookie: - specifier: ^8.1.0 - version: 8.1.0(@types/react@19.2.14)(react@19.2.5) + specifier: ^8.1.2 + version: 8.1.2(@types/react@19.2.14)(react@19.2.5) react-dom: specifier: 19.2.5 version: 19.2.5(react@19.2.5) @@ -1898,8 +1898,8 @@ packages: '@types/react': optional: true - react-cookie@8.1.0: - resolution: {integrity: sha512-Qs+gD3gpQmUXnJUZafhJtNWhhNdi8OYbOAF5YQRAZa/D171ILOIEMfXDz/tmhkE+nOthllmqryHH6I/qmvIYWQ==} + react-cookie@8.1.2: + resolution: {integrity: sha512-S45Z1y1dHyYfLEI4bFKQICuP+SwJqTPWbdc2ZpE6aQSdjSVJAjUDfwTPq8B7BWieIsgyyEWMb/QOrudtwJMjXA==} peerDependencies: react: '>= 16.3.0' @@ -2187,8 +2187,8 @@ packages: resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} engines: {node: '>=18'} - universal-cookie@8.1.0: - resolution: {integrity: sha512-65+kikQAWq7gsJbirwB7dk6e8xeug1hx3++x2dQoymdXcV7fYv0yChOgHCg01ZwP3fE3sYeq6EWCSpFv3HLl9g==} + universal-cookie@8.1.2: + resolution: {integrity: sha512-kcKzTGNsxVytujrYOvQbvh//QyFrA53HrzCGyzh6i9ujCww5gfPrLK0tG+jJD40SIIldiEjBNPPSR8fBMS21GA==} universalify@2.0.1: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} @@ -3935,12 +3935,12 @@ snapshots: optionalDependencies: '@types/react': 19.2.14 - react-cookie@8.1.0(@types/react@19.2.14)(react@19.2.5): + react-cookie@8.1.2(@types/react@19.2.14)(react@19.2.5): dependencies: '@types/hoist-non-react-statics': 3.3.7(@types/react@19.2.14) hoist-non-react-statics: 3.3.2 react: 19.2.5 - universal-cookie: 8.1.0 + universal-cookie: 8.1.2 transitivePeerDependencies: - '@types/react' @@ -4227,7 +4227,7 @@ snapshots: unicorn-magic@0.1.0: {} - universal-cookie@8.1.0: + universal-cookie@8.1.2: dependencies: cookie: 1.1.1 From 763d856be109bfd458d143bdfc336ee9e37a4042 Mon Sep 17 00:00:00 2001 From: Farooq Fateh Aftab Date: Wed, 22 Apr 2026 07:11:15 +0000 Subject: [PATCH 212/492] feat(Component): Added pagination and sorting for release overview in components --- .../[id]/components/ReleaseOverview.tsx | 138 ++++++++++++++---- 1 file changed, 110 insertions(+), 28 deletions(-) diff --git a/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx b/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx index 46c63094d..124146b41 100644 --- a/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx +++ b/src/app/[locale]/components/detail/[id]/components/ReleaseOverview.tsx @@ -11,21 +11,21 @@ 'use client' -import { ColumnDef, getCoreRowModel, getPaginationRowModel, useReactTable } from '@tanstack/react-table' +import { ColumnDef, getCoreRowModel, SortingState, useReactTable } from '@tanstack/react-table' import { StatusCodes } from 'http-status-codes' import { StaticImport } from 'next/dist/shared/lib/get-img-props' import Image from 'next/image' import Link from 'next/link' import { signOut, useSession } from 'next-auth/react' import { useTranslations } from 'next-intl' -import { ClientSidePageSizeSelector, ClientSideTableFooter, SW360Table } from 'next-sw360' +import { PageSizeSelector, SW360Table, TableFooter } from 'next-sw360' import { ReactNode, useEffect, useMemo, useState } from 'react' -import { OverlayTrigger, Spinner, Tooltip } from 'react-bootstrap' +import { OverlayTrigger, Tooltip } from 'react-bootstrap' import { BsClipboard, BsFillTrashFill, BsGit, BsLink45Deg, BsPencil } from 'react-icons/bs' import fossologyIcon from '@/assets/images/fossology.svg' import LinkReleaseToProjectModal from '@/components/LinkReleaseToProjectModal/LinkReleaseToProjectModal' import FossologyClearing from '@/components/sw360/FossologyClearing/FossologyClearing' -import { Embedded, ErrorDetails, ReleaseLink, UserGroupType } from '@/object-types' +import { Embedded, ErrorDetails, PageableQueryParam, PaginationMeta, ReleaseLink, UserGroupType } from '@/object-types' import { ApiError, ApiUtils, CommonUtils } from '@/utils' import DeleteReleaseModal from './DeleteReleaseModal' @@ -78,7 +78,7 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro id: 'name', header: t('Name'), accessorKey: 'name', - enableSorting: false, + enableSorting: true, cell: (info) => info.getValue(), meta: { width: '20%', @@ -87,6 +87,8 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro { id: 'version', header: t('Version'), + accessorKey: 'version', + enableSorting: true, cell: ({ row }) => { const { version, id } = row.original return ( @@ -105,7 +107,10 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro { id: 'clearingState', header: t('Clearing State'), + accessorKey: 'clearingState', + enableSorting: true, cell: ({ row }) => <>{Capitalize(row.original.clearingState ?? '')}, + meta: { width: '20%', }, @@ -114,7 +119,7 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro id: 'mainlineState', header: t('Release Mainline State'), accessorKey: 'mainlineState', - enableSorting: false, + enableSorting: true, cell: ({ row }) => <>{Capitalize(row.original.mainlineState ?? '')}, meta: { width: '20%', @@ -189,6 +194,17 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro ], ) + const [pageableQueryParam, setPageableQueryParam] = useState({ + page: 0, + page_entries: 10, + sort: 'version,asc', + }) + const [paginationMeta, setPaginationMeta] = useState({ + size: 0, + totalElements: 0, + totalPages: 0, + number: 0, + }) const [releaseData, setReleaseData] = useState(() => []) const memoizedData = useMemo( () => releaseData, @@ -199,7 +215,7 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro const [showProcessing, setShowProcessing] = useState(false) useEffect(() => { - if (session.status === 'loading') return + if (session.status !== 'authenticated') return const controller = new AbortController() const signal = controller.signal @@ -211,11 +227,16 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro void (async () => { try { if (CommonUtils.isNullOrUndefined(session.data)) return signOut() - const response = await ApiUtils.GET( + const queryUrl = CommonUtils.createUrlWithParams( `components/${componentId}/releases`, - session.data.user.access_token, - signal, + Object.fromEntries( + Object.entries(pageableQueryParam).map(([key, value]) => [ + key, + String(value), + ]), + ), ) + const response = await ApiUtils.GET(queryUrl, session.data.user.access_token, signal) if (response.status !== StatusCodes.OK) { const err = (await response.json()) as ErrorDetails throw new ApiError(err.message, { @@ -226,10 +247,17 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro const responseText = await response.text() if (CommonUtils.isNullEmptyOrUndefinedString(responseText)) { setReleaseData([]) + setPaginationMeta({ + size: 0, + totalElements: 0, + totalPages: 0, + number: 0, + }) return } const data = JSON.parse(responseText) as EmbeddedLinkedReleases + setPaginationMeta(data.page) setReleaseData(data['_embedded']?.['sw360:releaseLinks'] ?? []) } catch (error) { ApiUtils.reportError(error) @@ -243,6 +271,7 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro }, [ session, componentId, + pageableQueryParam, ]) const table = useReactTable({ @@ -258,10 +287,64 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro calledFromModerationRequestDetail === undefined || calledFromModerationRequestDetail === false, }, + pagination: { + pageIndex: pageableQueryParam.page, + pageSize: pageableQueryParam.page_entries, + }, + sorting: pageableQueryParam.sort + ? [ + { + id: pageableQueryParam.sort.split(',')[0], + desc: pageableQueryParam.sort.split(',')[1] === 'desc', + }, + ] + : [], }, - // client side pagination - getPaginationRowModel: getPaginationRowModel(), + // server side sorting config + manualSorting: true, + onSortingChange: (updater) => { + setPageableQueryParam((prev) => { + const prevSorting: SortingState = prev.sort + ? [ + { + id: prev.sort.split(',')[0], + desc: prev.sort.split(',')[1] === 'desc', + }, + ] + : [] + const nextSorting = typeof updater === 'function' ? updater(prevSorting) : updater + if (nextSorting.length > 0) { + const { id, desc } = nextSorting[0] + return { + ...prev, + sort: `${id},${desc ? 'desc' : 'asc'}`, + } + } + return { + ...prev, + sort: '', + } + }) + }, + + // server side pagination config + manualPagination: true, + pageCount: paginationMeta?.totalPages ?? 1, + onPaginationChange: (updater) => { + const next = + typeof updater === 'function' + ? updater({ + pageIndex: pageableQueryParam.page, + pageSize: pageableQueryParam.page_entries, + }) + : updater + setPageableQueryParam((prev) => ({ + ...prev, + page: next.pageIndex + 1, + page_entries: next.pageSize, + })) + }, meta: { rowHeightConstant: true, @@ -271,22 +354,21 @@ const ReleaseOverview = ({ componentId, calledFromModerationRequestDetail }: Pro return ( <>
- {table ? ( - <> - - - - - ) : ( -
- -
+ + + {paginationMeta && ( + )}
Date: Wed, 1 Apr 2026 11:33:45 +0530 Subject: [PATCH 213/492] fix(ui): Filter license obligations by project release main licenses when no CLI attachment exists Signed-off-by: Nikesh Kumar --- .../ObligationsView/LicenseDbObligationsModal.tsx | 9 +++++---- .../Obligations/ObligationsView/LicenseObligation.tsx | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx index 226534937..49ca61e94 100644 --- a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx +++ b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseDbObligationsModal.tsx @@ -73,6 +73,7 @@ export default function LicenseDbObligationsModal({ await signOut() } else if (response.status === StatusCodes.CREATED) { MessageService.success(t('Added obligations successfully')) + setRefresh((prev) => !prev) } else { const err = (await response.json()) as ErrorDetails throw new ApiError(err.message, { @@ -132,9 +133,9 @@ export default function LicenseDbObligationsModal({ handleCheckboxes(row.original.node[0] ?? '')} + value={row.original.node[1].id ?? ''} + checked={obligationIds.indexOf(row.original.node[1].id ?? '') !== -1} + onChange={() => handleCheckboxes(row.original.node[1].id ?? '')} />
), @@ -470,7 +471,7 @@ export default function LicenseDbObligationsModal({ await addObligationsToLicense() handleCloseDialog() }} - disabled={loading} + disabled={loading || obligationIds.length === 0} > {t('Add')}{' '} {loading === true && ( diff --git a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx index ec7627c8b..3941bf0e4 100644 --- a/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx +++ b/src/app/[locale]/projects/components/Obligations/ObligationsView/LicenseObligation.tsx @@ -499,6 +499,7 @@ export default function LicenseObligation({ projectId, actionType, payload, setP }, [ pageableQueryParam, session, + refresh, ]) useEffect(() => { From 2537a5b02099ad14e15e404c913de2da0b9f50d6 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 18 Mar 2026 22:57:23 -0400 Subject: [PATCH 214/492] fix(hooks): Guard useLocalStorage against invalid JSON Signed-off-by: Alex --- src/hooks/useLocalStorage.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/hooks/useLocalStorage.ts b/src/hooks/useLocalStorage.ts index ddbfbb8e8..01dde2559 100644 --- a/src/hooks/useLocalStorage.ts +++ b/src/hooks/useLocalStorage.ts @@ -29,12 +29,26 @@ function useLocalStorage( } useEffect(() => { + const parseStoredItem = (item: string | null): T => { + if (item === null) { + return initialValue + } + + try { + return JSON.parse(item) as T + } catch (error) { + console.error(error) + window.localStorage.removeItem(key) + return initialValue + } + } + const item = window.localStorage.getItem(key) - setStoredValue(item !== null ? (JSON.parse(item) as T) : initialValue) + setStoredValue(parseStoredItem(item)) const handleStorageChange = () => { const currentItem = window.localStorage.getItem(key) - setStoredValue(currentItem !== null ? (JSON.parse(currentItem) as T) : initialValue) + setStoredValue(parseStoredItem(currentItem)) } window.addEventListener('storage', handleStorageChange) From 9f2c131f2e8f18bfc89c1e4bbacc78051ccaf45d Mon Sep 17 00:00:00 2001 From: Keerthi B L Date: Thu, 12 Feb 2026 12:15:40 +0530 Subject: [PATCH 215/492] fix(ui): Date validation component Signed-off-by: Keerthi B L Co-authored-by: Gaurav Mishra Signed-off-by: Gaurav Mishra --- messages/de.json | 4 + messages/en.json | 4 + messages/es.json | 4 + messages/fr.json | 4 + messages/ja.json | 4 + messages/ko.json | 4 + messages/pt-BR.json | 4 + messages/vi.json | 4 + messages/zh-CN.json | 4 + messages/zh-TW.json | 4 + package.json | 2 + pnpm-lock.yaml | 465 ++++++++++++------ .../components/CreateClearingRequestModal.tsx | 53 +- .../[id]/components/EditClearingDecision.tsx | 29 +- .../ReopenClosedClearingRequestModal.tsx | 53 +- .../components/VulnerabilityDetail.tsx | 70 ++- .../[id]/components/EditVulnerability.tsx | 6 +- src/components/DateField.tsx | 252 ++++++++++ .../component/Administration/Clearing.tsx | 36 +- .../component/Administration/LifeCycle.tsx | 121 ++--- src/styles/globals.css | 27 + 21 files changed, 769 insertions(+), 385 deletions(-) create mode 100644 src/components/DateField.tsx diff --git a/messages/de.json b/messages/de.json index f611ea45c..1ffeb020b 100644 --- a/messages/de.json +++ b/messages/de.json @@ -391,6 +391,10 @@ "Deactivate User": "Benutzer deaktivieren", "Deactive User": "Deaktiver Benutzer", "Deadline for pre-evaluation": "Frist fรผr die Vorabbewertung", + "Invalid date format, use YYYY-MM-DD": "Ungรผltiges Datumsformat, verwenden Sie JJJJ-MM-TT", + "Date must be today or in the future": "Datum muss heute oder in der Zukunft liegen", + "Date must be on or after dateValue": "Datum muss am oder nach {dateValue} sein", + "Date must be on or before dateValue": "Datum muss am oder vor {dateValue} sein", "Decline Request": "Anfrage ablehnen", "Deep": "Tief", "Deep Level CLX": "Tiefe Ebene (CLX)", diff --git a/messages/en.json b/messages/en.json index 288badd33..d20acf92e 100644 --- a/messages/en.json +++ b/messages/en.json @@ -391,6 +391,10 @@ "Deactivate User": "Deactivate User", "Deactive User": "Deactive User", "Deadline for pre-evaluation": "Deadline for pre-evaluation", + "Invalid date format, use YYYY-MM-DD": "Invalid date format, use YYYY-MM-DD", + "Date must be today or in the future": "Date must be today or in the future", + "Date must be on or after dateValue": "Date must be on or after {dateValue}", + "Date must be on or before dateValue": "Date must be on or before {dateValue}", "Decline Request": "Decline Request", "Deep": "Deep", "Deep Level CLX": "Deep Level (CLX)", diff --git a/messages/es.json b/messages/es.json index 72d810e2d..3a6ddd261 100644 --- a/messages/es.json +++ b/messages/es.json @@ -391,6 +391,10 @@ "Deactivate User": "Desactivar usuario", "Deactive User": "Usuario desactivado", "Deadline for pre-evaluation": "Fecha lรญmite para la evaluaciรณn previa", + "Invalid date format, use YYYY-MM-DD": "Formato de fecha invรกlido, use AAAA-MM-DD", + "Date must be today or in the future": "La fecha debe ser hoy o en el futuro", + "Date must be on or after dateValue": "La fecha debe ser el {dateValue} o posterior", + "Date must be on or before dateValue": "La fecha debe ser el {dateValue} o anterior", "Decline Request": "Rechazar solicitud", "Deep": "Profundo", "Deep Level CLX": "Nivel profundo (CLX)", diff --git a/messages/fr.json b/messages/fr.json index a5a44f502..46e80209b 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -391,6 +391,10 @@ "Deactivate User": "Dรฉsactiver l'utilisateur", "Deactive User": "Utilisateur dรฉsactivรฉ", "Deadline for pre-evaluation": "Dรฉlai de prรฉ-รฉvaluation", + "Invalid date format, use YYYY-MM-DD": "Format de date invalide, utilisez AAAA-MM-JJ", + "Date must be today or in the future": "La date doit รชtre aujourd'hui ou dans le futur", + "Date must be on or after dateValue": "La date doit รชtre le {dateValue} ou aprรจs", + "Date must be on or before dateValue": "La date doit รชtre le {dateValue} ou avant", "Decline Request": "Refuser la demande", "Deep": "Profond", "Deep Level CLX": "Niveau profond (CLX)", diff --git a/messages/ja.json b/messages/ja.json index fba7cc8c9..79e30efe1 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -391,6 +391,10 @@ "Deactivate User": "ใƒฆใƒผใ‚ถใƒผใ‚’้žใ‚ขใ‚ฏใƒ†ใ‚ฃใƒ–ๅŒ–ใ™ใ‚‹", "Deactive User": "้žใ‚ขใ‚ฏใƒ†ใ‚ฃใƒ–ใชใƒฆใƒผใ‚ถใƒผ", "Deadline for pre-evaluation": "Deadline for pre-evaluation", + "Invalid date format, use YYYY-MM-DD": "็„กๅŠนใชๆ—ฅไป˜ๅฝขๅผใงใ™ใ€‚YYYY-MM-DD ใ‚’ไฝฟ็”จใ—ใฆใใ ใ•ใ„", + "Date must be today or in the future": "ๆ—ฅไป˜ใฏไปŠๆ—ฅใพใŸใฏๆœชๆฅใงใ‚ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™", + "Date must be on or after dateValue": "ๆ—ฅไป˜ใฏ{dateValue}ไปฅ้™ใงใ‚ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™", + "Date must be on or before dateValue": "ๆ—ฅไป˜ใฏ{dateValue}ไปฅๅ‰ใงใ‚ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™", "Decline Request": "ใƒชใ‚ฏใ‚จใ‚นใƒˆใ‚’ๆ‹’ๅฆใ™ใ‚‹", "Deep": "ๆทฑใ„", "Deep Level CLX": "ใƒ‡ใ‚ฃใƒผใƒ—ใƒฌใƒ™ใƒซ (CLX)", diff --git a/messages/ko.json b/messages/ko.json index 4c82c5620..c08d14d35 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -391,6 +391,10 @@ "Deactivate User": "์‚ฌ์šฉ์ž ๋น„ํ™œ์„ฑํ™”", "Deactive User": "๋น„ํ™œ์„ฑํ™”๋œ ์‚ฌ์šฉ์ž", "Deadline for pre-evaluation": "์‚ฌ์ „ ํ‰๊ฐ€๋ฅผ ์œ„ํ•œ Deadline", + "Invalid date format, use YYYY-MM-DD": "์ž˜๋ชป๋œ ๋‚ ์งœ ํ˜•์‹์ž…๋‹ˆ๋‹ค. YYYY-MM-DD ํ˜•์‹์„ ์‚ฌ์šฉํ•˜์„ธ์š”", + "Date must be today or in the future": "๋‚ ์งœ๋Š” ์˜ค๋Š˜ ๋˜๋Š” ๋ฏธ๋ž˜์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค", + "Date must be on or after dateValue": "๋‚ ์งœ๋Š” {dateValue} ์ดํ›„์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค", + "Date must be on or before dateValue": "๋‚ ์งœ๋Š” {dateValue} ์ด์ „์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค", "Decline Request": "์š”์ฒญ ๊ฑฐ์ ˆ", "Deep": "๊นŠ์€", "Deep Level CLX": "๋”ฅ ๋ ˆ๋ฒจ(CLX)", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index 06257766f..50e39a52a 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -391,6 +391,10 @@ "Deactivate User": "Desativar usuรกrio", "Deactive User": "Usuรกrio desativado", "Deadline for pre-evaluation": "Prazo para prรฉ-avaliaรงรฃo", + "Invalid date format, use YYYY-MM-DD": "Formato de data invรกlido, use AAAA-MM-DD", + "Date must be today or in the future": "A data deve ser hoje ou no futuro", + "Date must be on or after dateValue": "A data deve ser em ou apรณs {dateValue}", + "Date must be on or before dateValue": "A data deve ser em ou antes de {dateValue}", "Decline Request": "Recusar solicitaรงรฃo", "Deep": "Profundo", "Deep Level CLX": "Nรญvel Profundo (CLX)", diff --git a/messages/vi.json b/messages/vi.json index dbd805284..43ccd1f05 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -391,6 +391,10 @@ "Deactivate User": "Vรด hiแป‡u hรณa ngฦฐแปi dรนng", "Deactive User": "Ngฦฐแปi dรนng khรดng hoแบกt ฤ‘แป™ng", "Deadline for pre-evaluation": "Thแปi hแบกn ฤ‘รกnh giรก trฦฐแป›c", + "Invalid date format, use YYYY-MM-DD": "ฤแป‹nh dแบกng ngร y khรดng hแปฃp lแป‡, sแปญ dแปฅng YYYY-MM-DD", + "Date must be today or in the future": "Ngร y phแบฃi lร  hรดm nay hoแบทc trong tฦฐฦกng lai", + "Date must be on or after dateValue": "Ngร y phแบฃi lร  vร o hoแบทc sau {dateValue}", + "Date must be on or before dateValue": "Ngร y phแบฃi lร  vร o hoแบทc trฦฐแป›c {dateValue}", "Decline Request": "Yรชu cแบงu tแปซ chแป‘i", "Deep": "Sรขu", "Deep Level CLX": "Cแบฅp ฤ‘แป™ sรขu (CLX)", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index e8476c3b1..f385fd65d 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -391,6 +391,10 @@ "Deactivate User": "ๅœ็”จ็”จๆˆท", "Deactive User": "ไธๆดป่ทƒ็”จๆˆท", "Deadline for pre-evaluation": "้ข„่ฏ„ไผฐๆˆชๆญขๆ—ฅๆœŸ", + "Invalid date format, use YYYY-MM-DD": "ๆ—ฅๆœŸๆ ผๅผๆ— ๆ•ˆ๏ผŒไฝฟ็”จ YYYY-MM-DD", + "Date must be today or in the future": "ๆ—ฅๆœŸๅฟ…้กปๆ˜ฏไปŠๅคฉๆˆ–ๅฐ†ๆฅ", + "Date must be on or after dateValue": "ๆ—ฅๆœŸๅฟ…้กปๅœจ{dateValue}ๆˆ–ไน‹ๅŽ", + "Date must be on or before dateValue": "ๆ—ฅๆœŸๅฟ…้กปๅœจ{dateValue}ๆˆ–ไน‹ๅ‰", "Decline Request": "ๆ‹’็ป่ฏทๆฑ‚", "Deep": "ๆทฑ็š„", "Deep Level CLX": "ๆทฑๅฑ‚ (CLX)", diff --git a/messages/zh-TW.json b/messages/zh-TW.json index 13599e016..0ac40bcae 100644 --- a/messages/zh-TW.json +++ b/messages/zh-TW.json @@ -391,6 +391,10 @@ "Deactivate User": "ๅœ็”จ็”จๆˆถ", "Deactive User": "ไธๆดป่บ็”จๆˆถ", "Deadline for pre-evaluation": "่ฏ„ไผฐๅ‰็š„ๆˆชๆญขๆ—ฅๆœŸ", + "Invalid date format, use YYYY-MM-DD": "ๆ—ฅๆœŸๆ ผๅผ็„กๆ•ˆ๏ผŒ่ซ‹ไฝฟ็”จ YYYY-MM-DD", + "Date must be today or in the future": "ๆ—ฅๆœŸๅฟ…้ ˆๆ˜ฏไปŠๅคฉๆˆ–ๆœชไพ†", + "Date must be on or after dateValue": "ๆ—ฅๆœŸๅฟ…้ ˆๅœจ{dateValue}ๆˆ–ไน‹ๅพŒ", + "Date must be on or before dateValue": "ๆ—ฅๆœŸๅฟ…้ ˆๅœจ{dateValue}ๆˆ–ไน‹ๅ‰", "Decline Request": "ๆ‹’็ต•่ซ‹ๆฑ‚", "Deep": "ๆทฑ็š„", "Deep Level CLX": "ๆทฑๅฑค (CLX)", diff --git a/package.json b/package.json index a5ebe6a5d..5114f162d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "classnames": "^2.5.1", "country-list": "^2.4.1", "crypto-js": "^4.2.0", + "date-fns": "^4.1.0", "dotenv": "^17.4.2", "flag-icons": "^7.3.2", "he": "1.2.0", @@ -35,6 +36,7 @@ "react": "19.2.5", "react-bootstrap": "^2.10.10", "react-cookie": "^8.1.2", + "react-datepicker": "^9.1.0", "react-dom": "19.2.5", "rxjs": "^7.8.2" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0334ea81..f1edf1521 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: crypto-js: specifier: ^4.2.0 version: 4.2.0 + date-fns: + specifier: ^4.1.0 + version: 4.1.0 dotenv: specifier: ^17.4.2 version: 17.4.2 @@ -69,6 +72,9 @@ importers: react-cookie: specifier: ^8.1.2 version: 8.1.2(@types/react@19.2.14)(react@19.2.5) + react-datepicker: + specifier: ^9.1.0 + version: 9.1.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5) react-dom: specifier: 19.2.5 version: 19.2.5(react@19.2.5) @@ -132,7 +138,7 @@ importers: version: 5.31.5 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.15.32(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3) + version: 10.9.2(@swc/core@1.15.33(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3) tsc-files: specifier: ^1.1.4 version: 1.1.4(typescript@6.0.3) @@ -150,10 +156,6 @@ packages: resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} engines: {node: '>=6.9.0'} - '@babel/runtime@7.28.4': - resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} - engines: {node: '>=6.9.0'} - '@babel/runtime@7.29.2': resolution: {integrity: sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==} engines: {node: '>=6.9.0'} @@ -180,24 +182,28 @@ packages: engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [musl] '@biomejs/cli-linux-arm64@2.4.12': resolution: {integrity: sha512-tOwuCuZZtKi1jVzbk/5nXmIsziOB6yqN8c9r9QM0EJYPU6DpQWf11uBOSCfFKKM4H3d9ZoarvlgMfbcuD051Pw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [glibc] '@biomejs/cli-linux-x64-musl@2.4.12': resolution: {integrity: sha512-dwTIgZrGutzhkQCuvHynCkyW6hJxUuyZqKKO0YNfaS2GUoRO+tOvxXZqZB6SkWAOdfZTzwaw8IEdUnIkHKHoew==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [musl] '@biomejs/cli-linux-x64@2.4.12': resolution: {integrity: sha512-8pFeAnLU9QdW9jCIslB/v82bI0lhBmz2ZAKc8pVMFPO0t0wAHsoEkrUQUbMkIorTRIjbqyNZHA3lEXavsPWYSw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [glibc] '@biomejs/cli-win32-arm64@2.4.12': resolution: {integrity: sha512-B0DLnx0vA9ya/3v7XyCaP+/lCpnbWbMOfUFFve+xb5OxyYvdHaS55YsSddr228Y+JAFk58agCuZTsqNiw2a6ig==} @@ -371,6 +377,27 @@ packages: '@emnapi/runtime@1.10.0': resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} + '@floating-ui/core@1.7.5': + resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==} + + '@floating-ui/dom@1.7.6': + resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==} + + '@floating-ui/react-dom@2.1.8': + resolution: {integrity: sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + + '@floating-ui/react@0.27.19': + resolution: {integrity: sha512-31B8h5mm8YxotlE7/AU/PhNAl8eWxAmjL/v2QOxroDNkTFLk3Uu82u63N3b6TXa4EGJeeZLVcd/9AlNlVqzeog==} + peerDependencies: + react: '>=17.0.0' + react-dom: '>=17.0.0' + + '@floating-ui/utils@0.2.11': + resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==} + '@formatjs/fast-memoize@3.1.3': resolution: {integrity: sha512-Ocd1vPuD68rW6BJDuAOtnnc1GPeVepY5kZXML1psGVFQ+1Q8CfkftT3Tnam+Mxx97Pz08jIEDCotl/GV+Naccg==} @@ -413,89 +440,105 @@ packages: resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-arm@1.2.4': resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-ppc64@1.2.4': resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} cpu: [ppc64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-riscv64@1.2.4': resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-s390x@1.2.4': resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} cpu: [s390x] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-x64@1.2.4': resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linuxmusl-arm64@1.2.4': resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-libvips-linuxmusl-x64@1.2.4': resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-linux-arm64@0.34.5': resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-linux-arm@0.34.5': resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-linux-ppc64@0.34.5': resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [ppc64] os: [linux] + libc: [glibc] '@img/sharp-linux-riscv64@0.34.5': resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [riscv64] os: [linux] + libc: [glibc] '@img/sharp-linux-s390x@0.34.5': resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [s390x] os: [linux] + libc: [glibc] '@img/sharp-linux-x64@0.34.5': resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-linuxmusl-arm64@0.34.5': resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-linuxmusl-x64@0.34.5': resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-wasm32@0.34.5': resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} @@ -520,6 +563,15 @@ packages: cpu: [x64] os: [win32] + '@internationalized/date@3.12.1': + resolution: {integrity: sha512-6IedsVWXyq4P9Tj+TxuU8WGWM70hYLl12nbYU8jkikVpa6WXapFazPUcHUMDMoWftIDE2ILDkFFte6W2nFCkRQ==} + + '@internationalized/number@3.6.6': + resolution: {integrity: sha512-iFgmQaXHE0vytNfpLZWOC2mEJCBRzcUxt53Xf/yCXG93lRvqas237i3r7X4RKMwO3txiyZD4mQjKAByFv6UGSQ==} + + '@internationalized/string@3.2.8': + resolution: {integrity: sha512-NdbMQUSfXLYIQol5VyMtinm9pZDciiMfN7RtmSuSB78io1hqwJ0naYfxyW6vgxWBkzWymQa/3uLDlbfmshtCaA==} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} @@ -550,24 +602,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@next/swc-linux-arm64-musl@16.2.4': resolution: {integrity: sha512-iVMMp14514u7Nup2umQS03nT/bN9HurK8ufylC3FZNykrwjtx7V1A7+4kvhbDSCeonTVqV3Txnv0Lu+m2oDXNg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@next/swc-linux-x64-gnu@16.2.4': resolution: {integrity: sha512-EZOvm1aQWgnI/N/xcWOlnS3RQBk0VtVav5Zo7n4p0A7UKyTDx047k8opDbXgBpHl4CulRqRfbw3QrX2w5UOXMQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@next/swc-linux-x64-musl@16.2.4': resolution: {integrity: sha512-h9FxsngCm9cTBf71AR4fGznDEDx1hS7+kSEiIRjq5kO1oXWm07DxVGZjCvk0SGx7TSjlUqhI8oOyz7NfwAdPoA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@next/swc-win32-arm64-msvc@16.2.4': resolution: {integrity: sha512-3NdJV5OXMSOeJYijX+bjaLge3mJBlh4ybydbT4GFoB/2hAojWHtMhl3CYlYoMrjPuodp0nzFVi4Tj2+WaMg+Ow==} @@ -613,36 +669,42 @@ packages: engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm-musl@2.5.6': resolution: {integrity: sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==} engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [musl] '@parcel/watcher-linux-arm64-glibc@2.5.6': resolution: {integrity: sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm64-musl@2.5.6': resolution: {integrity: sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [musl] '@parcel/watcher-linux-x64-glibc@2.5.6': resolution: {integrity: sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-x64-musl@2.5.6': resolution: {integrity: sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [musl] '@parcel/watcher-win32-arm64@2.5.6': resolution: {integrity: sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==} @@ -669,11 +731,17 @@ packages: '@popperjs/core@2.11.8': resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} - '@react-aria/ssr@3.9.10': - resolution: {integrity: sha512-hvTm77Pf+pMBhuBm760Li0BVIO38jv1IBws1xFm1NoL26PU+fe+FMW5+VZWyANR6nYL65joaJKZqOdTQMkO9IQ==} + '@react-aria/ssr@3.10.0': + resolution: {integrity: sha512-mnelvACtfNWWKFCT1YHebxJRmfBmmANGwHQhCFPByMVTx1L8RumcaLxChYkE87g2KPuP5xX2il/oRn1DytW+qQ==} engines: {node: '>= 12'} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + + '@react-types/shared@3.34.0': + resolution: {integrity: sha512-gp6xo/s2lX54AlTjOiqwDnxA7UW79BNvI9dB9pr3LZTzRKCd1ZA+ZbgKw/ReIiWuvvVw/8QFJpnqeeFyLocMcQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@restart/hooks@0.4.16': resolution: {integrity: sha512-f7aCv7c+nU/3mF7NWLtVVr0Ra80RqsO89hO72r+Y/nvQr5+q0UFGkocElTH6MJApvReVh6JHUFYn2cw1WdHF3w==} @@ -702,80 +770,86 @@ packages: resolution: {integrity: sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==} engines: {node: '>=18'} - '@swc/core-darwin-arm64@1.15.32': - resolution: {integrity: sha512-/YWMvJDPu+AAwuUsM2G+DNQ/7zhodURGzdQyewEqcvgklAdDHs3LwQmLLnyn6SJl8DT8UOxkbzK+D1PmPeelRg==} + '@swc/core-darwin-arm64@1.15.33': + resolution: {integrity: sha512-N+L0uXhuO7FIfzqwgxmzv0zIpV0qEp8wPX3QQs2p4atjMoywup2JTeDlXPw+z9pWJGCae3JjM+tZ6myclI+2gA==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] - '@swc/core-darwin-x64@1.15.32': - resolution: {integrity: sha512-KOTXJXdAhWL+hZ77MYP3z+4pcMFaQhQ74yqyN1uz093q0YnbxpqMtYpPISbYvMHzVRNNx5kN+9RZAXEaadhWVA==} + '@swc/core-darwin-x64@1.15.33': + resolution: {integrity: sha512-/Il4QHSOhV4FekbsDtkrNmKbsX26oSysvgrRswa/RYOHXAkwXDbB4jaeKq6PsJLSPkzJ2KzQ061gtBnk0vNHfA==} engines: {node: '>=10'} cpu: [x64] os: [darwin] - '@swc/core-linux-arm-gnueabihf@1.15.32': - resolution: {integrity: sha512-oOoxLweljlc0A4X8ybsgxV7cVaYTwBOg2iMDJcFR3Sr48C+lsv9VzSmqdK/IVIXF4W4GjLc3VqTAdSMXlfVLuQ==} + '@swc/core-linux-arm-gnueabihf@1.15.33': + resolution: {integrity: sha512-C64hBnBxq4viOPQ8hlx+2lJ23bzZBGnjw7ryALmS+0Q3zHmwO8lw1/DArLENw4Q18/0w5wdEO1k3m1wWNtKGqQ==} engines: {node: '>=10'} cpu: [arm] os: [linux] - '@swc/core-linux-arm64-gnu@1.15.32': - resolution: {integrity: sha512-oDzEkdl6D6BAWdMtU5KGO7y3HR5fJcvByNLyEk9+ugj8nP5Ovb7P4kBcStBXc4MPExFGQryehiINMlmY8HlclA==} + '@swc/core-linux-arm64-gnu@1.15.33': + resolution: {integrity: sha512-TRJfnJbX3jqpxRDRoieMzRiCBS5jOmXNb3iQXmcgjFEHKLnAgK1RZRU8Cq1MsPqO4jAJp/ld1G4O3fXuxv85uw==} engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [glibc] - '@swc/core-linux-arm64-musl@1.15.32': - resolution: {integrity: sha512-omcqjoZP/b8D8PuczVoRwJieC6ibj7qIxTftNYokz4/aSmKFHvsd7nIFfPk5ZvtzncbH4AY7+Dkr/Lp2gWxYeA==} + '@swc/core-linux-arm64-musl@1.15.33': + resolution: {integrity: sha512-il7tYM+CpUNzieQbwAjFT1P8zqAhmGWNAGhQZBnxurXZ0aNn+5nqYFTEUKNZl7QibtT0uQXzTZrNGHCIj6Y1Og==} engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [musl] - '@swc/core-linux-ppc64-gnu@1.15.32': - resolution: {integrity: sha512-KGkTMyz/Tbn3PBNu0AVZ4GTDFKnICrYcTiNPZq8DrvK42pnFsf3GNDrIG9E5AtQlTmC0YigkWKmu0eMcfTrmgA==} + '@swc/core-linux-ppc64-gnu@1.15.33': + resolution: {integrity: sha512-ZtNBwN0Z7CFj9Il0FcPaKdjgP7URyKu/3RfH46vq+0paOBqLj4NYldD6Qo//Duif/7IOtAraUfDOmp0PLAufog==} engines: {node: '>=10'} cpu: [ppc64] os: [linux] + libc: [glibc] - '@swc/core-linux-s390x-gnu@1.15.32': - resolution: {integrity: sha512-G3Aa4tVS/3OGZBkoNIwUF9F6RAy+Osb4GOlo62SinLmDiErz/ykmM7KH0wkz6l9kM8jJq1HyAM6atJTUEbBk7g==} + '@swc/core-linux-s390x-gnu@1.15.33': + resolution: {integrity: sha512-De1IyajoOmhOYYjw/lx66bKlyDpHZTueqwpDrWgf5O7T6d1ODeJJO9/OqMBmrBQc5C+dNnlmIufHsp4QVCWufA==} engines: {node: '>=10'} cpu: [s390x] os: [linux] + libc: [glibc] - '@swc/core-linux-x64-gnu@1.15.32': - resolution: {integrity: sha512-ERsjfGcj6CBmj3vJnGDO8m8rTvw6RqMcWo1dogOtNx3/+/0+NNpJiXDobJrr1GwInI/BHAEkvSFIH6d2LqPcUQ==} + '@swc/core-linux-x64-gnu@1.15.33': + resolution: {integrity: sha512-mGTH0YxmUN+x6vRN/I6NOk5X0ogNktkwPnJ94IMvR7QjhRDwL0O8RXEDhyUM0YtwWrryBOqaJQBX4zruxEPRGw==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [glibc] - '@swc/core-linux-x64-musl@1.15.32': - resolution: {integrity: sha512-N4Ggahe/8SUbTX50P6EdhbW9YWcgbZVb52R4cq6MK+zsoMjRq7rGvV5ztA05QnbaCYqMYx8rTY7KAIA3Crdo4Q==} + '@swc/core-linux-x64-musl@1.15.33': + resolution: {integrity: sha512-hj628ZkSEJf6zMf5VMbYrG2O6QqyTIp2qwY6VlCjvIa9lAEZ5c2lfPblCLVGYubTeLJDxadLB/CxqQYOQABeEQ==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [musl] - '@swc/core-win32-arm64-msvc@1.15.32': - resolution: {integrity: sha512-01yN0o9jvo8xBTP12aPK2wW8b41jmOlGbDDlAnoynotc4pO6xA0zby9f1z6j++qXDpGBttLySq1omgVrlQKYcw==} + '@swc/core-win32-arm64-msvc@1.15.33': + resolution: {integrity: sha512-GV2oohtN2/5+KSccl86VULu3aT+LrISC8uzgSq0FRnikpD+Zwc+sBlXmoKQ+Db6jI57ITUOIB8jRkdGMABC29g==} engines: {node: '>=10'} cpu: [arm64] os: [win32] - '@swc/core-win32-ia32-msvc@1.15.32': - resolution: {integrity: sha512-fLagI9XZYNpTcmlqAcp3KBtmj7E19WCmYD80Jxj1Kn5tGNa7yxNLd3NNdWxuZGUPl5iC0/KqZru7g08gF6Fsrw==} + '@swc/core-win32-ia32-msvc@1.15.33': + resolution: {integrity: sha512-gtyvzSNR8DHKfFEA2uqb8Ld1myqi6uEg2jyeUq3ikn5ytYs7H8RpZYC8mdy4NXr8hfcdJfCLXPlYaqqfBXpoEQ==} engines: {node: '>=10'} cpu: [ia32] os: [win32] - '@swc/core-win32-x64-msvc@1.15.32': - resolution: {integrity: sha512-gbc2bQ/T2CiR+w0OvcVKwLOFAcPZBvmWmolbwpg1E8UrpeC03DGtyMUApOHNXNYWA3SHFrYXCQtosrcMza1YFg==} + '@swc/core-win32-x64-msvc@1.15.33': + resolution: {integrity: sha512-d6fRqQSkJI+kmMEBWaDQ7TMl8+YjLYbwRUPZQ9DY0ORBJeTzOrG0twvfvlZ2xgw6jA0ScQKgfBm4vHLSLl5Hqg==} engines: {node: '>=10'} cpu: [x64] os: [win32] - '@swc/core@1.15.32': - resolution: {integrity: sha512-/eWL0n43D64QWEUHLtTE+jDqjkJhyidjkDhv6f0uJohOUAhywxQ9wXYp845DNNds0JpCdI4Uo0a9bl+vbXf+ew==} + '@swc/core@1.15.33': + resolution: {integrity: sha512-jOlwnFV2xhuuZeAUILGFULeR6vDPfijEJ57evfocwznQldLU3w2cZ9bSDryY9ip+AsM3r1NJKzf47V2NXebkeQ==} engines: {node: '>=10'} peerDependencies: '@swc/helpers': '>=0.5.17' @@ -863,8 +937,8 @@ packages: '@types/tmp@0.2.6': resolution: {integrity: sha512-chhaNf2oKHlRkDGt+tiKE2Z5aJ6qalm7Z9rlLdBwmOiAAf09YQvvoLXjWK4HWPF1xU/fqvMgfNfpVoBscA/tKA==} - '@types/warning@3.0.3': - resolution: {integrity: sha512-D1XC7WK8K+zZEveUPY+cf4+kgauk8N4eHr/XIHXGlGYkHLud6hK9lYfZk1ry1TNh798cZUCgb6MqGEG8DkJt6Q==} + '@types/warning@3.0.4': + resolution: {integrity: sha512-CqN8MnISMwQbLJXO3doBAV4Yw9hx9/Pyr2rZ78+NfaCnhyRA/nKrpyk6E7mKw17ZOaQdLpK9GiUjrqLzBlN3sg==} '@types/yauzl@2.10.3': resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} @@ -873,18 +947,15 @@ packages: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true - acorn-walk@8.3.4: - resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} + acorn-walk@8.3.5: + resolution: {integrity: sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==} engines: {node: '>=0.4.0'} - acorn@8.15.0: - resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + acorn@8.16.0: + resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==} engines: {node: '>=0.4.0'} hasBin: true - ajv@8.17.1: - resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} - ajv@8.20.0: resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} @@ -917,6 +988,10 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + aria-hidden@1.2.6: + resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} + engines: {node: '>=10'} + array-ify@1.0.0: resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} @@ -943,8 +1018,8 @@ packages: base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - baseline-browser-mapping@2.10.21: - resolution: {integrity: sha512-Q+rUQ7Uz8AHM7DEaNdwvfFCTq7a43lNTzuS94eiWqwyxfV/wJv+oUivef51T91mmRY4d4A1u9rcSvkeufCVXlA==} + baseline-browser-mapping@2.10.27: + resolution: {integrity: sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==} engines: {node: '>=6.0.0'} hasBin: true @@ -984,8 +1059,8 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - caniuse-lite@1.0.30001790: - resolution: {integrity: sha512-bOoxfJPyYo+ds6W0YfptaCWbFnJYjh2Y1Eow5lRv+vI2u8ganPZqNm1JwNh0t2ELQCqIWg4B3dWEusgAmsoyOw==} + caniuse-lite@1.0.30001791: + resolution: {integrity: sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==} caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} @@ -1024,6 +1099,10 @@ packages: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1095,14 +1174,6 @@ packages: core-util-is@1.0.2: resolution: {integrity: sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==} - cosmiconfig-typescript-loader@6.2.0: - resolution: {integrity: sha512-GEN39v7TgdxgIoNcdkRE3uiAzQt3UXLyHbRHD6YoL048XAeOomyxaP+Hh/+2C6C2wYjxJ2onhJcsQp+L4YEkVQ==} - engines: {node: '>=v18'} - peerDependencies: - '@types/node': '*' - cosmiconfig: '>=9' - typescript: '>=5' - cosmiconfig-typescript-loader@6.3.0: resolution: {integrity: sha512-Akr82WH1Wfqatyiqpj8HDkO2o2KmJRu1FhKfSNJP3K4IdXwHfEyL7MOb62i1AGQVLtIQM+iCE9CGOtrfhR+mmA==} engines: {node: '>=v18'} @@ -1111,15 +1182,6 @@ packages: cosmiconfig: '>=9' typescript: '>=5' - cosmiconfig@9.0.0: - resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} - engines: {node: '>=14'} - peerDependencies: - typescript: '>=4.9.5' - peerDependenciesMeta: - typescript: - optional: true - cosmiconfig@9.0.1: resolution: {integrity: sha512-hr4ihw+DBqcvrsEDioRO31Z17x71pUYoNe/4h6Z0wB72p7MU7/9gH8Q3s12NFhHPfYBBOV3qyfUxmr/Yn3shnQ==} engines: {node: '>=14'} @@ -1158,6 +1220,9 @@ packages: resolution: {integrity: sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==} engines: {node: '>=0.10'} + date-fns@4.1.0: + resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} + dayjs@1.11.20: resolution: {integrity: sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==} @@ -1190,15 +1255,15 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} - diff@4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + diff@4.0.4: + resolution: {integrity: sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==} engines: {node: '>=0.3.1'} dom-helpers@5.2.1: resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==} - dom-serializer@3.0.0: - resolution: {integrity: sha512-x+9D6nkC8tdXOQUS32egtZpZFLP90+HBZmWjuT920srbJvD/zPgFB9t4k3pEhlw5BQrXStQtRc1Y1zuriXk+Nw==} + dom-serializer@3.1.1: + resolution: {integrity: sha512-4MEa38/QexBob6gFNwu+EGdWvhJ1OKuNwdYY3Y3NyeWDQfnGeDYQUDfIRzWu5B5gsv03so2Uxd28YC6zrsx3Lw==} engines: {node: '>=20.19.0'} domelementtype@3.0.0: @@ -1682,8 +1747,8 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - nanoid@3.3.11: - resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + nanoid@3.3.12: + resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true @@ -1888,6 +1953,12 @@ packages: resolution: {integrity: sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==} engines: {node: '>=0.6'} + react-aria@3.48.0: + resolution: {integrity: sha512-jQjd4rBEIMqecBaAKYJbVGK6EqIHLa5znVQ7jwFyK5vCyljoj6KhgtiahmcIPsG5vG5vEDLw+ba+bEWn6A2P4w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-bootstrap@2.10.10: resolution: {integrity: sha512-gMckKUqn8aK/vCnfwoBpBVFUGT9SVQxwsYrp9yDHt0arXMamxALerliKBxr1TPbntirK/HGrUAHYbAeQTa9GHQ==} peerDependencies: @@ -1903,6 +1974,16 @@ packages: peerDependencies: react: '>= 16.3.0' + react-datepicker@9.1.0: + resolution: {integrity: sha512-lOp+m5bc+ttgtB5MHEjwiVu4nlp4CvJLS/PG1OiOe5pmg9kV73pEqO8H0Geqvg2E8gjqTaL9eRhSe+ZpeKP3nA==} + peerDependencies: + date-fns-tz: ^3.0.0 + react: ^16.9.0 || ^17 || ^18 || ^19 || ^19.0.0-rc + react-dom: ^16.9.0 || ^17 || ^18 || ^19 || ^19.0.0-rc + peerDependenciesMeta: + date-fns-tz: + optional: true + react-dom@19.2.5: resolution: {integrity: sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag==} peerDependencies: @@ -1922,6 +2003,11 @@ packages: react-property@2.0.2: resolution: {integrity: sha512-+PbtI3VuDV0l6CleQMsx2gtK0JZbZKbpdu5ynr+lbsuvtmgbNcS3VM0tuY2QjFNOcWxvXeHjDpy42RO+4U2rug==} + react-stately@3.46.0: + resolution: {integrity: sha512-OdxhWvHgs2L4OJGIs7hnuTr5WjjMM6enhNEAMRqiekhF8+ITvA2LRwNftOZwcogaoCslGYq5S2VQTQwnm0GbCA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-transition-group@4.4.5: resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==} peerDependencies: @@ -2092,6 +2178,9 @@ packages: os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android] hasBin: true + tabbable@6.4.0: + resolution: {integrity: sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==} + text-extensions@2.4.0: resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} engines: {node: '>=8'} @@ -2102,10 +2191,6 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - tinyexec@1.1.1: - resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==} - engines: {node: '>=18'} - tinyexec@1.1.2: resolution: {integrity: sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==} engines: {node: '>=18'} @@ -2203,9 +2288,13 @@ packages: peerDependencies: react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0 + use-sync-external-store@1.6.0: + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} - deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true v8-compile-cache-lib@3.0.1: @@ -2241,8 +2330,8 @@ packages: yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - yaml@2.8.3: - resolution: {integrity: sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==} + yaml@2.8.4: + resolution: {integrity: sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==} engines: {node: '>= 14.6'} hasBin: true @@ -2275,8 +2364,6 @@ snapshots: '@babel/helper-validator-identifier@7.28.5': {} - '@babel/runtime@7.28.4': {} - '@babel/runtime@7.29.2': {} '@biomejs/biome@2.4.12': @@ -2350,7 +2437,7 @@ snapshots: '@commitlint/config-validator@19.8.1': dependencies: '@commitlint/types': 19.8.1 - ajv: 8.17.1 + ajv: 8.20.0 '@commitlint/config-validator@20.5.0': dependencies: @@ -2416,8 +2503,8 @@ snapshots: '@commitlint/resolve-extends': 19.8.1 '@commitlint/types': 19.8.1 chalk: 5.6.2 - cosmiconfig: 9.0.0(typescript@6.0.3) - cosmiconfig-typescript-loader: 6.2.0(@types/node@25.6.0)(cosmiconfig@9.0.0(typescript@6.0.3))(typescript@6.0.3) + cosmiconfig: 9.0.1(typescript@6.0.3) + cosmiconfig-typescript-loader: 6.3.0(@types/node@25.6.0)(cosmiconfig@9.0.1(typescript@6.0.3))(typescript@6.0.3) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -2574,6 +2661,31 @@ snapshots: tslib: 2.8.1 optional: true + '@floating-ui/core@1.7.5': + dependencies: + '@floating-ui/utils': 0.2.11 + + '@floating-ui/dom@1.7.6': + dependencies: + '@floating-ui/core': 1.7.5 + '@floating-ui/utils': 0.2.11 + + '@floating-ui/react-dom@2.1.8(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': + dependencies: + '@floating-ui/dom': 1.7.6 + react: 19.2.5 + react-dom: 19.2.5(react@19.2.5) + + '@floating-ui/react@0.27.19(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': + dependencies: + '@floating-ui/react-dom': 2.1.8(react-dom@19.2.5(react@19.2.5))(react@19.2.5) + '@floating-ui/utils': 0.2.11 + react: 19.2.5 + react-dom: 19.2.5(react@19.2.5) + tabbable: 6.4.0 + + '@floating-ui/utils@0.2.11': {} + '@formatjs/fast-memoize@3.1.3': {} '@formatjs/icu-messageformat-parser@3.5.6': @@ -2683,6 +2795,18 @@ snapshots: '@img/sharp-win32-x64@0.34.5': optional: true + '@internationalized/date@3.12.1': + dependencies: + '@swc/helpers': 0.5.21 + + '@internationalized/number@3.6.6': + dependencies: + '@swc/helpers': 0.5.21 + + '@internationalized/string@3.2.8': + dependencies: + '@swc/helpers': 0.5.21 + '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/sourcemap-codec@1.5.5': {} @@ -2782,10 +2906,16 @@ snapshots: '@popperjs/core@2.11.8': {} - '@react-aria/ssr@3.9.10(react@19.2.5)': + '@react-aria/ssr@3.10.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': dependencies: '@swc/helpers': 0.5.21 react: 19.2.5 + react-aria: 3.48.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5) + react-dom: 19.2.5(react@19.2.5) + + '@react-types/shared@3.34.0(react@19.2.5)': + dependencies: + react: 19.2.5 '@restart/hooks@0.4.16(react@19.2.5)': dependencies: @@ -2801,9 +2931,9 @@ snapshots: dependencies: '@babel/runtime': 7.29.2 '@popperjs/core': 2.11.8 - '@react-aria/ssr': 3.9.10(react@19.2.5) + '@react-aria/ssr': 3.10.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5) '@restart/hooks': 0.5.1(react@19.2.5) - '@types/warning': 3.0.3 + '@types/warning': 3.0.4 dequal: 2.0.3 dom-helpers: 5.2.1 react: 19.2.5 @@ -2819,59 +2949,59 @@ snapshots: '@simple-libs/stream-utils@1.2.0': {} - '@swc/core-darwin-arm64@1.15.32': + '@swc/core-darwin-arm64@1.15.33': optional: true - '@swc/core-darwin-x64@1.15.32': + '@swc/core-darwin-x64@1.15.33': optional: true - '@swc/core-linux-arm-gnueabihf@1.15.32': + '@swc/core-linux-arm-gnueabihf@1.15.33': optional: true - '@swc/core-linux-arm64-gnu@1.15.32': + '@swc/core-linux-arm64-gnu@1.15.33': optional: true - '@swc/core-linux-arm64-musl@1.15.32': + '@swc/core-linux-arm64-musl@1.15.33': optional: true - '@swc/core-linux-ppc64-gnu@1.15.32': + '@swc/core-linux-ppc64-gnu@1.15.33': optional: true - '@swc/core-linux-s390x-gnu@1.15.32': + '@swc/core-linux-s390x-gnu@1.15.33': optional: true - '@swc/core-linux-x64-gnu@1.15.32': + '@swc/core-linux-x64-gnu@1.15.33': optional: true - '@swc/core-linux-x64-musl@1.15.32': + '@swc/core-linux-x64-musl@1.15.33': optional: true - '@swc/core-win32-arm64-msvc@1.15.32': + '@swc/core-win32-arm64-msvc@1.15.33': optional: true - '@swc/core-win32-ia32-msvc@1.15.32': + '@swc/core-win32-ia32-msvc@1.15.33': optional: true - '@swc/core-win32-x64-msvc@1.15.32': + '@swc/core-win32-x64-msvc@1.15.33': optional: true - '@swc/core@1.15.32(@swc/helpers@0.5.21)': + '@swc/core@1.15.33(@swc/helpers@0.5.21)': dependencies: '@swc/counter': 0.1.3 '@swc/types': 0.1.26 optionalDependencies: - '@swc/core-darwin-arm64': 1.15.32 - '@swc/core-darwin-x64': 1.15.32 - '@swc/core-linux-arm-gnueabihf': 1.15.32 - '@swc/core-linux-arm64-gnu': 1.15.32 - '@swc/core-linux-arm64-musl': 1.15.32 - '@swc/core-linux-ppc64-gnu': 1.15.32 - '@swc/core-linux-s390x-gnu': 1.15.32 - '@swc/core-linux-x64-gnu': 1.15.32 - '@swc/core-linux-x64-musl': 1.15.32 - '@swc/core-win32-arm64-msvc': 1.15.32 - '@swc/core-win32-ia32-msvc': 1.15.32 - '@swc/core-win32-x64-msvc': 1.15.32 + '@swc/core-darwin-arm64': 1.15.33 + '@swc/core-darwin-x64': 1.15.33 + '@swc/core-linux-arm-gnueabihf': 1.15.33 + '@swc/core-linux-arm64-gnu': 1.15.33 + '@swc/core-linux-arm64-musl': 1.15.33 + '@swc/core-linux-ppc64-gnu': 1.15.33 + '@swc/core-linux-s390x-gnu': 1.15.33 + '@swc/core-linux-x64-gnu': 1.15.33 + '@swc/core-linux-x64-musl': 1.15.33 + '@swc/core-win32-arm64-msvc': 1.15.33 + '@swc/core-win32-ia32-msvc': 1.15.33 + '@swc/core-win32-x64-msvc': 1.15.33 '@swc/helpers': 0.5.21 '@swc/counter@0.1.3': {} @@ -2943,7 +3073,7 @@ snapshots: '@types/tmp@0.2.6': {} - '@types/warning@3.0.3': {} + '@types/warning@3.0.4': {} '@types/yauzl@2.10.3': dependencies: @@ -2955,18 +3085,11 @@ snapshots: jsonparse: 1.3.1 through: 2.3.8 - acorn-walk@8.3.4: + acorn-walk@8.3.5: dependencies: - acorn: 8.15.0 + acorn: 8.16.0 - acorn@8.15.0: {} - - ajv@8.17.1: - dependencies: - fast-deep-equal: 3.1.3 - fast-uri: 3.1.0 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 + acorn@8.16.0: {} ajv@8.20.0: dependencies: @@ -2995,6 +3118,10 @@ snapshots: argparse@2.0.1: {} + aria-hidden@1.2.6: + dependencies: + tslib: 2.8.1 + array-ify@1.0.0: {} asn1@0.2.6: @@ -3013,7 +3140,7 @@ snapshots: base64-js@1.5.1: {} - baseline-browser-mapping@2.10.21: {} + baseline-browser-mapping@2.10.27: {} bcrypt-pbkdf@1.0.2: dependencies: @@ -3048,7 +3175,7 @@ snapshots: callsites@3.1.0: {} - caniuse-lite@1.0.30001790: {} + caniuse-lite@1.0.30001791: {} caseless@0.12.0: {} @@ -3086,6 +3213,8 @@ snapshots: strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + clsx@2.1.1: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -3150,13 +3279,6 @@ snapshots: core-util-is@1.0.2: {} - cosmiconfig-typescript-loader@6.2.0(@types/node@25.6.0)(cosmiconfig@9.0.0(typescript@6.0.3))(typescript@6.0.3): - dependencies: - '@types/node': 25.6.0 - cosmiconfig: 9.0.0(typescript@6.0.3) - jiti: 2.6.1 - typescript: 6.0.3 - cosmiconfig-typescript-loader@6.3.0(@types/node@25.6.0)(cosmiconfig@9.0.1(typescript@6.0.3))(typescript@6.0.3): dependencies: '@types/node': 25.6.0 @@ -3164,15 +3286,6 @@ snapshots: jiti: 2.6.1 typescript: 6.0.3 - cosmiconfig@9.0.0(typescript@6.0.3): - dependencies: - env-paths: 2.2.1 - import-fresh: 3.3.1 - js-yaml: 4.1.1 - parse-json: 5.2.0 - optionalDependencies: - typescript: 6.0.3 - cosmiconfig@9.0.1(typescript@6.0.3): dependencies: env-paths: 2.2.1 @@ -3245,6 +3358,8 @@ snapshots: dependencies: assert-plus: 1.0.0 + date-fns@4.1.0: {} + dayjs@1.11.20: {} debug@3.2.7(supports-color@8.1.1): @@ -3265,14 +3380,14 @@ snapshots: detect-libc@2.1.2: {} - diff@4.0.2: {} + diff@4.0.4: {} dom-helpers@5.2.1: dependencies: '@babel/runtime': 7.29.2 csstype: 3.2.3 - dom-serializer@3.0.0: + dom-serializer@3.1.1: dependencies: domelementtype: 3.0.0 domhandler: 6.0.1 @@ -3286,7 +3401,7 @@ snapshots: domutils@4.0.2: dependencies: - dom-serializer: 3.0.0 + dom-serializer: 3.1.1 domelementtype: 3.0.0 domhandler: 6.0.1 @@ -3644,8 +3759,8 @@ snapshots: listr2: 9.0.5 picomatch: 4.0.4 string-argv: 0.3.2 - tinyexec: 1.1.1 - yaml: 2.8.3 + tinyexec: 1.1.2 + yaml: 2.8.4 listr2@9.0.5: dependencies: @@ -3727,7 +3842,7 @@ snapshots: ms@2.1.3: {} - nanoid@3.3.11: {} + nanoid@3.3.12: {} negotiator@1.0.0: {} @@ -3752,7 +3867,7 @@ snapshots: dependencies: '@formatjs/intl-localematcher': 0.8.5 '@parcel/watcher': 2.5.6 - '@swc/core': 1.15.32(@swc/helpers@0.5.21) + '@swc/core': 1.15.33(@swc/helpers@0.5.21) icu-minify: 4.11.0 negotiator: 1.0.0 next: 16.2.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -3774,8 +3889,8 @@ snapshots: dependencies: '@next/env': 16.2.4 '@swc/helpers': 0.5.15 - baseline-browser-mapping: 2.10.21 - caniuse-lite: 1.0.30001790 + baseline-browser-mapping: 2.10.27 + caniuse-lite: 1.0.30001791 postcss: 8.4.31 react: 19.2.5 react-dom: 19.2.5(react@19.2.5) @@ -3868,7 +3983,7 @@ snapshots: postcss@8.4.31: dependencies: - nanoid: 3.3.11 + nanoid: 3.3.12 picocolors: 1.1.1 source-map-js: 1.2.1 @@ -3915,9 +4030,23 @@ snapshots: dependencies: side-channel: 1.1.0 + react-aria@3.48.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5): + dependencies: + '@internationalized/date': 3.12.1 + '@internationalized/number': 3.6.6 + '@internationalized/string': 3.2.8 + '@react-types/shared': 3.34.0(react@19.2.5) + '@swc/helpers': 0.5.21 + aria-hidden: 1.2.6 + clsx: 2.1.1 + react: 19.2.5 + react-dom: 19.2.5(react@19.2.5) + react-stately: 3.46.0(react@19.2.5) + use-sync-external-store: 1.6.0(react@19.2.5) + react-bootstrap@2.10.10(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5): dependencies: - '@babel/runtime': 7.28.4 + '@babel/runtime': 7.29.2 '@restart/hooks': 0.4.16(react@19.2.5) '@restart/ui': 1.9.4(react-dom@19.2.5(react@19.2.5))(react@19.2.5) '@types/prop-types': 15.7.15 @@ -3944,6 +4073,14 @@ snapshots: transitivePeerDependencies: - '@types/react' + react-datepicker@9.1.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5): + dependencies: + '@floating-ui/react': 0.27.19(react-dom@19.2.5(react@19.2.5))(react@19.2.5) + clsx: 2.1.1 + date-fns: 4.1.0 + react: 19.2.5 + react-dom: 19.2.5(react@19.2.5) + react-dom@19.2.5(react@19.2.5): dependencies: react: 19.2.5 @@ -3959,6 +4096,16 @@ snapshots: react-property@2.0.2: {} + react-stately@3.46.0(react@19.2.5): + dependencies: + '@internationalized/date': 3.12.1 + '@internationalized/number': 3.6.6 + '@internationalized/string': 3.2.8 + '@react-types/shared': 3.34.0(react@19.2.5) + '@swc/helpers': 0.5.21 + react: 19.2.5 + use-sync-external-store: 1.6.0(react@19.2.5) + react-transition-group@4.4.5(react-dom@19.2.5(react@19.2.5))(react@19.2.5): dependencies: '@babel/runtime': 7.29.2 @@ -4149,14 +4296,14 @@ snapshots: systeminformation@5.31.5: {} + tabbable@6.4.0: {} + text-extensions@2.4.0: {} throttleit@1.0.1: {} through@2.3.8: {} - tinyexec@1.1.1: {} - tinyexec@1.1.2: {} tldts-core@6.1.86: {} @@ -4173,7 +4320,7 @@ snapshots: tree-kill@1.2.2: {} - ts-node@10.9.2(@swc/core@1.15.32(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3): + ts-node@10.9.2(@swc/core@1.15.33(@swc/helpers@0.5.21))(@types/node@25.6.0)(typescript@6.0.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.12 @@ -4181,17 +4328,17 @@ snapshots: '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 '@types/node': 25.6.0 - acorn: 8.15.0 - acorn-walk: 8.3.4 + acorn: 8.16.0 + acorn-walk: 8.3.5 arg: 4.1.3 create-require: 1.1.1 - diff: 4.0.2 + diff: 4.0.4 make-error: 1.3.6 typescript: 6.0.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: - '@swc/core': 1.15.32(@swc/helpers@0.5.21) + '@swc/core': 1.15.33(@swc/helpers@0.5.21) tsc-files@1.1.4(typescript@6.0.3): dependencies: @@ -4243,6 +4390,10 @@ snapshots: intl-messageformat: 11.2.3 react: 19.2.5 + use-sync-external-store@1.6.0(react@19.2.5): + dependencies: + react: 19.2.5 + uuid@8.3.2: {} v8-compile-cache-lib@3.0.1: {} @@ -4279,7 +4430,7 @@ snapshots: yallist@4.0.0: {} - yaml@2.8.3: {} + yaml@2.8.4: {} yargs-parser@21.1.1: {} diff --git a/src/app/[locale]/projects/detail/[id]/components/CreateClearingRequestModal.tsx b/src/app/[locale]/projects/detail/[id]/components/CreateClearingRequestModal.tsx index 5bac5c1d1..2759e7b62 100644 --- a/src/app/[locale]/projects/detail/[id]/components/CreateClearingRequestModal.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/CreateClearingRequestModal.tsx @@ -16,6 +16,7 @@ import { SelectUsersDialog, ShowInfoOnHover } from 'next-sw360' import { Dispatch, type JSX, SetStateAction, useCallback, useEffect, useState } from 'react' import { Alert, Button, Col, Form, Modal, Row } from 'react-bootstrap' import { BsCheck2Square } from 'react-icons/bs' +import DateField from '@/components/DateField' import { ClearingRequestDetails, CreateClearingRequestPayload } from '@/object-types' import { ApiUtils, CommonUtils } from '@/utils/index' @@ -33,7 +34,6 @@ interface ClearingRequestDataMap { export default function CreateClearingRequestModal({ show, setShow, projectId, projectName }: Props): JSX.Element { const t = useTranslations('default') const [message, setMessage] = useState() - const [minDate, setMinDate] = useState('') const [variant, setVariant] = useState('success') const [reloadPage, setReloadPage] = useState(false) const [isDisabled, setIsDisabled] = useState(false) @@ -58,19 +58,6 @@ export default function CreateClearingRequestModal({ show, setShow, projectId, p status, ]) - useEffect(() => { - const calculateMinDate = () => { - const currentDate = new Date() - if (!isCritical) { - currentDate.setDate(currentDate.getDate() + 21) - } - return currentDate.toISOString().split('T')[0] - } - setMinDate(calculateMinDate()) - }, [ - isCritical, - ]) - const updateClearingTeamData = (user: ClearingRequestDataMap) => { const userEmails = Object.keys(user) setClearingTeamData(user) @@ -140,7 +127,6 @@ export default function CreateClearingRequestModal({ show, setShow, projectId, p const handleCloseDialog = () => { setShow(!show) - setMinDate('') setIsCritical(false) setIsDisabled(false) setShowMessage(false) @@ -309,30 +295,25 @@ export default function CreateClearingRequestModal({ show, setShow, projectId, p - - {t('Preferred Clearing Date')} : - - * - - - { + setCreateClearingRequestPayload({ + ...createClearingRequestPayload, + requestedClearingDate: normalized, + }) + }} + minDate={(() => { + const date = new Date() + if (!isCritical) { + date.setDate(date.getDate() + 21) + } + return date + })()} />
({}) const [dialogOpenClearingTeam, setDialogOpenClearingTeam] = useState(false) @@ -45,11 +45,6 @@ export default function EditClearingDecision({ status, ]) - useEffect(() => { - const currentDate = new Date() - setMinDate(currentDate.toISOString().split('T')[0]) - }, []) - const updateClearingTeamData = (user: ClearingRequestDataMap) => { const userEmails = Object.keys(user) setClearingTeamData(user) @@ -157,19 +152,19 @@ export default function EditClearingDecision({ {t('Agreed Clearing Date')}: - { + setUpdateClearingRequestPayload({ + ...updateClearingRequestPayload, + agreedClearingDate: normalized, + }) + }} + minDate={new Date()} /> diff --git a/src/app/[locale]/requests/clearingRequest/edit/[id]/components/ReopenClosedClearingRequestModal.tsx b/src/app/[locale]/requests/clearingRequest/edit/[id]/components/ReopenClosedClearingRequestModal.tsx index 527d20f56..37b2fa645 100644 --- a/src/app/[locale]/requests/clearingRequest/edit/[id]/components/ReopenClosedClearingRequestModal.tsx +++ b/src/app/[locale]/requests/clearingRequest/edit/[id]/components/ReopenClosedClearingRequestModal.tsx @@ -15,6 +15,7 @@ import { ShowInfoOnHover } from 'next-sw360' import { Dispatch, ReactNode, SetStateAction, useCallback, useEffect, useState } from 'react' import { Alert, Button, Col, Form, Modal, Row } from 'react-bootstrap' import { BsQuestionCircle } from 'react-icons/bs' +import DateField from '@/components/DateField' import { CreateClearingRequestPayload } from '@/object-types' interface Props { @@ -26,7 +27,6 @@ export default function ReopenClosedClearingRequestModal({ show, setShow }: Prop const t = useTranslations('default') const { status } = useSession() const [message, setMessage] = useState('') - const [minDate, setMinDate] = useState('') const [variant, setVariant] = useState('success') const [isCritical, setIsCritical] = useState(false) const [reloadPage, setReloadPage] = useState(false) @@ -47,19 +47,6 @@ export default function ReopenClosedClearingRequestModal({ show, setShow }: Prop status, ]) - useEffect(() => { - const calculateMinDate = () => { - const currentDate = new Date() - if (!isCritical) { - currentDate.setDate(currentDate.getDate() + 21) - } - return currentDate.toISOString().split('T')[0] - } - setMinDate(calculateMinDate()) - }, [ - isCritical, - ]) - const handleError = useCallback(() => { displayMessage('danger', t('Error when processing')) setReloadPage(true) @@ -85,7 +72,6 @@ export default function ReopenClosedClearingRequestModal({ show, setShow }: Prop const handleCloseDialog = () => { setShow(!show) - setMinDate('') setIsCritical(false) setIsDisabled(false) setShowMessage(false) @@ -174,30 +160,25 @@ export default function ReopenClosedClearingRequestModal({ show, setShow }: Prop - - {t('Preferred Clearing Date')} : - - * - - - { + setCreateClearingRequestPayload({ + ...createClearingRequestPayload, + requestedClearingDate: normalized, + }) + }} + minDate={(() => { + const date = new Date() + if (!isCritical) { + date.setDate(date.getDate() + 21) + } + return date + })()} />
{t('CVSS Date')} - { - e.target.type = 'date' - }} - onBlur={(e) => { - e.target.type = 'text' - }} + value={payload.cvssDate ?? ''} + onChange={(val) => + setPayload((prev) => ({ + ...prev, + cvssDate: val, + })) + } />
@@ -306,21 +304,18 @@ function VulnerabilityDetail({ > {t('Publish Date')} - { - e.target.type = 'date' - }} - onBlur={(e) => { - e.target.type = 'text' - }} + value={payload.publishDate ?? ''} + onChange={(val) => + setPayload((prev) => ({ + ...prev, + publishDate: val, + })) + } />
@@ -347,21 +342,18 @@ function VulnerabilityDetail({ > {t('Last External Update Date')} - { - e.target.type = 'date' - }} - onBlur={(e) => { - e.target.type = 'text' - }} + value={payload.lastExternalUpdateDate ?? ''} + onChange={(val) => + setPayload((prev) => ({ + ...prev, + lastExternalUpdateDate: val, + })) + } />
diff --git a/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx b/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx index b79636daf..7ea8c2f94 100644 --- a/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx +++ b/src/app/[locale]/vulnerabilities/edit/[id]/components/EditVulnerability.tsx @@ -174,9 +174,11 @@ function EditVulnerability({ vulnerabilityId }: { vulnerabilityId: string }): Re cwe: vulnerability?.cwe ? `CWE-${vulnerability?.cwe}` : undefined, extendedDescription: vulnerability?.extendedDescription, cvss: vulnerability?.cvss, - cvssTime: `${date}T${time}`, + cvssTime: `${vulnerability?.cvssDate ?? date}T${vulnerability?.cvssTime ?? time}`, publishDate: `${vulnerability?.publishDate ?? date}T${vulnerability?.publishTime ?? time}`, - lastExternalUpdate: `${date}T${time}`, + lastExternalUpdate: `${vulnerability?.lastExternalUpdateDate ?? date}T${ + vulnerability?.lastExternalUpdateTime ?? time + }`, impact: vulnerability?.impact, access: vulnerability?.access, cveReferences: vulnerability?.cveReferences ?? [], diff --git a/src/components/DateField.tsx b/src/components/DateField.tsx new file mode 100644 index 000000000..44cd63239 --- /dev/null +++ b/src/components/DateField.tsx @@ -0,0 +1,252 @@ +// Copyright (C) Siemens AG, 2026. Part of the SW360 Frontend Project. + +// This program and the accompanying materials are made +// available under the terms of the Eclipse Public License 2.0 +// which is available at https://www.eclipse.org/legal/epl-2.0/ + +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE + +'use client' + +import { format, isValid, parseISO } from 'date-fns' +import { useTranslations } from 'next-intl' +import { type JSX, useCallback, useEffect, useRef, useState } from 'react' +import DatePicker from 'react-datepicker' +import 'react-datepicker/dist/react-datepicker.css' + +interface DateFieldProps { + /** current value in YYYY-MM-DD format or empty string */ + value: string + /** called with normalized value (YYYY-MM-DD) or empty string when input is blurred */ + onChange: (normalized: string) => void + /** optional HTML id attribute */ + id?: string + /** optional HTML name attribute */ + name?: string + /** placeholder text; default is `YYYY-MM-DD` */ + placeholder?: string + /** additional classes applied to the `` element */ + className?: string + /** aria-label for the input if label is not provided */ + ariaLabel?: string + /** optional label displayed above the input */ + label?: string + /** minimum allowed date (inclusive); default is today. Pass null to allow any past date */ + minDate?: Date | null + /** maximum allowed date (inclusive); default is unlimited. Pass a Date to restrict future dates */ + maxDate?: Date | null +} + +/** + * Controlled date input with built-in validation and normalization. + * Accepts a loose text entry (slashed or dashed) and converts it to + * an ISO-like `YYYY-MM-DD` string when the field loses focus. If the + * user types an invalid date, the value reverts to the previous valid + * value and an error message is shown. + * + * Uses a plain text input with a calendar popup via react-datepicker. + */ +export default function DateField({ + value, + onChange, + id, + name, + placeholder = 'YYYY-MM-DD', + className = '', + ariaLabel, + label, + minDate = new Date(), + maxDate = null, +}: DateFieldProps): JSX.Element { + const t = useTranslations('default') + + const [date, setDate] = useState(value ?? '') + const [error, setError] = useState('') + const [calendarOpen, setCalendarOpen] = useState(false) + const wrapperRef = useRef(null) + + useEffect(() => { + setDate(value ?? '') + setError('') + }, [ + value, + ]) + + // Close calendar on outside click + useEffect(() => { + const handleClickOutside = (event: MouseEvent) => { + if (wrapperRef.current && !wrapperRef.current.contains(event.target as Node)) { + setCalendarOpen(false) + } + } + document.addEventListener('mousedown', handleClickOutside) + return () => document.removeEventListener('mousedown', handleClickOutside) + }, []) + + // Normalize date to YYYY-MM-DD + const normalize = useCallback((raw: string): string => { + if (!raw) return '' + const cleaned = raw.replace(/\//g, '-') + const m = cleaned.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/) + if (!m) return '' + const y = Number(m[1]) + const mo = Number(m[2]) + const d = Number(m[3]) + const dt = new Date(y, mo - 1, d) + if (Number.isNaN(dt.getTime()) || dt.getFullYear() !== y || dt.getMonth() !== mo - 1 || dt.getDate() !== d) { + return '' + } + return `${String(y).padStart(4, '0')}-${String(mo).padStart(2, '0')}-${String(d).padStart(2, '0')}` + }, []) + + const handleInputChange = (e: React.ChangeEvent): void => { + setDate(e.target.value) + setError('') + } + + const validateDateRange = (selectedDate: Date): string => { + const normalizedMin = minDate ? new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate()) : null + const normalizedMax = maxDate ? new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate()) : null + const normalizedSelected = new Date(selectedDate.getFullYear(), selectedDate.getMonth(), selectedDate.getDate()) + + if (normalizedMin && normalizedSelected < normalizedMin) { + const formattedMin = format(normalizedMin, 'yyyy-MM-dd') + return t('Date must be on or after dateValue', { + dateValue: formattedMin, + }) + } + + if (normalizedMax && normalizedSelected > normalizedMax) { + const formattedMax = format(normalizedMax, 'yyyy-MM-dd') + return t('Date must be on or before dateValue', { + dateValue: formattedMax, + }) + } + + return '' + } + + const handleInputBlur = (): void => { + if (calendarOpen) return + + const raw = (date ?? '').trim() + const normalized = normalize(raw) + if (normalized) { + const selectedDate = parseISO(normalized) + const validationError = validateDateRange(selectedDate) + + if (validationError) { + setError(validationError) + return + } + + if (normalized !== value) { + onChange(normalized) + } + setError('') + } else if (raw) { + setError(t('Invalid date format, use YYYY-MM-DD')) + } else { + if (value !== '') { + onChange('') + } + setError('') + } + } + + const handleCalendarSelect = (selected: Date | null): void => { + if (selected) { + const formatted = format(selected, 'yyyy-MM-dd') + setDate(formatted) + + const validationError = validateDateRange(selected) + if (validationError) { + setError(validationError) + } else { + setError('') + if (formatted !== value) { + onChange(formatted) + } + } + } + setCalendarOpen(false) + } + + const parseDate = (str: string): Date | null => { + if (!str) return null + const parsed = parseISO(str) + return isValid(parsed) ? parsed : null + } + + return ( + <> + {label && ( + + )} +
+ setCalendarOpen(true)} + autoComplete='off' + /> + {date && !error && ( + + )} + {calendarOpen && ( +
+ { + const normalizedDate = new Date(d.getFullYear(), d.getMonth(), d.getDate()) + const normalizedMin = minDate + ? new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate()) + : null + const normalizedMax = maxDate + ? new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate()) + : null + + if (normalizedMin && normalizedDate < normalizedMin) return false + if (normalizedMax && normalizedDate > normalizedMax) return false + return true + }} + /> +
+ )} +
+ {error &&
{error}
} + + ) +} diff --git a/src/components/ProjectAddSummary/component/Administration/Clearing.tsx b/src/components/ProjectAddSummary/component/Administration/Clearing.tsx index 5ad4ea435..88402818d 100644 --- a/src/components/ProjectAddSummary/component/Administration/Clearing.tsx +++ b/src/components/ProjectAddSummary/component/Administration/Clearing.tsx @@ -11,6 +11,7 @@ import { useTranslations } from 'next-intl' import { ShowInfoOnHover } from 'next-sw360' import { type JSX, useEffect } from 'react' +import DateField from '@/components/DateField' import { useConfigValue } from '@/contexts' import { ProjectPayload, UIConfigKeys } from '@/object-types' @@ -55,6 +56,8 @@ export default function Clearing({ projectPayload, setProjectPayload }: Props): }) } + // local state and validation are handled by DateField component + return ( <>
@@ -115,27 +118,19 @@ export default function Clearing({ projectPayload, setProjectPayload }: Props):
- - ) => { - e.target.type = 'date' - }} - onBlur={(e: React.FocusEvent) => { - e.target.type = 'text' + value={projectPayload.preevaluationDeadline ?? ''} + onChange={(normalized) => { + setProjectPayload({ + ...projectPayload, + preevaluationDeadline: normalized, + }) }} - name='preevaluationDeadline' - value={projectPayload.preevaluationDeadline} - onChange={updateInputField} />
@@ -147,12 +142,9 @@ export default function Clearing({ projectPayload, setProjectPayload }: Props): {t('Clearing summary')}