Skip to content

chore: upgrade findable-ui to latest (60.0.0), next.js to 16.4.5, and run npm audit fix (#292) - #293

Merged
frano-m merged 1 commit into
mainfrom
frano-m/292-findable-ui-60
Nov 4, 2026
Merged

frano-m merged 1 commit into
mainfrom
frano-m/292-findable-ui-60

Conversation

@frano-m

@frano-m frano-m commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #292.

Upgrades @databiosphere/findable-ui from 58.0.0 to 60.0.0 and Next.js from 16.4.3 to 16.4.5, then runs npm audit fix without --force.

What changed

  • findable-ui is upgraded to ^60.0.0. This needed no app code changes: the repo uses none of the exports that 59.0.0 and 60.0.0 remove or change. Those are the button wrapper components, ViewSupport and ContactSupportIcon, the support request form, ColumnFilterProps's MUI menu props and MENU_PROPS, PaginationIndex and AzulSearchIndex.
  • @tanstack/react-query is added at ^5.90.12, which matches findable-ui 60's new required peer range. This follows how package.json already lists findable-ui's other peers.
  • react-dropzone is removed. findable-ui no longer lists it as a peer, and nothing in this repo imports it.
  • Next.js: next, @next/mdx, @next/eslint-plugin-next and eslint-config-next are all upgraded to ^16.4.5, so the four stay in step.
  • e2e helpers (e2e/testFunctions.ts) now close the filter panel and the filter search dropdown by pressing Escape. They used to click <body>. findable-ui 60 no longer puts a backdrop behind desktop filter panels, so a click on the body could now land on the table underneath.
  • npm audit fix (no --force) changed nothing. See below.

Why

The repo was two findable-ui majors behind, and Next.js was behind the latest 16.x patch.

Vulnerabilities still open

npm audit reports 48 findings: 4 low, 40 moderate and 4 high. npm audit --omit=dev reports 0, so all of them are in dev dependencies. npm can only fix them with --force, which would downgrade or replace them across major versions:

  • jest and its transitive dependencies (minimatch (high), glob, deepmerge, babel-plugin-istanbul and others). npm's only fix is jest@25.1.0.
  • eslint tooling (eslint, @typescript-eslint/*, eslint-config-next, @next/eslint-plugin-next, eslint-config-prettier, eslint-plugin-prettier, eslint-plugin-jsdoc, eslint-plugin-sonarjs (high), eslint-plugin-perfectionist, eslint-plugin-sort-destructure-keys and others). These either have no fix or would be downgraded to very old majors.
  • serve (high, through compression (high) and serve-handler). npm's fix is serve@10.0.2.
  • esrun (through esbuild). npm's fix is esrun@0.0.1.
  • csv-parse. The fix is csv-parse@7, a major upgrade of the catalog build tooling.

npm also marks eslint 9.39.5 as deprecated, as it already did for 9.39.4 on main. Moving to eslint 10 is out of scope for this PR.

Assumptions I made

  • findable-ui 60 creates its own TanStack Query client, so the app doesn't need a QueryClientProvider. Every HPRC entity uses client-side fetching, so this app never loads findable-ui's new TanStack Query code path.
  • The lockfile refresh also picked up some in-range dev tooling updates (for example typescript-eslint 8.72.1 and eslint-plugin-jsdoc 63.3.3). Lint still passes with them.
  • npm test exits 1 with "No tests found" because this repo has no unit tests. It does the same on main.

How to verify

Definition of done from #292:

  • @databiosphere/findable-ui is on 60.0.0 in package.json and package-lock.json. → step 1
  • next, @next/mdx, @next/eslint-plugin-next and eslint-config-next are all on 16.4.5. → step 1
  • npm audit fix (no --force) has been run, and the PR lists the vulnerabilities still open. → step 2 and the section above
  • npx tsc --noEmit, lint, the build, unit tests and e2e tests all pass. → step 3
  • Index tabs, column filters and entity pages behave the same as they do on production. → steps 4 and 5
  1. Run npm ci, then npm ls @databiosphere/findable-ui next @next/mdx @next/eslint-plugin-next eslint-config-next. It shows findable-ui 60.0.0, and 16.4.5 for the four Next packages.
  2. Run npm audit fix. It changes nothing. Run npm audit --omit=dev; it reports 0 vulnerabilities.
  3. Run npx tsc --noEmit, npm run lint, npm run build:prod and npx playwright test. All of them pass (75 of 75 e2e tests passed locally).
  4. Start the app and open each index tab (raw sequencing data, assemblies, alignments, annotations and samples). Open a column filter, select a value, and close the panel by clicking outside it and by pressing Escape. The panel closes, the filter tag appears and the row count updates. Scroll the page while the panel is open: the page scrolls (new in findable-ui 60). Page through the table.
  5. Open an entity detail page and the 404 page. They look the same as on the current production site.

🤖 Generated with Claude Code
🐦 Built with cc-claude-tools

… run npm audit fix (#292)

- upgrade @databiosphere/findable-ui to ^60.0.0
- add @tanstack/react-query (new findable-ui peer) and remove unused react-dropzone
- upgrade next, @next/mdx, @next/eslint-plugin-next and eslint-config-next to ^16.4.5
- npm audit fix (no --force) fixed nothing; remaining findings are dev-only
- close filter panels in e2e helpers with escape, since findable-ui 60 drops the backdrop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: cc-claude-tools <cc-claude-tools@clevercanary.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the dependency upgrades and filter-helper adjustments.

No open issues 🎉

What changed in this PR

Updates the HPRC Data Explorer’s UI and Next.js dependencies for #292, with test-helper adjustments for findable-ui’s changed filter behavior.

Changes:

  • Upgrades findable-ui to 60.0.0 and keeps all four Next.js packages aligned at 16.4.5.
  • Adds the required TanStack Query peer, removes react-dropzone, and refreshes locked dependencies.
  • Changes end-to-end helpers to dismiss filter panels and search dropdowns with Escape instead of body clicks.
File Description
package.json Updates dependency ranges and findable-ui peer dependencies.
package-lock.json Locks upgraded packages and refreshes transitive dependencies.
e2e/​testFunctions.ts Uses Escape to dismiss filters without clicking the underlying table.

Review effort: Balanced

@frano-m
frano-m marked this pull request as ready for review November 4, 2026 06:00
@frano-m
frano-m merged commit f530325 into main Nov 4, 2026
3 checks passed
@frano-m
frano-m deleted the frano-m/292-findable-ui-60 branch November 4, 2026 07:39
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.

Upgrade findable-ui to latest (60.0.0), next.js to 16.4.5, and run npm audit fix

3 participants