Closed matous-volf closed 2 months ago
The changes include substantial updates to the PostgreSQL database schema with the addition of a new tasks
table, modifications to existing tables, and revisions to project dependencies in the Cargo.toml
file. Various Rust source files have been modified to implement new functionality related to task management, including the introduction of new components, improved error handling, and enhancements to project forms. CSS updates have also been made to improve layout and user experience.
Files/Paths | Change Summary |
---|---|
.idea/... |
Updates to PostgreSQL database configuration, increasing IntrospectionStateNumber and adding a new tasks table. |
Cargo.toml |
New dependencies added and existing ones modified to enhance functionality, particularly for task management and logging. |
migrations/... |
New SQL migration files created for adding and rolling back the tasks table, detailing its schema and foreign key relationships. |
src/components/... |
New TaskForm component introduced; modifications to Home and ProjectForm components for task management features. |
src/errors/... |
New TaskCreateError module added, refining error handling for task creation. |
src/models/... |
New Category model and modifications to Project and Task models for better data handling. |
src/schema/mod.rs |
Definition of the new tasks table and its relationship with projects . |
src/server/... |
New create_task function added in tasks.rs , along with a get_projects function in projects.rs . |
src/styles/tailwind.css |
New CSS rules added to enhance layout and ensure full viewport height for key elements. |
sequenceDiagram
participant User
participant App
participant Server
participant Database
User->>App: Submit new task
App->>Server: create_task(NewTask)
Server->>Database: Insert into tasks table
Database-->>Server: Return created Task
Server-->>App: Return Task
App-->>User: Display created task
Summary by CodeRabbit
New Features
tasks
table for efficient task management.TaskForm
component for user-friendly task creation.get_projects
function for retrieving project lists from the database.create_task
function for task creation with validation.Improvements
ProjectForm
to require user input for the project title.Bug Fixes
Documentation