Setting up Table Preferences #835
Replies: 4 comments 6 replies
-
I don't think we should support ordering the columns, that will add a lot of additional complexity to the implementation.
Yes, but I don't think it solves the problem completely. I think we also need to show the user these preferences in context. e.g. imagine a user searching for a foreign key and not finding what they're looking for because the right columns are not selected. We need a way to point the users to where to set their search columns. |
Beta Was this translation helpful? Give feedback.
-
Generally this looks great to me, @ghislaineguerin We'll have smaller details to work out as the design becomes more specific, but I think this is a great direction to head. |
Beta Was this translation helpful? Give feedback.
-
I think this makes sense overall. I'll defer talking too much about the search column setting, other than to note that we should try to encourage and promote using columns involved in unique constraints for this. We should probably strongly discourage using non-unique columns for this, both because they aren't as useful, and because they would introduce a serious performance cost. As for the idea of the "preferences" interface you've set up, I think it makes sense and would be what many will sort of expect for that. I wonder if there's some way to help a user navigate smoothly from overall table preferences to preferences for a given column. Maybe that's not wort the trouble, though. |
Beta Was this translation helpful? Give feedback.
-
@ghislaineguerin This discussion seems to touch 2 areas.
Configuring search columns while searching
|
Beta Was this translation helpful? Give feedback.
-
As part of the design for 'Foreign Key Usage' and as described in the specs PR we need to define a way for users to set up table specific preferences.
Table preferences
This new component should be part of the 'Table Options' dropdown and contain all the preferences for a table.
Preferences would then be any setting that only affects the table in the context of Mathesar, and does not alter the table object in the database. As an example, 'Table Constraints' couldn't be a preference, since it actually creates a constraint in the database.
Using a panel view with side tab navigation for preferences
For the layout, a paneled view with a side navigation could be ideal for the following reasons:
Setting up 'Search Columns' for a table
For the actual settings, I think the general idea is to have a way for users to select and decide the order of the 5 columns used to search and retrieve records.
The flow would have the following steps:
Feedback
This is a very rough design and the type of feedback I'm looking for is a high-level one.
Beta Was this translation helpful? Give feedback.
All reactions