Skip to content

Use dynamic storage threshold values from QFieldCloud subscription API - #804

Merged
nirvn merged 1 commit into
opengisch:masterfrom
MidnightCoder-m:dynamic-storage-thresholds-from-qfieldcloud
Jun 5, 2026
Merged

nirvn merged 1 commit into
opengisch:masterfrom
MidnightCoder-m:dynamic-storage-thresholds-from-qfieldcloud

Conversation

@MidnightCoder-m

Copy link
Copy Markdown
Contributor

🚀 Description

Previously the storage widget used hardcoded ratios (0.8 / 0.95); this PR replaces them with values derived from the server response.

QFieldCloud's subscription API returns two threshold fields (plan_storage_threshold_warning_bytes, plan_storage_threshold_critical_bytes) that indicate how many free bytes remain before warning/critical states should trigger.

✨ Key Changes

  • StorageWidget: added _warning_threshold and _critical_threshold instance variables

@nirvn
nirvn merged commit 70e8853 into opengisch:master Jun 5, 2026
9 checks passed
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