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

chore: update live tag in menu #11143

Merged
merged 3 commits into from
Jan 16, 2025
Merged

chore: update live tag in menu #11143

merged 3 commits into from
Jan 16, 2025

Conversation

chef-ryan
Copy link
Contributor

@chef-ryan chef-ryan commented Jan 16, 2025


PR-Codex overview

This PR updates the status of an item in the Menu component and modifies localization translations.

Detailed summary

  • In apps/web/src/components/Menu/config/config.ts, changed the status text from SOON to NEW with a corresponding color change from warning to success.
  • In packages/localization/src/config/translations.json, added a new translation for NEW and removed the SOON entry.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Jan 16, 2025

⚠️ No Changeset found

Latest commit: e3f3eec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Jan 16, 2025

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

Name Status Preview Comments Updated (UTC)
aptos-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:49am
blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:49am
bridge ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:49am
games ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:49am
gamification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:49am
uikit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:49am
web ❌ Failed (Inspect) Jan 16, 2025 9:49am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
ton ⬜️ Skipped (Inspect) Jan 16, 2025 9:49am

@chef-ryan chef-ryan changed the title update live chore: update live tag in menu Jan 16, 2025
thechefpenguin
thechefpenguin previously approved these changes Jan 16, 2025
thechefpenguin
thechefpenguin previously approved these changes Jan 16, 2025
Copy link
Collaborator

@memoyil memoyil left a comment

Choose a reason for hiding this comment

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

@chef-ryan
Copy link
Contributor Author

@chef-ryan https://github.com/pancakeswap/pancake-frontend/blob/develop/apps/web/src/components/Menu/hooks/useIfoStatus.ts will automatically put it to live

only 30min left for this ifo start.
btw: i don't think add coupling for ifo module and menu module is a good solusion.

@memoyil
Copy link
Collaborator

memoyil commented Jan 16, 2025

@chef-ryan https://github.com/pancakeswap/pancake-frontend/blob/develop/apps/web/src/components/Menu/hooks/useIfoStatus.ts will automatically put it to live

only 30min left for this ifo start. btw: i don't think add coupling for ifo module and menu module is a good solusion.

eigenpie ifo needs to be marked isactive false ( since it is finished) to fetch the latest active ifo #11144 so there will be no need for extra deployments for menu status

@memoyil
Copy link
Collaborator

memoyil commented Jan 16, 2025

@chef-ryan https://github.com/pancakeswap/pancake-frontend/blob/develop/apps/web/src/components/Menu/hooks/useIfoStatus.ts will automatically put it to live

only 30min left for this ifo start. btw: i don't think add coupling for ifo module and menu module is a good solusion.

menu module only has a dependency to web/hooks (not directly to ifo) which has dependency to ifo module (which is ok imo)

@chef-ryan
Copy link
Contributor Author

@chef-ryan https://github.com/pancakeswap/pancake-frontend/blob/develop/apps/web/src/components/Menu/hooks/useIfoStatus.ts will automatically put it to live

only 30min left for this ifo start. btw: i don't think add coupling for ifo module and menu module is a good solusion.

menu module only has a dependency to web/hooks (not directly to ifo) which has dependency to ifo module (which is ok imo)

qstns:

  1. does this design save our time ?
  2. does this add readability ?
  3. does this reduce complexity?

my answer is simply: no.
let's focus on things really matters.

@@ -200,7 +200,7 @@ const config: (
label: t('IFO'),
href: '/ifo',
image: '/images/ifos/ifo-bunny.png',
status: { text: t('SOON'), color: 'warning' },
status: { text: t('NEW'), color: 'success' },
Copy link
Collaborator

@memoyil memoyil Jan 16, 2025

Choose a reason for hiding this comment

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

this should be removed (it will be fetched via hook) in order to remove the tag automatically when ifo is finished

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should add a new tag, it's requirement.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, it will be added by a hook automatically useIfoStatus

@chef-ryan chef-ryan merged commit 6110fae into develop Jan 16, 2025
19 of 20 checks passed
@chef-ryan chef-ryan deleted the chore/live-ifo-solv-in-menu branch January 16, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants