Skip to content

Commit fdda8ee

Browse files
Rename Tasks tab and make it visually distinct
Renames "Task Terminals" to "Tasks" in /terminals view and applies distinct styling with primary color accent and separator from regular tabs. Also updates the Terminals navbar icon to ComputerTerminal01Icon.
1 parent 14a9a62 commit fdda8ee

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/components/layout/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { HugeiconsIcon } from '@hugeicons/react'
1414
import {
1515
GridViewIcon,
16-
CommandLineIcon,
16+
ComputerTerminal01Icon,
1717
Settings01Icon,
1818
LibraryIcon,
1919
GitPullRequestIcon,
@@ -31,7 +31,7 @@ interface HeaderProps {
3131

3232
const NAV_ITEMS = [
3333
{ to: '/tasks', icon: GridViewIcon, labelKey: 'header.tasks', matchPrefix: true },
34-
{ to: '/terminals', icon: CommandLineIcon, labelKey: 'header.terminals', matchPrefix: false },
34+
{ to: '/terminals', icon: ComputerTerminal01Icon, labelKey: 'header.terminals', matchPrefix: false },
3535
{ to: '/repositories', icon: LibraryIcon, labelKey: 'header.repositories', matchPrefix: true },
3636
{ to: '/review', icon: GitPullRequestIcon, labelKey: 'header.review', matchPrefix: true },
3737
{ to: '/monitoring', icon: ChartLineData01Icon, labelKey: 'header.monitoring', matchPrefix: true },

src/i18n/locales/en/terminals.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"taskTerminals": "Task Terminals",
2+
"taskTerminals": "Tasks",
33
"newTerminal": "New Terminal",
44
"allRepos": "All Repos",
55
"editTab": {

src/i18n/locales/zh/terminals.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"taskTerminals": "任务终端",
2+
"taskTerminals": "任务",
33
"newTerminal": "新建终端",
44
"allRepos": "全部仓库"
55
}

src/routes/terminals/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,21 +544,23 @@ const TerminalsView = observer(function TerminalsView() {
544544
<div className="sticky top-0 z-10 flex shrink-0 items-center justify-between border-b border-border bg-background px-2 py-1">
545545
<div className="min-w-0 flex-1 overflow-x-auto">
546546
<div className="flex items-center">
547-
{/* Task Terminals system tab - always first */}
547+
{/* Tasks system tab - always first, visually distinct */}
548548
<button
549549
onClick={() => setActiveTab(ALL_TASKS_TAB_ID)}
550550
className={cn(
551-
'relative flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs transition-colors max-sm:px-2',
551+
'relative flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors max-sm:px-2',
552552
activeTabId === ALL_TASKS_TAB_ID
553-
? 'bg-background text-foreground'
554-
: 'text-muted-foreground hover:text-foreground',
555-
'after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-foreground after:transition-opacity',
553+
? 'bg-primary/10 text-primary'
554+
: 'text-muted-foreground hover:text-primary hover:bg-primary/5',
555+
'after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-primary after:transition-opacity',
556556
activeTabId === ALL_TASKS_TAB_ID ? 'after:opacity-100' : 'after:opacity-0'
557557
)}
558558
>
559559
<HugeiconsIcon icon={GridViewIcon} size={12} strokeWidth={2} />
560560
<span className="max-sm:hidden">{t('taskTerminals')}</span>
561561
</button>
562+
{/* Separator between Tasks and regular tabs */}
563+
<div className="mx-2 h-4 w-px bg-border" />
562564
<TerminalTabBar
563565
tabs={tabBarTabs}
564566
activeTabId={activeTabId ?? ''}

0 commit comments

Comments
 (0)