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 various PWA issues #979

Merged
merged 11 commits into from
Jan 22, 2023
Merged

Fix various PWA issues #979

merged 11 commits into from
Jan 22, 2023

Conversation

raccube
Copy link
Contributor

@raccube raccube commented Jan 21, 2023

  • Fixes maskable icon not being used
  • Removes ?source=pwa from PWA start url
  • Fixes incorrect description in manifest
  • Adds "You are offline" page for PWA

Note: The maskable icons are scaled differently to the regular icons to account for the mask safe area in order to prevent the icon from being cut off.

For some reason Chromium requires an icon at this size, however the error in Lighthouse states that the size must be *at least* 144x144 but in fact must be exactly this size.
We can use `@media (display-mode: standalone)` to detect this instead
Copy link
Member

@nilsding nilsding left a comment

Choose a reason for hiding this comment

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

some images are broken?

@raccube raccube requested a review from nilsding January 21, 2023 18:19
@codecov
Copy link

codecov bot commented Jan 21, 2023

Codecov Report

Base: 92.91% // Head: 93.63% // Increases project coverage by +0.72% 🎉

Coverage data is based on head (ebb709e) compared to base (07ea833).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #979      +/-   ##
==========================================
+ Coverage   92.91%   93.63%   +0.72%     
==========================================
  Files         161      161              
  Lines        2469     2468       -1     
==========================================
+ Hits         2294     2311      +17     
+ Misses        175      157      -18     
Impacted Files Coverage Δ
app/controllers/manifests_controller.rb 100.00% <100.00%> (ø)
app/models/user.rb 91.76% <0.00%> (ø)
app/controllers/inbox_controller.rb 95.00% <0.00%> (+43.78%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@pixeldesu pixeldesu left a comment

Choose a reason for hiding this comment

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

Can't test it locally, but code-wise things look fine.

@raccube raccube merged commit 529bf40 into main Jan 22, 2023
@raccube raccube deleted the fix/pwa-issues branch January 22, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants