Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deprecation modal #4296

Merged
merged 6 commits into from
Sep 3, 2024
Merged

add deprecation modal #4296

merged 6 commits into from
Sep 3, 2024

Conversation

L03TJ3
Copy link
Collaborator

@L03TJ3 L03TJ3 commented Sep 2, 2024

Description

This adds a modal with a notice to UK users.

About # (link your issue here)
#4292

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature.
  • @mentions of the person or team responsible for reviewing proposed changes

Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
goodwallet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 11:42am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
gooddollar-delta ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 11:42am
goodid ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 11:42am

@L03TJ3
Copy link
Collaborator Author

L03TJ3 commented Sep 2, 2024

@decentralauren Should the 'why' this modal show not show before directing a user to a link? (copy order)
Likely also waiting others response, just pointing it out

@@ -40,6 +42,20 @@ export const resetLastSplash = async () => {
const Splash = ({ animation, isLoggedIn }) => {
const [checked, setChecked] = useState(false)
const [shouldAnimate, setShouldAnimate] = useState(isLoggedIn !== true || isMobileNative)
const { showDeprecationDialog } = useDeprecationDialog()

useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

limit the amount of times you display it or some kind of exponential backoff

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added tho following backoff:

  1. shows first 3 times
  2. gradually lowers the probability of it showing
  3. at some point reset.

Good enough?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

add: gradually show the modal less
@L03TJ3 L03TJ3 merged commit 7da6e1e into master Sep 3, 2024
15 of 19 checks passed
@L03TJ3 L03TJ3 deleted the uk-deprecation-modal branch September 3, 2024 11:38
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.

2 participants