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

teableio / teable / 10280217705

07 Aug 2024 07:43AM CUT coverage: 17.548% (-0.2%) from 17.734%
10280217705

Pull #793

github

web-flow
Merge 1d187fdaf into 6131ee284
Pull Request #793: feat: record history

1387 of 2823 branches covered (49.13%)

6 of 1033 new or added lines in 43 files covered. (0.58%)

34 existing lines in 5 files now uncovered.

14088 of 80281 relevant lines covered (17.55%)

1.74 hits per line

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

0.0
/packages/sdk/src/components/expand-record/ExpandRecordWrap.tsx
NEW
1
import { Sheet, SheetContent } from '@teable/ui-lib';
×
2
import { type FC, type PropsWithChildren } from 'react';
×
3
import { Modal } from './Modal';
×
4
import { ExpandRecordModel } from './type';
×
5

×
6
export const ExpandRecordWrap: FC<
×
7
  PropsWithChildren<{
×
8
    model?: ExpandRecordModel;
×
9
    visible?: boolean;
×
10
    onClose?: () => void;
×
11
  }>
×
12
> = (props) => {
×
NEW
13
  const { children, model, visible, onClose } = props;
×
14

×
15
  if (model === ExpandRecordModel.Modal)
×
16
    return (
×
NEW
17
      <Modal visible={visible} onClose={onClose}>
×
18
        {children}
×
19
      </Modal>
×
20
    );
×
NEW
21

×
NEW
22
  return (
×
NEW
23
    <Sheet modal={true} open={visible} onOpenChange={onClose}>
×
NEW
24
      <SheetContent
×
NEW
25
        className="h-5/6 overflow-hidden rounded-t-lg p-0"
×
NEW
26
        side="bottom"
×
NEW
27
        closeable={false}
×
NEW
28
      >
×
NEW
29
        {children}
×
NEW
30
      </SheetContent>
×
NEW
31
    </Sheet>
×
NEW
32
  );
×
UNCOV
33
};
×
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