-
Notifications
You must be signed in to change notification settings - Fork 9
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(JSONTree): allow case insensitive search #1735
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 suggestion.
Files not reviewed (5)
- src/components/JSONTreeWithSearch/JSONTreeWithSearch.scss: Language not supported
- src/components/JSONTreeWithSearch/i18n/en.json: Language not supported
- src/containers/Tenant/Diagnostics/Describe/Describe.scss: Language not supported
- src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss: Language not supported
- src/utils/constants.ts: Evaluated as low risk
treeClassName?: string; | ||
} | ||
|
||
export function JSONTreeWithSearch({treeClassName, ...rest}: JSONTreeWithSearchProps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could create JSONTreeWrapper and use it everywhere with search prop?
In case we want to use search anywhere else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense!
ignoreCase: !caseSensitiveSearch, | ||
}} | ||
searchOptions={{ | ||
debounceTime: 300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const DEBOUNCE_TIME ?
@@ -46,6 +47,7 @@ export const DEFAULT_USER_SETTINGS = { | |||
[AUTOCOMPLETE_ON_ENTER]: true, | |||
[IS_HOTKEYS_HELP_HIDDEN_KEY]: false, | |||
[AUTO_REFRESH_INTERVAL]: 0, | |||
[CASE_SENSITIVE_JSON_SEARCH]: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose case-sensitiveness should be scoped to JSONTreeWrapper (or JSONTreeSearch or whatever component it is used in)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a setting that should be saved to LS. Thats why it is among other settings. Or I didn't get you?..
Closes #1567
Stand
CI Results
Test Status: β PASSED
π Full Report
π No changes in tests. π
Bundle Size: β
Current: 65.97 MB | Main: 65.97 MB
Diff: +3.00 KB (0.00%)
β Bundle size unchanged.
βΉοΈ CI Information