-
Notifications
You must be signed in to change notification settings - Fork 19
Advanced search UI #770
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
Merged
Merged
Advanced search UI #770
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
621cf5a
refactor: rename search panel to search input
g-saracca 7ab4a69
feat: initial routing and logic
g-saracca 04d6f96
feat: initial fields
g-saracca 2bf21ea
feat: collections and files fields
g-saracca 92218d1
chore: update js-dv
g-saracca f41cc78
feat: change form fields name
g-saracca 628f770
feat: dataset block fields render
g-saracca 6421e54
feat: construct search query in progress
g-saracca 61849cf
feat: add isAdvancedSearchFieldType to mother objects
g-saracca 612846c
feat: construct dataset query
g-saracca 4d1e83d
feat: empty form default values
g-saracca 896f823
fix: remove unused location state
g-saracca 7ecf464
feat: navigate after search
g-saracca 12aec3f
feat: prefill form with previous search
g-saracca 7cfe2a7
feat: clear form button
g-saracca 1ddbdaf
Merge branch 'develop' into feat/760-advanced-search-ui
g-saracca a6104e6
fix(Design System): fix word wrapping in options list to prevent over…
g-saracca 6c59d98
tests: add unit tests
g-saracca 7d80db7
refactor: remove current search from link
g-saracca 5c37342
feat: add story
g-saracca e2a64dc
feat: keep filter queries when performing advanced search
g-saracca 11316d5
feat: show search if more than 10 controlled vocab values
g-saracca 56e1216
Merge branch 'develop' into feat/760-advanced-search-ui
g-saracca 99b3e1e
t submit AdvancedSearchForm (to increase code coverage)
ekraffmiller 2957e5c
Merge branch 'develop' into feat/760-advanced-search-ui
g-saracca 9b139d7
fix: import metadata block name enum from dataset model
g-saracca 96b2868
Merge branch 'develop' into feat/760-advanced-search-ui
g-saracca 1cead0b
test: avoid fetching external image and use fixture image
g-saracca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,97 @@ | ||
| { | ||
| "pageTitle": "Advanced Search", | ||
| "clearForm": "Clear Form", | ||
| "collections": { | ||
| "name": { | ||
| "label": "Name", | ||
| "description": "The project, department, university, professor, or journal this collection will contain data for.", | ||
| "invalid": { | ||
| "maxLength": "Name must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "affiliation": { | ||
| "label": "Affiliation", | ||
| "description": "The organization with which this collection is affiliated.", | ||
| "invalid": { | ||
| "maxLength": "Affiliation must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "alias": { | ||
| "label": "Identifier", | ||
| "description": "Short name used for the URL of this collection.", | ||
| "invalid": { | ||
| "maxLength": "Identifier must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "description": { | ||
| "label": "Description", | ||
| "description": "A summary describing the purpose, nature or scope of this collection.", | ||
| "invalid": { | ||
| "maxLength": "Description must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "subject": { | ||
| "label": "Subject", | ||
| "description": "Domain-specific Subject Categories that are topically relevant to this Collection.", | ||
| "invalid": { | ||
| "maxLength": "Subject must be at most {{maxLength}} characters." | ||
| } | ||
| } | ||
| }, | ||
| "files": { | ||
| "name": { | ||
| "label": "Name", | ||
| "description": "The name given to identify the file.", | ||
| "invalid": { | ||
| "maxLength": "Name must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "description": { | ||
| "label": "Description", | ||
| "description": "A summary describing the file and its variables.", | ||
| "invalid": { | ||
| "maxLength": "Description must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "fileType": { | ||
| "label": "File Type", | ||
| "description": "The file type, e.g. Comma Separated Values, Plain Text, R, etc.", | ||
| "invalid": { | ||
| "maxLength": "File Type must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "dataFilePersistentId": { | ||
| "label": "Data File Persistent ID", | ||
| "description": "The unique persistent identifier for the file.", | ||
| "invalid": { | ||
| "maxLength": "Data File Persistent ID must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "variableName": { | ||
| "label": "Variable Name", | ||
| "description": "The name of the variable's column in the data frame.", | ||
| "invalid": { | ||
| "maxLength": "Variable Name must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "variableLabel": { | ||
| "label": "Variable Label", | ||
| "description": "A short description of the variable.", | ||
| "invalid": { | ||
| "maxLength": "Variable Label must be at most {{maxLength}} characters." | ||
| } | ||
| }, | ||
| "fileTags": { | ||
| "label": "File Tags", | ||
| "description": "Terms such as \"Documentation\", \"Data\", or \"Code\" that have been applied to files.", | ||
| "invalid": { | ||
| "maxLength": "File Tags must be at most {{maxLength}} characters." | ||
| } | ||
| } | ||
| }, | ||
| "datasets": { | ||
| "invalid": { | ||
| "maxLength": "{{fieldName}} must be at most {{maxLength}} characters." | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,21 @@ | ||
| /** | ||
| * This class is inspired by https://github.com/IQSS/dataverse/blob/develop/src/main/java/edu/harvard/iq/dataverse/search/SearchFields.java | ||
| */ | ||
|
|
||
| export class SearchFields { | ||
| public static readonly DATAVERSE_NAME = 'dvName' | ||
| public static readonly DATAVERSE_ALIAS = 'dvAlias' | ||
| public static readonly DATAVERSE_AFFILIATION = 'dvAffiliation' | ||
| public static readonly DATAVERSE_DESCRIPTION = 'dvDescription' | ||
| public static readonly DATAVERSE_SUBJECT = 'dvSubject' | ||
|
|
||
| public static readonly FILE_NAME = 'fileName' | ||
| public static readonly FILE_DESCRIPTION = 'fileDescription' | ||
| public static readonly FILE_TYPE_SEARCHABLE = 'fileType' | ||
| public static readonly FILE_PERSISTENT_ID = 'filePersistentId' | ||
|
|
||
| public static readonly VARIABLE_NAME = 'variableName' | ||
| public static readonly VARIABLE_LABEL = 'variableLabel' | ||
|
|
||
| public static readonly FILE_TAG_SEARCHABLE = 'fileTags' | ||
| } |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.