-
Notifications
You must be signed in to change notification settings - Fork 161
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
feat: quest boost #361
feat: quest boost #361
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d7dacc3
to
b15d256
Compare
app/quest-boost/[boostId]/page.tsx
Outdated
calldata: claimCallData, | ||
}, | ||
undefined, | ||
{ maxFee: 900_000_000_000_000 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have to specify this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
app/quest-boost/[boostId]/page.tsx
Outdated
disabled={boost?.winner !== hexToDecimal(address)} | ||
onClick={handleClaimClick} | ||
> | ||
{boost?.winner === hexToDecimal(address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer something like that, chained ? operators are not easy to read:
{(() => {
if (boost?.winner === hexToDecimal(address)) {
return "Claim boost reward 🎉 ";
} else if (boost?.expiry > Date.now()) {
return "Claim boost reward 🎉 ";
} else {
return "You’re not selected 🙁";
}
})()}
Also the message should probably not be Claim boost reward if the expiry is higher, but just that the boost has not ended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
* test: cdn code change * fix: update cdn check * feat: add rhino image (#413) * feat: quest boost (#361) * feat: add base layout * feat: add contract call base * feat: add api calls v1 * feat: park changes * feat: api integration * chore: add types * feat: add build fix and expiry timer * chore: fix types * feat: update button text conditions * feat: add contract in quest boost * feat: add api calls * feat: add updated changes * chore: add changes * chore: revert rpc changes * chore: button title change * feat: add final changes * chore: add types * fix: design changes * feat: update contract * chore: remove decimal representation on contract address * fix: claim button copy * fix: mobile view styling * fix: align expired tag * fix: expired condition change * feat: update with new boost info and resolve pr comments * chore: resolve pr comments * chore: update types * chore: fix types * fix: sign check * chore: update starknet js version * test: starknet js contract call * fix: test account call * fix: remove extra calls * test: add abi and test * test: update abi * chore: remove extra code * fix: update abi params in account.execute * chore: resolve pr comments * fix: handle claimed status * test: remove undefined * fix: remove timer on expiry and winner check fix (#419) * fix: remove timer on expiry * fix: timer check * fix: remove decimal conversion * fix: add claim button flag (#420) * feat: add quests favicon (#422) * feat: bootstrap project with absolute-import (#423) * feat: add rich UI on boost (#421) * feat: add rich UI * fix: change copy * fix: length on word check * fix: expiry check * feat: add notification support * fix: remove timer check * feat: add title styling * fix: add correct address check * fix: address to send * feat: add absolute imports * fix: tests config * fix: mobile responsive * fix: number formatting --------- Co-authored-by: ayushtom <[email protected]> Co-authored-by: Thomas Marchand <[email protected]> Co-authored-by: Ayush Tomar <[email protected]> Co-authored-by: Adegbite Ademola Kelvin <[email protected]>
* test: cdn code change * fix: update cdn check * feat: add rhino image (#413) * feat: quest boost (#361) * feat: add base layout * feat: add contract call base * feat: add api calls v1 * feat: park changes * feat: api integration * chore: add types * feat: add build fix and expiry timer * chore: fix types * feat: update button text conditions * feat: add contract in quest boost * feat: add api calls * feat: add updated changes * chore: add changes * chore: revert rpc changes * chore: button title change * feat: add final changes * chore: add types * fix: design changes * feat: update contract * chore: remove decimal representation on contract address * fix: claim button copy * fix: mobile view styling * fix: align expired tag * fix: expired condition change * feat: update with new boost info and resolve pr comments * chore: resolve pr comments * chore: update types * chore: fix types * fix: sign check * chore: update starknet js version * test: starknet js contract call * fix: test account call * fix: remove extra calls * test: add abi and test * test: update abi * chore: remove extra code * fix: update abi params in account.execute * chore: resolve pr comments * fix: handle claimed status * test: remove undefined * fix: remove timer on expiry and winner check fix (#419) * fix: remove timer on expiry * fix: timer check * fix: remove decimal conversion * fix: add claim button flag (#420) * feat: add quests favicon (#422) * feat: bootstrap project with absolute-import (#423) * feat: add rich UI on boost (#421) * feat: add rich UI * fix: change copy * fix: length on word check * fix: expiry check * feat: add notification support * fix: remove timer check * feat: add title styling * fix: add correct address check * fix: address to send * feat: add absolute imports * fix: tests config * fix: mobile responsive * fix: number formatting * feat: add mobile responsive button and banner fix (#427) --------- Co-authored-by: ayushtom <[email protected]> Co-authored-by: Thomas Marchand <[email protected]> Co-authored-by: Ayush Tomar <[email protected]> Co-authored-by: Adegbite Ademola Kelvin <[email protected]>
* test: cdn code change * fix: update cdn check * feat: add rhino image (#413) * feat: quest boost (#361) * feat: add base layout * feat: add contract call base * feat: add api calls v1 * feat: park changes * feat: api integration * chore: add types * feat: add build fix and expiry timer * chore: fix types * feat: update button text conditions * feat: add contract in quest boost * feat: add api calls * feat: add updated changes * chore: add changes * chore: revert rpc changes * chore: button title change * feat: add final changes * chore: add types * fix: design changes * feat: update contract * chore: remove decimal representation on contract address * fix: claim button copy * fix: mobile view styling * fix: align expired tag * fix: expired condition change * feat: update with new boost info and resolve pr comments * chore: resolve pr comments * chore: update types * chore: fix types * fix: sign check * chore: update starknet js version * test: starknet js contract call * fix: test account call * fix: remove extra calls * test: add abi and test * test: update abi * chore: remove extra code * fix: update abi params in account.execute * chore: resolve pr comments * fix: handle claimed status * test: remove undefined * fix: remove timer on expiry and winner check fix (#419) * fix: remove timer on expiry * fix: timer check * fix: remove decimal conversion * fix: add claim button flag (#420) * feat: add quests favicon (#422) * feat: bootstrap project with absolute-import (#423) * feat: add rich UI on boost (#421) * feat: add rich UI * fix: change copy * fix: length on word check * fix: expiry check * feat: add notification support * fix: remove timer check * feat: add title styling * fix: add correct address check * fix: address to send * feat: add absolute imports * fix: tests config * fix: mobile responsive * fix: number formatting * feat: add mobile responsive button and banner fix (#427) * feat: mobile screen redesign (#425) * feat: redesigning popups * improving margin * feat: redesigning partnership page * feat: quest page redesign for mobile * feat: back button redesign for mobile * improving issuer * feat: menu redesign for mobile * fixing land margin * fixing land paddings * fixing land gaps * fixing featured quest banner on some browsers * fixing profile margins * removing typing mistake * fixing profile scroll on mobile * fix logo in nav animation * fix margin for category subtitles * cleaning the code * fix: add design fixes and api calls reduce in leaderboard (#431) * fix: add design fixes and api calls reduce in leaderboard * feat: add ui changes * fix: build fails * fix: utils * feat: add optimisations * chore: resolve comments and resolve build issue * chore: remove logs * feat: add boosted quests tag (#434) --------- Co-authored-by: ayushtom <[email protected]> Co-authored-by: Thomas Marchand <[email protected]> Co-authored-by: Ayush Tomar <[email protected]> Co-authored-by: Adegbite Ademola Kelvin <[email protected]> Co-authored-by: Nico <[email protected]>
closes #356