teableio / teable

✨ The Next Gen Airtable Alternative: No-Code Postgres
https://teable.io
Other
13.1k stars 590 forks source link

[Feature Request] Duplicate Rows #587

Open solankimihir opened 6 months ago

solankimihir commented 6 months ago

Is your feature request related to a problem? Please describe. No its not related to a problem

Describe the solution you'd like I would like an option to duplicate rows. I have a "Tasks" table where I create tasks for my team members. There are few tasks that are repeatative in nature where I just need to change 1 field in the row. It would be great if I can just duplicate the existing task(i.e. row) and just update one field in the duplicated row, instead of creating the row from scratch.

Describe alternatives you've considered Currently I add a blank row and copy paste from another row.

Additional context None.

tea-artist commented 6 months ago

We'll make it happen when the time is right

AliceLanniste commented 3 months ago

@tea-artist hi I am newbie to the project,I have a problem with paste. I read the source code for the paste. image It needs clipDataEvent argument ,how to I get the param.

tea-artist commented 3 months ago

@AliceLanniste Do you mean to contribute code for this feature?

AliceLanniste commented 3 months ago

@AliceLanniste Do you mean to contribute code for this feature?

ye, I completed copy via doCopy function image I dont' know how to implement paste

tea-artist commented 3 months ago

@AliceLanniste Duplicate a record is different from copying and pasting. It is nothing todo with clipboard and should be done through an API. Select one or several records and achieve copying through the right-click menu. This API should be placed under the selection controller. You can start from there to get familiar with the processing flow of the server side.

AliceLanniste commented 3 months ago

@AliceLanniste Duplicate a record is different from copying and pasting. It is nothing todo with clipboard and should be done through an API. Select one or several records and achieve copying through the right-click menu. This API should be placed under the selection controller. You can start from there to get familiar with the processing flow of the server side.

thank you

AliceLanniste commented 3 months ago

@tea-artist hi ,I complete duplicate rows. image I am trapped with render. when I click duplicate menu, it'll show a 'duplicate successful' toast.
It will only render if you refresh the web page manually.

solankimihir commented 3 months ago

@tea-artist hi ,I complete duplicate rows. image I am trapped with render. when I click duplicate menu, it'll show a 'duplicate successful' toast. It will only render if you refresh the web page manually.

May be it's because of websocket? Can you check how the "Add Row" function works? Is there a way it asks websocket to refresh the data stream or something?