Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete rows from TSV7(TN,TWLs) #484

Closed
elsylambert opened this issue Jun 15, 2023 · 15 comments
Closed

Delete rows from TSV7(TN,TWLs) #484

elsylambert opened this issue Jun 15, 2023 · 15 comments

Comments

@elsylambert
Copy link
Contributor

elsylambert commented Jun 15, 2023

  • click minus to delete a row
  • Popup confirmation like it shows in tCC
    CleanShot 2023-07-27 at 14.38.14.pngimage.png

For table view:
CleanShot 2023-07-27 at 14.35.01.png

@elsylambert
Copy link
Contributor Author

elsylambert commented Jul 10, 2023

For tWLs, the delete buttons must delete the highlighted row in the Twls card.

@birchamp
Copy link

birchamp commented Jul 25, 2023

@jincypjose @theNerd247 @kintsoogi Here are some various screenshots of different UIs for adding and removing rows. The first one (material-ui) is what I was trying to describe yesterday. After that are just a few of the seemingly infinite ways people have done it. I'd recommend whatever is easiest to develop. What's your pick?

  1. https://mui.com/material-ui/react-table/
    image.png
  2. https://material-table.com/#/docs/features/actions
    image.png
  3. Custom modal to Edit/Delete/Add record RXNT/react-json-schema-form-extras#98
    image.png
  4. https://stackoverflow.com/questions/51095527/delete-dynamically-added-table-row-react-js
    image.png
  5. https://www.youtube.com/watch?v=MINQoCSBmds
    image.png

@theNerd247
Copy link
Contributor

I really like (2). The icons are self explanatory and as someone who reads left to right it flows well.

@theNerd247
Copy link
Contributor

(1) is great if the number of actions per row is >= 3 (as the icons would take up to much real-estate)

@kintsoogi
Copy link
Contributor

Yeah I personally like 1 the best, it just depends on how easy adding the select is!

@jincypjose
Copy link
Contributor

I too liked 1 and 2 both makes sense.

@birchamp
Copy link

birchamp commented Jul 27, 2023

We will do #3 and put both add and delete button in an actions column. This will make the icons match tCC and it will allow for quick actions for single rows which is most common. The top description has been updated.

@PhotoNomad0
Copy link
Contributor

@elsylambert @danielklapp This issue is in the latest GWE develop build v2.1.0 build f85dc07

@kintsoogi
Copy link
Contributor

kintsoogi commented Nov 21, 2023

@elsylambert @danielklapp

Test Instructions

  • Verify that delete buttons exist in the headers of TN & TQ
  • Verify that delete buttons exist for each row item for TWL
  • Click on the a delete button in either TN, TQ, or TWL and verify that a Delete TSV Dialog appears
    • Verify that this dialog shows the information of the TSV item that you selected to delete
  • Click the 'delete' button on the dialog
    • Verify that the item no longer exists within the resource
  • Open console and see "new Quote" console log when clicking on any TWL item
    • Verify that this console log is not being fired off twice for each click (Functionality of pure setItemIndex)
    • Open either the add or delete row Item dialog and verify that the same console log does not fire when clicking in the dialog

@elsylambert
Copy link
Contributor Author

Verified in v2.1.0 build f85dc07 QA

  • Delete button is available in tN card, TWL rows and tQ card.
  • On clicking delete, the pop-up brings the active row in tN and tQ and for twl, it brings up the row item where we clicked delete.
  • Delete button, deletes the record from the tsv resource.

Works as expected.

@elsylambert
Copy link
Contributor Author

Private Zenhub Image

@danielklapp
Copy link

Verified everything listed on the test instructions. Looks good to me and tested with v2.1.0 build f85dc07 QA.

@PhotoNomad0
Copy link
Contributor

@elsylambert @danielklapp I was able to reproduce the problem I saw before:

tN-AddError-x0.5.mov

@PhotoNomad0
Copy link
Contributor

@kintsoogi - It seems related to adding the tN to the end of the book. It's throwing an exception.

Screenshot 2023-11-22 at 7 30 43 AM

@elsylambert
Copy link
Contributor Author

Moved the bug to #592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants