feat: Enhance dashboard with stats cards and task filtering

- Added stats cards to display active, completed, overdue, and due-today tasks on the dashboard.
- Implemented search functionality to filter tasks in real-time based on user input.
- Introduced quick-pick date buttons for easier task date selection.
- Updated task rendering logic to handle empty states for task lists.
- Improved overall user interface with new CSS styles for stat cards and buttons.

chore: Update environment variables and backend error handling

- Fixed formatting in the .env file for consistency.
- Enhanced error handling in the backend API for better debugging.

feat: Revamp frontend pages with new features and pricing sections

- Redesigned the index.html page to include a hero section and feature highlights.
- Created a new features page with dynamic loading of features from JSON.
- Implemented a pricing page that loads plans from JSON and highlights the featured plan.
- Added support and FAQ sections with dynamic content loading and contact form functionality.
- Introduced JSON files for FAQs, features, and pricing to allow easy updates without code changes.
This commit is contained in:
Tim Basten
2026-04-23 16:29:52 +08:00
parent e50a6c91e6
commit 63070fd90c
15 changed files with 743 additions and 71 deletions

View File

@@ -64,7 +64,7 @@ app.get('/api/tasks', async (req, res) => {
console.error("Error:", error);
res.status(500).json({ message: "Error grabbing tasks!" });
}
}
});
@@ -84,7 +84,7 @@ app.post('/api/tasks/todo', async (req, res) => {
});
// To 'complete' the task and move columns ↓
// To 'complete' the task and move columns ↓
app.patch('/api/tasks/complete/:id', async (req, res) => {
try {
@@ -110,7 +110,7 @@ app.patch('/api/tasks/complete/:id', async (req, res) => {
app.patch('/api/tasks/notComplete/:id', async (req, res) => {
try {
const { completed } = req.body;
const { completed } = req.body;
const taskId = req.params.id;
const taskNotComplete = await Task.findByIdAndUpdate(taskId, { completed }, { new: true });