|
|
ce9bde35eb
|
fix(admin): 修复首次进入系统后点击任意导航被拉回 dashboard
CI / check (pull_request) Failing after 2m14s
根因:RouteKeeper 保活缓存了首页 index 节点,DefaultRoute 中的声明式
<Navigate> 会随缓存节点在后续路由变化时反复触发 replace,导致所有导航
被强制拉回落地页(dashboard),刷新后因不再经过 / 而恢复正常。
修复:DefaultRoute 改为 effect 导航,仅在确实处于 / 且已算出落地页时
跳转一次;navigate 通过 ref 持有避免 effect 空转。新增集成测试覆盖
「首次进入 / → 跳转一次 → 后续导航不被劫持 → 回到 / 仍能重定向」。
|
2026-08-10 09:42:46 +08:00 |
|
|
|
d53bbd8176
|
refactor: 前端应用骨架迁移至 zustand 并统一路由权限壳
|
2026-08-05 17:10:30 +08:00 |
|
|
|
f07ffdc64c
|
refactor: 前端登录/权限/界面状态迁移至 zustand
|
2026-08-04 14:41:27 +08:00 |
|
|
|
c98d37307e
|
fix: align permission-gated UI actions
|
2026-07-23 12:34:37 +08:00 |
|
|
|
375c7ec60b
|
feat: refine admin forms, attendance and finance workflows
Squash merge PR #23.
Included changes:
- complete occupancy check-in required fields/default payload
- improve responsive admin management pages
- fix attendance edge cases and attendance period config
- refine wallet/finance-related workflow handling
Checks:
- npm run typecheck -w apps/admin
- npm run typecheck -w apps/server
|
2026-07-18 12:54:10 +00:00 |
|
|
|
cc4f4dae4e
|
fix: audit remediation — SSE user scoping, FK transactional safety, UI error handling
- H4: scoped SSE import progress to exact userId match; non-HTTP events excluded from all subscribers
- H2: moved PRAGMA foreign_key_check inside SQLite transaction before COMMIT; violations rollback preserving old tables
- M1: removed dead axios-style error branch from extractErrorMessage (interceptor already unwraps)
- M2: split handleSave try/catch — save errors vs reload errors shown distinctly
- M3: added provider field validation before AI config test request
- Added SSE scoping regression tests (import service + controller)
- Added FK check failure rollback test (database-migrations.spec)
- Updated controller spec expectations for userId parameter
Co-authored-by: Code Review <branch-review>
|
2026-07-12 22:59:03 +08:00 |
|
|
|
b6fca99390
|
fix: align permission navigation and page access
|
2026-07-11 14:55:49 +08:00 |
|