Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

fix(openchallenges): fix bugs related search dropdown filters on search page #2688

Closed rrchai closed 3 weeks ago

rrchai commented 1 month ago

Changelogs

Preview

Disable loader animation

While the loading animation looks nice, a flickering behavior has been observed (see @tschaffter's message below), which is why this PR hides the animation.

Before After
v0 v1

Fix empty labels

Before After
v0 2 v1 2

b) Invalid selected values

Before After
0 3 v1 3

Fix selected values not shown in UI

The selected values, if present, will always sit on the top of options, unless the values are unselected and reset by changing search term. Before After
0 4 1 4
rrchai commented 1 month ago

@tschaffter I am not sure if the changes in this pr will fix the flicking issue you encountered 🍀

tschaffter commented 1 month ago

Yes, enabling the loading animation still leads to a flickering. See another video below where I scroll 4 times. The first scroll is fine, but the next three scrolls feature a flickering. Tested on Firefox.

Recording 2024-05-23 at 14 26 55

rrchai commented 1 month ago

Yes, enabling the loading animation still leads to a flickering. See another video below where I scroll 4 times. The first scroll is fine, but the next three scrolls feature a flickering. Tested on Firefox.

If we disable loading animation, does the flickering behavior still exist? @tschaffter

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed for 'openchallenges-app'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud