Skip to content

Commit 703e615

Browse files
committed
Getting pretty darn good.
1 parent 0f3c0cc commit 703e615

File tree

1 file changed

+47
-43
lines changed

1 file changed

+47
-43
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
Filter,
88
Link,
99
Search,
10+
TextSelect,
1011
Trash2,
1112
} from 'lucide-react'
1213
import { IssueOpenedIcon, GitPullRequestIcon } from '@primer/octicons-react'
@@ -423,57 +424,60 @@ export const ClaudePrototype = () => {
423424
<td className='px-3 py-3'>
424425
<div className='space-y-1'>
425426
{/* Context line */}
426-
<div className='flex items-center gap-1.5 text-xs text-gray-600'>
427-
<span className='w-4 h-4 flex items-center justify-center'>
428-
{draft.platform === 'GitHub' ? (
429-
draft.kind === 'PR' ? (
430-
<GitPullRequestIcon size={16} />
431-
) : draft.kind === 'Issue' ? (
432-
<IssueOpenedIcon size={16} />
433-
) : '🐙'
434-
) : '🔗'}
435-
</span>
436-
<a
437-
href={draft.url}
438-
className='hover:underline truncate max-w-[28ch]'
439-
>
440-
{draft.repoSlug.startsWith('r/') ? draft.repoSlug :
441-
`#${draft.number} ${draft.repoSlug}`
442-
}
443-
</a>
427+
<div className='flex items-center justify-between gap-1.5 text-xs text-gray-600'>
428+
<div className='flex items-center gap-1.5 min-w-0 flex-1'>
429+
<span className='w-4 h-4 flex items-center justify-center flex-shrink-0'>
430+
{draft.platform === 'GitHub' ? (
431+
draft.kind === 'PR' ? (
432+
<GitPullRequestIcon size={16} />
433+
) : draft.kind === 'Issue' ? (
434+
<IssueOpenedIcon size={16} />
435+
) : '🐙'
436+
) : '🔗'}
437+
</span>
438+
<a
439+
href={draft.url}
440+
className='hover:underline truncate'
441+
>
442+
{draft.repoSlug.startsWith('r/') ? draft.repoSlug :
443+
`#${draft.number} ${draft.repoSlug}`
444+
}
445+
</a>
446+
</div>
447+
<div className='flex items-center gap-1 flex-shrink-0'>
448+
{draft.linkCount > 0 && (
449+
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-blue-50 text-blue-700'>
450+
<Link className='w-3 h-3' />
451+
{draft.linkCount}
452+
</span>
453+
)}
454+
{draft.imageCount > 0 && (
455+
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-purple-50 text-purple-700'>
456+
<Image className='w-3 h-3' />
457+
{draft.imageCount}
458+
</span>
459+
)}
460+
{draft.codeCount > 0 && (
461+
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-pink-50 text-pink-700'>
462+
<Code className='w-3 h-3' />
463+
{draft.codeCount}
464+
</span>
465+
)}
466+
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-gray-50 text-gray-700'>
467+
<TextSelect className='w-3 h-3' />
468+
{draft.charCount}
469+
</span>
470+
</div>
444471
</div>
445472

446-
{/* Title + snippet */}
473+
{/* Title */}
447474
<div className='text-sm truncate'>
448475
<span className='font-medium'>{draft.title}</span>
449476
</div>
477+
{/* Draft */}
450478
<div className='text-sm truncate'>
451479
<span className='text-gray-500'>{draft.content.substring(0, 60)}</span>
452480
</div>
453-
454-
{/* Signals row (hidden on small screens) */}
455-
<div className='hidden sm:flex items-center gap-2'>
456-
457-
{draft.linkCount > 0 && (
458-
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-blue-50 text-blue-700'>
459-
<Link className='w-3 h-3' />
460-
{draft.linkCount}
461-
</span>
462-
)}
463-
{draft.imageCount > 0 && (
464-
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-purple-50 text-purple-700'>
465-
<Image className='w-3 h-3' />
466-
{draft.imageCount}
467-
</span>
468-
)}
469-
{draft.codeCount > 0 && (
470-
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-pink-50 text-pink-700'>
471-
<Code className='w-3 h-3' />
472-
{draft.codeCount}
473-
</span>
474-
)}
475-
<span className='text-xs text-gray-500'>{draft.charCount} chars</span>
476-
</div>
477481
</div>
478482
</td>
479483
<td className='px-3 py-3 text-sm text-gray-500'>

0 commit comments

Comments
 (0)