Skip to content

feat(ui): add beta badge to automations sidebar and view header#1673

Merged
arnestrickmann merged 3 commits intomainfrom
emdash/feat-automations-beta-badge-9ou
Apr 6, 2026
Merged

feat(ui): add beta badge to automations sidebar and view header#1673
arnestrickmann merged 3 commits intomainfrom
emdash/feat-automations-beta-badge-9ou

Conversation

@arnestrickmann
Copy link
Copy Markdown
Contributor

@arnestrickmann arnestrickmann commented Apr 6, 2026

Summary

  • Adds a styled "Beta" badge next to the Automations label in the left sidebar navigation
  • Adds the same "Beta" badge next to the Automations heading in the AutomationsView page header
  • Badge uses a subtle zinc-toned pill style with dark mode support

Test plan

  • Verify the beta badge appears next to "Automations" in the left sidebar
  • Verify the beta badge appears next to the "Automations" heading in the automations view
  • Confirm badge styling looks correct in both light and dark mode

Summary by CodeRabbit

  • Style
    • Added visible "Beta" badges to the Automations header and sidebar to indicate beta status.
  • Documentation
    • Appended "Beta" badge to the Automations docs page and updated docs navigation to display beta labels where applicable.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

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

Project Deployment Actions Updated (UTC)
docs Error Error Apr 6, 2026 2:31pm

Request Review

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 6, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 27f17b84-8170-4dc5-9e14-4bd3008310b9

📥 Commits

Reviewing files that changed from the base of the PR and between 85662f0 and fe13d49.

📒 Files selected for processing (1)
  • docs/content/docs/automations.mdx

📝 Walkthrough

Walkthrough

Added "Beta" badge UI elements for the Automations feature in two renderer components and annotated the docs navigation tree and Automations docs page to display the same badge; no exported signatures or runtime control flow changes were introduced.

Changes

Cohort / File(s) Summary
Renderer — Automations UI
src/renderer/components/automations/AutomationsView.tsx, src/renderer/components/sidebar/LeftSidebar.tsx
Inserted a styled "Beta" <span> next to the Automations heading and sidebar label; styling includes uppercase, small font, and zinc-themed light/dark color variants. No state or event changes.
Docs layout — badge injection
docs/app/[[...slug]]/layout.tsx
Added a betaPages set and addBetaBadges helper that recursively traverses PageTree.Node children to append Beta badge elements for matching pages; DocsLayout is passed a cloned tree with badges applied.
Docs content — page label
docs/content/docs/automations.mdx
Placed a styled Beta badge near the top of the Automations documentation page. Documentation-only change.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I nibble code and plant a flag so spry,
A tiny "Beta" gleams beneath the sky,
In header, sidebar, docs I hop with glee,
A soft zinc wink where automations be,
Hop on — this feature hums beside me!

🚥 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 accurately summarizes the main changes: adding a beta badge to both the automations sidebar and view header, which matches the scope of modifications across AutomationsView.tsx, LeftSidebar.tsx, and related files.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch emdash/feat-automations-beta-badge-9ou

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.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/renderer/components/sidebar/LeftSidebar.tsx (1)

427-429: LGTM! Beta badge implementation is clean.

The badge styling is consistent and includes proper dark mode support. The implementation aligns well with the PR objectives.

Optional: Consider extracting the badge to a reusable component.

The exact same badge styling appears in both LeftSidebar.tsx and AutomationsView.tsx. If this pattern will be used elsewhere or needs future updates, consider extracting it to a shared BetaBadge component.

♻️ Optional refactor to create a reusable badge component

Create a new file src/renderer/components/ui/BetaBadge.tsx:

import React from 'react';

export const BetaBadge: React.FC = () => {
  return (
    <span className="rounded bg-zinc-500/15 px-1.5 py-0.5 text-[9px] font-medium uppercase leading-none tracking-wide text-zinc-600 dark:bg-zinc-400/15 dark:text-zinc-400">
      Beta
    </span>
  );
};

Then update this file:

+import { BetaBadge } from '../ui/BetaBadge';
+
 ...
                   <Timer className="h-5 w-5 text-muted-foreground sm:h-4 sm:w-4" />
                   <span className="text-sm font-medium">Automations</span>
-                  <span className="rounded bg-zinc-500/15 px-1.5 py-0.5 text-[9px] font-medium uppercase leading-none tracking-wide text-zinc-600 dark:bg-zinc-400/15 dark:text-zinc-400">
-                    Beta
-                  </span>
+                  <BetaBadge />
                 </Button>

And similarly update AutomationsView.tsx.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/renderer/components/sidebar/LeftSidebar.tsx` around lines 427 - 429,
Extract the repeated span markup into a reusable BetaBadge component: create a
new component named BetaBadge (e.g., export const BetaBadge) that returns the
existing span markup, place it under src/renderer/components/ui/BetaBadge.tsx,
then replace the inline span in LeftSidebar.tsx and AutomationsView.tsx with a
JSX <BetaBadge /> and add the corresponding import for BetaBadge in both files;
ensure the component preserves the className and text content and is exported as
a named export so it can be reused elsewhere.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/renderer/components/sidebar/LeftSidebar.tsx`:
- Around line 427-429: Extract the repeated span markup into a reusable
BetaBadge component: create a new component named BetaBadge (e.g., export const
BetaBadge) that returns the existing span markup, place it under
src/renderer/components/ui/BetaBadge.tsx, then replace the inline span in
LeftSidebar.tsx and AutomationsView.tsx with a JSX <BetaBadge /> and add the
corresponding import for BetaBadge in both files; ensure the component preserves
the className and text content and is exported as a named export so it can be
reused elsewhere.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0e2b2894-2324-4130-9127-df84c69efdc4

📥 Commits

Reviewing files that changed from the base of the PR and between eb98f91 and 91d47f3.

📒 Files selected for processing (2)
  • src/renderer/components/automations/AutomationsView.tsx
  • src/renderer/components/sidebar/LeftSidebar.tsx

@arnestrickmann arnestrickmann merged commit eac6f0a into main Apr 6, 2026
3 of 5 checks passed
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.

1 participant