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

v7.7.0 #2780

Merged
merged 8 commits into from
Sep 15, 2023
Merged

v7.7.0 #2780

merged 8 commits into from
Sep 15, 2023

Conversation

platschi
Copy link
Contributor

Description

PR to release referral program soft launch, two new markets, TV chart enhancements

Related issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

platschi and others added 6 commits September 13, 2023 09:42
* Added nav header

* Added more components

* Add table style

* Added the profile card

* Updated the layout

* Added affiliate profile and mock data for table

* Added background to profile

* Add create referral code modal

* Add nft preview modal

* Update the nft preview modal style

* Added referral mint modal

* Add mock user flow

* Added loading to mock minting

* Fixed the icon position and pagination arrow

* Added nft preview and animation file

* Enabled the lazy loading for the gif

* Renamed the type and refactor the component

* Show the referral tier dynamically under trader tab

* Fixed the tier number

* Fixed the progress bar

* Added level up button to increase the tier

* Fixed the levelup label

* Support nft level up

* Fixed the redux state migration issue

* Fixed the desktop design issue

* Fixed the table header copy

* Removed the level up and made the trader nft separately

* Updated the mobile layout style

* Update the mobile table layout on referral UI

* Fixed the nft title

* Updated the redux state

* Add copy check icon

* Fixed the referral modal on mobile

* Added copy to clipboard function

* Add BoostNFT contract

* Added mint and create code to sdk

* Add wallet connect before minting

* Added ref code into url

* Update the redux state

* Clean the redux state and UI

* Fetched the referral NFT tier by code only

* Show nft not found for the user who hasn't minted nft; update the referral links to the footer

* Fixed the mint completed UI

* Showed the minted NFT if the user already minted

* Update the boost nft contract address

* Update en.json

Update referral program copy

* Rename the file and update the copied text

* Fixed the condition check of the port

* Added graph query

* Corrected the devnet setup in env

* Cleaned the mock data in sdk

* Updated the UI and graph query

* Minor design changes

* Added links to button

* Added self referred check

* Added loading status of the code creation

* Fixed the table on tablet

* Fixed the Affiliate Profile on tablet

* Add the background image back to affiliate profile

* Fixed the issue reported by Ralf

* Added env to hide affiliate page

* Fixed the border of the nft preview

* Added the query to get the referral volume and count

* Update the opensea link and override the deployment hostname to prod

* Updated the dynamic metadata

* Test the dynamic metadata

* Try to update the metadata directly

* Add metadata dynamically and cleaned the code

* Try server side render on page component

* Remove the metadata from app level

* Move the metadata to page level

* Update the static metadata to the market page

* Remove the title and description from app level

* Reverted all the changes of the metadata

* Using the current epoch in the rewards distribution history as a placeholder

* Clean the sdk code

* Clean the sdk and redux code

* Clean UI code

* Clean the inline css

* Clean the modal states and incline css; update the subgraph url

* Reverted the graph url

* Updated the graph endpoint to satsuma

* Revised the code according to Adam's comments

* Fixed the crash and refactored the progress bar

* Update the error message and add button logic to make UX more smooth

* Added connect wallet and switch to optimism to the referral page

* Add GridLayoutStyle to table components

* Updated the import

* Updated the state migration; Removed the media query of the custom styles from TableBodyRows; Added pagination logic to trader's volume query;

* Updated the boost rate of different tiers

* Updated the migrations

* Updated the prod boostNFT contract

* Updated the opensea link

---------

Co-authored-by: BurtRock <[email protected]>
* Use proxy for pyth price history

* Home page - reduce markets polling and reduce num of market cards shown

* chore: revert DEFAULT_PYTH_TV_ENDPOINT

---------

Co-authored-by: platschi <[email protected]>
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Sep 14, 2023

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

Name Status Preview Updated (UTC)
kwenta ✅ Ready (Inspect) Visit Preview Sep 15, 2023 2:29pm
kwenta-storybook ✅ Ready (Inspect) Visit Preview Sep 15, 2023 2:29pm

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #2780 (4dc1375) into main (13a108c) will decrease coverage by 0.02%.
Report is 31 commits behind head on main.
The diff coverage is 50.86%.

❗ Current head 4dc1375 differs from pull request most recent head 9bcf051. Consider uploading reports for the commit 9bcf051 to get more accurate results

@@            Coverage Diff             @@
##             main    #2780      +/-   ##
==========================================
- Coverage   52.20%   52.18%   -0.02%     
==========================================
  Files         392      416      +24     
  Lines       12561    13083     +522     
  Branches     2881     2767     -114     
==========================================
+ Hits         6558     6828     +270     
- Misses       5772     6229     +457     
+ Partials      231       26     -205     
Files Changed Coverage Δ
packages/app/src/assets/svg/referrals/bronze.svg 50.00% <ø> (ø)
packages/app/src/assets/svg/referrals/gold.svg 50.00% <ø> (ø)
packages/app/src/assets/svg/referrals/minting.svg 50.00% <ø> (ø)
packages/app/src/assets/svg/referrals/silver.svg 50.00% <ø> (ø)
packages/app/src/components/BaseModal.tsx 92.85% <ø> (ø)
packages/app/src/constants/links.ts 66.66% <ø> (ø)
packages/app/src/constants/routes.ts 45.83% <0.00%> (-2.00%) ⬇️
...app/src/sections/futures/MarketInfo/MarketHead.tsx 86.66% <ø> (ø)
...tions/shared/Layout/AppLayout/Header/constants.tsx 85.71% <ø> (ø)
packages/app/src/styles/common.tsx 54.23% <ø> (ø)
... and 34 more

... and 65 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

if (router.isReady && routerReferralCode) {
dispatch(fetchUnmintedBoostNftForCode(routerReferralCode))
}
}, [dispatch, router.isReady, routerReferralCode])

Check warning

Code scanning / CodeQL

Client-side cross-site scripting (experimental) Medium Experimental

(Experimental) This may be a cross-site scripting vulnerability due to
a user-provided value
. Identified using machine learning.

const handleMintBoostNft = useCallback(() => {
dispatch(mintBoostNft(referralCode))
}, [dispatch, referralCode])

Check warning

Code scanning / CodeQL

Client-side cross-site scripting (experimental) Medium Experimental

(Experimental) This may be a cross-site scripting vulnerability due to
a user-provided value
. Identified using machine learning.
(Experimental) This may be a cross-site scripting vulnerability due to a user-provided value. Identified using machine learning.
if (!referralCode) return null
if (referralCode.length < 13) return referralCode
return truncateAddress(referralCode)
}, [referralCode])

Check warning

Code scanning / CodeQL

Client-side cross-site scripting (experimental) Medium Experimental

(Experimental) This may be a cross-site scripting vulnerability due to
a user-provided value
. Identified using machine learning.
(Experimental) This may be a cross-site scripting vulnerability due to a user-provided value. Identified using machine learning.
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