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

teableio / teable / 10299037390

08 Aug 2024 08:55AM UTC coverage: 17.548% (-0.2%) from 17.728%
10299037390

push

github

web-flow
feat: record history (#793)

* feat: record history

* feat: table record history

* feat: the permission for record history

* perf: batch inventory record history

* fix: field constraints are lost during field conversion

* chore: update pnpm-lock file

* fix: the event merging error when updating link records

* fix: cell link UI rendering

* fix: repeated list rendering in formula editor filtering

* chore: db migration for record history

* chore: e2e testing for the record history

* chore: upgrade the dependencies of the Prisma

* chore: upgrade the dependencies of the Prisma

* chore: upgrade the dependencies of the Prisma

* chore: update the dependencies of the Prisma

* fix: date string convert

* chore: update record history E2E testing

* feat: record history supports filtering based on time

* chore: add date field value log

* fix: nested transactions

* chore: revert to the previous version of Prisma

* fix: import table error

* fix: delete table logic

* chore: update record history e2e testing

---------

Co-authored-by: tea artist <artist@teable.io>

1387 of 2823 branches covered (49.13%)

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

4 existing lines in 4 files now uncovered.

14088 of 80283 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/cell-value/cell-attachment/CellAttachment.tsx
1
import type { IAttachmentCellValue } from '@teable/core';
×
2
import { cn } from '@teable/ui-lib';
×
3
import { getFileCover } from '../../editor/attachment';
×
4
import type { ICellValue } from '../type';
×
5

×
6
interface ICellAttachment extends ICellValue<IAttachmentCellValue> {
×
7
  itemClassName?: string;
×
8
}
×
9

×
10
export const CellAttachment = (props: ICellAttachment) => {
×
11
  const { value, className, style, itemClassName } = props;
×
12

×
13
  return (
×
NEW
14
    <div className={cn('flex gap-1 flex-wrap', className)} style={style}>
×
15
      {value?.map((attachment) => {
×
16
        const { id, name, mimetype, presignedUrl } = attachment;
×
17

×
18
        return (
×
19
          <div
×
20
            key={id}
×
NEW
21
            className={cn(
×
NEW
22
              'shrink-0 h-7 border rounded border-slate-200 overflow-hidden',
×
NEW
23
              itemClassName
×
NEW
24
            )}
×
25
          >
×
26
            <img
×
27
              className="size-full object-contain"
×
28
              src={getFileCover(mimetype, presignedUrl)}
×
29
              alt={name}
×
30
            />
×
31
          </div>
×
32
        );
×
33
      })}
×
34
    </div>
×
35
  );
×
36
};
×
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