In the table details screen, implement a way of clicking checkboxes to select multiple table entries, or clicking the checkbox at the top of the datatable to select all table entries. Add a dropdown menu with a "Delete selected entryies" option. Add an event handler to that option to trigger deletion of the selected table entries.
From the perspective of the Redux store, deleting a table entry should do the following:
Remove the id of the tableEntry from entities.tables.byId[id of the related table].tableEntries
Set entities.tableEntries.byId[id of the table entry] to undefined
Remove the table entry ID from entities.tableEntries.allIds
Not mandatory, but should be easy enough to do that its worth it: delete any tagWeights associated with the tableEntry
Also not mandatory, but easy enough to do and keeps the store clean: delete any associated entryDetailsGroup and the associated entryDetails
The above two are not mandatory because nothing in the application should be querying tagWeight or entryDetails directly. They are only queried via tableEntries. So if the tableEntry is gone, it shouldn't matter if those are still there. But it is a good idea to keep the store cleaned up and small, so its worth removing them if it can be done easily.
In the table details screen, implement a way of clicking checkboxes to select multiple table entries, or clicking the checkbox at the top of the datatable to select all table entries. Add a dropdown menu with a "Delete selected entryies" option. Add an event handler to that option to trigger deletion of the selected table entries.
From the perspective of the Redux store, deleting a table entry should do the following:
entities.tables.byId[id of the related table].tableEntries
entities.tableEntries.byId[id of the table entry]
toundefined
entities.tableEntries.allIds
tagWeight
orentryDetails
directly. They are only queried via tableEntries. So if the tableEntry is gone, it shouldn't matter if those are still there. But it is a good idea to keep the store cleaned up and small, so its worth removing them if it can be done easily.