-
Notifications
You must be signed in to change notification settings - Fork 49
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
suit-issue-107: Use updated BusyIndicator from SUIT #75
base: develop
Are you sure you want to change the base?
Conversation
- Used the new Spinner Component from SUIT on SearchUISearchPage and Document360Page - Added css for SUIT's Spinner Component in attivio-spinner.less
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.
I think it would be great if, ideally, the spinner only appeared after a bit of a delay. That way, if a search is very quick, there's not flash when the spinner is rendered and then quickly replaced by the results. Thoughts?
|
Also fixed formatting issues
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.
See inline comments
</Masthead> | ||
</div> | ||
); | ||
const mainContents = ( |
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.
It seems weird for me that the secondary nav bar should go away while the search is going on...
@@ -210,6 +214,18 @@ class SearchUISearchPage extends React.Component<SearchUISearchPageProps, Search | |||
</div> | |||
</div> | |||
); | |||
const pageContents = showContents ? ( |
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.
Is there a way for this to look less disruptive? When I click Go I will see the page go blank except for the spinner and then show the results...
What do you think of just drawing the spinny thing on top of a translucent gray overlay while keeping the previous results semi-visible until the new ones are fetched?
@@ -260,6 +260,21 @@ | |||
exportButtonLabel: 'Export', | |||
}, | |||
|
|||
// These properties configure the spinner that is shown when a search is being performed. | |||
BusyIndicator: { |
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.
I'm not 100% convinced that the best thing to do in general is to set these in the configuration instead of just setting them on the two instances of the component... but I guess I don't care too strongly about it...1
@@ -92,7 +93,7 @@ type SearchUISearchPageProps = { | |||
orderHint: Array<string>; | |||
/** Controls the colors used to show various entity types (the value can be any valid CSS color) */ | |||
entityColors: Map<string, 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.
This was intentionally a JSDoc ( /** */) comment so it appears in the documentation...
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); |
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.
It seems from this page that transform: translate() is supported in all of the browsers w support... if so, the various vendor-specific values shouldn't be necessary...
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function
Uses the updated BusyIndicator Component from SUIT on SearchUISearchPage and Document360Page. Also adds css for SUIT's updated BusyIndicator Component, once
Below is a screen capture of BusyIndicator (with type 'spinnyCentered') being used in SearchUI:

BusyIndicator is configurable through SearchUI's configuration.properties file. Here is an example: