Skip to content

feat(docs-app): limit the version select to a component's own versions - #2677

Open
HerrTopi wants to merge 1 commit into
masterfrom
filter-component-versions
Open

feat(docs-app): limit the version select to a component's own versions#2677
HerrTopi wants to merge 1 commit into
masterfrom
filter-component-versions

Conversation

@HerrTopi

@HerrTopi HerrTopi commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Build a per-package map of the library versions each component appears in and emit it as
    activeVersions in docs-versions.json.
  • Drive the docs component-version select from that map instead of the full library version list.
  • Omit the select entirely for packages with no version data (ui-motion, ui-position, ui-dialog,
    ui-focusable, ui-i18n, ui-portal, ui-selectable, ui-svg-images, ui-truncate-list).

Test Plan

  • On a versioned component (e.g. Avatar, Checkbox), confirm the version dropdown lists only the
    versions that component exists in, and that switching still loads the right docs.
  • On a Util Component from an unmapped package (Transition, Position, Portal, Focusable, InlineSVG),
    confirm no version dropdown renders and the theme select still does.
  • Check a component that was introduced mid-range or removed — its earlier versions should survive a
    gap rather than being truncated.

Fixes INSTUI-5145

🤖 Generated with Claude Code

The component version dropdown listed every library version regardless of which
ones the viewed component actually existed in. Build a per-package map of the
versions each component appears in, emit it in docs-versions.json, and drive the
select from that instead of the full library version list.

Packages that don't declare `./v11_x` export keys (ui-motion, ui-position,
ui-dialog, ui-focusable, ui-i18n, ui-portal, ui-selectable, ui-svg-images,
ui-truncate-list) are absent from the version map and have no entry, so the
select is omitted for them rather than rendered with no options.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@HerrTopi HerrTopi self-assigned this Aug 4, 2026
@HerrTopi
HerrTopi requested a review from balzss August 4, 2026 17:19
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2677/

Built to branch gh-pages at 2026-08-04 17:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

github-actions Bot pushed a commit that referenced this pull request Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

⚠️ Changes detected.

Status Count
Unchanged 0
Changed 1
New 96
Removed 32

📊 View full report

Diff images (33)

alert.png — baseline no longer produced

avatar.png — baseline no longer produced

badge.png — baseline no longer produced

billboard.png — baseline no longer produced

breadcrumb.png — baseline no longer produced

button-and-derivatives.png — baseline no longer produced

byline.png — baseline no longer produced

calendar.png — baseline no longer produced

checkbox.png — baseline no longer produced

checkboxgroup.png — baseline no longer produced

colorpicker.png — baseline no longer produced

contextview.png — baseline no longer produced

custom-and-lucide-icons.png — baseline no longer produced

dateinput-dateinput2.png — baseline no longer produced

datetimeinput.png — baseline no longer produced

diff-demo.png — 6324 pixels differ

drilldown.png — baseline no longer produced

filedrop.png — baseline no longer produced

form-errors.png — baseline no longer produced

heading.png — baseline no longer produced

img.png — baseline no longer produced

link.png — baseline no longer produced

menu.png — baseline no longer produced

metric-pill-tag-timeselect-text.png — baseline no longer produced

options.png — baseline no longer produced

pagination.png — baseline no longer produced

progressbar.png — baseline no longer produced

select-simpleselect.png — baseline no longer produced

table.png — baseline no longer produced

tabs.png — baseline no longer produced

tooltip.png — baseline no longer produced

treebrowser.png — baseline no longer produced

view.png — baseline no longer produced

Baselines come from the visual-baselines branch. They refresh on every merge to master.

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.

1 participant