-
Notifications
You must be signed in to change notification settings - Fork 459
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
Add header filtering to query result grid #18373
base: main
Are you sure you want to change the base?
Conversation
PR Changes
|
Can you update the PR title to be more specific? Probably something like |
@@ -238,6 +376,86 @@ export class HeaderFilter<T extends Slick.SlickData> { | |||
this.setFocusToColumn(columnDef); | |||
} | |||
|
|||
private async createFilterList(): Promise<void> { |
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.
Does this list need to be virtualized?
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.
@cssuh Can you test filtering with something like 10k different rows?
apply: l10n.t("Apply"), | ||
clear: l10n.t("Clear"), | ||
search: l10n.t("Search..."), | ||
selected: l10n.t("0 Selected"), |
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.
When is this shown? My gut says that this either ought to be "{num} selected"
or "None selected"
(word rather than number for the special "zero-case" feels nicer here to me?)
apply: l10n.t("Apply"), | ||
clear: l10n.t("Clear"), | ||
search: l10n.t("Search..."), | ||
selected: l10n.t("0 Selected"), |
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.
If this is only shown when none are selected, then the var name should be noneSelected
or zeroSelected
instead of selected
Can you add a video to the PR description so we can see it in action? |
if ( | ||
this.theme === ColorThemeKind.Dark || | ||
this.theme === ColorThemeKind.HighContrast | ||
) { | ||
$el.addClass("vs-dark"); | ||
} else { | ||
$el.addClass("vs-light"); | ||
} |
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.
Do you know how "vs-light"
differs from just "light"
? Could this just use utils.resolveVscodeThemeType(themeKind)
instead?
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.
Quick question, why are we adding classes to the component?
Is using vscode css variables not enough in this case? We should generally just stick to them for all of our coloring and styling needs.
Currently, this doesn't support vs Hight Contrast light theme.
Addresses: #18063
Addresses: #18250
Adds filtering to the header menu
TODO: