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

Small warnings -widget (ios) #698

Open
AnttiRumpunen opened this issue Nov 21, 2024 · 2 comments
Open

Small warnings -widget (ios) #698

AnttiRumpunen opened this issue Nov 21, 2024 · 2 comments
Assignees
Labels
iOS Issue is for iOS version

Comments

@AnttiRumpunen
Copy link
Contributor

AnttiRumpunen commented Nov 21, 2024

UI design

  • Check Figma for UI designs.

Data

Definitions and explanations

  • show location name
  • show warnings for the current day
  • if there is only one warning, show it's type and validity time as described in Figma
  • if there is more warnings than one for the current day show total number of warnings
  • if more than one, show max three warnings
  • show worst warning for the day, order defined in Figma (warning level first, then warnings type)
  • if no warnings, show "no warnings" -text
  • if crisis banner data is available show it in the bottom section (replaces warnings total count or single warning type + validity)
@AnttiRumpunen AnttiRumpunen added the iOS Issue is for iOS version label Nov 21, 2024
@geosaaga
Copy link
Collaborator

PR: #707

@geosaaga
Copy link
Collaborator

Refresh interval can be configured in widgetConfig.json. 5 minutes might be too tight interval and widget may spend it daily budget for updates too quickly. 10-15 minutes should be safe, because widget is not updated when device is sleeping.

https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date

@geosaaga geosaaga assigned anttival and unassigned geosaaga Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Issue is for iOS version
Projects
None yet
Development

No branches or pull requests

3 participants