-
Notifications
You must be signed in to change notification settings - Fork 188
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
Task Search UI #890
Task Search UI #890
Conversation
…e that maybe should be held by the TaskSearch page instead
…k to the form page. Yay! Also some code organizational changes.
…k to the form page. Yay! Also some code organizational changes. And added files that weren't in the previous commit by accident
…ng TaskSearch search form
…change parameters, ability to jump to page
…lect number of tasks to show per page
base += 'page=' + @page | ||
anyParams = true | ||
return '' if not anyParams | ||
return base |
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.
We can build the params a bit cleaner here. Probably easier to build up an array of params (i.e. if @Attribute then add to array), then return paramsArray.join('&')
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.
an even better solution would be to build an Object of all the query params to set, and then use $.param()
to convert the object into a legit query string
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.
TIL... thanks @tpetr 😃
…n loading and no tasks found
… message isn't provided
…nto search-tasks-react
…urrent page is the last page
…arch button has not been pressed
…Results collections into HistoricalTasks
Refactor HistoricalTasks Collections into One
This Implements the UI for the new global and request task search APIs.
It is written in React, which has only been used for one other Singularity component (the aggregate log tailer).
It allows viewing up to 50 tasks per page, clearing search parameters, modifying search order, paging through search options, and returning to request.
It also includes some components, in a 'common' folder, that may be useful for others using react later on.