Skip to content

Conversation

@sohamganatra
Copy link
Contributor

Summary

Adds SEO improvements and page feedback functionality.

SEO Improvements

  • JSON-LD schema: TechArticle structured data for search engines
  • TOC layout fix: Removed wrapper element that broke grid layout
  • Source config: Updated for better content handling

Page Feedback

  • feedback.tsx - Thumbs up/down rating component
  • /api/feedback - Feedback collection endpoint

Test Plan

  • View page source - JSON-LD script present
  • TOC appears in right sidebar on xl screens
  • Feedback buttons work (thumbs up/down)

🤖 Generated with Claude Code

SEO improvements:
- JSON-LD TechArticle schema for search engines
- Proper TOC sidebar layout (removed main wrapper)
- Updated source.config.ts for better content handling

Page feedback:
- feedback.tsx - Page rating component
- /api/feedback - Feedback collection endpoint

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vercel
Copy link

vercel bot commented Jan 8, 2026

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

Project Deployment Review Updated (UTC)
fumadocs Ready Ready Preview, Comment Jan 8, 2026 6:06am

@Sushmithamallesh
Copy link
Contributor

Cant see any feedback button: @sohamganatra

- source.config.ts: Add keywords field to docsSchema for search indexing
  (Zod strips unknown keys by default, so keywords weren't being passed)
- feedback.tsx: Prevent duplicate submissions by adding isSubmitting state,
  disabling buttons during submission, and awaiting async calls
- feedback.tsx: Remove invalid aria-describedby referencing non-existent hint

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
</div>
)}
</div>
);
Copy link

Choose a reason for hiding this comment

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

Feedback component created but never rendered on pages

High Severity

The Feedback component is fully implemented but never imported or rendered anywhere in the application. The component exists in fumadocs/components/feedback.tsx and the API endpoint in /api/feedback is created, but the Feedback component is not added to the docs page.tsx layout nor included in mdx-components.tsx for MDX usage. This explains the PR comment from a user who cannot see any feedback button. The entire page feedback feature is non-functional because the UI component is never displayed.

Additional Locations (1)

Fix in Cursor Fix in Web

@sohamganatra
Copy link
Contributor Author

Superseded by smaller PRs for easier review:

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.

3 participants