Repository navigation
chore: upgrade findable-ui to latest (63.0.0) (#294) - #295
Conversation
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>
There was a problem hiding this comment.
🔵 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
kyrange to^1.10.0. - Migrates explore pages to the new
ExploreViewPropsimport 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
NoopDog
left a comment
There was a problem hiding this comment.
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.
|
Thanks, Dave. All three are done, and the description is updated.
|
Closes #294
What changed
@databiosphere/findable-uigoes from 60.0.0 to 63.0.0, andkyis declared as^1.10.0to match findable-ui 61's peer range. The lock already resolvedkyto 1.14.3.pages/[entityListType]/index.tsx:getStaticPropsnow returnsExploreViewProps, withdataset to the entity array (hits) instead of the whole Azul-style response.IndexPagepasses its props straight through toExploreView, and the redundantListPagePropsis gone.app/views/ExploreView/exploreView.tsx: importsExploreViewPropsas a type from findable-ui's newviews/ExploreView/types.pages/_app.tsx:PagePropsdeclares only theentityListTypeandpageTitlethat_appreads, instead of extendingAzulEntitiesStaticResponse.e2e/testFunctions.ts: the "Search all Filters" helper (nowgetFirstNonEmptySearchAllFiltersOption) finds the first unselectedrole="option"item with a term. It reads the term and count through findable-ui's exportedTEST_IDS.FILTER_TERMandTEST_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.verifyFilterCountalready asserts the results text, so a wrong count failed before too. This only covers the helper's remainingfalsepath.Why
findable-ui 63.0.0 removes the Azul-shaped
ExploreViewProps, andExploreView'sdatais now the entity array. findable-ui 62.0.0 renders the Search All Filters terms asrole="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 breakingExploreViewPropschange" (DataBiosphere/findable-ui#1255).Assumptions I made
ExploreListProvider, thecatalogURL param orCatalogProvider, Search All Filters internals, chart bar-count utils,closeAndRestoreFocusoruseEntityList. So_appneeds no new providers.npm testexits 1 with "No tests found" because the repo has none. It does the same onmain./assembliespage data is 550 kB, as it did onmain. Dropping the pagination and facets from the static props saves under 100 bytes. The size comes from the rows themselves.How to verify
npm ci, thennpm ls @databiosphere/findable-ui ky. It shows findable-ui 63.0.0 andky1.14.3.npx tsc --noEmit,npm run lint,npm run build:localandnpx playwright test. All of them pass, with 75 e2e tests across Chromium, Firefox and WebKit.npx serve out) and open each index tab. Each tab lists rows, and Assemblies and Annotations open with Release = 2 applied.Definition of done from #294:
@databiosphere/findable-uiis on 63.0.0 inpackage.jsonandpackage-lock.json: step 1.kyis declared as^1.10.0: step 1.ExploreViewgets the entity array, and nothing imports the removedExploreViewProps: 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).🤖 Generated with Claude Code
🐦 Built with cc-claude-tools