Skip to content

Bump packages for category/task update and delete support#37

Merged
gentamura merged 1 commit intomainfrom
release/minor-category-task-update
Oct 27, 2025
Merged

Bump packages for category/task update and delete support#37
gentamura merged 1 commit intomainfrom
release/minor-category-task-update

Conversation

@gentamura
Copy link
Member

@gentamura gentamura commented Oct 27, 2025

Summary

  • add update/delete flows for categories and tasks in the API
  • expose the new query/service/repository contracts through @listee/types
  • ensure account provisioning attaches default categories and refreshes email
  • enforce the profiles.default_category_id foreign key via the DB schema

Testing

  • bun run lint
  • bun run build

Summary by CodeRabbit

  • New Features

    • Added APIs for updating and deleting categories and tasks.
    • Default categories are now automatically configured during account creation.
  • Chores

    • Strengthened database integrity constraints for improved data consistency.

@coderabbitai
Copy link

coderabbitai bot commented Oct 27, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This release introduces category and task management APIs with update/delete operations while strengthening data integrity through foreign key enforcement. Account provisioning is updated to initialize default categories for new profiles, and query contracts are refreshed across the API, auth, database, and types packages.

Changes

Cohort / File(s) Summary
Version Bumps
@listee/api, @listee/auth, @listee/db, @listee/types
Minor version increments across core packages reflecting new functionality and schema changes.
Category & Task APIs
Category/Task management endpoints
New update and delete API operations introduced for category and task resources.
Query Contracts
API query types and contracts
Exposed updated query contracts to reflect new API surface and parameter changes.
Account Provisioning
Account provisioning logic
Modified to ensure default categories are created and assigned when new profiles are provisioned.
Database Schema
profiles.default_category_id constraint
Foreign key constraint enforced on profiles.default_category_id for referential integrity.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Auth
    participant API
    participant DB

    Client->>Auth: Register/Create Account
    activate Auth
    Auth->>DB: Provision Profile
    activate DB
    DB->>DB: Create Default Category
    DB->>DB: Set profiles.default_category_id FK
    DB-->>Auth: Profile Created
    deactivate DB
    Auth-->>Client: Account Ready
    deactivate Auth
    
    Note over Client,DB: Default category now<br/>enforced via FK constraint
    
    Client->>API: Update/Delete Category
    activate API
    API->>DB: Execute Operation
    activate DB
    DB-->>API: Operation Result
    deactivate DB
    API-->>Client: Response
    deactivate API
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

  • Database schema constraint enforcement: Verify the foreign key constraint is correctly applied and backward-compatible migration strategy is documented
  • Account provisioning flow: Ensure default category creation is atomic and handles edge cases (concurrent provisioning, rollback scenarios)
  • API update/delete operations: Validate cascading behavior, permission checks, and impact on dependent data
  • Cross-package version consistency: Confirm all interdependent packages have aligned exports and type definitions

Possibly related PRs

Poem

🐰 A rabbit's ode to categories new,
Foreign keys binding what's true,
Defaults sown at provision's dawn,
Updates and deletes, a logical spawn,
Data integrity hops along! 🌱

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release/minor-category-task-update

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bd885a4 and 8b03890.

📒 Files selected for processing (1)
  • .changeset/good-pets-divide.md (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gentamura gentamura self-assigned this Oct 27, 2025
@gentamura gentamura merged commit 6644d25 into main Oct 27, 2025
8 of 9 checks passed
@gentamura gentamura deleted the release/minor-category-task-update branch October 27, 2025 07:09
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