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

feat(frontend): adds vip qr code item to the menu #3990

Merged

Conversation

BonomoAlessandro
Copy link
Collaborator

@BonomoAlessandro BonomoAlessandro commented Dec 16, 2024

Motivation

Vip users should be able to see the VIP QR codes item into the menu.

Changes

  • adds item to menu

Tests

before:
image

after:
image

@BonomoAlessandro BonomoAlessandro changed the title feature(frontend): adds vip qr code item to the menu feat(frontend): adds vip qr code item to the menu Dec 16, 2024
BonomoAlessandro and others added 28 commits December 16, 2024 14:54
…r-codes-option-in-menu' into feature(frontend)/displays-vip-qr-codes-option-in-menu

# Conflicts:
#	src/declarations/backend/backend.did.d.ts
…r-codes-option-in-menu' into feature(frontend)/displays-vip-qr-codes-option-in-menu
…plays-vip-qr-codes-option-in-menu

# Conflicts:
#	src/frontend/src/lib/components/core/Menu.svelte
@BonomoAlessandro BonomoAlessandro marked this pull request as ready for review January 6, 2025 15:38
@BonomoAlessandro BonomoAlessandro requested a review from a team as a code owner January 6, 2025 15:38
@@ -42,6 +48,17 @@

let fromRoute: NavigationTarget | null;

let isVip = false;
onMount(async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

will this run everytime we open the Menu? should it be maybe a state somewhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hmm it might be a good idea to but it into a state instead of calling every time

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@AntonioVentilii ok nevermind. I don't think that it is necessary to store the state somewhere. The Menu item is only loaded one time and the vip data are loaded in the onMount function.

src/frontend/src/lib/i18n/en.json Show resolved Hide resolved
<ButtonMenu
ariaLabel={$i18n.navigation.alt.vip_qr_code}
testId={NAVIGATION_MENU_VIP_BUTTON}
on:click={() => {}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now nothing happens if the menu button is clicked. This is implemented in another PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

just add a TODO before merging

Copy link
Collaborator

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

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

LGTM

<ButtonMenu
ariaLabel={$i18n.navigation.alt.vip_qr_code}
testId={NAVIGATION_MENU_VIP_BUTTON}
on:click={() => {}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

just add a TODO before merging

@BonomoAlessandro BonomoAlessandro merged commit 43f7466 into main Jan 7, 2025
22 checks passed
@BonomoAlessandro BonomoAlessandro deleted the feature(frontend)/displays-vip-qr-codes-option-in-menu branch January 7, 2025 12:36
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