Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Page render errors are now caught by a nested errorElement under the layout, so the navbar stays visible. The layout is a full-height column and the availability page fills the remaining space instead of 100vh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- parseVolunteerId rejects IDs above Number.MAX_SAFE_INTEGER, which previously turned into values like 1e+23 - Navbar logs a console warning when the volunteer request fails - Restore the console.error spy in app.error.spec Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Juwang110
requested review from
dburkhart07 and
shreeyaadhikari
and removed request for
shreeyaadhikari
November 9, 2026 23:50
Frontend component tests aren't needed. app.spec.tsx is restored to its original scaffold version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-51-navbar Resolve conflicts with the updated animal availability UI: - Volunteer type moves to types.ts alongside the other API types - AnimalModal keeps the new design and uses useVolunteerId - AnimalAvailability drops the restyled PageHeader in favor of Navbar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Juwang110
marked this pull request as ready for review
November 10, 2026 00:39
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dburkhart07
approved these changes
Nov 10, 2026
dburkhart07
left a comment
Collaborator
There was a problem hiding this comment.
lgtm!!! all small things. never cease to amaze me justin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rline Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Remove the stale greeting test and stub apiClient so no network call is made. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…_tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…-51-navbar Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
pujitakalinadhabhotla
approved these changes
Nov 11, 2026
pujitakalinadhabhotla
left a comment
There was a problem hiding this comment.
looks good to me nothing else to add!
Per design, avatar colors come from the theme's Trello label palette, so changing those colors in theme.ts updates avatars too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Juwang110
merged commit Nov 13, 2026
e0b7c84
into
pk/mspca-46-animal-availability-frontend-endpoint
12 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ℹ️ Issue
Closes MSPCA-51
📝 Description
Adds the site navbar from the Figma header component: the MSPCA logo on the left, and the volunteer's avatar and "My Profile" on the right. It's rendered once in a shared layout, so every page gets it without importing it. Until sign-in exists, the current volunteer comes from a
?volunteerId=query param, e.g./animal-availability?volunteerId=1.Navbarcomponent (components/Navbar.tsx), built from the final "Header desktop" / "Header mobile" components rather than the older frame linked in the ticket. Desktop is 120px tall with a 196×88 logo, a 66px avatar and "My Profile". Below Chakra'smdbreakpoint the logo is 142×64, the avatar is 50px and "My Profile" is hidden, matching the mobile design.GET /api/volunteers/:volunteerIdthrough a newapiClient.getVolunteer. The avatar shows the volunteer's initials on a color picked from their ID, so each volunteer always gets the same color. With no ID, an invalid one (abc,0,-3, or a number too large to be a real ID), or a failed request, the avatar is a plain gray circle. A failed request also logs a console warning.Important Notes
volunteerId % 7. They're read fromcolors.trellointheme.ts, so changing a label color there updates the avatars too.✔️ Verification
http://localhost:4200/animal-availability?volunteerId=1. IfCOGNITO_USER_POOL_IDandCOGNITO_CLIENT_IDare set in.env, the sign-in form shows first, so comment them out and restart the dev server.🏕️ (Optional) Future Work / Notes
🤖 Generated with Claude Code