Here's a prompt you can use to create a web app that allows you to enter your daily prayed units, calculates the pending backlog, and shows the remaining units. This prompt outlines the key features and functionalities you would want in the app.
---
### Web App Prompt for Prayer Tracking
**Title**: Daily Prayer Tracker
**Objective**: Create a web app that allows users to log their daily prayer units, calculate the total missed units, and display the remaining backlog.
#### Features:
1. **User Input Section**:
- **Date Input**: A field to enter the date of the prayer log.
- **Daily Prayed Units**: A numeric input field where users can enter the total units prayed for the day (including any extra units).
- **Submit Button**: A button to submit the daily prayer log.
2. **Calculation Logic**:
- **Total Missed Units**: Predefined constant for total missed units (e.g., 16,790).
- **Cumulative Total Prayed**: A running total of all units prayed, updated with each submission.
- **Remaining Backlog Calculation**:
- Formula:
\[
\text{Remaining Backlog} = \text{Total Missed Units} - \text{Cumulative Total Prayed}
\]
3. **Display Section**:
- **Cumulative Total Prayed**: Display the total units prayed so far.
- **Remaining Backlog**: Display the remaining units to be prayed to clear the backlog.
- **Progress Bar**: A visual representation of progress towards clearing the backlog.
4. **History Log**:
- **Daily Log Table**: A table that shows the date, daily prayed units, cumulative total prayed, and remaining backlog after each entry.
5. **User-Friendly Interface**:
- **Responsive Design**: Ensure the app is accessible on both desktop and mobile devices.
- **Clear Instructions**: Provide clear instructions on how to use the app.
#### Example User Flow:
1. User opens the app and sees the input section.
2. User enters the date and the number of units prayed for that day.
3. User clicks the "Submit" button.
4. The app calculates the cumulative total prayed and the remaining backlog.
5. The app updates the display section with the new totals and updates the history log.
#### Additional Features (Optional):
- **Reminders**: Option to set daily reminders for prayer times.
- **Export Data**: Ability to export the prayer log as a CSV file for personal records.
- **User Authentication**: Allow users to create accounts to save their progress.
---
This prompt provides a comprehensive overview of the desired functionalities for your prayer tracking web app. You can share this with a developer or use it as a guideline to create the app yourself.