Skip to content

Conversation

@codemist
Copy link
Collaborator

References:

Jira: MNTOR-5144
Figma:

Description

This PR removes the hasPremium logic from the app. At this point, hasPremium was only being used to drive shutdown banner behavior, and is no longer needed now that the banner logic has been reduced down to a single state (post-shutdown).

Screenshot (if applicable)

Not applicable.

How to test

Checklist (Definition of Done)

  • Localization strings (if needed) have been added.
  • Commits in this PR are minimal and have descriptive commit messages.
  • I've added or updated the relevant sections in readme and/or code comments
  • I've added a unit test to test for potential regressions of this bug.
  • If this PR implements a feature flag or experimentation, I've checked that it still works with the flag both on, and with the flag off.
  • If this PR implements a feature flag or experimentation, the Ship Behind Feature Flag status in Jira has been set
  • Product Owner accepted the User Story (demo of functionality completed) or waived the privilege.
  • All acceptance criteria are met.
  • Jira ticket has been updated (if needed) to match changes made during the development process.
  • Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.

@codemist codemist requested a review from Vinnl December 18, 2025 09:30
// Free users who haven't run a scan have no data that would be lost:
(!props.shutdownState.ranScan && !props.shutdownState.hasPremium) ||
props.shutdownState.currentMoment === "ye-olden-days" ||
props.countryCode !== "us" ||
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't think the countryCode prop was being used anywhere in this component, so I'm adding it here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh indeed I ended up not using it, since it was implied by the user having run a scan. We need it now if we're no longer keeping track of who ran scans though, so 👍

@codemist codemist changed the title MNTOR-5144 Remove deprecated hasPremium usage from shutdown banner MNTOR-5144 - Remove deprecated hasPremium usage from shutdown banner Dec 18, 2025
// Free users who haven't run a scan have no data that would be lost:
(!props.shutdownState.ranScan && !props.shutdownState.hasPremium) ||
props.shutdownState.currentMoment === "ye-olden-days" ||
props.countryCode !== "us" ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh indeed I ended up not using it, since it was implied by the user having run a scan. We need it now if we're no longer keeping track of who ran scans though, so 👍

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋

@codemist codemist merged commit 092196a into main Dec 22, 2025
19 checks passed
@codemist codemist deleted the mntor-5144 branch December 22, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants