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

fix: move user prop updater into statsigProvider #7442

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

just-toby
Copy link
Contributor

Description

moves all the useEffect hooks which set user properties into their own component. this is important because it puts the logic within StatsigProvider and DarkModeQueryParamProvider, which can affect the values we set.

Slack thread: https://uniswapteam.slack.com/archives/C052XQ3EUTT/p1696973999717179

Test plan

manually verified that isUniswapXDefaultEnabled correctly updates to true at this callsite now - before it was never updating to the correct value

@just-toby just-toby requested review from tinaszheng and a team October 10, 2023 22:31
@vercel
Copy link

vercel bot commented Oct 10, 2023

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

Name Status Preview Comments Updated (UTC)
interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 10:31pm

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #7442 (3cc76b3) into main (45c3e1d) will increase coverage by 0.14%.
Report is 2 commits behind head on main.
The diff coverage is 0.00%.

Flag Coverage Δ
cloud-tests 83.60% <ø> (?)
unit-tests 42.46% <0.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@@ -122,53 +120,6 @@ export default function App() {
}
}, [searchParams, setShouldDisableNFTRoutes])

useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all this code is just relocated and unchanged

@cypress
Copy link

cypress bot commented Oct 10, 2023

2 flaky tests on run #14959 ↗︎

0 118 0 0 Flakiness 2

Details:

fix: move user prop updater into statsigProvider
Project: Uniswap Interface Commit: 3cc76b3637
Status: Passed Duration: 04:16 💡
Started: Oct 10, 2023 11:05 PM Ended: Oct 10, 2023 11:09 PM
Flakiness  cypress/e2e/swap/uniswapx.test.ts • 2 flaky tests • e2e

View Output Video

Test Artifacts
UniswapX Toggle > prompts opt-in if UniswapX is better Output Screenshots
UniswapX activity history > can view UniswapX order status progress in activity Output Screenshots

Review all test suite changes for PR #7442 ↗︎

@just-toby just-toby merged commit 7001452 into main Oct 12, 2023
22 of 23 checks passed
@just-toby just-toby deleted the fix/user-prop-updater branch October 12, 2023 18:30
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