-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
searchTags
GQL query and alias matching to tag searches (#413)
* Add `searchTags` GQL query * implement `names` for `queryTags` * Update TagList to search aliases (non-FTS) * Use `searchTag` in `TagSelect` * Sort tag search results by name * Refactor TagSelect results - Add description - Aliases as title when hovering over result - Make the menu larger on SceneForm, to accomodate the additional text - Don't allow deleted tags by default (can be achieved by searching a deleted tag's ID) * Restore font-size CSS * remove 'else if' between name/names filters
- Loading branch information
Showing
14 changed files
with
368 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
// ==================================================== | ||
// GraphQL query operation: SearchTags | ||
// ==================================================== | ||
|
||
export interface SearchTags_searchTag { | ||
__typename: "Tag"; | ||
deleted: boolean; | ||
id: string; | ||
name: string; | ||
description: string | null; | ||
aliases: string[]; | ||
} | ||
|
||
export interface SearchTags { | ||
searchTag: SearchTags_searchTag[]; | ||
} | ||
|
||
export interface SearchTagsVariables { | ||
term: string; | ||
limit?: number | null; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
query SearchTags($term: String!, $limit: Int = 5) { | ||
searchTag(term: $term, limit: $limit) { | ||
deleted | ||
id | ||
name | ||
description | ||
aliases | ||
} | ||
} |
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
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.