Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion apps/mobile/src/components/agents/platform-filter-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import { Text } from '@/components/ui/text';
import { useThemeColors } from '@/lib/hooks/use-theme-colors';
import { cn } from '@/lib/utils';

const PLATFORM_FILTERS = ['cloud-agent', 'extension', 'cli', 'slack', 'other'] as const;
const PLATFORM_FILTERS = [
'cloud-agent',
'extension',
'cli',
'slack',
'github',
'linear',
'other',
] as const;
const chipScrollContentStyle = { paddingHorizontal: 22, paddingVertical: 8, gap: 8 };

export type ProjectFilterOption = {
Expand Down Expand Up @@ -54,6 +62,12 @@ function platformFilterLabel(p: string): string {
case 'slack': {
return 'Slack';
}
case 'github': {
return 'GitHub';
}
case 'linear': {
return 'Linear';
}
case 'other': {
return 'Other';
}
Expand Down
14 changes: 13 additions & 1 deletion apps/web/src/components/cloud-agent-next/ChatSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,15 @@ function SessionRow({
);
}

const PLATFORM_FILTERS = ['cloud-agent', 'extension', 'cli', 'slack', 'other'] as const;
const PLATFORM_FILTERS = [
'cloud-agent',
'extension',
'cli',
'slack',
'github',
'linear',
'other',
] as const;

function platformFilterLabel(p: string): string {
switch (p) {
Expand All @@ -287,6 +295,10 @@ function platformFilterLabel(p: string): string {
return 'CLI';
case 'slack':
return 'Slack';
case 'github':
return 'GitHub';
case 'linear':
return 'Linear';
case 'other':
return 'Other';
default:
Expand Down
14 changes: 14 additions & 0 deletions apps/web/src/components/cloud-agent/SessionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,20 @@ export function SessionsList<T extends SessionsListItem>({
Slack
</span>
);
} else if (platform === 'github') {
badge = (
<span className="inline-flex shrink-0 items-center gap-1 rounded bg-zinc-500/20 px-2 py-0.5 text-xs font-medium text-zinc-400">
<Bot className="h-3 w-3" />
GitHub
</span>
);
} else if (platform === 'linear') {
badge = (
<span className="inline-flex shrink-0 items-center gap-1 rounded bg-indigo-500/20 px-2 py-0.5 text-xs font-medium text-indigo-400">
<Bot className="h-3 w-3" />
Linear
</span>
);
} else {
// Default to Extension badge for unknown, vscode, etc.
badge = (
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/routers/cli-sessions-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const KNOWN_PLATFORMS = [
'agent-manager',
'app-builder',
'slack',
'github',
'linear',
'gastown',
] as const;

Expand Down