Conversation
Reviewer's GuideRefines generated docs formatting for default values and types, and replaces the custom Rollup-based d.ts build pipeline with @wc-toolkit/jsx-types-driven type generation integrated into the custom-elements manifest config, simplifying build/watch flows by removing d.ts tasks and config. Class diagram for updated Docs docs-generator behaviorclassDiagram
class Docs {
+generatePropertyTable(mergedData: MergedTableData[]): string
+getTypeText(obj: any): string
-normalizeType(text: string): string
}
class MergedTableData {
+properties: string
+attributes: string
+modifiers: string
+type: string
+default: string
+description: string
}
Docs ..> MergedTableData : reads
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Closed
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- The inline default value sanitization/wrapping logic in
docs-generator.tsis getting a bit dense; consider extracting it into a small helper function (e.g.,formatDefaultValue) both for readability and to make its behavior easier to unit-test and reuse. - The new
normalizeTypeutility replaces all single-quoted segments with backticks; if there are any cases where single quotes are semantically important (e.g., textual comments in types), you may want to narrow this regex or limit it to known type patterns to avoid unintended formatting. - Since
normalizeTypeis a pure helper used across several branches, consider moving it out of the method body so it isn’t re-created on each call and to make its intent more discoverable.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The inline default value sanitization/wrapping logic in `docs-generator.ts` is getting a bit dense; consider extracting it into a small helper function (e.g., `formatDefaultValue`) both for readability and to make its behavior easier to unit-test and reuse.
- The new `normalizeType` utility replaces all single-quoted segments with backticks; if there are any cases where single quotes are semantically important (e.g., textual comments in types), you may want to narrow this regex or limit it to known type patterns to avoid unintended formatting.
- Since `normalizeType` is a pure helper used across several branches, consider moving it out of the method body so it isn’t re-created on each call and to make its intent more discoverable.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
chrisfalaska
approved these changes
Dec 3, 2025
Member
|
🎉 This PR is included in version 3.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alaska Airlines Pull Request
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Update documentation generation formatting and simplify build pipeline by delegating TypeScript definition output to the custom elements manifest tooling.
Enhancements:
Build:
Documentation: