-
Notifications
You must be signed in to change notification settings - Fork 41
feat(cloud-agent): add Gastown badge #3423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ba2390f
90a3993
3e6f98c
8553c88
3691b12
5bd311e
c1199e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| 'use client'; | ||
|
|
||
| import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; | ||
| import { Bot, Clock, Cloud, GitBranch, Puzzle, Terminal } from 'lucide-react'; | ||
| import { Bot, Clock, Cloud, GitBranch, Puzzle, Terminal, Workflow } from 'lucide-react'; | ||
| import type { StoredSession } from './types'; | ||
| import { formatDistanceToNow } from 'date-fns'; | ||
| import Link from 'next/link'; | ||
|
|
@@ -71,22 +71,29 @@ export function SessionsList<T extends SessionsListItem>({ | |
| Agent Manager | ||
| </span> | ||
| ); | ||
| } else if (platform === 'slack') { | ||
| badge = ( | ||
| <span className="inline-flex shrink-0 items-center gap-1 rounded bg-emerald-500/20 px-2 py-0.5 text-xs font-medium text-emerald-400"> | ||
| <Bot className="h-3 w-3" /> | ||
| Slack | ||
| </span> | ||
| ); | ||
| } else { | ||
| // Default to Extension badge for unknown, vscode, etc. | ||
| badge = ( | ||
| <span className="inline-flex shrink-0 items-center gap-1 rounded bg-purple-500/20 px-2 py-0.5 text-xs font-medium text-purple-400"> | ||
| <Puzzle className="h-3 w-3" /> | ||
| Extension | ||
| </span> | ||
| ); | ||
| } | ||
| } else if (platform === 'slack') { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING: Same indentation issue as in |
||
| badge = ( | ||
| <span className="inline-flex shrink-0 items-center gap-1 rounded bg-emerald-500/20 px-2 py-0.5 text-xs font-medium text-emerald-400"> | ||
| <Bot className="h-3 w-3" /> | ||
| Slack | ||
| </span> | ||
| ); | ||
| } else if (platform === 'gastown') { | ||
| badge = ( | ||
| <span className="inline-flex shrink-0 items-center gap-1 rounded bg-amber-500/20 px-2 py-0.5 text-xs font-medium text-amber-400"> | ||
| <Workflow className="h-3 w-3" /> | ||
| Gastown | ||
| </span> | ||
| ); | ||
| } else { | ||
| // Default to Extension badge for unknown, vscode, etc. | ||
| badge = ( | ||
| <span className="inline-flex shrink-0 items-center gap-1 rounded bg-purple-500/20 px-2 py-0.5 text-xs font-medium text-purple-400"> | ||
| <Puzzle className="h-3 w-3" /> | ||
| Extension | ||
| </span> | ||
| ); | ||
| } | ||
|
|
||
| const cardContent = ( | ||
| <Card className="hover:bg-accent cursor-pointer transition-colors"> | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Indentation is broken —
} else if (platform === 'slack') {is at column 0 instead of matching the surroundingelse ifbranches (8 spaces). This same pattern repeats inapps/web/src/components/cloud-agent/SessionsList.tsxline 74. The code is syntactically correct (React renders fine) but is visually inconsistent and will be a diff noise issue in future PRs.