Skip to content

Dhruva bhat/ami 36 [style] style watering session#23

Open
dhruva-bhat wants to merge 6 commits intomainfrom
dhruva-bhat/ami-36-style-watering-session
Open

Dhruva bhat/ami 36 [style] style watering session#23
dhruva-bhat wants to merge 6 commits intomainfrom
dhruva-bhat/ami-36-style-watering-session

Conversation

@dhruva-bhat
Copy link

@dhruva-bhat dhruva-bhat commented Feb 27, 2026

👍 What's new in this PR

Updated watering session styling page:

  • updated watering cards to change based on route type using Record (Route D and E do not have images so they are still set to orange)
  • used exported pngs from figma for icons
  • updated style of card to be slightly longer and shorter
  • created (nonfunctional) x button next to cards
  • removed watering-type and replaced with route-name
  • altered styling for group-size
  • styled back to session
  • re-formatted date and spacing
  • implemented container flexboxes to keep spacing more consistent

Screenshots

Screenshot 2026-02-27 at 12 51 51 PM Screenshot 2026-02-27 at 1 05 37 PM

👍 How to review

  • ideally review all at once, specific feedback on spacing in comparison to figma would be super helpful

main files to check:

  • app/sessions/[session_id]/page.tsx
  • app/sessions/[session_id]/styles.ts
  • components/RouteCard/RouteCard.tsx
  • components/RouteCard/styles.ts

general tests:

  • scrolling through/too many routes for the page
  • sizing of titles on route cards
  • font comparisons, the figma looked slightly thinner but matched family/size
  • functionality of back to session
  • ensure date functionality
  • overall look/similarity to the figma

👍 Next steps

  • implement functionality of the x button on route cards
  • images for route D and E

👍 Relevant links

Online sources

https://refine.dev/blog/typescript-record-type/

CC: @bhavitaap

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
amigos-de-los-rios Ready Ready Preview, Comment Mar 1, 2026 7:19pm

@dhruva-bhat dhruva-bhat marked this pull request as draft March 1, 2026 19:14
@dhruva-bhat dhruva-bhat marked this pull request as ready for review March 1, 2026 19:15
@bhavitaap bhavitaap requested a review from anhvo2712 March 4, 2026 23:11
Copy link
Collaborator

@bhavitaap bhavitaap left a comment

Choose a reason for hiding this comment

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

GREAT JOB FIRST SPRINT YAYYY
just some styling fixes and a couple things here and there but everything looks really good yay! try to finish by EOD Wednesday

ImageURL: "/images/C_truck.png",
},
"Type D": {
ImageURL: "/orange.jpg",
Copy link
Collaborator

Choose a reason for hiding this comment

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

add the purple image for type D


<BackLink href="/sessions">← Back to Sessions</BackLink>
<BackLink href="/sessions">
{IconSvgs.BackArrow}
Copy link
Collaborator

Choose a reason for hiding this comment

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

change back to the arrow character instead of the icon, the icon is causing errors

<BackLink href="/sessions">← Back to Sessions</BackLink>

object-fit: contain;
width: 22%;
object-fit: cover;
border-radius: 0.75rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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


export const RouteGroup = styled.p`
color: ${COLORS.black};
color: ${COLORS.adlr_property_gray};
Copy link
Collaborator

Choose a reason for hiding this comment

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

change color back to adlr_white SORRY

router.push(`/sessions/${sessionId}/${route.id}`);
};

type VolunteerTypes = "Type A" | "Type B" | "Type C" | "Type D" | "Type E";
Copy link
Collaborator

Choose a reason for hiding this comment

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

import the VolunteerType enum from types folder instead

export const RouteGroup = styled.p`
color: ${COLORS.black};
color: ${COLORS.adlr_property_gray};
font-size: 1.26488rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

1.125rem

width: 65%;
padding: 1.5rem 1.75rem;
gap: 1.49rem;
padding: 0.5rem 2rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

padding: 1.5625rem 1.5625rem 2rem 1.5625rem;

gap: 1.49rem;
padding: 0.5rem 2rem;
flex: 1;
gap: 0.5rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

1rem

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks fine but if possible download as svg from figma instead of png and update

<path
d="M12 4L4 12"
stroke="#707070"
stroke-width="1.33333"
Copy link
Collaborator

Choose a reason for hiding this comment

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

change strokeWidth, strokeLinecap, strokeLinejoin, and clipPath to camelCase instead of snake-case for some reason it's causing DOM errors?

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