name: review-and-commit
Review the exact change set before creating one intentional, traceable commit. Treat invocation with an explicit commit request as authorization to stage and commit only the relevant local changes, never to push.
This is a multi-product front-end monorepo (uni-app mobile/tablet + desktop Vue). Before reviewing, read AGENTS.md and applicable .cursor/rules/ files.
Products (use as commit scope when clear): hdApp, ghsApp, mallApp, hdPad, ghsPad, hd, ghs.
Each product is independent — do not mix unrelated product changes in one commit unless the user intended a cross-product change.
AGENTS.md and follow project-specific validation and architecture rules.git status --short, staged and unstaged diffs, diff statistics, and recent commit style.git diff omits their contents. List and read every relevant untracked file.git add -A when the worktree contains unrelated files.git diff --cached. If output is truncated, inspect it per file or in chunks until every staged line is reviewed. Re-run git diff --cached --check.git show plus git status --short. Never push, amend, reset, or discard changes unless explicitly requested.Apply checks relevant to the changed files:
<view>, <text>, <image> — not HTML tags (<div>, <span>, etc.).uni.request, uni.navigateTo) — not Web-only APIs (window, document, localStorage).<script setup> unless the target project already uses it.onLoad, onShow, …) vs app (onLaunch, …) used correctly.upx; avoid gap in flex layouts — use margin instead (see .cursor/rules/style-compatibility.mdc).#ifdef MP-WEIXIN, #ifdef APP-PLUS, #ifdef H5) where platform behavior differs.config.js, ext.json, ext-production.json, manifest.json, pages.json — confirm no secrets, no accidental dev-only values destined for production.pages.json route/subPackage entries consistent with new or moved pages.change.bat, ext.json vs ext-production.json) not committed in a broken intermediate state.src/api/** (uni-app) or src/service/** (desktop Vue) match expected request/response shape..cursor/rules/chinese-code-comments.mdc.console.log left in production paths unless intentional.Run checks proportional to the change — do not run unrelated broad fixes.
| Change type | Suggested checks |
|---|---|
.vue / .js / .ts edits |
read_lints on changed files; git diff --check |
pages.json / routing |
Verify paths exist; spot-check referenced page files |
| Config files | Manual review for secrets and environment correctness |
| Dependency / build config | Targeted install or syntax check only if changed |
Do not automatically run npm run build:mp-weixin — the user normally keeps dev/build running. Run build only when explicitly requested or when a specific validation need is identified.
Distinguish static/local validation from end-to-end verification. Do not claim tests or builds passed unless they were run successfully.
Use Conventional Commits:
<type>(<scope>): <concise purpose>
- <key intent or behavior change>
- <key intent or behavior change>
- API: <front-end request/response contract changes or none>
- Config: <config.js, ext.json, manifest.json, pages.json changes or none>
- Breaking Changes: <details or none>
Choose a precise type: feat, fix, refactor, perf, style, test, docs, build, ci, or chore.
hdApp, ghsApp, …) or functional area (order, auth).update, fix, or changes alone.none / 无 when an explicit audit trail is useful.feat(hdApp): 订单列表支持按配送日期筛选
- 新增日期选择器与列表查询参数 deliveryDate
- 空态与加载态与现有列表页保持一致
- API: order/list 增加 deliveryDate 可选参数
- Config: none
- Breaking Changes: none
fix(ghsApp): 修复 APP 端 flex 间距不生效
- 将 gap 替换为 margin-top 并处理首项归零
- API: none
- Config: none
- Breaking Changes: none
Report: