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

Front/opportunities #30

Merged
merged 11 commits into from
Dec 3, 2024
Merged

Front/opportunities #30

merged 11 commits into from
Dec 3, 2024

Conversation

indaviande
Copy link
Contributor

No description provided.

@indaviande indaviande self-assigned this Dec 2, 2024
const location = useLocation();

const totalRewards = useMemo(() => {
const amounts = campaigns?.map(campaign => {
const amounts = campaigns?.map((campaign) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Going forward, let's not add specifics like computing the campaigns in the hero, let's use it as a layout element on which we set an abritrary "stats" thing that we define in the props of the components

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

)}
{!mdScreens && <SearchBar />}
<WalletButton />
{!smScreens && <WalletButton />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have to be cautious about using this because having the screen size will not work properly on the first render, since it's returned directly from the server, here for example we don't see this since the header appears after an animation (we can debate if this is worth it or not later), so after the client picks up the page

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks for the details.
Just to be sure, do you mean that the animation hides the fact that the function is not executed straight away?
Which means OK?
Or NOK?

@indaviande indaviande merged commit c319815 into main Dec 3, 2024
1 check passed
@indaviande indaviande deleted the front/opportunities branch December 3, 2024 09:31
clmntsnr pushed a commit that referenced this pull request Dec 16, 2024
* Fixes on protocol, chain, token and campaign pages

* lint

* fix tooltip
clmntsnr added a commit that referenced this pull request Dec 16, 2024
* fix: some type errors

* add: services model draft

* change: more opportunity types

* fix: lint

* add: themes and theme switcher in dev mode (#4)

* add: theme selector when in dev mode

* add: theme switcher in dev mode

* fix: protocol empty tag

* fix: lint error

* Tabs sync (#5)

* tabs, capitalize, socials

* fix lint

* change links to terms & priuvacy

* lint

* move edit address to breadcrumbs

* user edit in component

* footer issue ok

* show bg-main color instead of banner outside of home and opportunities

* add link to protocol header

* implement zkSync colors/fonts as default

* commit hash

* lint

* remove comments

* lint

* feat: re add CI (#6)

* Feat/leaderboard display (#7)

* Update the display of daily rewards

* refactor: update CampaignTableRow to use Dropdown for blacklist and whitelist, and improve layout with Divider

* wip handling rewards

* update: dashboard styling (#8)

* tweak: dashboard

* tweak: dappkit

* fix: no user warning

* remove: input from description

* fix: lint

* add(front): modal, hero, select, tabs/tags, pagination (#9)

* pagination wip

* review Hero cpt
gp

* change pagination

* change modal

* change Hero + connect wallet and search results modals

* lint

* commit hash

* comit hash

* commit

* update: opportunity campaigns/leaderboard view (#11)

* update: campaign information collapsible

* update: campaign information

* add: campaign rules

* update: leaderboard

* fixes

* fix: lint

* tweaks

* fix: aggregate

* feat: add APR modal and table components for opportunity details on h… (#10)

* feat: add APR modal and table components for opportunity details on hover opportunities table

* lint

* Apr tvl modal end

* Feat Hero campaign and protocol (#13)

* Feat Hero campaign and protocol

* fix api call on subpage

* lint and request can't be undefinable on service

* feat(opportunity): new hero, tableRow, OpportunityFilters (#15)

* working on table row + new hero image

* add fitlers

* add todos

* lint

* lint

* ✨ sum daily rewards fora  protocol (#16)

* Fix/campaign page (#17)

* wording

* fix hero link default home

* lint

* wording

* wording

* show icon

* ✨ redirect to Etherscan on TOken tooltip

* 🐛 change Time zone UTC

* update: opportunities pages (#14)

* add: metrics badges

* update: opportunity list

* fix: rewardsRecord sometimes being missing

* add: apply button

* add: loading bar

* rm: log & lint

* add: protocols filter

* fix: search params

* fix:

* fix: lint

* add: missing chains

* fixes

* update: dappkit

* fix: lint

* remove: comment

* add: constant

* apr (#18)

* apr done

* hide forwards if none + change border

* lint

* replace content null

* Fix/campaign page (#20)

* wording

* fix lint error

* fix time when live

* wording

* link to dashboard on leaderboard addresses

* Leaderboard campaign selector display

* lint

* add lastSnapshot

* add lastSnapshot (#21)

* fixes: feedback, mainly opportunities & dashboard (#22)

* fix: search & filters

* update: descriptions

* add: rewards siorting

* add: tvl filter

* fix

* fix: redirect

* fix: whitelist

* add: selective claim

* add: selective token

* add: global claim

* fix

* lint

* typo

* fix: explorer

* caching

* add caching test

* lint

* update

* add: cache on static resoruces (#23)

* Enhance opportunity data retrieval with APR and daily rewards metrics (#24)

* fix: pagination defaulting  & cache (#25)

* fix: bugs in selectors

* fix: dappkit

* clean wip: comment out static sideDatas for dynamic implementation (#26)

* fix: protocl filter (#27)

* fix: protocol desc (#28)

* fix: protocol: description

* rm: log

* token stats + cleaning (#29)

* Small APR Fix (#19)

* lint

* commit hash

* commit hash

* commit hash

* Fixes on protocol, chain, token and campaign pages (#30)

* Fixes on protocol, chain, token and campaign pages

* lint

* fix tooltip

* add: depositor (#31)

* update: dappkit (#33)

* remove: workflwos

---------

Co-authored-by: sheykei <[email protected]>
Co-authored-by: Viande <[email protected]>
Co-authored-by: Picodes <[email protected]>
Co-authored-by: hugolxt <[email protected]>
Co-authored-by: Hugo Lextrait <[email protected]>
indaviande added a commit that referenced this pull request Dec 16, 2024
* fix: some type errors

* add: services model draft

* change: more opportunity types

* fix: lint

* add: themes and theme switcher in dev mode (#4)

* add: theme selector when in dev mode

* add: theme switcher in dev mode

* fix: protocol empty tag

* fix: lint error

* Tabs sync (#5)

* tabs, capitalize, socials

* fix lint

* change links to terms & priuvacy

* lint

* move edit address to breadcrumbs

* user edit in component

* footer issue ok

* show bg-main color instead of banner outside of home and opportunities

* add link to protocol header

* implement zkSync colors/fonts as default

* commit hash

* lint

* remove comments

* lint

* feat: re add CI (#6)

* Feat/leaderboard display (#7)

* Update the display of daily rewards

* refactor: update CampaignTableRow to use Dropdown for blacklist and whitelist, and improve layout with Divider

* wip handling rewards

* update: dashboard styling (#8)

* tweak: dashboard

* tweak: dappkit

* fix: no user warning

* remove: input from description

* fix: lint

* add(front): modal, hero, select, tabs/tags, pagination (#9)

* pagination wip

* review Hero cpt
gp

* change pagination

* change modal

* change Hero + connect wallet and search results modals

* lint

* commit hash

* comit hash

* commit

* update: opportunity campaigns/leaderboard view (#11)

* update: campaign information collapsible

* update: campaign information

* add: campaign rules

* update: leaderboard

* fixes

* fix: lint

* tweaks

* fix: aggregate

* feat: add APR modal and table components for opportunity details on h… (#10)

* feat: add APR modal and table components for opportunity details on hover opportunities table

* lint

* Apr tvl modal end

* Feat Hero campaign and protocol (#13)

* Feat Hero campaign and protocol

* fix api call on subpage

* lint and request can't be undefinable on service

* feat(opportunity): new hero, tableRow, OpportunityFilters (#15)

* working on table row + new hero image

* add fitlers

* add todos

* lint

* lint

* ✨ sum daily rewards fora  protocol (#16)

* Fix/campaign page (#17)

* wording

* fix hero link default home

* lint

* wording

* wording

* show icon

* ✨ redirect to Etherscan on TOken tooltip

* 🐛 change Time zone UTC

* update: opportunities pages (#14)

* add: metrics badges

* update: opportunity list

* fix: rewardsRecord sometimes being missing

* add: apply button

* add: loading bar

* rm: log & lint

* add: protocols filter

* fix: search params

* fix:

* fix: lint

* add: missing chains

* fixes

* update: dappkit

* fix: lint

* remove: comment

* add: constant

* apr (#18)

* apr done

* hide forwards if none + change border

* lint

* replace content null

* Fix/campaign page (#20)

* wording

* fix lint error

* fix time when live

* wording

* link to dashboard on leaderboard addresses

* Leaderboard campaign selector display

* lint

* add lastSnapshot

* add lastSnapshot (#21)

* fixes: feedback, mainly opportunities & dashboard (#22)

* fix: search & filters

* update: descriptions

* add: rewards siorting

* add: tvl filter

* fix

* fix: redirect

* fix: whitelist

* add: selective claim

* add: selective token

* add: global claim

* fix

* lint

* typo

* fix: explorer

* caching

* add caching test

* lint

* update

* add: cache on static resoruces (#23)

* Enhance opportunity data retrieval with APR and daily rewards metrics (#24)

* fix: pagination defaulting  & cache (#25)

* fix: bugs in selectors

* fix: dappkit

* clean wip: comment out static sideDatas for dynamic implementation (#26)

* fix: protocl filter (#27)

* fix: protocol desc (#28)

* fix: protocol: description

* rm: log

* token stats + cleaning (#29)

* Small APR Fix (#19)

* lint

* commit hash

* commit hash

* commit hash

* Fixes on protocol, chain, token and campaign pages (#30)

* Fixes on protocol, chain, token and campaign pages

* lint

* fix tooltip

* add: depositor (#31)

* update: dappkit (#33)

* feat(front): apr modal, layermenu, issues !!! (#32)

* redesign APR

* responsive

* layermenu

* lint

* change title

* remove comment

* lint

* rename homepage to home (#34)

* feat(front): change header logo & selects (#35)

* change logo size

* commiut hash

* fix: update Dropdown component to use onHover for APR and TVL columns (#36)

* remove workflows

---------

Co-authored-by: sheykei <[email protected]>
Co-authored-by: sheykei <[email protected]>
Co-authored-by: Picodes <[email protected]>
Co-authored-by: hugolxt <[email protected]>
Co-authored-by: Hugo Lextrait <[email protected]>
Co-authored-by: sheykei <[email protected]>
clmntsnr added a commit to AngleProtocol/merkl-puffer that referenced this pull request Dec 16, 2024
* create: merkl-lite

* chore: update CI

* sync: merkl app changes (AngleProtocol#46)

* fix: some type errors

* add: services model draft

* change: more opportunity types

* fix: lint

* add: themes and theme switcher in dev mode (#4)

* add: theme selector when in dev mode

* add: theme switcher in dev mode

* fix: protocol empty tag

* fix: lint error

* Tabs sync (#5)

* tabs, capitalize, socials

* fix lint

* change links to terms & priuvacy

* lint

* move edit address to breadcrumbs

* user edit in component

* footer issue ok

* show bg-main color instead of banner outside of home and opportunities

* add link to protocol header

* implement zkSync colors/fonts as default

* commit hash

* lint

* remove comments

* lint

* feat: re add CI (#6)

* Feat/leaderboard display (#7)

* Update the display of daily rewards

* refactor: update CampaignTableRow to use Dropdown for blacklist and whitelist, and improve layout with Divider

* wip handling rewards

* update: dashboard styling (#8)

* tweak: dashboard

* tweak: dappkit

* fix: no user warning

* remove: input from description

* fix: lint

* add(front): modal, hero, select, tabs/tags, pagination (#9)

* pagination wip

* review Hero cpt
gp

* change pagination

* change modal

* change Hero + connect wallet and search results modals

* lint

* commit hash

* comit hash

* commit

* update: opportunity campaigns/leaderboard view (#11)

* update: campaign information collapsible

* update: campaign information

* add: campaign rules

* update: leaderboard

* fixes

* fix: lint

* tweaks

* fix: aggregate

* feat: add APR modal and table components for opportunity details on h… (#10)

* feat: add APR modal and table components for opportunity details on hover opportunities table

* lint

* Apr tvl modal end

* Feat Hero campaign and protocol (AngleProtocol#13)

* Feat Hero campaign and protocol

* fix api call on subpage

* lint and request can't be undefinable on service

* feat(opportunity): new hero, tableRow, OpportunityFilters (AngleProtocol#15)

* working on table row + new hero image

* add fitlers

* add todos

* lint

* lint

* ✨ sum daily rewards fora  protocol (AngleProtocol#16)

* Fix/campaign page (AngleProtocol#17)

* wording

* fix hero link default home

* lint

* wording

* wording

* show icon

* ✨ redirect to Etherscan on TOken tooltip

* 🐛 change Time zone UTC

* update: opportunities pages (AngleProtocol#14)

* add: metrics badges

* update: opportunity list

* fix: rewardsRecord sometimes being missing

* add: apply button

* add: loading bar

* rm: log & lint

* add: protocols filter

* fix: search params

* fix:

* fix: lint

* add: missing chains

* fixes

* update: dappkit

* fix: lint

* remove: comment

* add: constant

* apr (AngleProtocol#18)

* apr done

* hide forwards if none + change border

* lint

* replace content null

* Fix/campaign page (AngleProtocol#20)

* wording

* fix lint error

* fix time when live

* wording

* link to dashboard on leaderboard addresses

* Leaderboard campaign selector display

* lint

* add lastSnapshot

* add lastSnapshot (AngleProtocol#21)

* fixes: feedback, mainly opportunities & dashboard (AngleProtocol#22)

* fix: search & filters

* update: descriptions

* add: rewards siorting

* add: tvl filter

* fix

* fix: redirect

* fix: whitelist

* add: selective claim

* add: selective token

* add: global claim

* fix

* lint

* typo

* fix: explorer

* caching

* add caching test

* lint

* update

* add: cache on static resoruces (AngleProtocol#23)

* Enhance opportunity data retrieval with APR and daily rewards metrics (AngleProtocol#24)

* fix: pagination defaulting  & cache (AngleProtocol#25)

* fix: bugs in selectors

* fix: dappkit

* clean wip: comment out static sideDatas for dynamic implementation (AngleProtocol#26)

* fix: protocl filter (AngleProtocol#27)

* fix: protocol desc (AngleProtocol#28)

* fix: protocol: description

* rm: log

* token stats + cleaning (AngleProtocol#29)

* Small APR Fix (AngleProtocol#19)

* lint

* commit hash

* commit hash

* commit hash

* Fixes on protocol, chain, token and campaign pages (AngleProtocol#30)

* Fixes on protocol, chain, token and campaign pages

* lint

* fix tooltip

* add: depositor (AngleProtocol#31)

* update: dappkit (AngleProtocol#33)

* remove: workflwos

---------

Co-authored-by: sheykei <[email protected]>
Co-authored-by: Viande <[email protected]>
Co-authored-by: Picodes <[email protected]>
Co-authored-by: hugolxt <[email protected]>
Co-authored-by: Hugo Lextrait <[email protected]>

* remove: extra files

* fix

* fix

---------

Co-authored-by: picodes <[email protected]>
Co-authored-by: sheykei <[email protected]>
Co-authored-by: Viande <[email protected]>
Co-authored-by: Picodes <[email protected]>
Co-authored-by: hugolxt <[email protected]>
Co-authored-by: Hugo Lextrait <[email protected]>
clmntsnr added a commit that referenced this pull request Dec 19, 2024
* fix: some type errors

* add: services model draft

* change: more opportunity types

* fix: lint

* add: themes and theme switcher in dev mode (#4)

* add: theme selector when in dev mode

* add: theme switcher in dev mode

* fix: protocol empty tag

* fix: lint error

* Tabs sync (#5)

* tabs, capitalize, socials

* fix lint

* change links to terms & priuvacy

* lint

* move edit address to breadcrumbs

* user edit in component

* footer issue ok

* show bg-main color instead of banner outside of home and opportunities

* add link to protocol header

* implement zkSync colors/fonts as default

* commit hash

* lint

* remove comments

* lint

* feat: re add CI (#6)

* Feat/leaderboard display (#7)

* Update the display of daily rewards

* refactor: update CampaignTableRow to use Dropdown for blacklist and whitelist, and improve layout with Divider

* wip handling rewards

* update: dashboard styling (#8)

* tweak: dashboard

* tweak: dappkit

* fix: no user warning

* remove: input from description

* fix: lint

* add(front): modal, hero, select, tabs/tags, pagination (#9)

* pagination wip

* review Hero cpt
gp

* change pagination

* change modal

* change Hero + connect wallet and search results modals

* lint

* commit hash

* comit hash

* commit

* update: opportunity campaigns/leaderboard view (#11)

* update: campaign information collapsible

* update: campaign information

* add: campaign rules

* update: leaderboard

* fixes

* fix: lint

* tweaks

* fix: aggregate

* feat: add APR modal and table components for opportunity details on h… (#10)

* feat: add APR modal and table components for opportunity details on hover opportunities table

* lint

* Apr tvl modal end

* Feat Hero campaign and protocol (#13)

* Feat Hero campaign and protocol

* fix api call on subpage

* lint and request can't be undefinable on service

* feat(opportunity): new hero, tableRow, OpportunityFilters (#15)

* working on table row + new hero image

* add fitlers

* add todos

* lint

* lint

* ✨ sum daily rewards fora  protocol (#16)

* Fix/campaign page (#17)

* wording

* fix hero link default home

* lint

* wording

* wording

* show icon

* ✨ redirect to Etherscan on TOken tooltip

* 🐛 change Time zone UTC

* update: opportunities pages (#14)

* add: metrics badges

* update: opportunity list

* fix: rewardsRecord sometimes being missing

* add: apply button

* add: loading bar

* rm: log & lint

* add: protocols filter

* fix: search params

* fix:

* fix: lint

* add: missing chains

* fixes

* update: dappkit

* fix: lint

* remove: comment

* add: constant

* apr (#18)

* apr done

* hide forwards if none + change border

* lint

* replace content null

* Fix/campaign page (#20)

* wording

* fix lint error

* fix time when live

* wording

* link to dashboard on leaderboard addresses

* Leaderboard campaign selector display

* lint

* add lastSnapshot

* add lastSnapshot (#21)

* fixes: feedback, mainly opportunities & dashboard (#22)

* fix: search & filters

* update: descriptions

* add: rewards siorting

* add: tvl filter

* fix

* fix: redirect

* fix: whitelist

* add: selective claim

* add: selective token

* add: global claim

* fix

* lint

* typo

* fix: explorer

* caching

* add caching test

* lint

* update

* add: cache on static resoruces (#23)

* Enhance opportunity data retrieval with APR and daily rewards metrics (#24)

* fix: pagination defaulting  & cache (#25)

* fix: bugs in selectors

* fix: dappkit

* clean wip: comment out static sideDatas for dynamic implementation (#26)

* fix: protocl filter (#27)

* fix: protocol desc (#28)

* fix: protocol: description

* rm: log

* token stats + cleaning (#29)

* Small APR Fix (#19)

* lint

* commit hash

* commit hash

* commit hash

* Fixes on protocol, chain, token and campaign pages (#30)

* Fixes on protocol, chain, token and campaign pages

* lint

* fix tooltip

* add: depositor (#31)

* update: dappkit (#33)

* feat(front): apr modal, layermenu, issues !!! (#32)

* redesign APR

* responsive

* layermenu

* lint

* change title

* remove comment

* lint

* rename homepage to home (#34)

* feat(front): change header logo & selects (#35)

* change logo size

* commiut hash

* fix: update Dropdown component to use onHover for APR and TVL columns (#36)

* add: fonts config (#37)

* add: fonts config

* lint

---------

Co-authored-by: indaviande <[email protected]>

* feat: icons & uuid (#41)

* icon on protocols

* replace import { v4 as uuidv4 } from uuid;
uuidv4();

* lint

* chore: add test filter (#38)

* chore: add test filter

* chore: remove isTest

* fix: lint

* add: deposit modal (#42)

* update: token

* add: hooks

* add: supply modal

* wip display zk rewards (#39)

* wip display zk rewards

* wip

* refactor: clean up reward components and end single line rewards display

* lint

* feat(api): enhance ProtocolService to include tags from config in API queries (#43)

* update: dappkit

* fix(campaign): update chain reference in CampaignTableRow component (#44)

* fix(campaign): update chain reference in CampaignTableRow component

* refactor(leaderboard): remove campaign ID display from leaderboard component

* lint

* feat(rewards): add rewards navigation mode configuration and update C… (#45)

* feat(rewards): add rewards navigation mode configuration and update ClaimRewardsLibrary component accordingly

* lint

* chore: historical claim tab

* chore: historical claims

* chore: lint

* fix: add auto linting

* chore: remove useless type

* fix: lint

* feat: position route (#47)

* feat: position route

* fix: issue

* chore: position page

* lint

* rmv workflows

---------

Co-authored-by: sheykei <[email protected]>
Co-authored-by: sheykei <[email protected]>
Co-authored-by: Viande <[email protected]>
Co-authored-by: hugolxt <[email protected]>
Co-authored-by: Hugo Lextrait <[email protected]>
Co-authored-by: sheykei <[email protected]>
Co-authored-by: indaviande <[email protected]>
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