suit-issue-107: Use updated BusyIndicator from SUIT #75
suit-issue-107: Use updated BusyIndicator from SUIT #75nikhilj13 wants to merge 2 commits intoattivio:developfrom
Conversation
- Used the new Spinner Component from SUIT on SearchUISearchPage and Document360Page - Added css for SUIT's Spinner Component in attivio-spinner.less
luigivaldez
left a comment
There was a problem hiding this comment.
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
luigivaldez
left a comment
There was a problem hiding this comment.
See inline comments
| </Masthead> | ||
| </div> | ||
| ); | ||
| const mainContents = ( |
There was a problem hiding this comment.
It seems weird for me that the secondary nav bar should go away while the search is going on...
| </div> | ||
| </div> | ||
| ); | ||
| const pageContents = showContents ? ( |
There was a problem hiding this comment.
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?
| }, | ||
|
|
||
| // These properties configure the spinner that is shown when a search is being performed. | ||
| BusyIndicator: { |
There was a problem hiding this comment.
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
| /** 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.
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.
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: