Jul 21st Donor profile updates

💡 Whoever said changes can't be exciting never met us! Here's what we've done to improve the application. Let's take a tour:

🔧 DonorProfile.js Changes

We've refined the way we handle data in this file. A new procedure has been introduced to address potential gaps ('null' values) in the title_fields array. We also put in place smart rules that make processing combined ('concatenated') data more efficient.

📊 DonorProgramsTable.js Tweaks

We're shaking things up in how we manage tabular data. We've created a twin (newTableData) for the existing tableDatato allow us to make changes without affecting the original. For every change in pagination, we're now dispatching an action that keeps newTableData in the loop.

📦 ProductList/index.js Update

Less is more! We've trimmed down the dependencies in useEffect to include only donorProfile.length, making the function more streamlined and focused.

📝 ProgramsFilter.js and sisters (ProgramsTableSearch.js and ProgramsTableTools.js)

Family members have a thing for sharing, don't they? These three modules have seen similar changes. We've switched from using useParams to useLocation for grabbing the program_id, offering a more reliable method. Also, we've tuned the logic for adjusting the status (setProgramState) of the programs. But that's not all; the functionality of BatchDeleteButton and RestoreSelectedButton components in ProgramsTableTools.js got a revamp as well - all in favor of creating a better user experience!

📑 ProgramsStatistic.js Refresh

Even a few small tweaks can make a significant impact! We've enhanced some options by updating their string values.

Through these changes, we hope to provide a smoother and more enjoyable user experience. Each step we take brings us closer to perfection. Keep up the great work, team! 💪🎉

Last updated