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:
@@ -1,3 +1,3 @@
|
||||
PORT = 3001
|
||||
MONGO_URI = "mongodb+srv://timmybee:EMqczsTr1oYPBt@cluster0.dombm2a.mongodb.net/?appName=Cluster0"
|
||||
APP_URI = "http://localhost:3001"
|
||||
APP_URI = "http://localhost:3001"
|
||||
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user