github internxt/drive-web v1.0.412

2 days ago

Description

This PR refactors BannerManager and BannerWrapper to improve clarity and ensure banners display correctly.

  1. FeaturesBanner is shown for free users who have not dismissed it and if the offer is still valid.
  2. SubscriptionBanner is shown for users with a subscription or lifetime plan who have not dismissed it.
  3. Extracted helper methods in BannerManager to simplify banner visibility logic.
  4. BannerWrapper now uses getBannersToShow() to manage banner state efficiently.
  5. Removed redundant logic and improved state handling for better maintainability.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

How Has This Been Tested?

Additional Notes

Don't miss a new drive-web release

NewReleases is sending notifications on new releases.