-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
✅ Deploy Preview for the-collab-lab ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
volunteer: Collabie; | ||
} | ||
|
||
export function Volunteer({ volunteer }: VolunteerProps) { |
There was a problem hiding this comment.
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.
where: { | ||
AND: [ | ||
{ NOT: { roles_every: { name: "Participant" } } } | ||
{ roles_some: {} } | ||
{ visible: true } | ||
] | ||
} |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bc1533d
to
c8639a8
Compare
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.
Relevant issue
Closes #65