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

teableio / teable / 8536869866

03 Apr 2024 10:05AM CUT coverage: 21.234% (-0.3%) from 21.535%
8536869866

Pull #514

github

web-flow
Merge 91a25d710 into 45ee7ebb3
Pull Request #514: refactor: user and link selector

1394 of 2532 branches covered (55.06%)

27 of 1620 new or added lines in 60 files covered. (1.67%)

4 existing lines in 2 files now uncovered.

14588 of 68702 relevant lines covered (21.23%)

2.02 hits per line

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

0.0
/packages/sdk/src/components/record-list/RecordItem.tsx
NEW
1
import { cn } from '@teable/ui-lib';
×
NEW
2
import { useTranslation } from '../../context/app/i18n';
×
NEW
3

×
NEW
4
interface IRecordItemProps {
×
NEW
5
  title?: string;
×
NEW
6
  active?: boolean;
×
NEW
7
}
×
NEW
8

×
NEW
9
export const RecordItem = (props: IRecordItemProps) => {
×
NEW
10
  const { active, title } = props;
×
NEW
11
  const { t } = useTranslation();
×
NEW
12

×
NEW
13
  return (
×
NEW
14
    <div
×
NEW
15
      tabIndex={-1}
×
NEW
16
      role={'button'}
×
NEW
17
      className={cn(
×
NEW
18
        'group relative w-full cursor-pointer truncate rounded-md border border-input px-4 py-2 shadow-sm',
×
NEW
19
        {
×
NEW
20
          'border-l-8 border-l-foreground': active,
×
NEW
21
        }
×
NEW
22
      )}
×
NEW
23
    >
×
NEW
24
      <div
×
NEW
25
        className="w-full truncate font-mono text-sm"
×
NEW
26
        title={title?.replaceAll('\n', ' ') || t('common.unnamedRecord')}
×
NEW
27
      >
×
NEW
28
        {title?.replaceAll('\n', ' ') || t('common.unnamedRecord')}
×
NEW
29
      </div>
×
NEW
30
    </div>
×
NEW
31
  );
×
NEW
32
};
×
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