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

refactor: price chart utility functions #7266

Merged
merged 4 commits into from Sep 14, 2023
Merged

refactor: price chart utility functions #7266

merged 4 commits into from Sep 14, 2023

Conversation

cartcrom
Copy link
Contributor

@cartcrom cartcrom commented Sep 5, 2023

Description

Breaks price chart utilities into utils file, improves performance of getPriceBounds and getNearestPricePoint, and improves readability / documentation.

QA (ie manual testing)

  • Ensure that scrubbing through a chart appears the same as before

@vercel
Copy link

vercel bot commented Sep 5, 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 Sep 14, 2023 2:29pm

@cypress
Copy link

cypress bot commented Sep 5, 2023

1 flaky test on run #14342 ↗︎

0 115 0 0 Flakiness 1

Details:

refactor: price chart utility functions
Project: Uniswap Interface Commit: e1e2ea022f
Status: Passed Duration: 04:22 💡
Started: Sep 14, 2023 2:31 PM Ended: Sep 14, 2023 2:35 PM
Flakiness  cypress/e2e/mini-portfolio/accounts.test.ts • 1 flaky test • e2e

View Output Video

Test Artifacts
Mini Portfolio account drawer > should not re-fetch balances when the account drawer is opened Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #7266 (e1e2ea0) into main (e4d103b) will increase coverage by 0.04%.
Report is 8 commits behind head on main.
The diff coverage is 68.62%.

Flag Coverage Δ
cloud-tests ?
unit-tests 40.34% <68.62%> (+0.26%) ⬆️

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

Copy link
Contributor

@cbachmeier cbachmeier left a comment

Choose a reason for hiding this comment

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

LGTM

src/components/Charts/PriceChart/utils.ts Outdated Show resolved Hide resolved
src/components/Charts/PriceChart/utils.ts Outdated Show resolved Hide resolved
@cartcrom cartcrom merged commit 6aaf0db into main Sep 14, 2023
25 of 26 checks passed
@cartcrom cartcrom deleted the chart_refactor_utils branch September 14, 2023 17:13
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.

None yet

3 participants