Variable Visibility Settings #105
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Welcome! This PR introduces a new feature that gives users better control over column visibility in the data table. Users can now easily show/hide variables through a dedicated settings panel with filtering and organization options. Do you have a boring variable occupying space? Worry no more, you can just hide it now.
Important
Before trying this out, be sure to have your testing backend on the
feat/tags-backend-support
branch.Features
Desired behaviour
DAMNIT-Web_Column_Visibility.mov
Technical Implementation
SpoilerList
component for rendering grouped variables with toggle functionality. Dispatching changes in thevisibilitySettings
state is done in this level.VisibilitySettings
component that renders several SpoilerLists or a single one for the 'all-variables' variant. Searching input, and opened accordions are handled in this component.UserSettings
component, letting this reusable enough for possible new settings.Testing
Please test the following scenarios:
Also, as always, ask yourself if everything is intuitive and takes minimum effort to be accomplished :)
To-Do (in next PR)