Change the data structure to store selections in the selection store #1732
Labels
ready
Ready for implementation
restricted: maintainers
Only maintainers can resolve this issue
type: enhancement
New feature or request
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Problem
The current structure is only capable to store the selected cells.
selectedCells: WritableSet<string>;
This is not usable when the table has no rows hence no cells but the user should still be able to select columns and edit their properties as mentioned in #1684
The rationale behind current implementation
The current implementation is based on the fact that when a cell is selected, a row and a column are also selected by default. Row selection can be described as selecting all the cells in a particular row.
Column selection can be described as selecting all the cells in a particular column.
Proposed solution
@pavish proposed the following design:
The text was updated successfully, but these errors were encountered: