Skip to content

200 project card#207

Open
mehanana wants to merge 9 commits into
mainfrom
200-project-card
Open

200 project card#207
mehanana wants to merge 9 commits into
mainfrom
200-project-card

Conversation

@mehanana
Copy link
Copy Markdown
Contributor

@mehanana mehanana commented May 12, 2026

ℹ️ Issue

#200

📝 Description

Created project card components for both active and archived project cards

Briefly list the changes made to the code:

  1. Created separate files for the active project card and archived project card components
  2. Created tests to ensure the right elements were appearing
  3. Tested on local host to make sure it matched figma designs

✔️ Verification

What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.

Provide screenshots of any new components, styling changes, or pages.
Screenshot 2026-05-12 004201
image

🏕️ (Optional) Future Work / Notes

Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!

@mehanana mehanana requested a review from nourshoreibah as a code owner May 12, 2026 13:45
@github-actions github-actions Bot requested a review from tsudhakar87 May 12, 2026 13:45
github-actions Bot added a commit that referenced this pull request May 12, 2026
Copy link
Copy Markdown
Contributor

@tsudhakar87 tsudhakar87 left a comment

Choose a reason for hiding this comment

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

looks solid! just some minor things I noticed when testing locally

Comment thread apps/frontend/src/app/components/ArchiveProjectCard.tsx Outdated
Comment thread apps/frontend/src/app/components/ActiveProjectCard.tsx Outdated
Comment thread apps/frontend/src/app/components/ActiveProjectCard.tsx Outdated
Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

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

Echoing thillai's comments and also, thoughts on making this one component with a prop for whether it's archived or not? Or alternatively extracting out the shared portions (maybe just the top right corner Staff section)? Just want to make sure we don't have to maintain things in 2 places

Otherwise looks great!

@@ -0,0 +1,49 @@
import React from 'react';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this file meant to still be in this PR?

Copy link
Copy Markdown
Contributor

@tsudhakar87 tsudhakar87 left a comment

Choose a reason for hiding this comment

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

looks solid! just a minor nit and maybe some outdated changes

<h5 className="!font-bold">Start Date</h5>
<p>{props.start_date}</p>
</div>
<FaArrowRight className="justify-self-center" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very very small nit but when I looked at the page locally, the arrow looks like its shifted towards the right because of the spacing of the div for the start date

Image Image

<p>{Math.round((props.budget_used / props.total_budget) * 100)}%</p>
</div>
) : (
<div className="grid grid-cols-[1fr_auto_1fr] w-full items-center !gap-2 !px-2">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div className="grid grid-cols-[1fr_auto_1fr] w-full items-center !gap-2 !px-2">
<div className="flex flex-row items-center w-full !gap-4 !px-2">

<h5 className="!font-bold">Start Date</h5>
<p>{props.start_date}</p>
</div>
<FaArrowRight className="justify-self-center" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<FaArrowRight className="justify-self-center" />
<FaArrowRight className="shrink-0" />

Comment thread apps/frontend/src/app/page.tsx Outdated
<div style={{ display: "flex", minHeight: "100vh" }}>
<NavBar role="admin" />
<main style={{ flex: 1, backgroundColor: "#f9fafb" }}>
<ProjectCard variant="active" name="p1" total_budget={100} budget_used={50} members={10}/>
Copy link
Copy Markdown
Contributor

@tsudhakar87 tsudhakar87 Jun 4, 2026

Choose a reason for hiding this comment

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

is this leftover from local testing?

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.

3 participants