Repository navigation
Add AI-assisted section to homepage - #2166
Conversation
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a new AISection React component with animations and styles and mounts it on the landing page; adjusts hero-demo spacing, adds terminal code-block CSS for Bash/SH transparency, and updates AI example README and AI docs copy. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Browser
participant HomePage as Home Page
participant AISection
participant Router
User->>Browser: Navigate to site
Browser->>HomePage: Render Home component
HomePage->>AISection: Mount AISection
AISection->>AISection: Animate badge & capability cards (Framer Motion)
User->>AISection: Click AIBadge/CTA
AISection->>Router: Navigate to /ai
Router->>Browser: Load /ai page
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan for PR comments
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@website/src/components/AISection/styles.css`:
- Line 150: Replace vendor-prefixed background declarations using
-webkit-linear-gradient with the standard linear-gradient(...) in the CSS rules
(e.g., the background property that currently uses
-webkit-linear-gradient(-45deg, `#eb1a1a`, `#583ce7`, `#2ec8ff`, `#23d5ab`)), leaving
the existing -webkit-background-clip and -webkit-text-fill-color properties
intact to preserve the text-clip effect; make the same change for the other
occurrences flagged (the background declarations mentioned at the other
locations).
In `@website/src/pages/index.js`:
- Line 58: The AISection component is rendered outside the page's <main>
landmark (between </header> and <main>), so move the <AISection /> JSX into the
existing <main> element used by the homepage; locate the AISection insertion in
index.js and place it alongside the other primary content inside the
<main>...</main> block (or wrap the primary content and AISection together in
<main> if needed) so the component is included in the page's main landmark for
proper semantic/assistive navigation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 86328f7c-8f74-456f-8ef6-79104cc42128
📒 Files selected for processing (4)
website/src/components/AISection/index.jswebsite/src/components/AISection/styles.csswebsite/src/css/landing-page.csswebsite/src/pages/index.js
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2166 +/- ##
==========================================
+ Coverage 77.17% 77.19% +0.01%
==========================================
Files 953 953
Lines 90403 90403
==========================================
+ Hits 69773 69784 +11
+ Misses 16556 16548 -8
+ Partials 4074 4071 -3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
website/src/components/AISection/styles.css (1)
150-161: Add a reduced-motion fallback for the looping badge animation.The badge animation and hover lift keep moving even for users who request reduced motion. A small
prefers-reduced-motionoverride would make this section friendlier without changing the default design.Suggested fix
+@media (prefers-reduced-motion: reduce) { + .ai-badge-text { + animation: none; + } + + .ai-capability-card { + transition: none; + } + + .ai-capability-card:hover { + transform: none; + } +}Also applies to: 197-203, 210-212
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@website/src/components/AISection/styles.css` around lines 150 - 161, The animated badge (.ai-badge-text) and its hover lift currently ignore users' reduced-motion preferences; add a prefers-reduced-motion media query that disables or significantly reduces the animation and hover transform for .ai-badge-text (and any related hover selector used for the lift) by setting animation: none (or a very short-duration/step) and removing transforms/transition effects, and ensure both -webkit- and standard properties are covered so users who request reduced motion see a static, non-moving badge.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@website/docs/ai/ai.mdx`:
- Around line 16-17: Replace the ambiguous phrasing "any provider" and "key" in
the intro copy with more accurate terms: use "supported providers" (instead of
"any provider") and "credentials" (instead of "key"), and explicitly note that
Atmos supports provider-specific auth styles such as Bedrock-style credentials;
update the sentence that currently reads 'Bring your own key for any provider —
OpenAI, Anthropic, Bedrock, or others — and Atmos knows how to use it.' to a
tightened version using those replacements, and ensure the website wording stays
consistent with the CLI docs and any new feature examples illustrating
provider-specific credential configuration.
In `@website/src/components/Terminal/index.css`:
- Around line 114-136: The new CSS rules for .terminal
.language-bash.theme-code-block, .terminal pre.prism-code.language-bash,
.terminal .language-sh.theme-code-block, and .terminal
pre.prism-code.language-sh are using the shorthand background after
background-color which triggers Stylelint/Biome errors; remove the redundant
"background: transparent !important;" declarations from those selectors and keep
only the transparent --prism-background-color and background-color lines (with
!important if needed) so the effective style remains the same but the linter
error is resolved.
---
Nitpick comments:
In `@website/src/components/AISection/styles.css`:
- Around line 150-161: The animated badge (.ai-badge-text) and its hover lift
currently ignore users' reduced-motion preferences; add a prefers-reduced-motion
media query that disables or significantly reduces the animation and hover
transform for .ai-badge-text (and any related hover selector used for the lift)
by setting animation: none (or a very short-duration/step) and removing
transforms/transition effects, and ensure both -webkit- and standard properties
are covered so users who request reduced motion see a static, non-moving badge.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6faa8be5-db4a-43db-9b4c-d750f6a54982
📒 Files selected for processing (4)
examples/ai/README.mdwebsite/docs/ai/ai.mdxwebsite/src/components/AISection/styles.csswebsite/src/components/Terminal/index.css
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@website/src/components/Terminal/index.css`:
- Around line 114-132: Collapse the four identical rules into a single grouped
selector to remove duplication and satisfy Stylelint: group .terminal
.language-bash.theme-code-block, .terminal pre.prism-code.language-bash,
.terminal .language-sh.theme-code-block, and .terminal
pre.prism-code.language-sh into one rule block that sets
--prism-background-color and background-color, and ensure there is a blank line
before the background-color declaration to satisfy declaration-empty-line-before
(keep the --prism-background-color declaration first, then a blank line, then
background-color).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: ca14f2c9-fd99-47a8-9d28-d1746244e801
📒 Files selected for processing (2)
website/docs/ai/ai.mdxwebsite/src/components/Terminal/index.css
🚧 Files skipped from review as they are similar to previous changes (1)
- website/docs/ai/ai.mdx
Add a new AI-assisted section on the Atmos homepage between the hero and "See Atmos in Action" demo, featuring an animated gradient badge with "AI" text, section description, and three capability cards highlighting Interactive AI Chat, Skills Marketplace, and MCP Server integration. The section uses Framer Motion for scroll-triggered animations and links to the /ai documentation. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
… example README - Fix CTA button alignment and padding in AI homepage section - Update /ai docs intro to emphasize BYOK model and provider flexibility - Add transparent background overrides for bash/sh in Terminal component - Trim AI example README from 340 to 42 lines following standard format Co-Authored-By: Claude Opus 4.6 <[email protected]>
…near-gradient Co-Authored-By: Claude Opus 4.6 <[email protected]>
…th wording Co-Authored-By: Claude Opus 4.6 <[email protected]>
Collapse four identical selector rules into one grouped selector with a blank line before background-color to fix declaration-empty-line-before. Co-Authored-By: Claude Opus 4.6 <[email protected]>
53b022b to
e90b11c
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@examples/ai/README.md`:
- Line 9: Update the provider list in the examples/ai README by aligning it with
the main docs: replace or remove the explicit list "Anthropic, OpenAI, Gemini,
Ollama" (the text next to the "[Multi-provider AI configuration]" link) so it
matches the providers shown in ai.mdx ("OpenAI, Anthropic, Bedrock") or simply
link without enumerating providers; ensure the README's provider wording mirrors
ai.mdx to keep CLI and website docs in sync.
In `@website/docs/ai/ai.mdx`:
- Around line 16-17: Update the sentence that currently ends with "or others" to
explicitly list the supported providers or point to the full list in the
registry; specifically, replace it with either "OpenAI, Anthropic, Bedrock,
Azure OpenAI, Gemini, Grok, Ollama" or "and more (see registry)" with a link to
the registry; reference the AI registry (registry) that only accepts providers:
anthropic, openai, bedrock, azureopenai, gemini, grok, ollama so the docs match
behavior and avoid implying support for unregistered providers.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 32d3a8ae-596a-469e-9f3a-5a3c1fc98e4f
📒 Files selected for processing (7)
examples/ai/README.mdwebsite/docs/ai/ai.mdxwebsite/src/components/AISection/index.jswebsite/src/components/AISection/styles.csswebsite/src/components/Terminal/index.csswebsite/src/css/landing-page.csswebsite/src/pages/index.js
🚧 Files skipped from review as they are similar to previous changes (5)
- website/src/components/Terminal/index.css
- website/src/components/AISection/index.js
- website/src/pages/index.js
- website/src/components/AISection/styles.css
- website/src/css/landing-page.css
List all 7 registered providers (OpenAI, Anthropic, Bedrock, Azure OpenAI, Gemini, Grok, Ollama) in both the examples/ai README and the ai.mdx docs page, replacing incomplete/vague provider lists. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
These changes were released in v1.210.0-test.20. |
what
/aidocumentation page (both the badge and "Explore Atmos AI" CTA)once: trueconstraint)why
references
Summary by CodeRabbit