• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 8538004962

03 Apr 2024 11:36AM CUT coverage: 18.233% (-3.3%) from 21.535%
8538004962

Pull #528

github

web-flow
Merge c1a248a6f into 45ee7ebb3
Pull Request #528: feat: Kanban view

575 of 1136 branches covered (50.62%)

29 of 2908 new or added lines in 83 files covered. (1.0%)

5 existing lines in 5 files now uncovered.

6439 of 35315 relevant lines covered (18.23%)

3.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/sdk/src/components/cell-value/cell-user/UserTag.tsx
NEW
1
import { Avatar, AvatarFallback, AvatarImage, cn } from '@teable/ui-lib';
×
NEW
2
import { convertNextImageUrl } from '../../grid-enhancements';
×
NEW
3

×
NEW
4
interface IUserTag {
×
NEW
5
  label?: string;
×
NEW
6
  url?: string | null;
×
NEW
7
  className?: string;
×
NEW
8
}
×
NEW
9

×
NEW
10
export const UserTag = (props: IUserTag) => {
×
NEW
11
  const { label = 'Untitled', url, className } = props;
×
NEW
12

×
NEW
13
  return (
×
NEW
14
    <div className={cn('flex items-center', className)}>
×
NEW
15
      <Avatar className="size-6 cursor-pointer border">
×
NEW
16
        <AvatarImage
×
NEW
17
          src={convertNextImageUrl({
×
NEW
18
            url: url as string,
×
NEW
19
            w: 64,
×
NEW
20
            q: 75,
×
NEW
21
          })}
×
NEW
22
          alt={label}
×
NEW
23
        />
×
NEW
24
        <AvatarFallback className="text-sm">{label?.slice(0, 1)}</AvatarFallback>
×
NEW
25
      </Avatar>
×
NEW
26
      <div className="-ml-3 flex items-center overflow-hidden rounded-[6px] bg-secondary pl-4 pr-2 text-sm text-secondary-foreground">
×
NEW
27
        <p className="flex-1 truncate">{label}</p>
×
NEW
28
      </div>
×
NEW
29
    </div>
×
NEW
30
  );
×
NEW
31
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc