Skip to content

Enhance task board and configure vitest#1

Merged
dimeloper merged 9 commits intomainfrom
feature/enhance-task-board-and-vitest
May 18, 2025
Merged

Enhance task board and configure vitest#1
dimeloper merged 9 commits intomainfrom
feature/enhance-task-board-and-vitest

Conversation

@dimeloper
Copy link
Owner

@dimeloper dimeloper commented May 18, 2025

Task Store Enhancements and Vitest

Overview

This PR enhances the existing task management functionality using NgRx Signals, along with a robust testing suite using Vitest. The changes focus on state management, testing, and improved logging for better debugging capabilities.

Key Changes

Task Store Implementation

  • Implemented TaskStore using NgRx Signals for reactive state management
  • Added entity management with withEntities for efficient task handling
  • Implemented computed selectors for task filtering and status management
  • Added comprehensive error handling and loading state management

Testing Suite

  • Added Vitest test suite for TaskStore
  • Implemented tests for:
    • Initial state verification
    • Computed selectors (todo, in-progress, done tasks)
    • CRUD operations (create, read, update, delete)
    • Error handling scenarios
    • Status updates and pagination

Logging System

  • Implemented structured logging format for better debugging
  • Added distinct log types:
    • [Store - Init] - Store initialization
    • [Store - Setup] - Store configuration
    • [Store - Selector] - Computed selector updates
    • [Store - Update] - State updates
    • [Store - Action] - Action dispatches
    • [Store - Warning] - Warning messages
    • [Store - Error] - Error messages
    • [Service - Request] - Service method calls
    • [Service - Response] - Service responses

Documentation

  • Updated README with:
    • Project structure and tech stack details
    • Development and testing instructions
    • Logging system documentation

@dimeloper dimeloper merged commit 474ecf0 into main May 18, 2025
1 check passed
@dimeloper dimeloper deleted the feature/enhance-task-board-and-vitest branch May 18, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant