From 13fd656e2b3981d6d6b5774b653819782d83b619 Mon Sep 17 00:00:00 2001 From: dotta Date: Fri, 20 Mar 2026 13:10:45 -0500 Subject: [PATCH] Add Beta badge to Routines page and sidebar nav Adds an amber "Beta" tag next to "Routines" in both the page heading and the sidebar navigation item. Extends SidebarNavItem with textBadge and textBadgeTone props for reusable text badges. Co-Authored-By: Paperclip Co-Authored-By: Claude Opus 4.6 --- ui/src/components/Sidebar.tsx | 2 +- ui/src/components/SidebarNavItem.tsx | 16 ++++++++++++++++ ui/src/pages/Routines.tsx | 5 ++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ui/src/components/Sidebar.tsx b/ui/src/components/Sidebar.tsx index 1427245479..b8cea2ca26 100644 --- a/ui/src/components/Sidebar.tsx +++ b/ui/src/components/Sidebar.tsx @@ -99,7 +99,7 @@ export function Sidebar() { - + diff --git a/ui/src/components/SidebarNavItem.tsx b/ui/src/components/SidebarNavItem.tsx index 18ba03f11e..e0cd7f6f00 100644 --- a/ui/src/components/SidebarNavItem.tsx +++ b/ui/src/components/SidebarNavItem.tsx @@ -11,6 +11,8 @@ interface SidebarNavItemProps { className?: string; badge?: number; badgeTone?: "default" | "danger"; + textBadge?: string; + textBadgeTone?: "default" | "amber"; alert?: boolean; liveCount?: number; } @@ -23,6 +25,8 @@ export function SidebarNavItem({ className, badge, badgeTone = "default", + textBadge, + textBadgeTone = "default", alert = false, liveCount, }: SidebarNavItemProps) { @@ -50,6 +54,18 @@ export function SidebarNavItem({ )} {label} + {textBadge && ( + + {textBadge} + + )} {liveCount != null && liveCount > 0 && ( diff --git a/ui/src/pages/Routines.tsx b/ui/src/pages/Routines.tsx index 2ca8a3f72b..dcbdd1d622 100644 --- a/ui/src/pages/Routines.tsx +++ b/ui/src/pages/Routines.tsx @@ -229,7 +229,10 @@ export function Routines() {
-

Routines

+

+ Routines + Beta +

Recurring work definitions that materialize into auditable execution issues.