issues
search
HHS
/
OPRE-OPS
ACF's OPRE OPS product. Code name Unicorn.
Other
12
stars
3
forks
source link
Replace fake data on ResearchBudgetVsSpending component
#2710
Open
fpigeonjr
opened
3 months ago
fpigeonjr
commented
3 months ago
Goals
Replace the hardcoded data in the ResearchBudgetVsSpending component with real data from the API
Ensure the component accurately reflects the current fiscal year's budget and spending for research projects
Tasks
[ ] Identify the API endpoint for fetching research funding data
[ ] Update the
useEffect
hook to fetch real data instead of using hardcoded values
[ ] Modify the
data
array to use the fetched values
[ ] Update the
totalFunding
calculation to use the real data
[ ] Ensure the component handles loading and error states appropriately
[ ] Update unit tests to mock the API call and test with real-like data
[ ] Verify that the component renders correctly with the new data source
Additional Context
The current implementation uses hardcoded values in the
data
array
The component is located in the ResearchBudgetVsSpending.jsx file
We need to ensure that the component remains performant when fetching real data
fpigeonjr
commented
3 months ago
may be related to #727
Goals
Tasks
useEffect
hook to fetch real data instead of using hardcoded valuesdata
array to use the fetched valuestotalFunding
calculation to use the real dataAdditional Context
data
array