v1.4.1

teableio/teablev1.4.1Sep 12, 2024by tea-artist

AI Summary

Adds Trash for Space/Base/Table, drag-and-drop attachment reordering, and a new attachment upload API.

Key Highlights

  • Trash feature allows restoration of Space, Base, and Table.
  • Drag and drop attachments to reorder them.
  • New API endpoints for uploading attachments via file or URL.
  • Elestio added as a one-click deployment option.

New Features

  • Trash feature for Space, Base, and Table.
  • Drag and drop attachment reordering.
  • Attachment upload API (file and URL).
  • Elestio one-click deployment.
  • Improved grid prefilling and synchronization.

Full Release Notes

## Highlight 🎉

### Trash
You can restore space, base, and table from trash now!
<img width="1207" alt="image" src="https://github.com/user-attachments/assets/d9ce69a9-60cf-4238-bf1c-feb1247ec6b8">
<img width="1198" alt="image" src="https://github.com/user-attachments/assets/80fbed60-503e-4fd5-b693-d412c37436b8">
<img width="1195" alt="image" src="https://github.com/user-attachments/assets/b533df5f-fd65-451e-a404-60971f5d2c64">

### Drag and drop attachments to reorder
Community contributions from @zholadev ❤️


https://github.com/user-attachments/assets/84d945cf-528d-4349-81d5-c3de9772c347

### Upload attachment into cell
Upload via file
```bash
curl -X POST 'https://app.teable.ai/table/__tableId__/record/__recordId__/__fieldId__/uploadAttachment' \
  -H 'Authorization: Bearer __token__' \
  -H 'Content-Type: multipart/form-data' \
  -F 'file=@/path/to/your/file.jpg'
```

Upload via URL
```bash
curl -X POST 'https://app.teable.ai/table/__tableId__/record/__recordId__/__fieldId__/uploadAttachment' \
  -H 'Authorization: Bearer __token__' \
  -H 'Content-Type: multipart/form-data' \
  -F 'fileUrl=https://example.com/image.jpg'
```

Response Updated Record
```json
{
    "id": "rec123456789ABCDE",
    "fields": {
      "fld123456789ABCDE": [
        {
          "id": "act75TiSyhcS7hfrizW",
          "name": "example.jpg",
          "path": "table/example",
          "size": 392903,
          "token": "tokenxxxxx",
          "width": 976,
          "height": 1000,
          "mimetype": "image/jpeg",
          "presignedUrl": "https://sss.teable.ai/pvt-assets/table/previewURL"
        }
      ],
    }
}
```

## What's Changed
* fix: create record and modify field bad cases by @tea-artist in https://github.com/teableio/teable/pull/879
* fix: undo link / formula field badcases by @tea-artist in https://github.com/teableio/teable/pull/882
* feat: limit primary field type by @tea-artist in https://github.com/teableio/teable/pull/883
* fix: can not clear show as for formula and rollup by @tea-artist in https://github.com/teableio/teable/pull/884
* fix: some field and cell mutation error by @tea-artist in https://github.com/teableio/teable/pull/886
* fix: lost synchronization after socket reconnected by @tea-artist in https://github.com/teableio/teable/pull/888
* fix: get history ops error after reconnected by @tea-artist in https://github.com/teableio/teable/pull/889
* fix: should clean rollup when clean link by @tea-artist in https://github.com/teableio/teable/pull/891
* feat: integrate umami metrics by @tea-artist in https://github.com/teableio/teable/pull/892
* fix: use server env by @tea-artist in https://github.com/teableio/teable/pull/894
* fix: grid prefilling editable on disabled update record by @boris-w in https://github.com/teableio/teable/pull/895
* feat: trash by @Sky-FE in https://github.com/teableio/teable/pull/890
* fix: can not batch delete records when contains multiple link by @tea-artist in https://github.com/teableio/teable/pull/899
* feat: attachment dnd by @zholadev in https://github.com/teableio/teable/pull/878
* fix: e2e sqlite test fail by @tea-artist in https://github.com/teableio/teable/pull/900
* feat: Added Elestio as one-click deploy option by @kaiwalyakoparkar in https://github.com/teableio/teable/pull/853
* fix: formula crash when number NaN by @tea-artist in https://github.com/teableio/teable/pull/902
* fix: the permission with the trash by @Sky-FE in https://github.com/teableio/teable/pull/901
* feat: upload attachment api by @tea-artist in https://github.com/teableio/teable/pull/903
* fix: minio private network by @tea-artist in https://github.com/teableio/teable/pull/904
* fix: add internal port for minio by @tea-artist in https://github.com/teableio/teable/pull/905
* chore: publish 1.4.1 release by @tea-artist in https://github.com/teableio/teable/pull/906

## New Contributors
* @zholadev made their first contribution in https://github.com/teableio/teable/pull/878
* @kaiwalyakoparkar made their first contribution in https://github.com/teableio/teable/pull/853

**Full Changelog**: https://github.com/teableio/teable/compare/v1.4.0...v1.4.1