Skip to content

Conversation

@AlemTuzlak
Copy link
Contributor

@AlemTuzlak AlemTuzlak commented Jan 8, 2026

🎯 Changes

βœ… Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

πŸš€ Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • New Features
    • Added support for Grok (xAI) adapter.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 8, 2026

πŸ“ Walkthrough

Walkthrough

The pull request reorders the API configuration entry for ai-preact in docs/config.json, placing it after ai-solid. Additionally, a new "Grok (xAI)" adapter entry is added to the adapters section following the Ollama adapter.

Changes

Cohort / File(s) Summary
Configuration Updates
docs/config.json
Reordered AI API entries by moving ai-preact after ai-solid; added new Grok (xAI) adapter entry in the adapters section

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • Add preact integrationΒ #180: Adds the ai-preact API entry to docs/config.json; this PR reorders that same entry and introduces a new adapter alongside it, showing continued configuration management of the same file.

Poem

🐰 Hop, hop, configs rearrange!
Preact finds its rightful place,
Grok joins the adapter race,
Order flows through docs with grace!

πŸš₯ Pre-merge checks | βœ… 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description uses the correct template structure but the 'Changes' section is empty with only a placeholder comment, providing no actual explanation of what was changed or why. Fill in the 'Changes' section with a description of what was added (Grok/xAI adapter to sidebar) and the motivation for this change.
βœ… Passed checks (2 passed)
Check name Status Explanation
Title check βœ… Passed The title 'add xAI to sidebar' directly matches the main change: adding a Grok (xAI) adapter entry to the sidebar configuration.
Docstring Coverage βœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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


πŸ“œ Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between b2a5fab and 7aed842.

πŸ“’ Files selected for processing (1)
  • docs/config.json
🧰 Additional context used
🧠 Learnings (2)
πŸ“š Learning: 2025-12-13T17:09:09.794Z
Learnt from: CR
Repo: TanStack/ai PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-13T17:09:09.794Z
Learning: Applies to packages/typescript/*/src/index.ts : Export tree-shakeable adapters with clear subpath exports in package.json (e.g., `tanstack/ai/adapters`, `tanstack/ai-openai/adapters`) to minimize bundle size

Applied to files:

  • docs/config.json
πŸ“š Learning: 2025-12-13T17:09:09.794Z
Learnt from: CR
Repo: TanStack/ai PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-13T17:09:09.794Z
Learning: Applies to **/*.{ts,tsx} : Use tree-shakeable adapter architecture for provider implementations - export specialized adapters (text, embedding, summarize, image) as separate imports from `/adapters` subpath rather than monolithic adapters

Applied to files:

  • docs/config.json
πŸ”‡ Additional comments (2)
docs/config.json (2)

125-129: Verify the ai-preact reordering was intentional.

This change reorders the @tanstack/ai-preact entry to appear after @tanstack/ai-solid in the API section. Since the PR objective is specifically to add xAI to the sidebar, this reordering appears unrelated. Please confirm whether this change was intentional or accidental.


151-154: LGTM! The new Grok (xAI) adapter entry is correctly formatted and the corresponding documentation file at docs/adapters/grok.md exists. The change follows the same pattern as other adapter entries and integrates properly with the configuration.


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.

@AlemTuzlak AlemTuzlak merged commit 0e37d8b into main Jan 8, 2026
2 checks passed
@AlemTuzlak AlemTuzlak deleted the feat/add-grok-to-docs-sidebar branch January 8, 2026 16:32
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