feat: Add filter views to save frequently used filters in data browser#2404
feat: Add filter views to save frequently used filters in data browser#2404mtrezza merged 17 commits intoparse-community:alphafrom
Conversation
|
I will reformat the title to use the proper commit message syntax. |
Thanks for opening this pull request!
|
|
Some of the changes are due to local version of the |
|
You mean whether we have a lint script to auto-correct ? |
…oard into filter-views
|
Yep 😊 |
|
It seems to be missing here, feel free to just throw it in with this PR, maybe same names as with Parse Server: |
Uffizzi Ephemeral Environment
|
mov.movDemo of the PR, i'll try do some work around making sure the sidebar shows |
|
This is interesting with Uffizzi, I think to preview this we'd have to deploy a config file and later remove it before merging the PR. That woudn't be ideal because we may forget to remove and release it. |
|
I think Ufuzzi will be fine for this because I've done all the filter saving in local storage (similar to how column preferences are managed) |
There was a problem hiding this comment.
For the filter dialog, could you:
- Move the "Save" button the very left? It's a button that is used the least (once to save, then not anymore).
For the save dialog, could you:
- Remove buttons "Clear all", "Add filter", "Apply filter"
- Rename "Confim" to "Save"
- Add a "Cancel" or "Back" button on the left
|
This PR seems to mix #2041 and #2403. #2403 (comment) may be important to consider here. We may need to find a way to differentiate between "saving a filter pattern" and "saving a filter view" in the UI. Maybe a solution is to add a "more" button "..." to the very left that opens a dropdown where one can choose:
Instead of the |
|
Perhaps we can add a settings page that allows exporting of certain configurations to be defined later on Parse Dashboard? An example is the |
Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com> Signed-off-by: Daniel <daniel-blyth@live.com.au>
…oard into filter-views
|
I think that's an interesting idea. Could be a good workout until we find a concept for storing dashboard settings in the cloud. |
|
Before we get more conflicts, @dblythy could you take a look and try to get this ready for merge? |
Signed-off-by: Daniel <daniel-blyth@live.com.au>
|
Uffuzi hasn't updated to the latest commit, let's see if reopening helps... |
Uffizzi Ephemeral Environment
|
mtrezza
left a comment
There was a problem hiding this comment.
Looks good, and works in preview env; what a fine feature!
# [5.2.0-alpha.12](5.2.0-alpha.11...5.2.0-alpha.12) (2023-06-09) ### Features * Add filter views to save frequently used filters in data browser ([#2404](#2404)) ([a9ec3a9](a9ec3a9))
|
🎉 This change has been released in version 5.2.0-alpha.12 |
# [5.2.0-beta.2](5.2.0-beta.1...5.2.0-beta.2) (2023-06-10) ### Bug Fixes * Back button in data browser disappears after page refresh ([#2421](#2421)) ([6c5f19f](6c5f19f)) * Cannot navigate to nested relation field in data browser ([#2420](#2420)) ([e7ace9e](e7ace9e)) * Dashboard crashes when adding a row with modal in a class that contains a pointer to another class that contains an array of pointers ([#2416](#2416)) ([286269f](286269f)) * Empty table in data browser when navigating back using the "back” button ([#2423](#2423)) ([6f3dab6](6f3dab6)) * File uploading status not updating in data browser ([#2422](#2422)) ([e761f97](e761f97)) * Hitting backspace key in data browser crashes dashboard ([#2456](#2456)) ([32aeea2](32aeea2)) * Incorrect date picker position in data browser filter dialog ([#2425](#2425)) ([b96b48f](b96b48f)) * Option missing for Parse Config parameter to require master key ([#2440](#2440)) ([6623369](6623369)) * Scroll position is preserved when re-opening the same class in data browser via navigation bar ([#2445](#2445)) ([667675c](667675c)) * Text input cursor jumps to first position when writing long text ([#2413](#2413)) ([422ffb2](422ffb2)) ### Features * Add export of saved data browser filters via `classPreference` settings ([#2455](#2455)) ([f56f946](f56f946)) * Add filter views to save frequently used filters in data browser ([#2404](#2404)) ([a9ec3a9](a9ec3a9)) * Add links to users and roles in ACL dialog and handle invalid entries ([#2436](#2436)) ([a20cb8e](a20cb8e)) * Add visual configurator for Parse Dashboard settings ([#2406](#2406)) ([228d839](228d839))
|
🎉 This change has been released in version 5.2.0-beta.2 |
# [5.2.0](5.1.0...5.2.0) (2023-09-15) ### Bug Fixes * Back button in data browser disappears after page refresh ([#2421](#2421)) ([6c5f19f](6c5f19f)) * Cannot navigate to nested relation field in data browser ([#2420](#2420)) ([e7ace9e](e7ace9e)) * Dashboard crashes when adding a row with modal in a class that contains a pointer to another class that contains an array of pointers ([#2416](#2416)) ([286269f](286269f)) * Empty table in data browser when navigating back using the "back” button ([#2423](#2423)) ([6f3dab6](6f3dab6)) * File uploading status not updating in data browser ([#2422](#2422)) ([e761f97](e761f97)) * Hitting backspace key in data browser crashes dashboard ([#2456](#2456)) ([32aeea2](32aeea2)) * Incorrect date picker position in data browser filter dialog ([#2425](#2425)) ([b96b48f](b96b48f)) * Option missing for Parse Config parameter to require master key ([#2440](#2440)) ([6623369](6623369)) * Scroll position is preserved when re-opening the same class in data browser via navigation bar ([#2445](#2445)) ([667675c](667675c)) * Text input cursor jumps to first position when writing long text ([#2413](#2413)) ([422ffb2](422ffb2)) * Uncaught error when editing Number field in Edit Row dialog ([#2401](#2401)) ([26bd6fa](26bd6fa)) ### Features * Add export of saved data browser filters via `classPreference` settings ([#2455](#2455)) ([f56f946](f56f946)) * Add filter views to save frequently used filters in data browser ([#2404](#2404)) ([a9ec3a9](a9ec3a9)) * Add links to users and roles in ACL dialog and handle invalid entries ([#2436](#2436)) ([a20cb8e](a20cb8e)) * Add visual configurator for Parse Dashboard settings ([#2406](#2406)) ([228d839](228d839)) * Data types and pointer classes are sorted alphabetically in dialog to add new column ([#2400](#2400)) ([d9d285b](d9d285b)) * Sort Cloud Code Jobs alphabetically ([#2402](#2402)) ([77fc372](77fc372))
|
🎉 This change has been released in version 5.2.0 |
* release: (41 commits) chore(release): 5.2.0 [skip ci] release chore(release): 5.2.0-beta.2 [skip ci] empty commit chore(release): 5.2.0-alpha.14 [skip ci] fix: Hitting backspace key in data browser crashes dashboard (parse-community#2456) chore(release): 5.2.0-alpha.13 [skip ci] feat: Add export of saved data browser filters via `classPreference` settings (parse-community#2455) chore(release): 5.2.0-alpha.12 [skip ci] feat: Add filter views to save frequently used filters in data browser (parse-community#2404) chore(release): 5.2.0-alpha.11 [skip ci] fix: Scroll position is preserved when re-opening the same class in data browser via navigation bar (parse-community#2445) chore(release): 5.2.0-alpha.10 [skip ci] fix: Option missing for Parse Config parameter to require master key (parse-community#2440) chore(release): 5.2.0-alpha.9 [skip ci] fix: Dashboard crashes when adding a row with modal in a class that contains a pointer to another class that contains an array of pointers (parse-community#2416) chore(release): 5.2.0-alpha.8 [skip ci] fix: Cannot navigate to nested relation field in data browser (parse-community#2420) chore(release): 5.2.0-alpha.7 [skip ci] fix: File uploading status not updating in data browser (parse-community#2422) ... # Conflicts: # package-lock.json









New Pull Request Checklist
Issue Description
Adds ability to save filters
Closes: #2041
Approach
Saves predefined filters in localstorage with similar logic to
ColumnPreferences, only under a new classClassPreferences. This data might be used for future class specific featuresTODOs before merging