-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new members filters and refactored filters (#15667)
fixes https://github.com/TryGhost/Team/issues/2112 - Removed a bit of duplicate code across templates and components that was used to handle filters - Updated filter objects to contain information about the filter - Added resource filters that are able to select a single resource, which can be used in columns - Filters can now define columns by themselves. Not all columns already make use of this functionality, but we can move those over later (cleanup: https://github.com/TryGhost/Team/issues/2133) - The filter definitions became quite long. We should move them to separate files in the future: https://github.com/TryGhost/Team/issues/2134 - Filters can now have custom NQL parsing - Improved support for parsing recursive or grouped NQL queries - Added support for filtering members by feedback
- Loading branch information
1 parent
7d6cfc9
commit 7c82455
Showing
16 changed files
with
739 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
<GhTokenInput | ||
<PowerSelect | ||
@searchEnabled={{true}} | ||
@options={{this.options}} | ||
@selected={{this.selectedOptions}} | ||
@disabled={{or @disabled this.fetchOptionsTask.isRunning}} | ||
@optionsComponent={{component "power-select/options"}} | ||
@allowCreation={{false}} | ||
@renderInPlace={{this.renderInPlace}} | ||
@selected={{this.selectedOption}} | ||
@onChange={{this.onChange}} | ||
@class="select-members" | ||
@triggerClass="gh-resource-select-trigger" | ||
@dropdownClass="gh-resource-select-dropdown" | ||
@placeholder={{this.placeholderText}} | ||
as |resource| | ||
@renderInPlace={{this.renderInPlace}} | ||
@disabled={{or @disabled this.fetchOptionsTask.isRunning}} | ||
@optionsComponent={{component "power-select/options"}} | ||
@search={{this.searchAndSuggest}} | ||
@searchField={{this.searchField}} | ||
@searchMessage={{@searchMessage}} | ||
@searchPlaceholder={{this.searchPlaceholderText}} | ||
as |resource| | ||
> | ||
{{resource.name}} | ||
</GhTokenInput> | ||
{{resource.title}} | ||
</PowerSelect> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.