a620906209
|
da48a3652d
|
feat:實作 Coach Portal — 教練後台課程管理
後端:
- Migration:diving_offers 新增 provider_id(nullable FK)
- Migration:users.role ENUM 加入 provider 值
- Migration:diving_offers.spot 改為 nullable
- AuthController:registerProvider business_name 改為選填
- AuthController:updateProviderProfile 補上 certifications / dive_sites / services / facilities / website / social_media
- ProviderOfferController:教練課程 CRUD(index/show/store/update/destroy),實作 provider_id 所有權不變式(404 → 403 兩步驟)
前端(frontend/):
- coachAuth store、coachAxios(獨立於 member auth)
- /coach/* 路由群組 + beforeEach guard
- CoachNavBar、CoachLayout(教練頁隱藏會員 NavBar)
- LoginView、RegisterView、DashboardView(表格 + 刪除確認)
- OfferFormView(新增/編輯共用)、ProfileView
OpenSpec:
- openspec/config.yaml 補入專案 context 與 rules
- 新增 specs:coach-offers-api / coach-portal-ui / provider-auth
- 更新 spec:diving-offers-api 加入 provider_id
- 歸檔:openspec/changes/archive/2026-05-10-coach-portal
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
2026-05-10 03:34:14 +08:00 |
|
a620906209
|
550e2fc97a
|
feat:實作 Member Portal MVP 前端與後端整合
後端:
- 新增 DivingOffer Model / DivingOfferController(列表+詳情 API,支援搜尋/篩選/分頁)
- 修正 Google OAuth callback 改為 redirect 至前端(SocialAuthController)
- 新增 config/cors.php 允許前端 origin
- .gitignore 新增 frontend/ 排除規則
前端(frontend/):
- Vue 3 + Vite + Tailwind CSS + Pinia + Vue Router
- 頁面:首頁、課程列表、課程詳情、登入、註冊、個人資料、OAuth callback
- 整合至 Docker(multi-stage build,nginx 靜態服務於 port 5173)
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
2026-05-10 01:41:28 +08:00 |
|
a620906209
|
725c86f434
|
fix:補sessionDB
|
2025-05-23 21:21:19 +08:00 |
|
a620906209
|
9de698d90e
|
build:添加docker文件
|
2025-05-23 21:20:54 +08:00 |
|
a620906209
|
b02a18d762
|
test:編寫Postman API測試文件
|
2025-05-23 18:31:33 +08:00 |
|
a620906209
|
0a0d335304
|
docs:移除coach swagger註解
|
2025-05-12 02:43:37 +08:00 |
|
a620906209
|
6fef9e8c37
|
Update README.md
Swagger API Doc
|
2025-05-12 02:37:02 +08:00 |
|
a620906209
|
512f561b8d
|
ci:添加github_actions文件
|
2025-05-12 01:24:10 +08:00 |
|
a620906209
|
75e73542ff
|
docs:api文檔添加
|
2025-05-12 01:23:12 +08:00 |
|
a620906209
|
125d4bf8d8
|
fix:coach相關改provider
|
2025-05-12 01:22:09 +08:00 |
|
a620906209
|
3d7660a24c
|
init
|
2025-05-11 03:45:17 +08:00 |
|