Skip to content

chore: upgrade findable-ui to latest (63.0.0) (#294) - #295

Merged
frano-m merged 1 commit into
mainfrom
frano-m/294-findable-ui-63
Nov 24, 2026
Merged

frano-m merged 1 commit into
mainfrom
frano-m/294-findable-ui-63

Conversation

@frano-m

@frano-m frano-m commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #294

What changed

  • Packages: @databiosphere/findable-ui goes from 60.0.0 to 63.0.0, and ky is declared as ^1.10.0 to match findable-ui 61's peer range. The lock already resolved ky to 1.14.3.
  • pages/[entityListType]/index.tsx: getStaticProps now returns ExploreViewProps, with data set to the entity array (hits) instead of the whole Azul-style response. IndexPage passes its props straight through to ExploreView, and the redundant ListPageProps is gone.
  • app/views/ExploreView/exploreView.tsx: imports ExploreViewProps as a type from findable-ui's new views/ExploreView/types.
  • pages/_app.tsx: PageProps declares only the entityListType and pageTitle that _app reads, instead of extending AzulEntitiesStaticResponse.
  • e2e/testFunctions.ts: the "Search all Filters" helper (now getFirstNonEmptySearchAllFiltersOption) finds the first unselected role="option" item with a term. It reads the term and count through findable-ui's exported TEST_IDS.FILTER_TERM and TEST_IDS.FILTER_COUNT, and fails with a clear message when no option shows or the count is not a number.
  • e2e/hprc-filters.spec.ts: the five "Search all Filters" tests now assert the helper's result, as the other filter tests check theirs. verifyFilterCount already asserts the results text, so a wrong count failed before too. This only covers the helper's remaining false path.

Why

findable-ui 63.0.0 removes the Azul-shaped ExploreViewProps, and ExploreView's data is now the entity array. findable-ui 62.0.0 renders the Search All Filters terms as role="option" items labelled "term, Category" instead of buttons, which broke the e2e helper (15 failures across the three browsers). This is item 5 of findable-ui's tracking issue, "Upgrade each app's explore page for findable-ui's breaking ExploreViewProps change" (DataBiosphere/findable-ui#1255).

Assumptions I made

  • None of the other breaking changes in 61.0.0–63.0.0 apply. A search of the repo found no use of the button presets, export components, ExploreListProvider, the catalog URL param or CatalogProvider, Search All Filters internals, chart bar-count utils, closeAndRestoreFocus or useEntityList. So _app needs no new providers.
  • The search-bar test now skips selected options. On Assemblies and Annotations, Release=2 is selected by default. Clicking it removes the filter (correct app behaviour), but the test expects a new filter tag, so it picks an unselected option instead.
  • Manual pass against production (data.humanpangenome.org): I served the production build and compared it with production in Chrome.
    • All five index tabs show the same results counts and first rows: Raw Sequencing Data 6049, Assemblies 560, Annotations 8778, Alignments 87 and Samples 234.
    • Assemblies and Annotations open with Release = 2 on first visit in both.
    • Selecting Platform = PACBIO_SMRT gives 1918 results, and every sidebar count matches production. Scrolling the table loads more rows.
    • Picking HG002 from "Search all filters..." on Samples adds its tag and gives 1 result.
  • Known flakiness left alone: the search-bar test can read a count before the default Release=2 filter applies on a slow load. This was already there, and it is out of scope by decision.
  • No unit tests: npm test exits 1 with "No tests found" because the repo has none. It does the same on main.
  • Page data size: the build still warns that /assemblies page data is 550 kB, as it did on main. Dropping the pagination and facets from the static props saves under 100 bytes. The size comes from the rows themselves.

How to verify

  1. Run npm ci, then npm ls @databiosphere/findable-ui ky. It shows findable-ui 63.0.0 and ky 1.14.3.
  2. Run npx tsc --noEmit, npm run lint, npm run build:local and npx playwright test. All of them pass, with 75 e2e tests across Chromium, Firefox and WebKit.
  3. Serve the build (npx serve out) and open each index tab. Each tab lists rows, and Assemblies and Annotations open with Release = 2 applied.
  4. On any tab, open a column filter, select a value and page through the table. The filter applies and paging works. Type in "Search all filters...", pick a term, and check that the filter tag appears and the result count matches the term's count.

Definition of done from #294:

  • @databiosphere/findable-ui is on 63.0.0 in package.json and package-lock.json: step 1.
  • ky is declared as ^1.10.0: step 1.
  • ExploreView gets the entity array, and nothing imports the removed ExploreViewProps: step 2 (the type check).
  • npx tsc --noEmit, lint, the build, unit tests and e2e tests all pass: step 2 (the repo has no unit tests).
  • Index tabs, default filters and column filters behave the same as they do on production: steps 3 and 4.

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

upgrade findable-ui to 63.0.0 and raise the ky range to ^1.10.0. getstaticprops now
passes the entity array to the explore view, and the search all filters e2e helper
follows findable-ui 62's option markup.

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.

🔵 Needs a closer look

The three-major-version UI upgrade requires human validation because production parity for default Release=2 filters and entity detail pages was neither manually checked nor covered by the reported e2e tests.

No open issues 🎉

What changed in this PR

Upgrades the HPRC data explorer to findable-ui 63.0.0, adapting explore-page data and filter tests to the library’s breaking changes for #294.

Changes:

  • Updates findable-ui to 63.0.0 and raises the declared ky range to ^1.10.0.
  • Migrates explore pages to the new ExploreViewProps import and entity-array data contract.
  • Updates Search All Filters tests to use option roles and exported test IDs, skip selected options, and assert helper results.
File Description
pages/​[entityListType]/​index.tsx Uses the new props type and passes entity hits directly to the explore view.
pages/​_app.tsx Removes the Azul response inheritance from application page props.
package.json Updates findable-ui and ky dependency ranges.
package-lock.json Locks findable-ui to 63.0.0 and updates dependency metadata.
e2e/​testFunctions.ts Adapts filter-option selection and term/count extraction to the new markup.
e2e/​hprc-filters.spec.ts Asserts Search All Filters helper results across all five tabs.
app/​views/​ExploreView/​exploreView.tsx Imports the new props type and updates its documentation.

Review effort: Balanced

@frano-m
frano-m marked this pull request as ready for review November 23, 2026 03:32

@NoopDog NoopDog 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.

Thanks, Fran, this is a really tidy upgrade. Passing ExploreViewProps straight through and finding the search-bar options by role and TEST_IDS both read well, and everything passes locally across all three browsers. One thing before merge: the last item of #294's definition of done (index tabs, default filters and column filters match production) still needs a quick manual pass; steps 3–4 of 'How to verify' cover it. Two small description tweaks while you're there: the old search-bar tests would have failed on a wrong count too, because verifyFilterCount asserts the result text itself, and this app has no entity detail pages, so step 5 and the 'entity pages' wording can go.

@frano-m

frano-m commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Dave. All three are done, and the description is updated.

  • Manual pass: I served the production build and compared it with data.humanpangenome.org in Chrome.

    • All five index tabs match on results counts and first rows (6049, 560, 8778, 87, 234).
    • Assemblies and Annotations open with Release = 2 in both.
    • Platform = PACBIO_SMRT gives 1918 results with every sidebar count matching, and the table scrolls.
    • Picking HG002 from "Search all filters..." gives its tag and 1 result.

    The details are under "Assumptions I made".

  • Search-bar tests: you're right. verifyFilterCount asserts the results text itself, so a wrong count already failed. I reworded the description. The expect(...).toBe(true) wrappers stay to cover the helper's remaining false path and to match the other filter tests.

  • Entity pages: I removed step 5 and the wording from the description, and from Upgrade findable-ui to latest (63.0.0) #294's definition of done.

@frano-m
frano-m requested a review from NoopDog November 23, 2026 09:02
@frano-m
frano-m merged commit 487d181 into main Nov 24, 2026
3 checks passed
@frano-m
frano-m deleted the frano-m/294-findable-ui-63 branch November 24, 2026 03:57
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 (63.0.0)

3 participants