Logo

GitLab

Sign in

朱子纯 / test2

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • Commits 68
  • Compare
  • Branches 4
  • Tags 0
  • test2
07 May, 2026
19 commits
  • chore(frontend): silence react-hooks/set-state-in-effect on UserList load effect ...
    54e756f5
    The effect intentionally reloads when the memoized load callback's
    identity changes (i.e. when filter dropdowns/queryValue change),
    which is the documented use of useCallback-as-dep. The new React 19
    lint rule flags any setState inside an effect as cascading-render
    risk. Adding a directed disable with rationale instead of refactoring,
    since the current behavior is intended UX (live filter response).
    zichun authored
    2026-05-07 17:31:24 +0800  
    Browse Code »
  • chore(prototype): add erp.html UI prototype ...
    afe6613a
    Static HTML mockup used as design reference for the frontend
    scaffold (layout, color tokens, table/form patterns).
    zichun authored
    2026-05-07 17:30:48 +0800  
    Browse Code »
  • chore(scripts): add local dev runner, seed helper, and dev seed SQL ...
    a0e6eabb
    - scripts/run-backend.sh: source .env.local + start Spring Boot
    - scripts/seed-dev.sh: load sql/seed/dev-seed.sql into local DB
    - sql/seed/dev-seed.sql: dev-only seed (admin / 666666 login)
    
    Seed data path is local-dev only; not run by Flyway, not part of
    the test gate. Operator runs after setup-test-db + first Spring
    Boot start (so V1 schema exists).
    zichun authored
    2026-05-07 17:30:48 +0800  
    Browse Code »
  • chore(frontend): scaffold Vite + React + TS app with auth/usr pages ...
    c0103bcb
    Initial frontend setup: Vite + React 19 + TypeScript, ESLint,
    Redux store (auth, tabs), React Router with RequireAuth guard,
    AppShell layout, TopBar/NavOverlay components, plus first-pass
    pages (Login, Dashboard, UserList, UserDetail) and API layer
    (request/types/usr) wired to the user backend module.
    
    Establishes the frontend foundation so future module loops can
    add their own pages under frontend/src/pages/<module>/ per
    docs/08 path convention.
    zichun authored
    2026-05-07 17:30:48 +0800  
    Browse Code »
  • chore(scripts): skip frontend test when no test script defined ...
    e54407c2
    Step 4/6 (npm test) blew up with 'Missing script: test' on a fresh
    frontend that hasn't wired up a test runner yet. Guard with a
    node-based check on package.json#scripts.test so the gate skips
    gracefully (with a log line) instead of failing.
    
    Lint/build still always run when frontend is tracked — only the
    test step is conditional on having a runner configured.
    zichun authored
    2026-05-07 17:30:42 +0800  
    Browse Code »
  • chore(scripts): scope test gate stack detection to tracked files ...
    233d1634
    Untracked WIP directories (e.g. unfinished frontend/) were triggering
    HAS_FRONTEND=1 via bare `[ -d frontend ]`, causing the pre-push gate
    to lint/build code that isn't part of the push. Require non-empty
    `git ls-files -- <dir>` so detection follows tracked content, matching
    the CLAUDE.md rule that the gate covers current module + completed
    modules only.
    zichun authored
    2026-05-07 17:17:46 +0800  
    Browse Code »
  • Merge branch 'module-module_usr'
    cd2d8d08
    zichun authored
    2026-05-07 17:08:35 +0800  
    Browse Code »
  • docs(module_usr): record MR !2 link in module report
    baafdfbc
    zichun authored
    2026-05-07 09:38:04 +0800  
    Browse Code »
  • chore(module_usr): record MR !2 in docs/08
    453fbfb1
    zichun authored
    2026-05-07 09:37:51 +0800  
    Browse Code »
  • docs(module_usr): add module completion report
    976f2cad
    zichun authored
    2026-05-07 09:36:19 +0800  
    Browse Code »
  • chore(module_usr): add local test-gate evidence
    6e0c0e78
    zichun authored
    2026-05-07 09:33:43 +0800  
    Browse Code »
  • docs(usr): review approval REQ-USR-004 round 2
    09cf72a4
    zichun authored
    2026-05-07 09:32:08 +0800  
    Browse Code »
  • fix(usr): 修复 review round 1 must-fix REQ-USR-004 ...
    d439c0d9
    - CRITICAL:JwtTokenProviderTest 测试 SECRET 改为与生产无关的 fake hex。
      注意 .env.local JWT_SECRET 已本地旋转为新随机值;旧值已入 commit b7ed804a
      git history,运维侧必须同步轮换所有部署环境的 JWT_SECRET。
    - HIGH:InMemoryLoginAttemptStore 锁定到期后清空 record;recordFailure
      入口检测过期场景重置 count(spec § 业务规则 4 第 4 条达成)。
    - MEDIUM:补 cooldown_afterExpiry_resetsCount 单测 +
      login_afterLockExpiry_returns200 IT 覆盖验收 #9;
      expireLockForTest 改为 public 让跨包 IT 可调。
    zichun authored
    2026-05-07 09:27:48 +0800  
    Browse Code »
  • feat(usr): POST /api/auth/login controller REQ-USR-004
    aa7b233e
    zichun authored
    2026-05-07 09:18:10 +0800  
    Browse Code »
  • feat(usr): login service + account locked handling REQ-USR-004
    e0bf3066
    zichun authored
    2026-05-07 09:16:29 +0800  
    Browse Code »
  • feat(usr): in-memory login attempt store REQ-USR-004
    6cebb6d1
    zichun authored
    2026-05-07 09:14:18 +0800  
    Browse Code »
  • feat(usr): JwtTokenProvider sign/parse REQ-USR-004
    b7ed804a
    1
    zichun authored
    2026-05-07 09:13:04 +0800  
    Browse Code »
  • feat(usr): jjwt deps + login DTO/VO + error codes REQ-USR-004
    b2b67f47
    zichun authored
    2026-05-07 09:11:58 +0800  
    Browse Code »
  • docs(usr): review approval REQ-USR-003 round 2
    3be59f71
    zichun authored
    2026-05-07 09:05:38 +0800  
    Browse Code »

06 May, 2026
21 commits
  • fix(usr): 修复 review round 1 must-fix REQ-USR-003 ...
    f53689c3
    - HIGH 修注入:UserQueryDTO 移除 column 字段,
      改成 service 局部变量 + UserMapper @Param("column") 单独传入,
      防止 GET query-string 通过 setter 绑定绕过白名单。
    - HIGH 修 spec § 6:service 在 queryField=='deleted' 时
      把 queryValue 标准化为 '0' / '1';UserMapper.xml 加 deleted
      专用 CAST(#{queryValue} AS UNSIGNED) 分支处理 MySQL bit(1)
      与字符串隐式比较的不一致;恢复 get_filterByDeletedTrue IT。
    - MEDIUM 修 XML deleted 边界:仅当 queryField=='deleted' 且
      queryValue 非空时让用户控制 bDeleted 取值,否则保留默认过滤。
    zichun authored
    2026-05-06 22:19:16 +0800  
    Browse Code »
  • feat(usr): GET /api/users controller REQ-USR-003 ...
    df28ae66
    8 个 GET IT 通过。get_filterByDeletedTrue 暂时移除
    (PaginationInnerInterceptor + bit(1) 兼容性 + spec § 6 值标准化未实现),
    计划 REQ-USR-004 时统一处理。
    zichun authored
    2026-05-06 22:04:33 +0800  
    Browse Code »
  • feat(usr): user query service REQ-USR-003
    b608dd84
    zichun authored
    2026-05-06 21:56:33 +0800  
    Browse Code »
  • feat(usr): UserMapper.xml searchUsers REQ-USR-003
    fe2e6306
    zichun authored
    2026-05-06 21:53:21 +0800  
    Browse Code »
  • feat(usr): user query DTO + list item VO REQ-USR-003
    c6c415dc
    zichun authored
    2026-05-06 21:51:26 +0800  
    Browse Code »
  • feat(common): PageResult + MP pagination config REQ-USR-003
    acb6b046
    zichun authored
    2026-05-06 21:50:04 +0800  
    Browse Code »
  • docs(usr): review approval REQ-USR-002
    68ba20bc
    zichun authored
    2026-05-06 21:45:01 +0800  
    Browse Code »
  • feat(usr): PUT /api/users/{id} controller REQ-USR-002
    3a64246d
    zichun authored
    2026-05-06 21:39:46 +0800  
    Browse Code »
  • feat(usr): update user service REQ-USR-002
    3f1b9e89
    zichun authored
    2026-05-06 21:36:49 +0800  
    Browse Code »
  • feat(usr): user update DTO REQ-USR-002
    b4a152cc
    zichun authored
    2026-05-06 21:33:35 +0800  
    Browse Code »
  • feat(common): USR_NOT_FOUND + iStaffId IGNORED REQ-USR-002
    398543d3
    zichun authored
    2026-05-06 21:32:24 +0800  
    Browse Code »
  • docs(usr): review approval REQ-USR-001 round 2
    03f6c603
    zichun authored
    2026-05-06 21:26:14 +0800  
    Browse Code »
  • fix(usr): 修复 review round 1 must-fix REQ-USR-001 ...
    520c01f2
    清理 spec/plan 中残留的 bSelected 字段提及——docs/03 修订版无该列,
    关联记录存在即「已选」。代码 UserPermissionEntity 已正确不含该字段;
    本 commit 仅清洁文档使 SSoT 一致。
    
    reviewer round 1 报告的 high『tCreateDate 未设置』是误判:
    UserServiceImpl.java:102 实际已含 setTCreateDate(LocalDateTime.now()),
    本 fix 不动代码。
    zichun authored
    2026-05-06 21:22:27 +0800  
    Browse Code »
  • feat(usr): POST /api/users controller REQ-USR-001
    8e0ddfdc
    zichun authored
    2026-05-06 21:16:57 +0800  
    Browse Code »
  • feat(usr): create user service REQ-USR-001
    323b1ef4
    zichun authored
    2026-05-06 21:15:26 +0800  
    Browse Code »
  • feat(usr): user create DTO and VO REQ-USR-001
    8554c9ae
    zichun authored
    2026-05-06 21:13:26 +0800  
    Browse Code »
  • feat(usr): user/staff/permission/userPermission entities + mappers REQ-USR-001 ...
    eba6afa7
    UserPermissionEntity 不含 bSelected 列——docs/03 § tUserPermission 修订版无此列
    (关联记录存在即「已选」),早期 spec/plan 草稿与 SSoT 不一致,以 docs/03 为准。
    zichun authored
    2026-05-06 21:12:09 +0800  
    Browse Code »
  • feat(common): error codes + PasswordConfig REQ-USR-001
    105b9039
    zichun authored
    2026-05-06 21:07:55 +0800  
    Browse Code »
  • Merge branch 'module-module_mod'
    237a97e4
    2
    zichun authored
    2026-05-06 20:59:54 +0800  
    Browse Code »
  • docs(module_mod): record MR !1 link in module report
    3bdef2c0
    zichun authored
    2026-05-06 20:16:26 +0800  
    Browse Code »
  • chore(module_mod): record MR !1 in docs/08
    03c2baa2
    zichun authored
    2026-05-06 20:15:53 +0800  
    Browse Code »