Description
This PR refactors BannerManager and BannerWrapper to improve clarity and ensure banners display correctly.
- FeaturesBanner is shown for free users who have not dismissed it and if the offer is still valid.
- SubscriptionBanner is shown for users with a subscription or lifetime plan who have not dismissed it.
- Extracted helper methods in BannerManager to simplify banner visibility logic.
- BannerWrapper now uses getBannersToShow() to manage banner state efficiently.
- 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