On the Tables screen, add a dropdown menu to each table card with a "Delete this table" option. Add an event handler to that menu option to trigger deletion of the table.
From the perspective of the store, deleting a table should do the following:
Set entities.tables.byId[<id of the deleted table>] to undefined
Remove the table id from entities.tables.allIds
Delete all tableEntries associated with the table from the store
Delete all templates associated with the table from the store
There shouldn't be a need to drill down any further than that. I.e. we don't need to delete tagWeights or entryDetails associated with associated tableEntries. Those are things that never get queried directly in the application, so we don't have to worry about them still showing up in allIds arrays or anything. Remove them if it straightforward to do so, but it is not a requirement.
On the Tables screen, add a dropdown menu to each table card with a "Delete this table" option. Add an event handler to that menu option to trigger deletion of the table.
From the perspective of the store, deleting a table should do the following:
entities.tables.byId[<id of the deleted table>]
toundefined
entities.tables.allIds
allIds
arrays or anything. Remove them if it straightforward to do so, but it is not a requirement.