A modern task management application with code block support and AI task generation capabilities. Built with React, TypeScript, and Tailwind CSS.
- ✨ Create and manage tasks with rich text descriptions
- 📝 Add code blocks with syntax highlighting
- 🔄 Drag and drop to reorder tasks
- 🤖 Generate task lists using Google's Gemini AI
- 📁 Import/Export task lists as JSON
- 🎯 Mark tasks as optional
- 📑 Organize tasks with headlines and subtasks
- 🔗 Automatic URL to clickable link conversion
- 🎨 Clean, modern UI with responsive design
- Clone and install:
git clone https://github.com/leex279/task-list-advanced.git
cd task-list-advanced
npm install
- Create
.env
file:
VITE_DEV_MODE=true
- Start development server:
npm run dev
- Open
http://localhost:5173
in your browser
The application is built using several key components:
-
Task Management
TaskInput
: Add new tasks with text, code blocks, and rich textTaskList
: Display and manage tasks with drag-and-dropTaskItem
: Individual task display and editingCodeBlock
: Syntax-highlighted code display
-
Features
RichTextEditor
: Format task descriptionsImportExport
: Save and load task listsSettingsModal
: Configure AI integration
To use the AI task generation feature:
- Get a Google API key from Google AI Studio
- Add your API key in the Settings modal
- Enter a prompt in the input field
- Optionally attach files for analysis
- Click send to generate tasks
Tasks are stored in JSON format:
{
"name": "Task List Name",
"data": [
{
"id": "unique-id",
"text": "Task description",
"completed": false,
"isHeadline": false,
"createdAt": "2024-03-20T12:00:00.000Z",
"codeBlock": {
"language": "javascript",
"code": "console.log('Hello!');"
},
"optional": false
}
]
}
Built with:
- Vite for development and building
- React + TypeScript for type safety
- TailwindCSS for styling
- DND Kit for drag and drop
- Prism.js for code highlighting
- Google Gemini API for AI features
URL: https://www.youtube.com/@DIYSmartCode
This project is licensed under the MIT License.