Skip to content

James c upgrade packages#272

Merged
James-Cocker merged 28 commits intomainfrom
JamesC-upgrade-packages
Apr 1, 2026
Merged

James c upgrade packages#272
James-Cocker merged 28 commits intomainfrom
JamesC-upgrade-packages

Conversation

@James-Cocker
Copy link
Copy Markdown
Contributor

@James-Cocker James-Cocker commented Mar 16, 2026

Why?

Closes galasa-dev/projectmanagement#2554.

Upgrades Next.js from v14 to 16, along with some other dependencies due to high level package vulnerabilities. Made a lot of changes outside of package.json to accommodate for this upgrade. Note: a new section has been added to the setup-locally.sh script to copy over font files to be statically served in the /public folder. If you have a local version running, you will need to run this script again in order to have those fonts appear as they were before the PR.

Changes

  • Updated Next.js
  • Updated high severity packages
  • Ensured all local scripts run
  • Unit tests (if applicable)

Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
…hooks. Next now builds.

Signed-off-by: James Cocker <james.s.earth@gmail.com>
….replace in tabs component

Signed-off-by: James Cocker <james.s.earth@gmail.com>
Copy link
Copy Markdown
Member

@eamansour eamansour left a comment

Choose a reason for hiding this comment

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

Not too confident with these changes - added some comments and suggestions. I haven't been able to build the project locally either (I'm getting the same error that the PR workflow is getting).

Comment thread build-locally.sh
Comment thread galasa-ui/src/tests/__snapshots__/mysettings.test.tsx.snap Outdated
Comment thread .gitignore Outdated
Comment thread galasa-ui/src/app/auth/tokens/route.ts Outdated
Comment thread galasa-ui/src/components/test-runs/results/TestRunsTable.tsx Outdated
Comment thread galasa-ui/src/components/users/UsersTable.tsx Outdated
Comment thread galasa-ui/src/components/users/UsersTable.tsx Outdated
Comment thread galasa-ui/src/styles/global.scss Outdated
Comment thread galasa-ui/src/tests/__snapshots__/layout.test.tsx.snap
Comment thread galasa-ui/jest.config.cjs
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
…e in global.css

Signed-off-by: James Cocker <james.s.earth@gmail.com>
Comment thread galasa-ui/src/styles/global.scss
Comment thread galasa-ui/src/components/test-runs/test-run-details/LogTab.tsx Outdated
Comment thread galasa-ui/setupTests.ts Outdated
Comment thread setup-locally.sh Outdated
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
…g akamai CDN instead of a copy script

Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
…ld, commented out webui tests for now

Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Signed-off-by: James Cocker <james.s.earth@gmail.com>
Comment thread .github/workflows/build.yaml Outdated
Comment thread galasa-ui/src/tests/proxy.test.ts
…ved unnecessary scss changes

Signed-off-by: James Cocker <james.s.earth@gmail.com>
Copy link
Copy Markdown
Member

@eamansour eamansour left a comment

Choose a reason for hiding this comment

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

Thanks for doing this work! Approving on the basis that the remaining issues we've spotted will be addressed in separate PRs.

For future reference, always try to break changes like this down into smaller PRs to minimise the risks of things breaking in different places - this was really challenging to review 😅

@James-Cocker James-Cocker merged commit d293306 into main Apr 1, 2026
8 checks passed
@James-Cocker James-Cocker deleted the JamesC-upgrade-packages branch April 1, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web UI: Upgrade Next from 14.2.35 to 16.1.1

3 participants