Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

refactor: Staff Badge Component #611

Merged
merged 6 commits into from
Jan 13, 2024
Merged

Conversation

Darguima
Copy link
Contributor

I fixed the Badgedex on a previous PR, but now I noticed that also the "Give Badge" page from staff can use this component, so I adapted the Component to the staff and used it instead the repeated code.

The changes were that staff don't have badges so, we don't need highlight the owned ones, and that on the staff page we want a custom behavior instead that redirect to badge page.

Staff Page:
image

Attendee Page:
image

Copy link

netlify bot commented Dec 22, 2023

Deploy Preview for seium-stg ready!

Name Link
🔨 Latest commit 934ee8c
🔍 Latest deploy log https://app.netlify.com/sites/seium-stg/deploys/6585c6d82298f50008a8e775
😎 Deploy Preview https://deploy-preview-611--seium-stg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@ruilopesm ruilopesm left a comment

Choose a reason for hiding this comment

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

I don't know why, but I'm not able to list any badges as a staff. Probably not related with this PR, but can you do so?

@joaodiaslobo
Copy link
Member

joaodiaslobo commented Dec 22, 2023

I don't know why, but I'm not able to list any badges as a staff. Probably not related with this PR, but can you do so?

You can't list any badges as staff because the end time field for all badges has already passed the current date, changing the dates by hand on the database should fix the issue 🙏

@ruilopesm
Copy link
Member

@joaodiaslobo Oh, you are totally right. Forgot about that constraint 😅

@Darguima Darguima requested a review from ruilopesm December 25, 2023 18:21
Copy link
Contributor

@tiago-bacelar tiago-bacelar left a comment

Choose a reason for hiding this comment

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

I can't test the staff badges, but it seems legit 🤷‍♂️

@Darguima Darguima merged commit 099b1d4 into main Jan 13, 2024
@Darguima Darguima deleted the dg/fix-badge-component-for-staff branch January 13, 2024 11:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants