Skip to content

feat: add the "Working with tabular big data" guide to the AnVIL Data Explorer (#5158) - #5159

Open
frano-m wants to merge 3 commits into
mainfrom
frano-m/5158-tabular-big-data-guide
Open

frano-m wants to merge 3 commits into
mainfrom
frano-m/5158-tabular-big-data-guide

Conversation

@frano-m

@frano-m frano-m commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #5158

What changed

  • New guide page, /guides/tabular-big-data-export (app/content/anvil-cmg/guides/tabular-big-data-export.mdx and pages/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 /guides overview's "How to find and use data" list.

  • The guides sidebar and the Guides menu are now built from one ordered list, GUIDES_NAVIGATION in site-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, and config.ts repeated every label and URL. A new guide is now added to the list once.

  • Tests:

    • Unit tests for both helpers, in __tests__/site-config/anvil-cmg-guides-navigation.test.ts.
    • An e2e spec, 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

  • Source document. The text and links come from AnVIL's source document, "User documentation: Working with tabular big data…". The page title leaves out its "User documentation:" prefix. The document links "File references" to Terra's Overview: Interoperable data (GA4GH DRS URIs) and "described in this article" to Managing data with tables, and the page does the same. The issue's copy of the text didn't have these links.
  • "Need help?" link text. The help link reads "AnVIL help page" and opens {portalURL}/help, like the menu's Help item. I didn't use the article's bare https://anvilproject.org/help as 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 and labels. The article's bold section lines are ## headings. The menu and sidebar label is "Tabular Big Data Export". The page heading and the /guides link use the article's full title.
  • Menu highlighting is unchanged. The guides overview menu item is still highlighted only on /guides itself (SELECTED_MATCH.EQUALS), and the other guides still use the default prefix match.

How to verify

  1. Run npm run dev:anvil-cmg and open the explorer.
  2. At a mobile width, open the menu and go to Help & Documentation > Guides. "Tabular Big Data Export" is the last item, and clicking it opens /guides/tabular-big-data-export. On desktop, the Guides item opens /guides, as before.
  3. On /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, and anvil_, anvil_file, file_format and .csv are in code formatting.
  4. Open each guide page. The sidebar lists all six guides, ending with "Tabular Big Data Export", and highlights only the current page.
  5. On /guides, the last item in the "How to find and use data with the AnVIL Data Explorer" list opens the new page.
  6. In the second paragraph under "How to work with…", "File references" opens Terra's GA4GH DRS URIs overview and "described in this article" opens Terra's "Managing data with tables". Under "Need help?", the "AnVIL help page" link opens the portal's /help page.
  7. Run npx jest __tests__/site-config/anvil-cmg-guides-navigation.test.ts and npm run test:anvil-cmg -- e2e/anvil/anvil-guides.spec.ts.

Definition of done from #5158:

  • /guides/tabular-big-data-export shows the article above, with its headings and code formatting. Step 3.
  • The page has breadcrumbs, a page title and a description, as the other guides do. Step 3. The title and description are in the tab title and page metadata.
  • "Help & Documentation" > "Guides" lists the page. Step 2.
  • The /guides overview page links to it. Step 5.
  • "as described in this article" links to the Terra article it refers to, and "Need help?" links to the AnVIL portal's help page. Step 6.

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 /guides overview 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

  1. Create the guide content, app/content/anvil-cmg/guides/tabular-big-data-export.mdx.
  2. Add the TABULAR_BIG_DATA_EXPORT nav item to site-config/anvil-cmg/dev/layout/navigationItem.ts.
  3. Create the page route, pages/guides/tabular-big-data-export.tsx.
  4. Add the guide to the sidebar on the 5 existing guide pages.
  5. Add the guide to the Guides menu in site-config/anvil-cmg/dev/config.ts.
  6. Link the guide from the /guides overview, in app/content/anvil-cmg/guides.mdx.

Deviations:

  • Extra link. "File references" is linked, as in AnVIL's source document.
  • Steps 4 and 5 use one shared list. The guides sidebar and menu are built from GUIDES_NAVIGATION with the two helpers, replacing the copied lists.
  • Tests added: a unit test and an e2e spec.
  • Overview list punctuation. I dropped a stray period after the "Downloading open-access data files…" link, so the list's items end the same way.

🤖 Generated with Claude Code

… 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>
@frano-m frano-m self-assigned this Dec 4, 2026
@frano-m
frano-m requested review from NoopDog and a balanced review from Copilot December 4, 2026 01:16
@frano-m
frano-m marked this pull request as ready for review December 4, 2026 01:18
@frano-m
frano-m requested a review from a team December 4, 2026 01:18

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 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>
@frano-m

frano-m commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@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:

  • "described in this article" now links to Terra's Managing data with tables, as the source document does.
  • "File references" now links to Terra's Overview: Interoperable data (GA4GH DRS URIs). The issue's copy of the article didn't have this link, but the source document does.
  • Page title: unchanged. It already leaves out the source document's "User documentation:" prefix and starts at "Working with tabular big data…".

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

Comment thread site-config/anvil-cmg/dev/config.ts Resolved
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 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, the menu test covers it nicely, every guide checked with its URL. Good to merge.

This branch has not been deployed

No deployments
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.

Add the "Working with tabular big data" guide to the AnVIL Data Explorer's Help & Documentation guides

3 participants