Skip to content

Commit 88493d9

Browse files
committed
Replace mention count with image count.
1 parent 5cd2826 commit 88493d9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
ArrowDown,
33
ArrowUp,
4-
AtSign,
4+
Image,
55
CheckCircle2,
66
Circle,
77
Code,
@@ -25,7 +25,7 @@ const generateMockDrafts = () => [
2525
content:
2626
'This PR addresses the memory leak issue reported in #1233. The problem was caused by event listeners not being properly disposed...',
2727
hasCode: true,
28-
hasMention: true,
28+
hasImage: true,
2929
id: '1',
3030
kind: 'PR',
3131
lastEdit: Date.now() - 1000 * 60 * 30,
@@ -43,7 +43,7 @@ const generateMockDrafts = () => [
4343
content:
4444
"I've been using GitLens for years and it's absolutely essential for my workflow. The inline blame annotations are incredibly helpful when...",
4545
hasCode: false,
46-
hasMention: false,
46+
hasImage: false,
4747
id: '2',
4848
kind: 'Comment',
4949
lastEdit: Date.now() - 1000 * 60 * 60 * 2,
@@ -59,7 +59,7 @@ const generateMockDrafts = () => [
5959
content:
6060
"When using useEffect with async functions, the cleanup function doesn't seem to be called correctly in certain edge cases...",
6161
hasCode: true,
62-
hasMention: false,
62+
hasImage: false,
6363
id: '3',
6464
kind: 'Issue',
6565
lastEdit: Date.now() - 1000 * 60 * 60 * 5,
@@ -77,7 +77,7 @@ const generateMockDrafts = () => [
7777
content:
7878
'LGTM! Just a few minor suggestions about the examples in the routing section. Consider adding more context about...',
7979
hasCode: false,
80-
hasMention: true,
80+
hasImage: true,
8181
id: '4',
8282
kind: 'Review',
8383
lastEdit: Date.now() - 1000 * 60 * 60 * 24,
@@ -95,7 +95,7 @@ const generateMockDrafts = () => [
9595
content:
9696
'This PR implements ESM support in worker threads as discussed in the last TSC meeting. The implementation follows...',
9797
hasCode: true,
98-
hasMention: true,
98+
hasImage: true,
9999
id: '5',
100100
kind: 'PR',
101101
lastEdit: Date.now() - 1000 * 60 * 60 * 48,
@@ -466,22 +466,22 @@ export const ClaudePrototype = () => {
466466

467467
{/* Signals row (hidden on small screens) */}
468468
<div className='hidden sm:flex items-center gap-2'>
469-
{draft.hasCode && (
469+
{draft.linkCount > 0 && (
470470
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-blue-50 text-blue-700'>
471-
<Code className='w-3 h-3' />
472-
code
471+
<Link className='w-3 h-3' />
472+
{draft.linkCount}
473473
</span>
474474
)}
475-
{draft.hasMention && (
475+
{draft.hasImage && (
476476
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-purple-50 text-purple-700'>
477-
<AtSign className='w-3 h-3' />
478-
mention
477+
<Image className='w-3 h-3' />
478+
image
479479
</span>
480480
)}
481-
{draft.linkCount > 0 && (
482-
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-green-50 text-green-700'>
483-
<Link className='w-3 h-3' />
484-
{draft.linkCount}
481+
{draft.hasCode && (
482+
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-pink-50 text-pink-700'>
483+
<Code className='w-3 h-3' />
484+
code
485485
</span>
486486
)}
487487
<span className='text-xs text-gray-500'>{draft.charCount} chars</span>

0 commit comments

Comments
 (0)