refactor: sync workspace removal to main #40

Merged
xiaoxia merged 92 commits from develop into main 2026-06-27 00:51:52 +08:00

92 Commits

Author SHA1 Message Date
xiaoxia 34f6a6cde9 Merge pull request 'docs: add release process and update git workflow' (#39) from chore/unify-ci-runners into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
2026-06-27 00:51:02 +08:00
CI Bot c0f6c148a3 fix: update default APP_VERSION to 0.1.61
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
2026-06-27 00:42:24 +08:00
CI Bot d6a30bd4eb feat: add auto-merge scripts and CI failure notification
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- Auto merge script for PRs targeting develop/main
- CI failure check script
- Gitea Actions workflow for scheduled auto-merge
- Cron jobs for periodic execution
2026-06-27 00:42:05 +08:00
CI Bot 44e9ef362a chore: unify CI/CD runner labels to runtime-builder:host 2026-06-27 00:41:39 +08:00
CI Bot c96ac31132 chore: remove redundant .github/workflows (using Gitea Actions)
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
2026-06-27 00:41:09 +08:00
CI Test 692743d61d fix: replace GitHub Actions checkout with Gitea API download in ci-cd.yml
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2s
Tests / lint (pull_request) Failing after 1m0s
- validate job: add container xiaoxia-ci-python:3.12, use shell-based checkout via Gitea API
- frontend-lint job: remove container, use docker run with local images instead
- All steps converted to shell: sh to avoid uses: actions/* dependencies

Fixes CI timeout on private runner unable to access GitHub Actions marketplace
2026-06-26 19:55:04 +08:00
xiaoxia c5f8c50872 refactor: Remove workspace concept - Projects now directly under User
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m1s
Tests / test (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 1m0s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 16m46s
BREAKING CHANGES:
- Removed Workspace, WorkspaceMember, WorkspaceInvitation entities
- Project now has owner_user_id instead of workspace_id
- Added shared_users list to Project for collaboration
- Subscription/quota moved from Workspace to User level

Changes:
- packages/domain/entities.py: Removed Workspace entities, updated Project
- packages/adapters/sqlalchemy_impl/models.py: Updated models
- packages/application/: Removed workspace use cases, updated other use cases
- packages/ports/: Removed workspace repository interfaces
- apps/api/: Updated routes, schemas, dependencies, router
- alembic/versions/007_remove_workspace_concept.py: Database migration

New APIs:
- POST /projects/{id}/share: Share project with user
- DELETE /projects/{id}/share/{user_id}: Unshare project
2026-06-26 19:16:54 +08:00
xiaoxia dbf2092e89 chore: trigger CI/Deploy pipeline test
Tests / test (push) Failing after 1s
Tests / lint (push) Failing after 1s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m30s
2026-06-26 18:52:03 +08:00
xiaoxia 42c543917e Merge pull request 'fix: 部署workflow使用ubuntu-latest runner label' (#17) from fix/deploy-runner-label into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
2026-06-26 18:44:32 +08:00
xiaoxia 1ba3543fa0 fix(deploy): use ubuntu-latest runner label
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 16m40s
2026-06-26 18:43:54 +08:00
xiaoxia f2fe27eda6 Merge pull request 'chore: 修复 P2/P3 技术债务' (#15) from fix/p2p3-tech-debt-v2 into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 1m0s
2026-06-26 18:41:32 +08:00
xiaoxia c393c38d89 Merge pull request 'fix: 移除 CI container 配置,直接在 host 运行' (#16) from fix/ci-remove-container into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / lint (push) Failing after 0s
Tests / test (push) Failing after 1m0s
2026-06-26 18:40:37 +08:00
xiaoxia 8575ee772f fix(ci): remove container field to run on host directly
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
2026-06-26 18:40:04 +08:00
xiaoxia b300f66630 P3-5: 添加 tests/integration/test_auth.py 认证集成测试
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 30s
2026-06-26 18:39:17 +08:00
xiaoxia 443588eebd P3-4: .gitea/workflows/ci-cd.yml 添加 frontend-lint job 2026-06-26 18:38:45 +08:00
xiaoxia 8b248cf035 P3-3: infra/docker/api.Dockerfile 转换为多阶段构建 2026-06-26 18:38:19 +08:00
xiaoxia 5a05b804f2 P3-1: database.py 统一使用 config.py 中的 Settings,消除配置重复定义 2026-06-26 18:37:58 +08:00
xiaoxia 36ffd9004a P2-6: processor.py 使用 NamedTemporaryFile + try-finally 确保临时文件清理 2026-06-26 18:37:41 +08:00
xiaoxia c913e7cd89 P2-4: dependencies.py 添加返回类型注解 2026-06-26 18:37:11 +08:00
xiaoxia a85790f24a P2-3: workspace_member_repository.py find_by_workspace 方法添加 JOIN 预加载用户数据 2026-06-26 18:36:45 +08:00
xiaoxia 129a0235ad P2-2: 更新 packages/application/auth/__init__.py 导出 JWT 和 Password 委托处理器 2026-06-26 18:36:21 +08:00
xiaoxia 4015929e3f P2-2: 创建 packages/application/auth/password_handler.py 委托层,隔离 Domain 层对 bcrypt 库的依赖 2026-06-26 18:36:04 +08:00
xiaoxia cc51da0bd7 P2-2: 创建 packages/application/auth/jwt_handler.py 委托层,隔离 Domain 层对 jwt 库的依赖 2026-06-26 18:35:45 +08:00
xiaoxia 33a0ed13fe P2-1 & P2-5: 移除 upload.py 中重复的 _require_workspace_member,添加服务端 MIME type 验证 2026-06-26 18:35:21 +08:00
xiaoxia d5bc23d488 P2-1: 移除 projects.py 中重复的 _require_workspace_member 函数,使用 permissions.py 中的共享函数 2026-06-26 18:34:41 +08:00
xiaoxia 3c54dcbef4 Merge pull request 'chore: 清理仓库 - 删除过时文件和已合并分支' (#13) from chore/repo-cleanup into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / lint (push) Failing after 0s
Tests / test (push) Failing after 1m0s
2026-06-26 18:30:22 +08:00
xiaoxia 55d2b25f08 chore: update .gitignore for temp files
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
2026-06-26 18:24:52 +08:00
xiaoxia 2748408ac0 chore: remove obsolete audit and project docs 2026-06-26 18:24:42 +08:00
xiaoxia d0f43530e7 chore: remove obsolete audit and project docs 2026-06-26 18:24:41 +08:00
xiaoxia 0d1f7ca8d5 chore: remove obsolete audit and project docs 2026-06-26 18:24:41 +08:00
xiaoxia fcd518d4a6 chore: remove obsolete audit and project docs 2026-06-26 18:24:40 +08:00
xiaoxia 12bbecc9fe chore: remove obsolete audit and project docs 2026-06-26 18:24:40 +08:00
xiaoxia 9255a3af05 chore: remove obsolete audit and project docs 2026-06-26 18:24:39 +08:00
xiaoxia fc72ff4a47 chore: remove obsolete audit and project docs 2026-06-26 18:24:39 +08:00
xiaoxia aaf0096ac6 chore: remove obsolete audit and project docs 2026-06-26 18:24:39 +08:00
xiaoxia 1bb2a83214 chore: remove obsolete audit and project docs 2026-06-26 18:24:38 +08:00
xiaoxia a87b1ae3a1 chore: remove obsolete audit and project docs 2026-06-26 18:24:38 +08:00
xiaoxia e66ac2bd6c chore: remove obsolete audit and project docs 2026-06-26 18:24:37 +08:00
xiaoxia 353868904a chore: remove obsolete audit and project docs 2026-06-26 18:24:37 +08:00
xiaoxia 0e9c771915 chore: remove obsolete audit and project docs 2026-06-26 18:24:36 +08:00
xiaoxia 372c3861c9 chore: remove obsolete audit and project docs 2026-06-26 18:24:36 +08:00
xiaoxia 47871d79dc chore: remove obsolete audit and project docs 2026-06-26 18:24:35 +08:00
xiaoxia 2c53e644bc chore: remove obsolete audit and project docs 2026-06-26 18:24:35 +08:00
xiaoxia 46b0d4beea chore: remove obsolete files 2026-06-26 18:24:23 +08:00
xiaoxia bf9da32595 chore: remove obsolete files 2026-06-26 18:24:22 +08:00
xiaoxia 3204848bb5 chore: remove obsolete phase progress reports 2026-06-26 18:24:22 +08:00
xiaoxia 0305509764 chore: remove obsolete phase progress reports 2026-06-26 18:24:21 +08:00
xiaoxia 581c643684 chore: remove obsolete phase progress reports 2026-06-26 18:24:21 +08:00
xiaoxia dc4ce4006a chore: remove obsolete phase progress reports 2026-06-26 18:24:20 +08:00
xiaoxia 94bec9a860 chore: remove obsolete phase progress reports 2026-06-26 18:24:20 +08:00
xiaoxia fda807086d chore: remove obsolete phase progress reports 2026-06-26 18:24:19 +08:00
xiaoxia 701f5ebc23 chore: remove obsolete phase progress reports 2026-06-26 18:24:19 +08:00
xiaoxia 15882bd019 chore: remove obsolete phase progress reports 2026-06-26 18:24:19 +08:00
xiaoxia bafe88a750 chore: remove obsolete phase progress reports 2026-06-26 18:24:18 +08:00
xiaoxia 23471034c7 chore: remove obsolete phase progress reports 2026-06-26 18:24:18 +08:00
xiaoxia 72936c944d chore: remove temporary script 2026-06-26 18:24:06 +08:00
xiaoxia 638ad99a4d chore: remove temporary script 2026-06-26 18:24:06 +08:00
xiaoxia aa700fb5e8 chore: remove temporary script 2026-06-26 18:24:06 +08:00
xiaoxia ae2c5500be chore: remove temporary script 2026-06-26 18:24:05 +08:00
xiaoxia 96b75b8db5 chore: remove temporary script 2026-06-26 18:24:05 +08:00
xiaoxia 766a06ede6 chore: remove temporary script 2026-06-26 18:24:05 +08:00
xiaoxia 4803273419 chore: remove temporary script 2026-06-26 18:24:04 +08:00
xiaoxia 5da250de14 chore: remove temporary script 2026-06-26 18:24:04 +08:00
xiaoxia 6d9677087e chore: remove temporary script 2026-06-26 18:24:04 +08:00
xiaoxia 42d5ce34b9 chore: remove temporary script 2026-06-26 18:24:03 +08:00
xiaoxia f6b261e194 chore: remove temporary script 2026-06-26 18:24:03 +08:00
xiaoxia 08c73b00ef chore: remove temporary script 2026-06-26 18:24:03 +08:00
xiaoxia 6bea2f38ff chore: remove temporary script 2026-06-26 18:24:02 +08:00
xiaoxia e1ba142cb5 chore: remove temporary script 2026-06-26 18:24:02 +08:00
xiaoxia 0e86857e0d chore: remove temporary script 2026-06-26 18:24:02 +08:00
xiaoxia d79561d266 chore: remove temporary script 2026-06-26 18:24:01 +08:00
xiaoxia 4c86944c7a chore: remove temporary script 2026-06-26 18:24:01 +08:00
xiaoxia 6e73d37857 chore: remove temporary script 2026-06-26 18:24:01 +08:00
xiaoxia 13113f50c5 Merge pull request 'fix(p1): 修复 4 个 P1 技术债务问题' (#11) from fix/p1-technical-debt into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
2026-06-26 18:13:41 +08:00
Coze Agent 7fa327aa27 fix(p1): resolve 4 P1 technical debt issues
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
- P1-1: CORS configuration security - use DEBUG mode to differentiate
  production vs development CORS settings
- P1-2: Implement token refresh logic in RefreshTokenUseCase
  - Add get_session_by_refresh_token to SessionStore
  - Verify session validity and expiry
  - Generate new access token on refresh
- P1-3: Fix database connection leak in worker ingest task
  - Add proper try-except-finally block
  - Ensure db.close() is always called
- P1-4: Implement real media metadata extraction
  - Use ffprobe for video metadata
  - Use Pillow for image metadata
  - Return empty dict on failure (no mock data)
2026-06-26 18:11:07 +08:00
xiaoxia 53055afa43 Merge pull request 'feat(ui): V21 design system overhaul' (#9) from feature/v21-design-system into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
2026-06-26 18:09:36 +08:00
xiaoxia f34f654a84 Merge pull request 'fix(security): P0 - JWT密钥强制环境变量 + 日志敏感信息过滤' (#8) from fix/security-p0-jwt-logging into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
2026-06-26 18:09:24 +08:00
xiaoxia a717dd17c8 Merge pull request 'ci: enable auto-deploy for feature branches' (#10) from ci/enable-feature-deploy into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
2026-06-26 18:09:08 +08:00
xiaoxia a0f8540a09 ci: enable auto-deploy for feature branches
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
2026-06-26 18:01:30 +08:00
xiaoxia a4f721528e fix: resolve CI check failures - format code and fix line length issues
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 1m0s
2026-06-26 18:01:01 +08:00
xiaoxia 3d29dc0c83 fix: resolve CI check failures - format code and fix line length issues
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
2026-06-26 18:00:53 +08:00
xiaoxia 071f0e990e fix: resolve CI check failures - format code and add nosec comment
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
2026-06-26 18:00:37 +08:00
xiaoxia 950f63bb69 fix: resolve CI check failures - format code and add nosec comment
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 1m0s
2026-06-26 18:00:11 +08:00
Subagent cae16d547e feat(ui): V21 design system overhaul
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m0s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m0s
Tests / test (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 1m0s
2026-06-26 17:48:28 +08:00
xiaoxia e58293a51f fix(security): P0 - 日志过滤敏感参数(token/password/secret等)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m0s
Tests / test (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 1m0s
2026-06-26 17:43:35 +08:00
xiaoxia a12d5d7b12 fix(security): P0 - JWTConfig强制注入密钥,禁止无参数实例化 2026-06-26 17:43:35 +08:00
xiaoxia 7a4bbbe512 fix(security): P0 - JWT密钥强制环境变量,拒绝默认值 2026-06-26 17:43:35 +08:00
xiaoxia a31145950f Merge pull request 'feat(web): complete V21 UI redesign' (#6) from develop into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 24s
Tests / test (push) Successful in 15s
Tests / lint (push) Successful in 8s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 29s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
2026-06-25 15:00:48 +08:00
xiaoxia 06857d0a0d test(web): target generation approval pill
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 26s
Tests / test (push) Successful in 17s
Tests / lint (push) Successful in 10s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 10m16s
Deploy / Deploy Production (push) Successful in 23s
Deploy / Production Browser E2E (push) Successful in 36s
Merge generation approval pill hotfix.
2026-06-25 13:00:46 +08:00
xiaoxia 2f9a1a42f5 test(web): scope generation approval assertion
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 26s
Tests / test (push) Successful in 16s
Tests / lint (push) Successful in 11s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 9m43s
Deploy / Deploy Production (push) Successful in 23s
Deploy / Production Browser E2E (push) Failing after 36s
Merge production E2E assertion hotfix.
2026-06-25 12:45:20 +08:00
xiaoxia b914f55b7d fix(ci): pass production API base to E2E
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 23s
Tests / test (push) Successful in 17s
Tests / lint (push) Successful in 10s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 9m40s
Deploy / Deploy Production (push) Successful in 23s
Deploy / Production Browser E2E (push) Failing after 32s
Merge production E2E API base hotfix.
2026-06-25 12:29:13 +08:00
xiaoxia 31c0f23297 merge: release V21 UI and core E2E hardening
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 26s
Tests / test (push) Successful in 18s
Tests / lint (push) Successful in 10s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 9m52s
Deploy / Deploy Production (push) Successful in 24s
Deploy / Production Browser E2E (push) Failing after 58s
Merge develop into main through protected Gitea PR flow.
2026-06-25 12:06:20 +08:00