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

Restore founders to volunteer page #69

Merged
merged 8 commits into from
Jun 13, 2023
Merged

Conversation

mxmason
Copy link
Collaborator

@mxmason mxmason commented Jun 13, 2023

Summary

This PR adds Andrew and Stacie back to the volunteers page by placing them in their own section, above the other volunteers. There's also a handful of little maintenance changes in the code.

On a desktop-size viewport, Andrew and Stacie's cards take up the full width of the row and are larger than the others because there's no third card in the row. I also chose to hide their roles, since they have so many and it looks messy, and "founder" is their most important role anyway.

CleanShot 2023-06-13 at 09 09 17@2x

Relevant issue

Closes #65

@netlify
Copy link

netlify bot commented Jun 13, 2023

Deploy Preview for the-collab-lab ready!

Name Link
🔨 Latest commit c8639a8
🔍 Latest deploy log https://app.netlify.com/sites/the-collab-lab/deploys/6488995d51d7b10007c6578a
😎 Deploy Preview https://deploy-preview-69--the-collab-lab.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 settings.

@mxmason mxmason changed the title Feat/restore founders to site Restore founders to volunteer page Jun 13, 2023
@mxmason mxmason self-assigned this Jun 13, 2023
volunteer: Collabie;
}

export function Volunteer({ volunteer }: VolunteerProps) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🔍 I had to rename this component because some changes in Astro mean that the component name Volunteer conflicts with some global name declaration on the volunteer.astro page.

Comment on lines +20 to +26
where: {
AND: [
{ NOT: { roles_every: { name: "Participant" } } }
{ roles_some: {} }
{ visible: true }
]
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🔍 The roles_some query here makes sure we only get collabies who have at least one defined role

orderBy: firstName_ASC
) {
...collabieData
roles(where: { name_not: "Participant" }) {
roles(where: { name_not: "Participant" }, orderBy: name_ASC) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🔍 Adding orderBy means we no longer have to order the roles during build

@mxmason mxmason requested a review from stacietaylorcima June 13, 2023 16:14
@mxmason mxmason marked this pull request as ready for review June 13, 2023 16:14
@mxmason mxmason requested a review from segdeha as a code owner June 13, 2023 16:14
Copy link
Member

@segdeha segdeha left a comment

Choose a reason for hiding this comment

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

👍 This looks great, thanks for doing it! Any chance I could bug you to update my photo while you're at it? 🙏

beatys-butte-beard

@mxmason mxmason force-pushed the feat/restore-founders-to-site branch from bc1533d to c8639a8 Compare June 13, 2023 16:29
@mxmason mxmason merged commit e2b6f38 into main Jun 13, 2023
@mxmason mxmason deleted the feat/restore-founders-to-site branch June 13, 2023 16:31
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.

Stacie and Andrew should be listed on the Volunteers page.
2 participants