Skip to content

chore: [docs] upgrade fumadocs, next and zod in the docs site - #996

Open
Shreyag02 wants to merge 4 commits into
fix/docs-props-syncfrom
chore/upgrade-fumadocs
Open

Shreyag02 wants to merge 4 commits into
fix/docs-props-syncfrom
chore/upgrade-fumadocs

Conversation

@Shreyag02

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade fumadocs-typescript to 5.6.0, fumadocs-core and fumadocs-ui to 16.17.9, fumadocs-mdx to 15.4.10, next to 16.4.3 and zod to ^4.6.7, and remove the unused fumadocs-docgen. Each props row now shows a short type, and the expanded row shows the full type.
  • Render the highlighted type, typeDescription and default nodes in TypeTable, and let the MDX code component pass them through. These ship with the upgrade, since without them every row shows [object Object].
  • Build the LLM text tables with typeTableToMarkdown. 5.x passes tags as an array, so the old code lost the defaults.
  • Move the generator to lib/type-table.ts, so the pages and the LLM text use one generator and transform. The transform keeps the written type for literal unions, aliases, *Ref and children, and shows function for callbacks.
  • Add tsconfig.props.json with types: ["react"]. fumadocs-typescript 5 runs TypeScript 7, which loads no @types package by default, so React.* types showed as any.

Part of #879

@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
apsara Ready Ready Preview Oct 30, 2026 3:55am UTC

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e6be862-7bf5-4a6d-b283-36426c836612
Commits

Reviewing files that changed from the base of the PR and between 73ca7ae and 3fe7815.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 10
  • apps/www/package.json
  • apps/www/source.config.ts
  • apps/www/src/components/mdx/code.tsx
  • apps/www/src/components/typetable/typetable.module.css
  • apps/www/src/components/typetable/typetable.tsx
  • apps/www/src/lib/ai.ts
  • apps/www/src/lib/remark.ts
  • apps/www/src/lib/type-table.ts
  • apps/www/tsconfig.json
  • apps/www/tsconfig.props.json
Walkthrough

The docs app updates Fumadocs, Next.js, and Zod dependencies. It moves type-table generator configuration into a shared module and passes the generator and transform to the docs and AI processors. The remark plugin converts generated type-table data to Markdown. The type-table UI changes how it displays types and defaults, and the MDX Code component handles non-string children directly.

Sequence Diagram(s)

sequenceDiagram
  participant SourceConfig
  participant remarkAutoTypeTable
  participant generator
  participant transform
  participant remarkTypeTableToMd
  participant typeTableToMarkdown
  SourceConfig->>remarkAutoTypeTable: Register generator and transform options
  remarkAutoTypeTable->>generator: Generate type-table data
  generator->>transform: Transform property entries
  generator->>remarkTypeTableToMd: Provide generated TypeTable data
  remarkTypeTableToMd->>typeTableToMarkdown: Convert normalized entries to Markdown
Loading

Possibly related issues

  • raystack/apsara#990 — The changes update the docs-site dependencies and adapt TypeTable behavior described by the issue.
  • raystack/apsara#988 — The added props TypeScript configuration sets React types for type generation; the broader TypeScript migration is not included.

Suggested reviewers: rohanchkrabrty

Priority: Normal

Merge Risk: Minimal · previous review 73ca7

The dependency and type-table updates have no demonstrated merge-blocking defect. Whether expanded types omit optionality remains unverified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main dependency upgrades in the docs site. It is concise and related to the changeset.
Description check Passed The description accurately covers the dependency upgrades, TypeTable rendering changes, shared generator, Markdown conversion, and TypeScript configuration changes.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 6 files. (4 skipped: 4 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@raystack/apsara@996

commit: 3fe7815

@Shreyag02 Shreyag02 self-assigned this Oct 30, 2026
@Shreyag02
Shreyag02 marked this pull request as ready for review October 30, 2026 03:10
@Shreyag02
Shreyag02 added this pull request to stack #999 October 30, 2026 03:10

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Additional comments: 1
apps/www/src/components/typetable/typetable.tsx-127-129: 1

127-129: Minor · Potential issue · Low value

Unverified finding
We couldn't verify this from the code. It is shown for review, not as a verified issue.

The expanded row no longer appends | undefined for optional props. If Fumadocs supplies a typeDescription that omits optionality, the displayed full type now misstates that prop's signature.

The expanded type table presents an optional prop as having a non-undefined type.

This can occur when: An optional prop has a full typeDescription node such as string rather than string | undefined.


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c506eec3-2d3b-4cb1-96bd-59bf6c032dec
Commits

Reviewing files that changed from the base of the PR and between 4ccee72 and 73ca7ae.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 10
  • apps/www/package.json
  • apps/www/source.config.ts
  • apps/www/src/components/mdx/code.tsx
  • apps/www/src/components/typetable/typetable.module.css
  • apps/www/src/components/typetable/typetable.tsx
  • apps/www/src/lib/ai.ts
  • apps/www/src/lib/remark.ts
  • apps/www/src/lib/type-table.ts
  • apps/www/tsconfig.json
  • apps/www/tsconfig.props.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

This branch was successfully deployed

1 active deployment
Preview — 3fe78150 Deployed Oct 30, 2026 by vercel[bot]
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.

1 participant