Skip to content

Modernization/dependencies frameworks - #2250

Open
ionwyn wants to merge 4 commits into
masterfrom
modernization/dependencies-frameworks
Open

ionwyn wants to merge 4 commits into
masterfrom
modernization/dependencies-frameworks

Conversation

@ionwyn

@ionwyn ionwyn commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Modernizes HETS dependencies and application frameworks, including .NET packages, React Bootstrap, React Router, Redux Toolkit, and Day.js. Adds locked dependency verification, portable API/client container builds, and GHCR-to-GitOps deployment workflows with signed image provenance checks.

The client update preserves status badge colors, displays query failures, keeps request activity accurate, and refreshes Home summary counts on return.

Verification

  • Client tests and production build passed.
  • Image release script tests passed.

@ionwyn
ionwyn requested review from rogene-bcgov and a balanced review from Copilot October 27, 2026 17:45
@ionwyn ionwyn self-assigned this Oct 27, 2026
@ionwyn ionwyn added enhancement .NET Pull requests that update .net code javascript Pull requests that update Javascript code labels Oct 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Dashboard freshness, query-error reporting, overlapping-request tracking, and status-badge styling regressions remain unresolved.

4 open issues
1 file not reviewed
  • client/package-lock.json: Generated file
What changed in this PR

Modernizes HETS dependencies and framework integrations across the .NET server and React client, with automated dependency maintenance and verification.

Changes:

  • Centralizes NuGet versions, adds lockfiles, and introduces verification, security-audit, and Dependabot workflows.
  • Updates client routing, Bootstrap components, and date handling.
  • Introduces Redux Toolkit and RTK Query for version state and dashboard counts, with supporting authentication tests.
File Description
Server/​HetsReport/​HetsReport.csproj Uses centrally managed package versions.
Server/​HetsImport/​HetsImport.csproj Uses centrally managed package versions.
Server/​HetsData/​packages.lock.json Records data-layer dependency resolutions.
Server/​HetsData/​HetsData.csproj Uses centrally managed package versions.
Server/​HetsCommon/​packages.lock.json Records shared-library dependency resolutions.
Server/​HetsCommon/​HetsCommon.csproj Uses centrally managed package versions.
Server/​HetsCommon.Tests/​packages.lock.json Records test dependency resolutions.
Server/​HetsCommon.Tests/​HetsCommon.Tests.csproj Uses centrally managed test packages.
Server/​HetsBceid/​packages.lock.json Records BCeID dependency resolutions.
Server/​HetsBceid/​HetsBceid.csproj Uses centrally managed package versions.
Server/​HetsApi/​HetsApi.csproj Uses centrally managed API packages.
Server/​Directory.Packages.props Centralizes versions and enables lockfiles.
client/​src/​sass/​main.scss Renames directional spacing utilities.
client/​src/​js/​views/​WcbCglCoverage.jsx Adopts Day.js and Bootstrap alignment classes.
client/​src/​js/​views/​Version.jsx Updates button spacing classes.
client/​src/​js/​views/​UsersDetail.jsx Updates popover components and alignment.
client/​src/​js/​views/​Users.jsx Updates input groups and alignment.
client/​src/​js/​views/​TopNav.jsx Adapts routing, popovers, and Redux connection.
client/​src/​js/​views/​TimeEntry.jsx Updates search-button alignment.
client/​src/​js/​views/​Rollover.jsx Updates accessibility and alignment classes.
client/​src/​js/​views/​Roles.jsx Updates toolbar alignment.
client/​src/​js/​views/​RentalRequestsDetail.jsx Adopts Day.js and updated spacing classes.
client/​src/​js/​views/​RentalRequests.jsx Migrates date filters to Day.js.
client/​src/​js/​views/​RentalAgreementsDetail.jsx Updates alignment and icon spacing.
client/​src/​js/​views/​ProjectsDetail.jsx Updates button spacing and alignment.
client/​src/​js/​views/​Projects.jsx Updates search-button alignment.
client/​src/​js/​views/​OwnersDetail.jsx Updates alignment and spacing classes.
client/​src/​js/​views/​Owners.jsx Updates search-button alignment.
client/​src/​js/​views/​Main.jsx Uses routing and session-reset adapters.
client/​src/​js/​views/​Home.jsx Fetches summary counts through RTK Query.
client/​src/​js/​views/​HiringReport.jsx Updates search-button alignment.
client/​src/​js/​views/​Footer.jsx Updates alignment and Redux connection.
client/​src/​js/​views/​EquipmentDetail.jsx Updates button spacing and alignment.
client/​src/​js/​views/​Equipment.jsx Adopts Day.js and updated alignment classes.
client/​src/​js/​views/​DistrictAdmin.jsx Updates transfer-button alignment.
client/​src/​js/​views/​dialogs/​TimeEntryDialog.jsx Migrates date checks and button spacing.
client/​src/​js/​views/​dialogs/​RentalRequestsEditDialog.jsx Uses Day.js for date validation.
client/​src/​js/​views/​dialogs/​RentalRequestsAddDialog.jsx Uses Day.js for date validation.
client/​src/​js/​views/​dialogs/​RentalRatesEditDialog.jsx Updates removal-button spacing.
client/​src/​js/​views/​dialogs/​RentalConditionsEditDialog.jsx Updates removal-button spacing.
client/​src/​js/​views/​dialogs/​EquipmentTransferDialog.jsx Updates close-button spacing.
client/​src/​js/​views/​dialogs/​AttachmentAddDialog.jsx Updates alignment and button spacing.
client/​src/​js/​views/​BusinessPortal.jsx Updates input spacing classes.
client/​src/​js/​views/​BusinessOwner.jsx Updates return-button alignment.
client/​src/​js/​views/​AitReport.test.jsx Migrates test date calculations to Day.js.
client/​src/​js/​views/​AitReport.jsx Migrates report date filters to Day.js.
client/​src/​js/​utils/​sessionTimeout.js Adds a session-reset registration helper.
client/​src/​js/​utils/​http.js Uses the shared session-reset helper.
client/​src/​js/​utils/​dayjs.js Configures UTC and quarter support.
client/​src/​js/​utils/​date.js Migrates date utilities to immutable Day.js operations.
client/​src/​js/​store.js Configures Redux Toolkit and query middleware.
client/​src/​js/​services/​serverApi.js Adds authenticated summary-count queries.
client/​src/​js/​reducers/​version.test.js Tests version-state merging.
client/​src/​js/​reducers/​version.js Converts version state to a Toolkit slice.
client/​src/​js/​reducers/​lookups.js Removes legacy summary-count state.
client/​src/​js/​reducers/​all.js Registers the query reducer.
client/​src/​js/​mock/​api/​AitReport/​searchAitReport.js Generates report fixtures with Day.js.
client/​src/​js/​mock/​api/​AitReport/​getRentalAgreementsLite.js Generates agreement fixtures with Day.js.
client/​src/​js/​Keycloak.test.js Tests initialization and logout behavior.
client/​src/​js/​Keycloak.js Updates initialization options and returns its promise.
client/​src/​js/​components/​withRouter.jsx Adapts router hooks for class components.
client/​src/​js/​components/​ui/​SubHeader.jsx Updates edit-button alignment.
client/​src/​js/​components/​ReturnButton.jsx Replaces history access with navigation hooks.
client/​src/​js/​components/​MultiDropdown.jsx Uses the controlled visibility prop.
client/​src/​js/​components/​FilterDropdown.jsx Uses the controlled visibility prop.
client/​src/​js/​components/​Favourites.jsx Uses the controlled visibility prop.
client/​src/​js/​components/​DropdownControl.jsx Updates visibility, selection handlers, and popovers.
client/​src/​js/​components/​Confirm.jsx Updates popover component names.
client/​src/​js/​components/​AuthorizedRoute.jsx Adapts authorization rendering to modern routing.
client/​src/​js/​App.test.jsx Checks query completion and displayed counts.
client/​src/​js/​App.jsx Migrates routes and introduces lazy-loaded views.
client/​src/​js/​api.js Uses Day.js and Toolkit version actions.
client/​src/​js/​actionTypes.js Removes replaced legacy action constants.
client/​package.json Updates frameworks, libraries, and development tools.
.github/​workflows/​verify.yml Adds server and client build/test checks.
.github/​workflows/​security.yml Adds dependency review and package audits.
.github/​dependabot.yml Schedules grouped dependency updates.

Review effort: Balanced

Comment thread client/package.json Resolved
Comment thread client/src/js/services/serverApi.js Resolved
Comment thread client/src/js/services/serverApi.js Resolved
Comment thread client/src/js/views/Home.jsx Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Same-repository PR workflows can overwrite release images, and promotion trusts self-declared metadata without verifying build provenance, allowing unmerged PR-built images to be accepted as trusted releases.

5 open issues
1 file not reviewed
  • client/package-lock.json: Generated file

Review effort: Balanced

Comment thread .github/workflows/ci.yml Resolved
Centralize and lock NuGet package versions, update runtime dependencies, and build an OpenShift-compatible API image. Includes the dependency updates tracked under HETS-1387 and HETS-1389.
Update client dependencies and build tooling, migrate Bootstrap, routing and Redux, and repair badges, query errors, request accounting, and summary refresh behavior. Includes client dependency updates tracked under HETS-1387.
Add verification and supply-chain workflows, build and publish images from trusted master runs, verify image attestations before promotion, and update GitOps delivery. Consolidates related pipeline fixes and dependency automation.
@ionwyn
ionwyn force-pushed the modernization/dependencies-frameworks branch from 82206ed to f7d93ac Compare November 4, 2026 17:09

@rogene-bcgov rogene-bcgov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also good to merge. Great job!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement javascript Pull requests that update Javascript code .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants