MPA

From the to-do list: MPA V1.0: post API integration

✔ update cloud storage

Comments

Pierre henri Seylan on March 1, 2019:

This task is about finalizing the cloud storage popup panel.


1. show only free and used:
Currently there are few categories:
  • projects
  • media library 
  • uploads
  • free
This should be changed to:
  • Used
  • Free
The API should return the amount of free storage left, as well as the tital allowance for the user.
With those datas you can display the used and free amounts.

Note: The chart pie should be updated to display only those 2 categories

2. Add upgrade button:
Let's add an upgrade button at the bottom of this panel.
For the button, use the same look and feel as for the "creator website" button on the packs page, see below 


3. Reload when opening popup:
To always have the accurate amounnt of storage, we should send an API request everytime the popup is opened.
It is not sure that there is a request only for the storage, if it is not the case use the request to get the user infos, which contain the storage.
Let me kow what you have used, and we might ask the web dev to add a new request if needed.

4. add loader: 
When loading the cloud storage data, we should display a loader in the center of the storage popup.
This loader is the only element displayed, until the storage is available.

5. Center panel:
let's also center the panel in the side menu, there should be the same amount of space o the left and right side of the popup panel.

Pierre henri Seylan on March 5, 2019:

Feedback:
The amount of free and used space are still dummy datas.
The API should provide those datas, please double check and implement it.
Or let me know what is missing

Pierre henri Seylan on March 20, 2019:

Waiting for the web developers to fix the issue with the API, let's fix a bug we have in day mode.
There the upgrade buttton is not visible if it is not hovered, let's use the same color as for the text font when the button is not hovered
?

Pierre henri Seylan on April 3, 2019:

please check this API request:
{{url}}/api/v1/users/auth/me/space

are you still not getting the user storage?

Daniel Ch. on April 4, 2019:

Checked new API request, got the same user storage as previously.

Karim Alabtakh on April 27, 2019:

done

Pierre henri Seylan on May 1, 2019:

Karim Alabtakh on May 1, 2019:

done

Pierre henri Seylan on May 1, 2019:

It seems that the web developer have fixed the issue, please check