Skip to content

Conversation

@jperals
Copy link
Member

@jperals jperals commented Dec 15, 2025

Issue: AWSUI-61577

Description of changes:

This allows our documentation to better show the props that have one single possible string as a value, like variant in Button Group:

Current behavior:
Screenshot 2026-01-14 at 09 17 40

New behavior (screenshot from my website pipeline):
Screenshot 2026-01-14 at 09 17 26

Actually, this fix had been already done here but inadvertently reverted in a rewrite here.

Failures in Components and Chart components unit tests are expected, as the Documenter snapshots will differ until they are updated in these packages. I propose to apply this SOP: 2ksIAPIa8aCi

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.29%. Comparing base (2753437) to head (e739175).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
- Coverage   96.68%   96.29%   -0.40%     
==========================================
  Files          11       11              
  Lines         845      864      +19     
  Branches      290      284       -6     
==========================================
+ Hits          817      832      +15     
- Misses         28       32       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jperals jperals force-pushed the fix/single-union-type branch 2 times, most recently from 71d9d97 to 219c8ad Compare January 13, 2026 16:33
@jperals jperals force-pushed the fix/single-union-type branch from 219c8ad to e739175 Compare January 13, 2026 17:56
@jperals jperals marked this pull request as ready for review January 14, 2026 08:34
@jperals jperals requested a review from a team as a code owner January 14, 2026 08:34
@jperals jperals requested review from Who-is-PS and removed request for a team January 14, 2026 08:34
import { extractValueDescriptions } from './extract-value-descriptions';

function getOriginalTypeName(rawTypeNode: ts.TypeNode) {
if (ts.isTypeReferenceNode(rawTypeNode) || ts.isQualifiedName(rawTypeNode)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to add a couple comments, like here and here, but the v8 coverage provider would mark the comment lines as uncovered for some reason I could not figure out (might be just a bug in the v8 reporter).

In #107 I experimented with switching to istanbul as coverage provider, but it seems to have other issues (marks import statements as uncovered) and the overall coverage metric drops considerably. So leaving like this for now.

@jperals jperals added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit 646fdaa Jan 19, 2026
45 of 47 checks passed
@jperals jperals deleted the fix/single-union-type branch January 19, 2026 09:58
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.

2 participants