Lipila-tech / smart-skool

Smart Skool is a web application designed to help schools manage interactions between parents and the school.
https://main.doinbfbtrxt7j.amplifyapp.com/
MIT License
0 stars 1 forks source link

Implement Data Fetching for Make Payment, Payment History, and Student Progress Components #11

Open sangwani-coder opened 7 hours ago

sangwani-coder commented 7 hours ago

The current implementation uses hard-coded placeholders to display data in the Make Payment, Payment History, and Student Progress components. Replace these placeholders by reading and displaying the data from a JSON file.

Subtasks

Login Component

*File: Login.js Goal: Fetch and login a user (either parent or admin) from sample-user-data.json.

File: StudentProgress.js Goal: Fetch and display progress data for the students linked to the parent. sample-parent-data.json & sample-user-data.json

Make Payment Component

File: MakePayment.js Goal: Fetch and display the list of students for the logged-in parent, allow selection, and calculate the total amount dynamically.

Payment History Component

File: PaymentHistory.js Goal: Fetch and display payment history data for the logged-in parent. sample-parent-data.json & sample-user-data.json

Student Progress Component

File: StudentProgress.js Goal: Fetch and display progress data for the students linked to the parent. sample-parent-data.json & sample-user-data.json

Acceptance Criteria

  1. Data for the components is fetched dynamically from the JSON files ( sample-parent-data.json & sample-user-data.json.
  2. Components display data accurately and update as necessary.
  3. Proper loading indicators and error messages are implemented.
  4. Existing functionality is maintained.
  5. Code follows best practices for React and state management.
sangwani-coder commented 7 hours ago

git Fetch and Pull to download get the sample JSON files I added.