Skip to content

feat: combine home and community section#995

Merged
tannerlinsley merged 1 commit into
mainfrom
home-community
Jun 16, 2026
Merged

feat: combine home and community section#995
tannerlinsley merged 1 commit into
mainfrom
home-community

Conversation

@KevinVandy

@KevinVandy KevinVandy commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Refactor
    • Community documentation is now organized under the Home tab for improved navigation.
    • Updated docs menu to feature Discord community link, replacing the previous YouTube link.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0f1b4f25-1188-499a-9dae-8b614605485f

📥 Commits

Reviewing files that changed from the base of the PR and between f8c0de3 and 4088ce9.

📒 Files selected for processing (2)
  • src/components/LibraryLayout.tsx
  • src/utils/docsNavTabs.ts
💤 Files with no reviewable changes (1)
  • src/components/LibraryLayout.tsx

📝 Walkthrough

Walkthrough

Removes the community docs navigation tab and folds community-related paths (/docs/community, /docs/contributors, /docs/npm-stats, /docs/blog) into the Home tab. Adjusts docsNavTabIds, docsNavTabs, getFallbackDocsNavTabId, getTabbedMenuConfig, and getActiveDocsNavTabId accordingly. In the sidebar, swaps the YouTube external link for a Discord link.

Changes

Community Tab Removal and Discord Link

Layer / File(s) Summary
Sidebar: YouTube → Discord link swap
src/components/LibraryLayout.tsx
Removes the YouTubeIcon import and replaces the YouTube external menu item with a Discord entry (DiscordIcon) pointing to https://tlinz.com/discord.
Community tab removed from nav contracts
src/utils/docsNavTabs.ts
Removes 'community' from docsNavTabIds and deletes the Community entry from docsNavTabs, narrowing the DocsNavTabId type.
Community path routing remapped to home
src/utils/docsNavTabs.ts
Updates getFallbackDocsNavTabId, getTabbedMenuConfig, and getActiveDocsNavTabId so all community-related destinations and pathnames resolve to 'home'; Home tab's firstItem is specialized to the .. target.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • TanStack/tanstack.com#904: Introduced the docs-nav tab routing logic in src/utils/docsNavTabs.ts that this PR modifies, including the original community tab id and its path-matching functions.

Poem

🐇 Hop hop, the YouTube link has gone away,
A Discord burrow opens up today!
Community paths now lead back home,
No separate tab for docs to roam.
The warren's tidier, the nav is neat —
One less tunnel makes the layout sweet! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: combine home and community section' accurately reflects the main change—consolidating community content into the home navigation tab across multiple files.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch home-community

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 and usage tips.

@tannerlinsley tannerlinsley merged commit 5874e4c into main Jun 16, 2026
9 checks passed
@tannerlinsley tannerlinsley deleted the home-community branch June 16, 2026 21:09
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