rowyio / rowy

Low-code backend platform. Manage database on spreadsheet-like UI and build cloud functions workflows in JS/TS, all in your browser.
http://rowy.io
Other
5.88k stars 479 forks source link

BUG: copy/paste on Array Subtable filed gives an incorrect error #1523

Closed harinij closed 6 months ago

harinij commented 7 months ago

Describe the bug

Copy/pasting on array subtable has some issues.

Issue 1 Copy/pasting the array subtable field is throws an error:

Screenshot 2024-01-22 at 19 06 57

Issue 2 Copying fields inside array subtable works. Pasting fields inside array subtable works but an error is displayed.

Screenshot 2024-01-22 at 19 07 16

To Reproduce Steps to reproduce the behavior:

  1. On Rowy - create an array subtable field
  2. Copy or paste the field, see issue 1
  3. Go in to the subtable, create a text column and add a row
  4. Paste some values in the text cell, see issue 2

Expected behaviour

The data type of Array SubTable in FIrestore is array of maps. Issue 1: copy/paste on the array subtable should copy the array to clipboard or write values to Firestore, similar how JSON field works.

Issue 2: pasting into the fields inside subtable should continue to work without any errors displayed.

harinij commented 7 months ago

/bounty $20

algora-pbc[bot] commented 7 months ago

💎 $20 bounty created by rowyio 🙋 If you start working on this, comment /attempt #1523 along with your implementation plan 👉 To claim this bounty, submit a pull request that includes the text /claim #1523 somewhere in its body 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to rowyio/rowy!

👉 Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @Amanullah1002 Jan 20, 2024, 3:04:31 AM WIP
🟢 @anikdhabal Jan 20, 2024, 5:14:31 AM WIP
🟢 @ImamAbdullahKhan Jan 20, 2024, 5:56:45 PM WIP
Amanullah1002 commented 7 months ago

Let me try this issue /attempt #1523

anikdhabal commented 7 months ago

/attempt #1523

ImamAbdullahKhan commented 7 months ago

/attempt #1523

bofeiw commented 7 months ago

Hi @anikdhabal and @ImamAbdullahKhan, I've updated the issue description to make the expected behaviour clearer, both PRs do not resolve the issue, please update, thank you.