Skip to content

chore: upgrade findable-ui to latest, next.js to 16.4, and run npm audit fix (#286) - #287

Merged
frano-m merged 2 commits into
mainfrom
fran/286-upgrade-findable-ui-next-16-4
Oct 15, 2026
Merged

frano-m merged 2 commits into
mainfrom
fran/286-upgrade-findable-ui-next-16-4

Conversation

@frano-m

@frano-m frano-m commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Ticket

Closes #286.

Reviewers

@NoopDog

What changed

  • @databiosphere/findable-ui goes from ^54.0.0 to ^57.0.1. This repo doesn't use any of the APIs that 55, 56 or 57 removed or changed: the login button export, the Azul download test ids, Authentication/Search Button → isMenuIn, renderButton, SEARCH_BAR and useMenu/DrawerContext.
  • The Next.js packages are aligned on ^16.4.1: next, @next/mdx, @next/eslint-plugin-next and eslint-config-next.
  • npm audit fix was run without --force. Vulnerabilities go from 52 to 47, and the critical one is gone. Every one left needs --force, and several of those "fixes" would downgrade packages (findable-ui to 45, Next's eslint packages to 14).
  • next.config.mjs:
    • next-compose-plugins is removed, and the config now exports withMDX({...}) directly. compose-plugins copied Next's whole default config in, which caused a browserDebugInfoInTerminal deprecation warning on every build.
    • agentRules: false is set, so next dev (16.4+) doesn't write an AGENTS.md to the repo root.
    • The no-op basePath: "" is removed.
  • buildUcscBrowserUrl has one type fix. findable-ui 57.0.1 fixed its published .d.ts imports, so LinkCell's props are now fully typed as a TanStack CellContext. Before, they resolved to any. The builder now returns Pick<…, "getValue"> and casts getValue to Getter<LinkProps>, the same way findable-ui's own stories do. Nothing changes at runtime.
  • The local seedDatabase copy is replaced with findable-ui's. pages/[entityListType]/index.tsx now imports seedDatabase from @databiosphere/findable-ui/lib/utils/seedDatabase (added in 56.0.0) and deletes its own copy, which was marked // TODO get rid of this duplicated code. No HPRC entity config sets an entityMapper, so findable-ui's version seeds the same raw Object.values as before. It also caches the read and parse per entity type, and its error messages for unreadable or malformed files are more detailed.

Differences from data-portal#3253

  • @observablehq/plot stays. The Samples page uses findable-ui's Graph view, so it's still needed.

How to verify

  • npm ls @databiosphere/findable-ui next @next/mdx @next/eslint-plugin-next eslint-config-next shows findable-ui 57.0.1 and 16.4.1 for each Next package.
  • npm audit reports 47 vulnerabilities, none critical, and every one needs --force.
  • npm run build:local passes with no browserDebugInfoInTerminal warning.
  • npx tsc --noEmit passes, npm run lint shows 0 errors and 0 warnings (the old TODO warning went with the local seedDatabase), and Prettier is clean.
  • Static page data for all five tabs (__NEXT_DATA__ pageProps) is byte-identical before and after the seedDatabase switch: same row counts (234 / 6049 / 560 / 87 / 9663) and same hashes.
  • npx playwright test: all 75 tests pass in Chromium, Firefox and WebKit.
  • Manual check in Google Chrome against the static build:
    • All five tabs render their tables.
    • The Samples Graph view shows its charts.
    • Filtering Sex = female narrows Samples from 234 to 116.
    • The UCSC Genome Browser links on Assemblies point at genome.ucsc.edu.
    • The console shows no errors or warnings.
  • npm test reports "No tests found". The repo has no jest unit tests, only e2e tests.

Known Issues

None.

🤖 Generated with Claude Code

…dit fix (#286)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.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.

🔵 Needs a closer look

The three-major-version UI upgrade warrants human confirmation of the reported build and browser checks.

0 open findings

What changed in this PR

Updates the explorer’s dependencies for #286 while preserving static export and adapting to stricter UI types.

Changes:

  • Upgrades findable-ui to 57.0.1 and aligns Next.js packages on 16.4.1.
  • Refreshes dependencies through non-forced audit fixes.
  • Simplifies MDX configuration and adjusts UCSC link-builder types without runtime changes.
File Description
package.json Updates dependency ranges and removes next-compose-plugins.
package-lock.json Records upgrades and audit fixes.
next.config.mjs Uses withMDX directly and disables agent-rule generation.
app/​viewModelBuilders/​catalog/​hprc-data-explorer/​common/​viewModelBuilders.ts Adapts link-builder types to findable-ui’s corrected declarations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…dit fix (#286)

replace the local seeddatabase copy with findable-ui's seeddatabase (added in 56.0.0).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@frano-m
frano-m merged commit 9e8d6d3 into main Oct 15, 2026
2 checks passed
@frano-m
frano-m deleted the fran/286-upgrade-findable-ui-next-16-4 branch October 15, 2026 23:48
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, next.js to 16.4, and run npm audit fix

3 participants