Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improvements to null and empty strings filters in grid #1348

Merged
merged 10 commits into from
Jun 14, 2023

Conversation

dsmmcken
Copy link
Contributor

@dsmmcken dsmmcken commented Jun 2, 2023

Fixes #1243

  • advanced styling for null and empty strings
  • quick filter input styling for null and empty strings
  • context menu styling for null and empty strings
  • escape the null when using filter by menu
  • escape any operator when using filter by menu
  • New special empty string context menu
  • Fixed broken startswith/endwith
  • Allow empty string search as just "=" or "!="

Any filter containing a backslashes however is still broken in the jsapi deephaven/deephaven-core#3912

Address some concerns from #1243.

-  advanced styling for null and empty strings
- quick filter input styling for null and empty strings
- context menu styling for null and empty strings
- escape the null when using filter by menu
- New special empty string context menu
- Fixed broken startswith/endwith
- Allow empty string search as just "=" or "!="

Backslashes are still broken, and context menu selection
doesn't escape the quick filter correctly.
@dsmmcken dsmmcken self-assigned this Jun 2, 2023
@dsmmcken dsmmcken requested a review from mofojed June 2, 2023 21:36
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #1348 (431c3fc) into main (a5d4e21) will decrease coverage by 0.38%.
The diff coverage is 56.00%.

@@            Coverage Diff             @@
##             main    #1348      +/-   ##
==========================================
- Coverage   45.95%   45.58%   -0.38%     
==========================================
  Files         494      506      +12     
  Lines       34422    34966     +544     
  Branches     8586     8734     +148     
==========================================
+ Hits        15820    15940     +120     
- Misses      18551    18975     +424     
  Partials       51       51              
Flag Coverage Δ
unit 45.58% <56.00%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/components/src/SelectValueList.tsx 1.35% <ø> (ø)
...d/src/mousehandlers/IrisGridContextMenuHandler.tsx 3.10% <0.00%> (-0.17%) ⬇️
...-grid/src/AdvancedFilterCreatorSelectValueList.tsx 18.25% <14.28%> (-0.76%) ⬇️
packages/jsapi-utils/src/TableUtils.ts 89.71% <100.00%> (+0.86%) ⬆️

... and 27 files with indirect coverage changes

@dsmmcken
Copy link
Contributor Author

dsmmcken commented Jun 5, 2023

I don't think I like the input styling for nulls, since it can't be rich text so it would never work on something like null && !=AAPL. Will probably remove that feature.

@dsmmcken dsmmcken marked this pull request as draft June 5, 2023 14:04
@dsmmcken dsmmcken marked this pull request as ready for review June 9, 2023 20:40
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good overall, some cleanup

dsmmcken and others added 2 commits June 14, 2023 10:05
Co-authored-by: Mike Bender <mikebender@deephaven.io>
@dsmmcken dsmmcken requested a review from mofojed June 14, 2023 14:42
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the "Fixes #1243" to the description so it links properly? Then I'll approve.

@dsmmcken dsmmcken requested a review from mofojed June 14, 2023 19:58
@dsmmcken dsmmcken merged commit ed3a8c5 into main Jun 14, 2023
@dsmmcken dsmmcken deleted the dmckenzie_null_stuff branch June 14, 2023 20:21
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confusing quick filter behavior around string column "null"
2 participants