Skip to content

leex279/task-list-advanced

Repository files navigation

Task List Advanced

A modern task management application with code block support and AI task generation capabilities. Built with React, TypeScript, and Tailwind CSS.

Features

  • ✨ 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

Quick Start

  1. Clone and install:
git clone https://github.com/leex279/task-list-advanced.git
cd task-list-advanced
npm install
  1. Create .env file:
VITE_DEV_MODE=true
  1. Start development server:
npm run dev
  1. Open http://localhost:5173 in your browser

Core Components

The application is built using several key components:

  • Task Management

    • TaskInput: Add new tasks with text, code blocks, and rich text
    • TaskList: Display and manage tasks with drag-and-drop
    • TaskItem: Individual task display and editing
    • CodeBlock: Syntax-highlighted code display
  • Features

    • RichTextEditor: Format task descriptions
    • ImportExport: Save and load task lists
    • SettingsModal: Configure AI integration

AI Task Generation

To use the AI task generation feature:

  1. Get a Google API key from Google AI Studio
  2. Add your API key in the Settings modal
  3. Enter a prompt in the input field
  4. Optionally attach files for analysis
  5. Click send to generate tasks

Task List Format

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
    }
  ]
}

Development

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

See also my Youtube Channel

URL: https://www.youtube.com/@DIYSmartCode

DIY Smart Code

Build with

Bolt Logo

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published