Skip to content

feat: User Components - #529

Merged
zigzagdev merged 169 commits into
mainfrom
feat/user
Aug 1, 2026
Merged

feat: User Components#529
zigzagdev merged 169 commits into
mainfrom
feat/user

Conversation

@zigzagdev

@zigzagdev zigzagdev commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Motivation / 目的

This is the parent PR that brings the entire User feature epic from feat/user into main: user registration, authentication (login/logout/me), and full CRUD (find/update/delete), along with the bug fixes discovered while building each layer. Before this PR, main has no User resource at all.

本PRはUser機能一式(登録・認証・CRUD)をfeat/userからmainへ統合する親PRです。登録、認証(ログイン/ログアウト/me)、CRUD(検索/更新/削除)に加え、各層の実装中に見つかったバグ修正も含みます。現状mainにはUserリソースが存在しないため、これが導入のトリガーとなるPRです。

What I have done / 実施内容

User Domain & Registration

Authentication

User CRUD

Bug fixes bundled in this branch

Supporting infra

  • Sanctum installation and configuration
  • Codecov integration and mago static analysis CI

Test Results / テスト結果

  • Domain/Application layer: Mockery-based unit tests for each UseCase, Command, Entity, and value object
  • Infra layer: integration tests against the real test DB (heritage-mysql-test) for each repository method
  • Presentation layer: integration tests for every endpoint (success and error responses)
  • Full CI matrix (laravel 8.*/9.*/10.* × php 7.4/8.0/8.1/8.2), mago, and Codecov all passing

Closes #399, #400, #405, #408, #500, #507, #514, #540, #542, #549

zigzagdev and others added 30 commits June 27, 2026 17:27
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: usersテーブルのmigrationとUserモデルの追加 / Add users table migration and User model
feat: add User domain layer / Userドメイン層の追加
feat: add User registration infrastructure layer
…_layer

feat: add User registration application layer
…n_layer

feat: add User registration presentation layer / ユーザー登録プレゼンテーション層の追加
feat: add Codecov integration for PR coverage reporting / CodecovによるPRカバレッジレポートの追加
This was linked to issues Jul 17, 2026
zigzagdev added 25 commits July 20, 2026 15:36
fix: enable CORS credentials and externalize frontend origin for Sanctum SPA auth
…layer

feat: implement Presentation layer for GET /api/v1/user/me / ログイン中ユーザー取得APIのPresentation層実装
feat: add GET /api/v1/user/me endpoint / ログイン中ユーザー取得APIの追加
…tateful

fix: include frontend origin in SANCTUM_STATEFUL_DOMAINS / Sanctumのstateful対象にフロントのオリジンを追加
fix: enable Sanctum SPA cookie auth for the frontend origin / フロントのオリジンに対するSanctum Cookie認証の有効化
fix: support partial updates in PATCH /api/v1/users/{id} / ユーザー更新APIの部分更新対応
fix: make subscription_tier optional in POST /api/v1/user/create / ユーザー作成APIのsubscription_tier任意化
fix: default subscription_tier to free in SubscriptionFactory when omitted / SubscriptionFactoryでsubscription_tier省略時にfreeへデフォルト設定

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zigzagdev
zigzagdev merged commit 9c6c1d1 into main Aug 1, 2026
27 checks passed
@zigzagdev
zigzagdev deleted the feat/user branch August 1, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Update API User Logout User LogIn User Registration API User Definition

1 participant