Uh oh!
There was an error while loading. Please reload this page.
[PB-6492]:feat/new banners for storage advertisement - #2002
Conversation
Deploying drive-web with |
| Latest commit: | 9e74b54 |
| Status: | ✅ Deploy successful! |
| Preview URL: | https://639be12f.drive-web.pages.dev |
| Branch Preview URL: | https://feat-progressive-free-usage.drive-web.pages.dev |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| export const readDismissals = (): StorageWarningDismissals => { | ||
| try { | ||
| const raw = localStorageService.get(DISMISSALS_STORAGE_KEY); |
There was a problem hiding this comment.
Please use LocalStorageItem as input for localStorageService.get
TamaraFinogina
left a comment
There was a problem hiding this comment.
localStorageService.get API has changed
…ttps://github.com/internxt/drive-web into feat/progressive-free-usage-storage-advertisements



Description
In this PR, we have replaced the WarningMessage that previously appeared when the maximum capacity of the free plan was reached, and we now have a series of banners that appear depending on how the plan is being used; we have three thresholds: 60%, 80% and 95%. The idea is that as a user reaches these thresholds, the banner is displayed (never immediately after a usage spike, but always afterwards). The banner designs have already been added to the UI repository, and here we are customising them according to our requirements – text, shape, colours, etc. The banners have certain conditions under which they are hidden: they remain hidden for 7 days when usage is low, and for 3 days for the other two thresholds we have. We’ve had to add new colours to the library.
The SidenavWrapper component has also been updated, as it forms part of this system.
Related Issues
Related Pull Requests
Checklist
Testing Process
To test it, we created a free account and uploaded files to exceed the thresholds once we’d passed each one, we checked that the banners did indeed appear when and how they should, and that they were working correctly


Additional Notes