Skip to content

feat(ui): group overloaded functions into tabs - #1047

Closed
moshams272 wants to merge 2 commits into
nodejs:mainfrom
moshams272:feat/group-overload-functions-tabs
Closed

feat(ui): group overloaded functions into tabs#1047
moshams272 wants to merge 2 commits into
nodejs:mainfrom
moshams272:feat/group-overload-functions-tabs

Conversation

@moshams272

@moshams272 moshams272 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces a new tabbed UI for overloaded functions. This implementation is a direct result of the discussions in #1038. It updates the MDX AST to group overloads into OverloadTabs component(using tabs & react-tabs), utilizing CSS Grid stacking to prevent layout shifts; as it takes fixed height from the longest one.

Note: Using AI to write JSDocs & traverse some errors ;)

Validation

Add tests, and there are visual results:

Before:

image

After:

image

Related Issues

None

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run node --run test and all tests passed.
  • I have check code formatting with node --run format:check & node --run lint.
  • I've covered new added functionality with unit tests if necessary.

@moshams272
moshams272 requested a review from a team as a code owner August 19, 2026 21:58
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api-docs-tooling Ready Ready Preview Aug 19, 2026 9:59pm

Request Review

@moshams272

Copy link
Copy Markdown
Contributor Author

You can view the changes from here: vercel-preview

@avivkeller

Copy link
Copy Markdown
Member

It's an interesting idea, but I think it makes searching harder, e.g. if I want to search for Buffer.from(buffer): Buffer, I need to make sure I'm on the right tab

@avivkeller

Copy link
Copy Markdown
Member

Oddly enough, I'm fine with the showing of multiple overloads in our current state, and consumers can reformat their docs how they like.

Thanks for this demo, however :-)!

@moshams272

Copy link
Copy Markdown
Contributor Author

Hmm, fair enough! Thanks for your time 🤍

@moshams272 moshams272 closed this Aug 20, 2026
@moshams272
moshams272 deleted the feat/group-overload-functions-tabs branch August 20, 2026 13:04
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