Skip to content

Commit ffbd4f2

Browse files
author
harshitnagar031
committed
Agent query: I've prepared all your code for GitHub including the new category deletion feature. I've also created detailed setup instructions and documentation. Would you like me to continue trying to fix the configuration issue, or would you prefer to get the current stable version of the code to upload to GitHub?
Enhance category management: Add create, delete, and color assignment features for categories; improve setup instructions and error handling.
1 parent f7979a1 commit ffbd4f2

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ The application will be available at `http://localhost:5000`.
100100
- Track tasks by category
101101
- Visual progress indicators
102102

103+
### Category Management
104+
- Create custom categories
105+
- Assign colors to categories
106+
- Delete categories (tasks will be moved to "general")
107+
103108
## API Endpoints
104109

105110
### Tasks
@@ -111,7 +116,7 @@ The application will be available at `http://localhost:5000`.
111116
### Categories
112117
- `GET /api/categories` - Get all categories
113118
- `POST /api/categories` - Create a new category
114-
119+
- `DELETE /api/categories/:id` - Delete a category
115120

116121
## Contributing
117122

SETUP.md

+22-15
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,32 @@
44

55
1. Node.js (v18 or higher)
66
2. PostgreSQL database
7-
3. npm or yarn package manager
7+
3. npm package manager
88

99
## Initial Setup
1010

11-
1. Clone the repository and install dependencies:
11+
1. Clone the repository:
1212
```bash
1313
git clone https://github.com/yourusername/taskbyte.git
1414
cd taskbyte
15+
```
16+
17+
2. Install dependencies:
18+
```bash
1519
npm install
1620
```
1721

18-
2. Configure Environment Variables:
22+
3. Configure Environment Variables:
1923
Create a `.env` file in the root directory:
2024
```env
25+
# Required - PostgreSQL database URL
2126
DATABASE_URL=postgresql://username:password@localhost:5432/taskbyte
27+
28+
# Optional - Port configuration (defaults to 5000)
29+
PORT=5000
2230
```
2331

24-
3. Initialize the Database:
32+
4. Initialize the Database:
2533
```bash
2634
# Create database tables
2735
npm run db:push
@@ -42,9 +50,11 @@ The application will be available at http://localhost:5000
4250
├── client/ # Frontend React application
4351
│ └── src/
4452
│ ├── components/ # React components
45-
│ ├── hooks/ # Custom React hooks
46-
│ ├── lib/ # Utility functions
47-
│ └── pages/ # Page components
53+
│ │ ├── ui/ # Reusable UI components
54+
│ │ ├── task-*.tsx # Task-related components
55+
│ │ └── category-form.tsx
56+
│ ├── pages/ # Page components
57+
│ └── App.tsx # Main application component
4858
├── server/ # Backend Express server
4959
│ ├── routes.ts # API routes
5060
│ ├── storage.ts # Database operations
@@ -99,12 +109,9 @@ The application uses two main tables:
99109
- Verify TypeScript types are correct
100110
- Check for missing environment variables
101111

102-
## Contributing
103-
104-
1. Fork the repository
105-
2. Create a feature branch
106-
3. Commit your changes
107-
4. Push to your fork
108-
5. Submit a pull request
112+
3. If encountering "Category not found" errors:
113+
- Ensure the category exists in the database
114+
- Check if the category ID is correct
115+
- Verify that the category wasn't recently deleted
109116

110-
For more detailed information, refer to the main README.md file.
117+
For more detailed information, refer to the main README.md file.

0 commit comments

Comments
 (0)