Skip to content

Commit 3f6e5d7

Browse files
feat: improve mode names and UI consistency
- Remove emojis from mode names for cleaner UI - Change 'Code' mode to 'Agent' for better clarity - Standardize naming convention across all modes - Add new file icon components (FileIcon.tsx, FilePathWithIcon.tsx) - Improve various UI components for consistency - Enhance multiple chat components and UI elements - Update UI components across webview-ui for better UX This improves the overall user experience by providing a cleaner, more professional interface with consistent naming conventions.
1 parent 8fee312 commit 3f6e5d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+951
-649
lines changed

apps/web-evals/src/components/ui/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function CommandItem({ className, ...props }: React.ComponentProps<typeof Comman
102102
<CommandPrimitive.Item
103103
data-slot="command-item"
104104
className={cn(
105-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
105+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-xl px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
106106
"text-foreground active:opacity-80 cursor-pointer group",
107107
className,
108108
)}

apps/web-evals/src/components/ui/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function DialogContent({ className, children, ...props }: React.ComponentProps<t
4747
)}
4848
{...props}>
4949
{children}
50-
<DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
50+
<DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xl opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
5151
<XIcon />
5252
<span className="sr-only">Close</span>
5353
</DialogPrimitive.Close>

apps/web-evals/src/components/ui/dropdown-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function DropdownMenuContent({
2929
data-slot="dropdown-menu-content"
3030
sideOffset={sideOffset}
3131
className={cn(
32-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
32+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-2xl border p-1 shadow-md",
3333
className,
3434
)}
3535
{...props}

apps/web-evals/src/components/ui/select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function SelectItem({ className, children, ...props }: React.ComponentProps<type
9292
<SelectPrimitive.Item
9393
data-slot="select-item"
9494
className={cn(
95-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
95+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-xl py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
9696
"text-foreground active:opacity-80 cursor-pointer group",
9797
className,
9898
)}

apps/web-roo-code/src/components/chromes/footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,20 @@ export function Footer() {
235235
</button>
236236

237237
{privacyDropdownOpen && (
238-
<div className="absolute z-50 mt-2 w-44 origin-top-left scale-95 rounded-md border border-border bg-background shadow-lg ring-1 ring-black ring-opacity-5 transition-all duration-100 ease-out data-[state=open]:scale-100 max-xs:right-0 max-xs:origin-top-right xs:left-0">
238+
<div className="absolute z-50 mt-2 w-44 origin-top-left scale-95 rounded-2xl border border-border bg-background shadow-lg ring-1 ring-black ring-opacity-5 transition-all duration-100 ease-out data-[state=open]:scale-100 max-xs:right-0 max-xs:origin-top-right xs:left-0">
239239
<div className="flex flex-col gap-1 p-2 text-sm text-muted-foreground">
240240
<a
241241
href={EXTERNAL_LINKS.PRIVACY_POLICY_EXTENSION}
242242
target="_blank"
243243
rel="noopener noreferrer"
244244
onClick={() => setPrivacyDropdownOpen(false)}
245-
className="rounded-md px-3 py-2 transition-colors hover:bg-accent/50 hover:text-foreground">
245+
className="rounded-2xl px-3 py-2 transition-colors hover:bg-accent/50 hover:text-foreground">
246246
Extension
247247
</a>
248248
<Link
249249
href={INTERNAL_LINKS.PRIVACY_POLICY_WEBSITE}
250250
onClick={() => setPrivacyDropdownOpen(false)}
251-
className="rounded-md px-3 py-2 transition-colors hover:bg-accent/50 hover:text-foreground">
251+
className="rounded-2xl px-3 py-2 transition-colors hover:bg-accent/50 hover:text-foreground">
252252
Roo Code Cloud
253253
</Link>
254254
</div>

apps/web-roo-code/src/components/chromes/nav-bar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function NavBar({ stars, downloads }: NavBarProps) {
9292
<Link
9393
href={EXTERNAL_LINKS.MARKETPLACE}
9494
target="_blank"
95-
className="hidden items-center gap-1.5 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-all duration-200 hover:bg-primary/80 hover:shadow-lg hover:scale-105 md:flex">
95+
className="hidden items-center gap-1.5 rounded-2xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-all duration-200 hover:bg-primary/80 hover:shadow-lg hover:scale-105 md:flex">
9696
<VscVscode className="-mr-[2px] mt-[1px] h-4 w-4" />
9797
<span>
9898
Install <span className="font-black max-lg:text-xs">&middot;</span>
@@ -178,18 +178,18 @@ export function NavBar({ stars, downloads }: NavBarProps) {
178178
<Link
179179
href={EXTERNAL_LINKS.GITHUB}
180180
target="_blank"
181-
className="inline-flex items-center gap-2 rounded-md p-2 text-sm font-medium text-foreground/80 transition-colors hover:bg-accent hover:text-foreground"
181+
className="inline-flex items-center gap-2 rounded-2xl p-2 text-sm font-medium text-foreground/80 transition-colors hover:bg-accent hover:text-foreground"
182182
onClick={() => setIsMenuOpen(false)}>
183183
<RxGithubLogo className="h-5 w-5" />
184184
{stars !== null && <span>{stars}</span>}
185185
</Link>
186-
<div className="flex items-center rounded-md p-2 transition-colors hover:bg-accent">
186+
<div className="flex items-center rounded-2xl p-2 transition-colors hover:bg-accent">
187187
<ThemeToggle />
188188
</div>
189189
<Link
190190
href={EXTERNAL_LINKS.MARKETPLACE}
191191
target="_blank"
192-
className="inline-flex items-center gap-2 rounded-md p-2 text-sm font-medium text-foreground/80 transition-colors hover:bg-accent hover:text-foreground"
192+
className="inline-flex items-center gap-2 rounded-2xl p-2 text-sm font-medium text-foreground/80 transition-colors hover:bg-accent hover:text-foreground"
193193
onClick={() => setIsMenuOpen(false)}>
194194
<VscVscode className="h-5 w-5" />
195195
{downloads !== null && <span>{downloads}</span>}

apps/web-roo-code/src/components/enterprise/contact-form.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
190190
id="name"
191191
name="name"
192192
type="text"
193-
className={`w-full rounded-md border ${
193+
className={`w-full rounded-2xl border ${
194194
formErrors.name ? "border-red-500" : "border-input"
195195
} bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring`}
196196
placeholder="Your name"
@@ -206,7 +206,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
206206
id="company"
207207
name="company"
208208
type="text"
209-
className={`w-full rounded-md border ${
209+
className={`w-full rounded-2xl border ${
210210
formErrors.company ? "border-red-500" : "border-input"
211211
} bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring`}
212212
placeholder="Your company"
@@ -222,7 +222,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
222222
id="email"
223223
name="email"
224224
type="email"
225-
className={`w-full rounded-md border ${
225+
className={`w-full rounded-2xl border ${
226226
formErrors.email ? "border-red-500" : "border-input"
227227
} bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring`}
228228
placeholder="[email protected]"
@@ -238,7 +238,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
238238
id="website"
239239
name="website"
240240
type="url"
241-
className={`w-full rounded-md border ${
241+
className={`w-full rounded-2xl border ${
242242
formErrors.website ? "border-red-500" : "border-input"
243243
} bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring`}
244244
placeholder="https://example.com"
@@ -253,7 +253,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
253253
<select
254254
id="engineerCount"
255255
name="engineerCount"
256-
className={`w-full rounded-md border ${
256+
className={`w-full rounded-2xl border ${
257257
formErrors.engineerCount ? "border-red-500" : "border-input"
258258
} bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring`}
259259
defaultValue="1-10">
@@ -270,7 +270,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
270270
</div>
271271

272272
{submitStatus === "error" && (
273-
<div className="rounded-md bg-red-50 p-3 text-sm text-red-500 dark:bg-red-900/20">
273+
<div className="rounded-2xl bg-red-50 p-3 text-sm text-red-500 dark:bg-red-900/20">
274274
There was an error submitting your request. Please try again later.
275275
</div>
276276
)}

apps/web-roo-code/src/components/homepage/code-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function CodeExample() {
5454

5555
return (
5656
<div className="relative z-10 w-full max-w-[90vw] rounded-lg border border-border bg-background/50 p-2 shadow-2xl backdrop-blur-sm sm:max-w-[500px]">
57-
<div className="rounded-md bg-muted p-1.5 dark:bg-gray-900 sm:p-2">
57+
<div className="rounded-2xl bg-muted p-1.5 dark:bg-gray-900 sm:p-2">
5858
<div className="flex items-center justify-between border-b border-border px-2 py-1.5 sm:px-3 sm:py-2">
5959
<div className="flex items-center space-x-1.5">
6060
<div className="h-2.5 w-2.5 rounded-full bg-red-500 sm:h-3 sm:w-3" />

apps/web-roo-code/src/components/ui/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority"
55
import { cn } from "@/lib/utils"
66

77
const buttonVariants = cva(
8-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-2xl text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
99
{
1010
variants: {
1111
variant: {
@@ -18,8 +18,8 @@ const buttonVariants = cva(
1818
},
1919
size: {
2020
default: "h-9 px-4 py-2",
21-
sm: "h-8 rounded-md px-3 text-xs",
22-
lg: "h-10 rounded-md px-8",
21+
sm: "h-8 rounded-2xl px-3 text-xs",
22+
lg: "h-10 rounded-2xl px-8",
2323
icon: "h-9 w-9",
2424
},
2525
},

packages/types/src/mode.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export type CustomSupportPrompts = z.infer<typeof customSupportPromptsSchema>
136136
export const DEFAULT_MODES: readonly ModeConfig[] = [
137137
{
138138
slug: "architect",
139-
name: "🏗️ Architect",
139+
name: " Architect",
140140
roleDefinition:
141141
"You are Roo, an experienced technical leader who is inquisitive and an excellent planner. Your goal is to gather information and get context to create a detailed plan for accomplishing the user's task, which the user will review and approve before they switch into another mode to implement the solution.",
142142
whenToUse:
@@ -148,7 +148,7 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
148148
},
149149
{
150150
slug: "code",
151-
name: "💻 Code",
151+
name: "Agent",
152152
roleDefinition:
153153
"You are Roo, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.",
154154
whenToUse:
@@ -158,7 +158,7 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
158158
},
159159
{
160160
slug: "ask",
161-
name: " Ask",
161+
name: " Ask",
162162
roleDefinition:
163163
"You are Roo, a knowledgeable technical assistant focused on answering questions and providing information about software development, technology, and related topics.",
164164
whenToUse:
@@ -170,7 +170,7 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
170170
},
171171
{
172172
slug: "debug",
173-
name: "🪲 Debug",
173+
name: " Debug",
174174
roleDefinition:
175175
"You are Roo, an expert software debugger specializing in systematic problem diagnosis and resolution.",
176176
whenToUse:
@@ -182,7 +182,8 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
182182
},
183183
{
184184
slug: "orchestrator",
185-
name: "🪃 Orchestrator",
185+
// here material icons
186+
name: " Orchestrator",
186187
roleDefinition:
187188
"You are Roo, a strategic workflow orchestrator who coordinates complex tasks by delegating them to appropriate specialized modes. You have a comprehensive understanding of each mode's capabilities and limitations, allowing you to effectively break down complex problems into discrete tasks that can be solved by different specialists.",
188189
whenToUse:

0 commit comments

Comments
 (0)