Skip to content

Conversation

@camila-carrillo
Copy link
Contributor

ℹ️ Issue

Closes #201

📝 Description

Write a short summary of what you added. Why is it important? Any member of C4C should be able to read this and understand your contribution -- not just your team members.

Implemented a cost-benefit analysis feature in the frontend. Staff member inputs their hourly rate and the time per report and the feature calculates the net benefit of pursuing the grant. It's important so that staff members know which grants are worth pursuing.

Briefly list the changes made to the code:

  1. Created cost benefit component (includes auto reset after closing expanded grant view)
  2. Integrated cost-benefit design next to description box
  3. Integrated cost-benefit display in the grant header next to Timeline and Amount
  4. Implemented state lifting to display calculated net benefit in the grant header
  5. Fixed notification popup scroll bar (removed scroll bar) for cleaner UI

✔️ 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.

I tested the feature as a user would. I manually checked calculations when time per report changes, hourly rate changes, and verified that this showed the correct number in both the "Analysis" section and "Cost-benefit" section. I closed expanded grant view and reopened to ensure that changes clear. Tested with different grants to ensure calculations are correct.

Provide screenshots of any new components, styling changes, or pages.

Screenshot (51)

Test Changes

If your new feature required some test to be changed or added to fit the new functionality or changes please document these changes here.

🏕️ (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!

@camila-carrillo camila-carrillo linked an issue Dec 1, 2025 that may be closed by this pull request
Copy link
Collaborator

@prooflesben prooflesben left a comment

Choose a reason for hiding this comment

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

On a smaller screen the cost benefit part goes under the report deadlines

@janekamata janekamata merged commit e5c4689 into main Dec 5, 2025
1 check passed
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.

DEV - Cost Benefit Analysis in Frontend

4 participants