Repository navigation
Conversation
… Explorer (#5158) Add AnVIL's article on tabular big data that can't be completely exported to Terra as a guide at `/guides/tabular-big-data-export`, list it in the Help & Documentation > Guides menu and the guides sidebar, and link it from the `/guides` overview. Build the guides sidebar and the Guides menu from one ordered `GUIDES_NAVIGATION` list, so a new guide is added in one place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The Terra article URL required by issue #5158 is missing, so a maintainer must provide the intended link or confirm that the requirement can be deferred.
No open issues 🎉
What changed in this PR
Adds AnVIL’s guide for working with tables too large to export fully to Terra, addressing #5158 and integrating it into the existing documentation.
Changes:
- Adds the guide page, metadata, breadcrumbs, help link, and overview link.
- Centralizes sidebar and header guide navigation in one ordered list.
- Adds unit and end-to-end coverage for navigation and the new page.
| File | Description |
|---|---|
site-config/anvil-cmg/dev/layout/utils.ts |
Builds shared sidebar and header navigation. |
site-config/anvil-cmg/dev/layout/types.ts |
Requires URLs for guide navigation items. |
site-config/anvil-cmg/dev/layout/navigationItem.ts |
Defines the ordered guide list and new entry. |
site-config/anvil-cmg/dev/config.ts |
Uses the shared header menu helper. |
pages/guides/tsv-file-manifest-download.tsx |
Uses shared sidebar navigation. |
pages/guides/tabular-big-data-export.tsx |
Adds the new guide route. |
pages/guides/individual-file-download.tsx |
Uses shared sidebar navigation. |
pages/guides/index.tsx |
Uses shared sidebar navigation. |
pages/guides/data-download-via-curl.tsx |
Uses shared sidebar navigation. |
pages/guides/data-download-options.tsx |
Uses shared sidebar navigation. |
e2e/anvil/anvil-guides.spec.ts |
Checks sidebar links, selection, and new heading. |
app/content/anvil-cmg/guides/tabular-big-data-export.mdx |
Adds article content, metadata, and breadcrumbs. |
app/content/anvil-cmg/guides.mdx |
Links to the new guide. |
__tests__/site-config/anvil-cmg-guides-navigation.test.ts |
Tests navigation helpers and selection settings. |
Review effort: Balanced
Link "File references" and "described in this article" to the Terra support articles that AnVIL's source document links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@NoopDog, you don't need to find the Terra article URL any more. AnVIL's source document for this guide has it, so 2cbad5f links it. Changes since the PR was opened:
The description's "Assumptions I made" and "How to verify" sections are updated to match, and the last definition-of-done item now maps to step 6. |
NoopDog
left a comment
There was a problem hiding this comment.
Thanks Fran, this reads well, and the refactor is a real win: one GUIDES_NAVIGATION list instead of six copied sidebars plus the repeated menu items, with tests that catch the sidebar going wrong. Good find on the Terra links in the source document. One optional note inline.
Open Help & Documentation > Guides at mobile width and check that every guide in `GUIDES_NAVIGATION` is listed with its URL, so dropping a guide from the menu wiring in `config.ts` fails a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoopDog
left a comment
There was a problem hiding this comment.
Thanks Fran, the menu test covers it nicely, every guide checked with its URL. Good to merge.
Closes #5158
What changed
New guide page,
/guides/tabular-big-data-export(app/content/anvil-cmg/guides/tabular-big-data-export.mdxandpages/guides/tabular-big-data-export.tsx). It holds AnVIL's article on tabular big data that can't be completely exported to Terra, with breadcrumbs, a page title and a description.The guide is listed under Help & Documentation > Guides, in the guides sidebar, and in the
/guidesoverview's "How to find and use data" list.The guides sidebar and the Guides menu are now built from one ordered list,
GUIDES_NAVIGATIONinsite-config/anvil-cmg/dev/layout/navigationItem.ts:getGuidesNavigation(activeGuide)builds each guide page's sidebar.getGuidesMenuItems()builds the header's Guides menu.Both are in
site-config/anvil-cmg/dev/layout/utils.ts. Each of the six guide pages used to keep its own copy of the sidebar list, andconfig.tsrepeated every label and URL. A new guide is now added to the list once.Tests:
__tests__/site-config/anvil-cmg-guides-navigation.test.ts.e2e/anvil/anvil-guides.spec.ts. On every guide page it checks that the sidebar lists all six guides with the right URLs and highlights only that page's guide. It also checks the new guide's heading, and that the mobile Help & Documentation > Guides menu lists every guide.Why
Some AnVIL datasets now have tables too large to export to Terra, for example clinical tables with over 10 million rows. AnVIL wrote an article that explains the export warning users see and how to work with the data instead. The explorer's guides had no page for it.
Assumptions I made
{portalURL}/help, like the menu's Help item. I didn't use the article's barehttps://anvilproject.org/helpas the link text, because on dev builds{portalURL}is the dev portal and the text would name a different page from the one it opens.##headings. The menu and sidebar label is "Tabular Big Data Export". The page heading and the/guideslink use the article's full title./guidesitself (SELECTED_MATCH.EQUALS), and the other guides still use the default prefix match.How to verify
npm run dev:anvil-cmgand open the explorer./guides/tabular-big-data-export. On desktop, the Guides item opens/guides, as before./guides/tabular-big-data-export, compare the page with the article text in Add the "Working with tabular big data" guide to the AnVIL Data Explorer's Help & Documentation guides #5158. The breadcrumbs read AnVIL Data Explorer > Guides > Tabular Big Data Export. The headings and paragraphs match, andanvil_,anvil_file,file_formatand.csvare in code formatting./guides, the last item in the "How to find and use data with the AnVIL Data Explorer" list opens the new page./helppage.npx jest __tests__/site-config/anvil-cmg-guides-navigation.test.tsandnpm run test:anvil-cmg -- e2e/anvil/anvil-guides.spec.ts.Definition of done from #5158:
/guides/tabular-big-data-exportshows the article above, with its headings and code formatting. Step 3./guidesoverview page links to it. Step 5.Screenshots
Attach these from
~/Downloads/data-browser-5158/. They were taken before the sidebar refactor and before the "File references" link was added; the page is otherwise the same.data-browser-5158-guide-page-top-desktop.jpg: the new guide on desktop, with breadcrumbs, heading and sidebar.data-browser-5158-guide-page-links-desktop.jpg: the lower half of the guide, with code formatting and the "Need help?" link.data-browser-5158-help-menu-desktop.jpg: Help & Documentation on desktop, where Guides links to/guides.data-browser-5158-guides-overview-link-desktop.jpg: the new link in the/guidesoverview list.data-browser-5158-guide-page-top-mobile.jpg: the new guide on mobile.data-browser-5158-guides-menu-mobile.jpg: the mobile Guides menu, with "Tabular Big Data Export" listed.Plan
app/content/anvil-cmg/guides/tabular-big-data-export.mdx.TABULAR_BIG_DATA_EXPORTnav item tosite-config/anvil-cmg/dev/layout/navigationItem.ts.pages/guides/tabular-big-data-export.tsx.site-config/anvil-cmg/dev/config.ts./guidesoverview, inapp/content/anvil-cmg/guides.mdx.Deviations:
GUIDES_NAVIGATIONwith the two helpers, replacing the copied lists.🤖 Generated with Claude Code