Skip to content

Add AI-assisted section to homepage - #2166

Merged
Andriy Knysh (aknysh) merged 7 commits into
mainfrom
osterman/ai-hero-component
Mar 12, 2026
Merged

Andriy Knysh (aknysh) merged 7 commits into
mainfrom
osterman/ai-hero-component

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Mar 11, 2026 •

Copy link
Copy Markdown
Member

what

  • Added a new AI-assisted section on the Atmos homepage positioned between the hero and "See Atmos in Action" demo
  • Implemented a visually striking AI badge with animated Atmos Pro gradient text ("AI" / "Assisted" in a rounded rectangle with violet glow)
  • Added three capability cards: Interactive AI Chat, Skills Marketplace (21+ skills), and MCP Server integration
  • All content links to the /ai documentation page (both the badge and "Explore Atmos AI" CTA)
  • Animations fade in on scroll and fade out when scrolling back up (no once: true constraint)

why

  • Highlights Atmos AI as a shipped feature (Q1 2026) directly on the homepage for better discoverability
  • Uses the Atmos Pro color theme (animated gradient) to maintain visual consistency with the brand
  • Positioned below the hero fold to maintain the intentional above/below-fold reveal effect already established on the page
  • Encourages users to explore AI capabilities with clear CTAs

references

  • Repurposed visual design from Cloud Posse www project's bento-box AI component
  • Uses existing Atmos design patterns: Framer Motion animations, plain CSS styling, dark/light mode support

Summary by CodeRabbit

  • New Features
    • Added an AI section to the landing page with animated capability cards, an interactive AI badge, call-to-action, theme-aware styling, and responsive layout.
  • Documentation
    • Streamlined the AI example README into a concise task-focused guide and clarified AI docs messaging about supported providers and credential handling.
  • Style
    • Adjusted hero-demo vertical spacing and applied transparent backgrounds for Bash/SH code blocks in the terminal component.

@github-actions github-actions Bot added the size/m Medium size PR label Mar 11, 2026
@github-actions

github-actions Bot commented Mar 11, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

@coderabbitai

coderabbitai Bot commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds 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

Cohort / File(s) Summary
AI Section Component
website/src/components/AISection/index.js, website/src/components/AISection/styles.css
New default-exported AISection React component using Framer Motion: AIBadge, CTA, and three animated capability cards; comprehensive responsive, theme-aware CSS (gradients, glow, layout breakpoints).
Landing Page Integration
website/src/pages/index.js, website/src/css/landing-page.css
Imports and renders <AISection /> in Home; .hero-demo top margin changed from -20vh to 0.
Docs / Examples
examples/ai/README.md, website/docs/ai/ai.mdx
Condensed the Atmos AI example README into a task-focused layout; updated AI docs intro and added BYO credentials/provider messaging.
Terminal Styling
website/src/components/Terminal/index.css
Added transparent background rules for Bash/SH Prism code blocks to align terminal styling with other languages.

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
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • aknysh
  • RoseSecurity
🚥 Pre-merge checks | ✅ 2 | ❌ 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 (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add AI-assisted section to homepage' clearly and accurately summarizes the main change—adding a new AI section to the homepage with animated elements and capability cards.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch osterman/ai-hero-component
📝 Coding Plan for PR comments
  • Generate coding plan

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.

@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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 66ac17c and 912755a.

📒 Files selected for processing (4)
  • website/src/components/AISection/index.js
  • website/src/components/AISection/styles.css
  • website/src/css/landing-page.css
  • website/src/pages/index.js

Comment thread website/src/pages/index.js Resolved
@codecov

codecov Bot commented Mar 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.19%. Comparing base (42605ff) to head (069feb4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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     
Flag Coverage Δ
unittests 77.19% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@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.

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-motion override 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

📥 Commits

Reviewing files that changed from the base of the PR and between 912755a and 1f37bba.

📒 Files selected for processing (4)
  • examples/ai/README.md
  • website/docs/ai/ai.mdx
  • website/src/components/AISection/styles.css
  • website/src/components/Terminal/index.css

Comment thread website/docs/ai/ai.mdx Resolved
@osterman Erik Osterman (Cloud Posse) (osterman) added the no-release Do not create a new release (wait for additional code changes) label Mar 11, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Mar 11, 2026

@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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 325618b and 8cafc55.

📒 Files selected for processing (2)
  • website/docs/ai/ai.mdx
  • website/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]>
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]>

@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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 8cafc55 and e90b11c.

📒 Files selected for processing (7)
  • examples/ai/README.md
  • website/docs/ai/ai.mdx
  • website/src/components/AISection/index.js
  • website/src/components/AISection/styles.css
  • website/src/components/Terminal/index.css
  • website/src/css/landing-page.css
  • website/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

Comment thread examples/ai/README.md Resolved
Comment thread website/docs/ai/ai.mdx Resolved
coderabbitai[bot]
coderabbitai Bot previously approved these changes Mar 12, 2026
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]>
@aknysh
Andriy Knysh (aknysh) merged commit 0072672 into main Mar 12, 2026
58 checks passed
@aknysh
Andriy Knysh (aknysh) deleted the osterman/ai-hero-component branch March 12, 2026 16:44
@github-actions

Copy link
Copy Markdown

These changes were released in v1.210.0-test.20.

Igor Rodionov (goruha) added a commit that referenced this pull request Mar 15, 2026
…se/atmos into goruha/native-ci-terraform-plan

* 'goruha/native-ci-terraform-plan' of github.com:cloudposse/atmos:
  [autofix.ci] apply automated fixes
  chore: loosen issue templates and add AI prompt type (#2179)
  Add AI-assisted section to homepage (#2166)

This branch was successfully deployed

1 active deployment
preview — 069feb47 Deployed Mar 12, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Do not create a new release (wait for additional code changes) size/m Medium size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants