Skip to content

Conversation

@just-boris
Copy link
Member

Issue #, if available:

Description of changes:

Implement design described in this quip: GPxrABVyujLV

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

@just-boris just-boris force-pushed the components-without-typedoc branch from 2285ec3 to 76f2e86 Compare April 9, 2025 14:18
@codecov
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 95.83333% with 3 lines in your changes missing coverage. Please review.

Project coverage is 90.52%. Comparing base (14530c1) to head (e9939c4).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/components/type-utils.ts 91.30% 2 Missing ⚠️
src/components/component-definition.ts 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   90.02%   90.52%   +0.50%     
==========================================
  Files          16       16              
  Lines         461      517      +56     
  Branches      130      136       +6     
==========================================
+ Hits          415      468      +53     
- Misses         46       49       +3     

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

if (maybeList.kind !== ts.SyntaxKind.SyntaxList) {
return [];
}
const rawComments: Array<string | undefined> = [];
Copy link
Member Author

Choose a reason for hiding this comment

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

Here begins manual comments parsing from Typescript AST.

There is no high level API for that: microsoft/TypeScript#38106 so I followed manual TypeDoc implementation as a reference.

Why not using Typedoc, if they have this feature? – because they do not expose this in a consumable way.

So, we will have this code for now until there is a first-class feature for that

@just-boris just-boris force-pushed the components-without-typedoc branch 2 times, most recently from 6fa3a4d to 29b2c10 Compare April 9, 2025 15:55
@just-boris just-boris force-pushed the components-without-typedoc branch from 29b2c10 to ef9c77b Compare April 9, 2025 16:22
@just-boris just-boris marked this pull request as ready for review April 9, 2025 16:22
@just-boris just-boris requested a review from a team as a code owner April 9, 2025 16:22
@just-boris just-boris requested review from jperals and removed request for a team April 9, 2025 16:22
return tag ? tag.text ?? '' : undefined;
}

function getMultipleCommentTag(description: ExtractedDescription, name: string) {
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: can we name this getMultipleCommentTags in plural? (or even just getCommentTagsgetMultipleCommentTag suggested me that there are multiple comments to parse, instead of (potentially) multiple tags to output)

Copy link
Member Author

Choose a reason for hiding this comment

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

renamed ✅

name,
releaseStatus: 'stable',
description: componentDescription.text,
systemTag: getMultipleCommentTag(componentDescription, 'awsuiSystem'),
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, why not systemTags?

Copy link
Member Author

Choose a reason for hiding this comment

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

renamed ✅

@just-boris just-boris added this pull request to the merge queue Apr 10, 2025
Merged via the queue into main with commit 96ce152 Apr 10, 2025
35 checks passed
@just-boris just-boris deleted the components-without-typedoc branch April 10, 2025 08:25
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