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

feat: headerbar update notification [LIBS-344] #748

Merged
merged 9 commits into from
Oct 6, 2022

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Sep 22, 2022

Implements LIBS-176
Implements LIBS-344

Requires dhis2/app-runtime#1252
Requires dhis2/ui#1153 released as beta
Requires dhis2/ui#1156 (merge ui beta to master)

Description

This refactors the PWA update notification logic, moving update notification UI to the Profile menu. It also adds the app name, app version, and server version strings to the useConfig context.

@amcgee amcgee force-pushed the feat-headerbar-update-notification branch from e1b7dc3 to 42e1b13 Compare September 22, 2022 19:00
@amcgee amcgee marked this pull request as ready for review October 4, 2022 07:24
@amcgee amcgee marked this pull request as draft October 4, 2022 09:44
Copy link
Contributor

@KaiVandivier KaiVandivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good!! I noticed one bug: when hard-reloading in the one-client condition, the page got stuck at the PWA Loading Boundary (white screen) until reloading again. I found that removing these lines fixed it -- they were the old way of handling the hard-reload

After that's fixed, this is functionally good to go -- I'll post a few ideas for follow-ups and suggestions for making one or two things easier to understand for future maintainers too, but they're not at all necessary for merging 🙂

@amcgee amcgee marked this pull request as ready for review October 6, 2022 16:36
@amcgee amcgee enabled auto-merge (squash) October 6, 2022 16:41
@amcgee amcgee merged commit b245bf1 into master Oct 6, 2022
@amcgee amcgee deleted the feat-headerbar-update-notification branch October 6, 2022 16:42
dhis2-bot added a commit that referenced this pull request Oct 6, 2022
# [10.1.0](v10.0.1...v10.1.0) (2022-10-06)

### Features

* headerbar PWA update notifications [LIBS-344] ([#748](#748)) ([b245bf1](b245bf1))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

3 participants