Skip to content
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

fix: interpretations panel renders with flashing when liking or unliking an interpretation #1600

Merged
merged 9 commits into from
Mar 5, 2024

Conversation

jenniferarnesen
Copy link
Contributor

@jenniferarnesen jenniferarnesen commented Dec 21, 2023

Fixes: https://dhis2.atlassian.net/browse/DHIS2-16392

Fixes flashing when liking/unliking an interpretation.
Seems unnecessary to render a loader when fetching. There is already a loader for loading state, which happens on initial load.

Adding the spinner to the DOM was causing big flashing:

Before:
https://github.com/dhis2/analytics/assets/6113918/482f3d0d-cb71-4751-b072-5a367199c364

After:

like-doesnt-cause-flash.mov

@jenniferarnesen jenniferarnesen marked this pull request as draft December 21, 2023 18:51
@jenniferarnesen jenniferarnesen marked this pull request as ready for review January 2, 2024 10:51
@jenniferarnesen jenniferarnesen marked this pull request as draft January 8, 2024 07:44
@jenniferarnesen jenniferarnesen changed the title fix: rendering a spinner based on fetching causes flash fix: interpretations panel renders with flashing when liking or unliking an interpretation Feb 2, 2024
@jenniferarnesen jenniferarnesen marked this pull request as ready for review February 2, 2024 14:19
@edoardo edoardo force-pushed the fix/like-causing-flashing-interp-panel branch from 410376b to fe2a3d3 Compare February 20, 2024 11:01
@janhenrikoverland janhenrikoverland merged commit bb32565 into master Mar 5, 2024
2 checks passed
@janhenrikoverland janhenrikoverland deleted the fix/like-causing-flashing-interp-panel branch March 5, 2024 11:58
dhis2-bot added a commit that referenced this pull request Mar 5, 2024
## [26.4.1](v26.4.0...v26.4.1) (2024-03-05)

### Bug Fixes

* interpretations panel renders with flashing when liking or unliking an interpretation ([#1600](#1600)) ([bb32565](bb32565))
* use translated title and subtitle when available (DHIS2-16216) ([#1597](#1597)) ([5a91391](5a91391))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 26.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

jenniferarnesen added a commit that referenced this pull request Mar 22, 2024
…ing an interpretation (#1600)

* fix: rendering a spinner based on fetching causes flash

* fix: dont use loader and mask when like/unliking

* fix: when liking just update the object instead of new request

* fix: unneeded changes

* fix: unneeded changes

* fix: more cleanup

* fix: set dirty so parent component refreshes interpretations list

---------

Co-authored-by: Edoardo Sabadelli <edoardo@dhis2.org>
jenniferarnesen added a commit that referenced this pull request Apr 2, 2024
…ing an interpretation (#1643)

Fixes: https://dhis2.atlassian.net/browse/DHIS2-16392
Backport of #1600

---------

Co-authored-by: Edoardo Sabadelli <edoardo@dhis2.org>
dhis2-bot added a commit that referenced this pull request Apr 2, 2024
## [24.10.4](v24.10.3...v24.10.4) (2024-04-02)

### Bug Fixes

* interpretations panel renders with flashing when liking or unliking an interpretation ([#1643](#1643)) ([4148bf9](4148bf9)), closes [#1600](#1600)
jenniferarnesen added a commit to dhis2/data-visualizer-app that referenced this pull request Apr 3, 2024
jenniferarnesen added a commit to dhis2/maps-app that referenced this pull request Apr 3, 2024
dhis2-bot added a commit to dhis2/data-visualizer-app that referenced this pull request Apr 3, 2024
## [39.2.23](v39.2.22...v39.2.23) (2024-04-03)

### Bug Fixes

* upgrade analytics for interpretations like/unlike flashing [v39] ([#3012](#3012)) ([58ca653](58ca653)), closes [dhis2/analytics#1643](dhis2/analytics#1643) [dhis2/analytics#1600](dhis2/analytics#1600)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants