|
7 | 7 | Filter, |
8 | 8 | Link, |
9 | 9 | Search, |
| 10 | + TextSelect, |
10 | 11 | Trash2, |
11 | 12 | } from 'lucide-react' |
12 | 13 | import { IssueOpenedIcon, GitPullRequestIcon } from '@primer/octicons-react' |
@@ -423,57 +424,60 @@ export const ClaudePrototype = () => { |
423 | 424 | <td className='px-3 py-3'> |
424 | 425 | <div className='space-y-1'> |
425 | 426 | {/* 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> |
444 | 471 | </div> |
445 | 472 |
|
446 | | - {/* Title + snippet */} |
| 473 | + {/* Title */} |
447 | 474 | <div className='text-sm truncate'> |
448 | 475 | <span className='font-medium'>{draft.title}</span> |
449 | 476 | </div> |
| 477 | + {/* Draft */} |
450 | 478 | <div className='text-sm truncate'> |
451 | 479 | <span className='text-gray-500'>{draft.content.substring(0, 60)}…</span> |
452 | 480 | </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> |
477 | 481 | </div> |
478 | 482 | </td> |
479 | 483 | <td className='px-3 py-3 text-sm text-gray-500'> |
|
0 commit comments