Skip to content

fix(docs): include components at different version stages in versioned docs#2464

Merged
HerrTopi merged 2 commits intomasterfrom
fix/docs-version-map-multi-version
Mar 17, 2026
Merged

fix(docs): include components at different version stages in versioned docs#2464
HerrTopi merged 2 commits intomasterfrom
fix/docs-version-map-multi-version

Conversation

@balzss
Copy link
Contributor

@balzss balzss commented Mar 17, 2026

The version map stored a single componentVersion per package per library version, determined by the first import found in the export file. This excluded components that haven't been migrated to v2 (e.g. DateInput2) from v11_7 docs, because the export file also imports DateInput/v2 and only that first match was recorded.

Changed to collect all component versions referenced in each export file so packages with mixed v1/v2 components are correctly included.

Also migrated DateInput and DateInput2 the following way:
DateInput/v1 =>deprecated
DateInput/v2 => DateInput2, updated
DateInput2/v1 => deprecated

…d docs

The version map stored a single componentVersion per package per library
version, determined by the first import found in the export file. This
excluded components that haven't been migrated to v2 (e.g. DateInput2)
from v11_7 docs, because the export file also imports DateInput/v2 and
only that first match was recorded.

Changed to collect all component versions referenced in each export file
so packages with mixed v1/v2 components are correctly included.
@balzss balzss self-assigned this Mar 17, 2026
@balzss balzss requested a review from HerrTopi March 17, 2026 13:07
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-17 21:31 UTC

@HerrTopi HerrTopi force-pushed the fix/docs-version-map-multi-version branch from 808e4a6 to c12c609 Compare March 17, 2026 14:08
@HerrTopi HerrTopi self-assigned this Mar 17, 2026
@HerrTopi HerrTopi force-pushed the fix/docs-version-map-multi-version branch from c12c609 to 8fcebce Compare March 17, 2026 15:37
@HerrTopi HerrTopi requested a review from matyasf March 17, 2026 15:51
Copy link
Collaborator

@matyasf matyasf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but hard to understand, I've added some comments about documentation

---

> _Note:_ we recommend to update to the new [`DateInput2`](/#DateInput2) which is easier to configure for developers, has a better UX, better accessibility features and a year picker. `DateInput` will be deprecated in the future.
> _Info_: If you are migrating from the deprecated [`DateInput2`](/v11_6/DateInput2), this `DateInput` component has the same API — you can switch with no code changes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need an old DateInput -> new DateInput migration guide. Also versions here are hard to understand, maybe make a short table?

v11.6 DateInput: Old API, old theming. Deprecated, a11y issues
v11.6 DateInput2: new API, old theming. Deprecated. Cannot use the new themes.
v11.7 DateInput: new API, new theming. Good a11y, works with the new themes

---

> _Info_: `DateInput2` is an upgrade to the [`DateInput`](/#DateInput) component, offering easier configuration, better UX, improved accessibility, and a year picker. Please consider updating to this for WCAG compatiblity and an overall better experience (for both devs and users).
> **Deprecated:** `DateInput2` is deprecated and will not receive further updates. Its functionality has been merged into the latest version of [`DateInput`](/v11_7/DateInput) which has the same API. Please migrate to `DateInput` for continued support.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must mention here, that this component does NOT work with the new themes (because it uses old components internally)

---

> _Note:_ we recommend to update to the new [`DateInput2`](/#DateInput2) which is easier to configure for developers, has a better UX, better accessibility features and a year picker. `DateInput` will be deprecated in the future.
> **Deprecated:** This version of `DateInput` is deprecated. Please use the latest version of [`DateInput`](/v11_7/DateInput) which offers easier configuration, better UX, improved accessibility, and a year picker.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would write here more details about versions and compatibility. Also we will need an old DateInput -> new DateInput migration guide.

Also versions here are hard to understand, maybe make a short table?

v11.6 DateInput: Old API, old theming. Deprecated, a11y issues
v11.6 DateInput2: new API, old theming. Deprecated. Cannot use the new themes.
v11.7 DateInput: new API, new theming. Good a11y, works with the new themes

@HerrTopi HerrTopi force-pushed the fix/docs-version-map-multi-version branch from 8fcebce to d9b9789 Compare March 17, 2026 17:31
@HerrTopi HerrTopi requested a review from matyasf March 17, 2026 17:41
@HerrTopi HerrTopi merged commit c685444 into master Mar 17, 2026
10 of 11 checks passed
@HerrTopi HerrTopi deleted the fix/docs-version-map-multi-version branch March 17, 2026 21:30
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.

3 participants