QField icon indicating copy to clipboard operation
QField copied to clipboard

Show QFieldCloud current storage usage

Open mohsenD98 opened this issue 10 months ago • 13 comments

Description:
This PR implements a ProgressBar that indicates the amount of storage being used in QFieldCloud.


UI Notes:

  • Usage under 90%: Blue color
  • Usage between 90% and 97.5%: Warning (Yellow) color
  • Usage above 97.5%: Red color with a hyperlink that says: “Upgrade to more storage here”

Upcoming:
The API call will be integrated in future PRs, so this feature will remain hidden until those merges are completed.


Glance: image

mohsenD98 avatar Mar 08 '25 16:03 mohsenD98

🎉 Ta-daaa, freshly created APKs are available for 24682145cffe71d4c8232277ff481db77ee7e92f: arm64-android

Other architectures

qfield-fairy avatar Mar 08 '25 16:03 qfield-fairy

@suricactus , OK to merge this?

nirvn avatar Mar 13 '25 04:03 nirvn

Is there a reason to rush with merging this? There is no API that is stabilized yet on the QFC side and also there might be more info we would like to show?

Also, there are still 3 occurances of float/doubles that does not have leading 0, which was never used in the codebase before.

My plan is when we finilize the yearly payments in QFC in the next month or so to open the endpoint that serves this data to the client.

suricactus avatar Mar 14 '25 07:03 suricactus

>> Also, there are still 3 occurances of float/doubles that does not have leading 0, which was never used in the codebase before.

That's valid, we need to address this @mohsenD98 .

nirvn avatar Mar 14 '25 07:03 nirvn

I would vote to show the "upgrade to get more storage" earlier, ideally users will want to upgrade before they run out of space.

m-kuhn avatar Jul 07 '25 06:07 m-kuhn

We need something like this first: https://github.com/opengisch/QFieldCloud/pull/1099

nirvn avatar Jul 07 '25 06:07 nirvn

(oups, ping @m-kuhn for reply above)

nirvn avatar Jul 07 '25 06:07 nirvn

From my perspective, the upgrade should appear with the yellow case already, and I think the yellow threshold should be lower. Maybe 80%

mbernasocchi avatar Jul 29 '25 07:07 mbernasocchi

Just an update where we are at here. Since we are introducing quite some changes in billing, we better wait for these changes and then expose the API needed for this PR. Once there, I believe the threshold should be a QFieldCloud setting, that is shared across all clients - mobile, web, sync.

suricactus avatar Jul 29 '25 17:07 suricactus

From my perspective, the upgrade should appear with the yellow case already, and I think the yellow threshold should be lower. Maybe 80%

Actually I would always show it. We can change the wording from "Manage storage" to "Upgrade to more storage" at 80%.

m-kuhn avatar Aug 02 '25 12:08 m-kuhn

@m-kuhn , +1 to always showing and tweaking the label.

I can't state how important I feel this improvement is in my mind. We're operating a storage space without a usage meter and no way for people to easily upgrade on either QFS or QF :)

nirvn avatar Aug 11 '25 03:08 nirvn

Google threw this at me today, I love it:

image

nirvn avatar Aug 14 '25 01:08 nirvn

@nirvn, Long time open PR.

mohsenD98 avatar Sep 13 '25 12:09 mohsenD98