Skip to content

Conversation

@michaelstingl
Copy link
Contributor

Description

This PR fixes the quota display issue where "9.22 EB available" is shown for accounts with unlimited storage quota. The iOS app now hides the "available" space display when the quota is unlimited (total = 0), matching the web interface behavior.

⚠️ Note: This is a proposed fix that has not been built or tested yet.

Related Issue

Fixes #11

Motivation and Context

When users have "No restriction" set for their quota, the backend returns remaining: INT64_MAX (≈ 9.22 EB). The iOS app was displaying this literally as "9.22 EB available", which is confusing for users. The web interface correctly hides the available space in this case.

How Has This Been Tested?

Not tested yet - This is a code review proposal. Testing needed:

  • Build the app
  • Test with unlimited quota account - should not show "available"
  • Test with limited quota account - should still show "X GB available"

Screenshots (if appropriate):

Not available - not built/tested yet

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • Added an issue with details about all relevant changes in the docs repository.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have set a pull request label and a meaningful title for changelog automation

- Hide 'available' space display when quota.total = 0 (unlimited)
- Prevents showing confusing '9.22 EB available' for unlimited quotas
- Matches web interface behavior which hides available space for unlimited quotas
@michaelstingl michaelstingl force-pushed the fix/quota-display-unlimited-11 branch from 3795c21 to 0dc40a9 Compare June 4, 2025 23:12
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.

[BUG] Available space is displayed wrong when no quota is set

1 participant