Commit Graph
219 Commits
Author SHA1 Message Date
lewis_yan a90809c3fc refactor(storage): rename MinIO to RustFS throughout backend
- Rename minio_storage.py to rustfs_storage.py
- Update all MINIO_* settings to RUSTFS_* in env.py
- Update file_list.py to import rustfs_upload_file
- Update test files and factory to use rustfs engine
2026-04-03 17:12:04 +08:00
lewis_yan 1959f83d77 chore(deps): add pytest-django and factory_boy for testing 2026-04-03 16:53:25 +08:00
lewis_yan 5d0274c519 test: add MinIO file upload integration tests
- Add FileListFactory for test data creation
- Add TestFileUpload with 4 test cases:
  - test_upload_file_success (requires MinIO running)
  - test_upload_file_unauthenticated (passes without MinIO)
  - test_upload_image_success (requires MinIO running)
  - test_upload_without_file (passes without MinIO)
- Fix admin_user/normal_user fixtures to use factory_boy
  sequence to avoid username collision
2026-04-03 16:52:56 +08:00
lewis_yan 7885d7a759 chore(deps): add boto3, remove unused oss2 and cos-python-sdk 2026-04-03 16:42:52 +08:00
lewis_yan 08a904ef2a refactor(storage): remove aliyunoss and tencentcos storage engines 2026-04-03 16:42:14 +08:00
lewis_yan 076c3a5a43 feat(storage): simplify FileSerializer.create to use MinIO only 2026-04-03 16:41:50 +08:00
lewis_yan c337707e05 feat(storage): add MinIO storage utility (boto3-based) 2026-04-03 16:41:04 +08:00
lewis_yan 671f9f4478 feat(storage): add MinIO configuration to env.py 2026-04-03 16:40:12 +08:00
lewis c50d7219bd Merge branch 'sync/pnpm-fix' into 'main'
chore: update pnpm-lock.yaml for husky and lint-staged

See merge request pisteams/pis!46
2026-04-03 06:12:37 +00:00
lewis_yan a4ecd7cade chore: update pnpm-lock.yaml for husky and lint-staged 2026-04-03 14:11:54 +08:00
lewis 82b29209c0 Merge branch 'chore/exclude-superpowers-from-repo' into 'main'
chore: update .gitignore and CLAUDE.md to exclude superpowers files

See merge request pisteams/pis!42
2026-04-03 05:58:15 +00:00
lewis_yan abadbdc4ab Merge docs/gitlab-mr-template into chore/exclude-superpowers-from-repo 2026-04-03 13:57:19 +08:00
lewis_yan 6dcd44ba42 docs: add Docs option to MR template change type 2026-04-03 13:56:10 +08:00
lewis_yan 69097e48b8 chore: update .gitignore and CLAUDE.md to exclude superpowers files
- Add .claude/ directory to .gitignore
- Add docs/scripts-documentation.md to .gitignore
- Add git注意事项 section to CLAUDE.md
- Remove tracked superpowers/docs files from git index
2026-04-03 13:53:19 +08:00
lewis 75a9cba3fa Merge branch 'fix/pnpm-lockfile-update' into 'main'
fix: pnpm-lockfile-update

See merge request pisteams/pis!41
2026-04-03 05:49:01 +00:00
lewis e06cf6e1b7 Merge branch 'docs/gitlab-mr-template' into 'main'
docs: add GitLab MR template

See merge request pisteams/pis!40
2026-04-03 05:46:45 +00:00
lewis_yan b21a114e97 docs: add GitLab MR template 2026-04-03 13:45:26 +08:00
lewis_yan 6c29a614b3 docs: add GitLab MR template 2026-04-03 13:40:21 +08:00
lewis_yan 03701c5d49 docs: add GitLab MR template 2026-04-03 13:39:52 +08:00
lewis 3f6dafe855 Merge branch 'fix/pnpm-lockfile-update' into 'main'
fix: update pnpm-lock.yaml for CI build + dashboard type updates

See merge request pisteams/pis!39
2026-04-03 05:39:08 +00:00
lewis_yan 6031375607 feat(dashboard): add quote_timely_rate and status fields to store types 2026-04-03 13:34:44 +08:00
lewis_yan 09e4838c66 chore(deps): update pnpm-lock.yaml for husky and lint-staged 2026-04-03 13:34:42 +08:00
lewis ebd32e3bc8 Merge branch 'develop' into 'develop'
更新邮件模板;修改供应商用户信息模型定义;修改部分信息编辑模式下可修改信息代码的bug;调整比价前端效果

See merge request pisteams/pis!37
2026-04-03 02:40:25 +00:00
lewis 630b3b0df6 Merge branch 'develop' into 'main'
feat: 建立 Git 协作规范 (Git Flow + Hooks + PR模板)

See merge request pisteams/pis!38
2026-04-03 02:33:26 +00:00
nebula_chen af9406db3a Merge branch 'develop' into 'develop'
# Conflicts:
#   backend/apps/pisadmin/basicinfo/views/email_template.py
2026-04-03 02:23:36 +00:00
nebula_chen 3c50ad5d40 修改供应商用户信息表序列化器;修改操作日志写入逻辑;新增前端操作日志在询价单发布后显示供应商报价一览;调整报价单详情页成本结构前端设计 2026-04-03 10:20:32 +08:00
lewis_yan 5273e787f8 chore(dashboard): remove debug print statements 2026-04-03 09:44:32 +08:00
lewis_yan 720cf60d97 fix(dashboard): superadmin sees all supplier quotes, KPI及时的率, and UI polish
- Fix superadmin supplier dashboard: show all quotes instead of filtering by username
- Fix Count('id') -> Count('autoid') in trend queries
- Add quote_timely_rate, on_time_quotes, overdue_quotes to supplier KPI
- Add status field to supplier pending quotes
- Buyer chart now uses real trend data from backend
- Supplier quote list height matches buyer task list
- Remove KPI card top color bars
- Enlarge KPI card text (title: 18px, value: 52px) and center align
2026-04-03 09:43:28 +08:00
lewis_yan 57236e1633 docs: add PR template for standardized pull requests
- Add change description, related issues
- Add change type checklist (Feature/Bugfix/Hotfix/Refactor)
- Add self-check checklist for pre-commit compliance
- Add reviewer notes section
2026-04-03 09:22:44 +08:00
lewis_yan 16871c3333 feat(git): add husky + lint-staged for frontend
- Add .husky/pre-commit hook running lint-staged
- Add .lintstagedrc.json for staged file linting
- Add prepare script for husky setup on npm install
2026-04-03 09:22:24 +08:00
lewis_yan 921a1e2179 feat(git): add pre-commit with ruff for backend
- Add .pre-commit-config.yaml with ruff (lint + format)
- Add pre-commit and ruff to requirements.txt
- Ruff replaces flake8 + black + isort (10-100x faster)
2026-04-03 09:19:32 +08:00
lewis_yan 68eb2687c9 docs: add Git collaboration implementation plan
Plan for:
- Backend pre-commit with ruff (.pre-commit-config.yaml)
- Frontend husky + lint-staged setup
- PR template (.github/PULL_REQUEST_TEMPLATE.md)
2026-04-03 09:07:07 +08:00
lewis_yan 89de7b9da5 docs: update Git collaboration design - remove team size reference 2026-04-03 09:02:16 +08:00
lewis_yan 114720e557 docs: add Git collaboration design specification
Establish standard Git workflow for 6-person team:
- Standard Git Flow branch model
- PR/MR template and review process
- Code review etiquette (1-approver rule)
- Git Hooks: pre-commit for backend, husky for frontend
- Jenkins CI/CD integration
- Branch protection rules
2026-04-03 08:58:58 +08:00
nebula_chen 67b6cae723 更新邮件模板;修改供应商用户信息模型定义;修改部分信息编辑模式下可修改信息代码的bug;调整比价前端效果 2026-04-02 20:12:32 +08:00
lewis_yan 8d649ba43e docs: update AI Agent design for AVC - use domestic LLM
Changes:
- Company name: AVC internal Agent development
- Model: Switch to domestic Chinese models (Qwen/ChatGLM)
2026-04-02 19:41:37 +08:00
lewis_yan 16c25dae4d docs: add AI Agent design specification
Enterprise internal AI Agent design including:
- LangChain/LangGraph based multi-agent architecture
- Hybrid router (rule + small model intent classification)
- Tools layer design (SQL Server, API, file parsing, RAG, etc.)
- Storage layer (Milvus, SQL Server, Redis)
- Deployment architecture
2026-04-02 19:36:36 +08:00
lewis_yan 5c8317f490 feat(dashboard): highlight task count in red on dashboard section titles
Show pending task count in parentheses with red highlight on both buyer
and supplier dashboard section headers for better visibility.
2026-04-02 19:18:25 +08:00
lewis_yan 2134f6573f refactor(dashboard): unify buyer and supplier dashboards with right sidebar
- Replace notification card with home image and quick navigation
- Add welcome header text to both dashboards
- Fix dashboard API URL to use /api prefix consistently
- Adjust task table to flex-grow and fill available height
- Reduce quick nav icon and padding sizes
- Update responsive breakpoints
2026-04-02 18:31:42 +08:00
lewis_yan 65078bce29 feat(login): update page titles to distinguish buyer and supplier portals
- Change buyer login title to "采购询报价系统 - 采购端"
- Change supplier login title to "采购询报价系统 - 供应商端"
2026-04-02 17:34:32 +08:00
lewis_yan 279f7a052b fix(pisadmin): remove duplicate /api prefix in dashboard API URL
VITE_API_URL in production already includes /api, so the hardcoded
/api in the URL was causing double /api/ path (api/api/...).
2026-04-02 14:31:09 +08:00
lewis_yan 5e1c5d793c fix(scripts): improve Windows PowerShell compatibility
- Add note recommending Git Bash over PowerShell for best compatibility
- start-celery.ps1: use cmd /c approach with --pool solo to avoid
  billiard multiprocessing issues on Windows; improve process tracking
- Remove Set-Location from scripts as it's unnecessary
2026-04-02 14:28:41 +08:00
lewis_yan 7a8b4ff7d5 docs: add Windows Celery PowerShell compatibility notes
Document known issues with Celery on Windows PowerShell (billiard
multiprocessing incompatibility) and recommend using Git Bash instead.
2026-04-02 14:28:37 +08:00
lewis_yan 2e861cd0cb fix(infra): update REDIS_HOST to deployment server
Change REDIS_HOST from local address to deployment server address.
2026-04-02 14:28:33 +08:00
lewis_yan 4fe91758e4 chore: update favicon.ico 2026-04-02 13:55:27 +08:00
lewis_yan eb7c97f807 chore(login): remove debug console.log statements from account.vue 2026-04-02 11:33:04 +08:00
lewis_yan ab37702ee4 feat(celery): register check-quote-deadline-expired beat schedule 2026-04-02 10:45:41 +08:00
lewis_yan b508242456 feat(celery): add check_quote_deadline_expired periodic task 2026-04-02 10:45:11 +08:00
lewis_yan 03edefa636 feat(email): register TEMPLATE_QUOTE_DEADLINE_EXPIRED template 2026-04-02 10:44:24 +08:00
lewis_yan 6d2723b220 feat(email): add quote deadline expired notification templates 2026-04-02 10:43:46 +08:00