Skip to content

Fixes to address continuous spinner on api call failure#5

Open
henrymchu wants to merge 1 commit into
linuxlewis:mainfrom
henrymchu:usage-call-fix
Open

Fixes to address continuous spinner on api call failure#5
henrymchu wants to merge 1 commit into
linuxlewis:mainfrom
henrymchu:usage-call-fix

Conversation

@henrymchu
Copy link
Copy Markdown
Contributor

  • UsageData.swift — Added ExtraUsage struct to match the updated API response shape (nullable utilization, is_enabled, etc.)
  • UsageViewModel.swift — Updated highestUtilization and displayLimits to handle the new ExtraUsage type
  • ContentView.swift — Fixed the network error state being hidden behind the toolbar (now shows an error screen with Retry + Open Settings buttons when there's no data)

  * UsageData.swift — Added ExtraUsage struct to match the updated
    API response shape (nullable utilization, is_enabled, etc.)
  * UsageViewModel.swift — Updated highestUtilization and
    displayLimits to handle the new ExtraUsage type
  * ContentView.swift — Fixed the network error state being hidden
    behind the toolbar (now shows an error screen with Retry +
    Open Settings buttons when there's no data)
@phedoreanu
Copy link
Copy Markdown

Would be great to merge this PR as currently the latest release v1.2.0 is broken. Thanks!

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.

2 participants