zhangheng
fb3ffe3dfd
refactor: remove unused dead-code exports flagged by react-doctor
...
Low-risk subset only — each verified to have zero external references
(tsc + eslint green); API clients, stores, icons and constants left
untouched.
- libs/util.ts: unexport `is` (still used internally by isNumber)
- components/tree-select/libs/util.ts: drop unused recursive `findLabel`
- app/person/workload/config.ts: drop unused `dimensionOpts`
- components/login/libs/session-cache.ts: drop unused `getCachedSession`
- components/setting/PageSurface.tsx: drop 3 unused layout components
(SettingTableViewport, SettingSectionHeader, SettingFilterStack)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 12:39:27 +08:00
zhangheng
f930432ffe
fix(tree-select): hoist Row to module scope to prevent row remounts
...
The row renderer was defined inside VirtualizedTree, giving it a new
component identity on every parent render — react-window then remounted
every row, destroying row DOM/state. Move Row to module scope and pass
flattened/tree/renderNode through react-window's rowProps instead of the
closure.
Verified at runtime: rows render, expand/collapse and select work, and
selection state survives re-renders, with no console errors.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 11:32:18 +08:00
zhangheng
dbd01ee15b
docs: record react-doctor false positives
...
Log confirmed false positives for server-auth-actions (genAccessToken,
the session-validation endpoint itself) and exhaustive-deps (intentional
minimal-deps effects where adding deps would cause re-render loops) so
future triage skips them.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 11:18:46 +08:00
zhangheng
cf5044e1eb
fix(icons): use valid React DOM props and trim SVG precision
...
- digital.tsx: stop-color -> stopColor (React camelCase SVG attr)
- Icon.tsx: drop invalid iconfont `p-id` attributes
- both: round 4+ decimal path/transform coordinates to 2 decimals
(no visible change; Icon.tsx -22%, digital.tsx -14%)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 11:18:46 +08:00
zhangheng
0908af2e96
chore: remove unused files flagged by react-doctor
...
Deleted modules with no remaining references:
- app/person/dashboard/components/Icon.tsx
- components/label/hooks/useAuth.ts
- components/layout/components/icons/custom.tsx
- components/tree-select/index.tsx
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 11:18:46 +08:00
zhangheng
1aa75ef58e
chore(deps): remove 25 unused dependencies
...
Removed dependencies flagged by react-doctor as unused (verified zero
imports across source): @dnd-kit/*, @ffmpeg/*, @tiptap/*, @mantine/tiptap,
@monaco-editor/react, monaco-editor, mapvgl, libav.js, lucide-react,
classnames, geojson, html-react-parser, js-base64, msgpack-lite, paper,
@tmcw/togeojson, and identity-obj-proxy (dev).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 11:18:46 +08:00
zhangheng
f3a348e036
fix(task): time+download bug
2026-06-02 10:43:54 +08:00
zhangheng
a384897386
fix(table): pagesize
2026-06-01 16:03:39 +08:00
zhangheng
603e4b105f
fix(auth): change mappingList
2026-05-29 20:03:55 +08:00
zhangheng
f2c2a1f2fa
fix(style): theme
2026-05-27 20:15:07 +08:00
zhangheng
477822321b
feat(task): lidar router
2026-05-27 18:15:24 +08:00
zhangheng
8e75a1629f
feat(header): modify_password
2026-05-25 13:42:38 +08:00
zhangheng
5c81a990a6
feat(workload): change header
2026-05-23 17:42:20 +08:00
zhangheng
ba06bb1852
feat(page): size
2026-05-14 19:49:31 +08:00
zhangheng
39dc96320c
fix(workload): display
2026-05-14 17:15:09 +08:00
zhangheng
5c3b45b247
feat(workload): add workload list
2026-05-14 15:12:32 +08:00
zhangheng
781b002a7b
fix(component): treeselect
2026-05-14 14:12:28 +08:00
zhangheng
c6dfd506b3
fix(menu): fix desc
2026-05-11 18:39:34 +08:00
zhangheng
a1565dc18e
fix(daily): fix multiselect
2026-05-11 18:28:26 +08:00
zhangheng
332d6ab5f1
fix(menu): fix menudefault
2026-05-11 17:17:52 +08:00
zhangheng
8e9b9edc41
fix(filter): daterangeinput
2026-05-11 13:35:05 +08:00
zhangheng
d4b5458afc
fix(project): daterange
2026-05-07 16:58:14 +08:00
zhangheng
c0281c0cc5
fix(project): sTATUS_CODE
2026-04-30 14:58:28 +08:00
zhangheng
de6b82d9be
Merge commit 'c4a3de0a84d1bc352376915b41032768b8dcd492' into zh
2026-04-30 11:28:08 +08:00
zhangheng
e7cc4566a0
fix(env): fix
2026-04-30 11:26:18 +08:00
zhangheng
4044d23b48
fix(login): fix logo
2026-04-29 17:19:53 +08:00
zhangheng
93888b3056
feat(header): add logo
2026-04-29 17:04:15 +08:00
zhangheng
8372fb4a64
perf(style): use skill
2026-04-29 16:27:07 +08:00
刘耀勇
c4a3de0a84
Merge branch 'dev' into 'main'
...
fix(common): add lidar
See merge request prism/lable/labelmain!17
2026-04-28 18:29:06 +08:00
zhangheng
a879b404b6
fix(common): add lidar
2026-04-28 18:08:20 +08:00
zhangheng
9d9bf4ff7f
perf(style): codex-skills/cowa-admin-list-ui
2026-04-28 14:36:36 +08:00
刘耀勇
9e1d7c8b86
Merge branch 'zh' into 'main'
...
fix(table): pagesize
See merge request prism/lable/labelmain!16
2026-04-24 19:46:32 +08:00
zhangheng
2e33b6fd7e
fix(table): pagesize
2026-04-24 18:10:01 +08:00
刘耀勇
150fff08ef
Merge branch 'zh' into 'main'
...
Zh
See merge request prism/lable/labelmain!15
2026-04-23 18:07:55 +08:00
zhangheng
6e20d1996a
feat(table): sum
2026-04-23 17:44:09 +08:00
zhangheng
5b38f684c3
perf(session): ttl
2026-04-23 14:47:14 +08:00
zhangheng
cd1bad6da9
fix(table): add daterange
2026-04-23 10:35:33 +08:00
zhangheng
81c9f1d165
fix(header): fix userIcon
2026-04-22 16:18:26 +08:00
zhangheng
4311cd67eb
fix(table): fix table display
2026-04-22 14:06:20 +08:00
刘耀勇
6acc8b41ab
Merge branch 'zh' into 'main'
...
fix(eslint): fix
See merge request prism/lable/labelmain!14
2026-04-20 20:37:39 +08:00
zhangheng
1211b79dc3
fix(eslint): fix
2026-04-20 20:31:32 +08:00
刘耀勇
bc039fda3e
Merge branch 'zh' into 'main'
...
fix(daily): report
See merge request prism/lable/labelmain!13
2026-04-20 20:26:51 +08:00
zhangheng
a4ccdc5589
fix(daily): report
2026-04-20 16:51:59 +08:00
刘耀勇
1b74c23dac
Merge branch 'zh' into 'main'
...
fix(report): table filters
See merge request prism/lable/labelmain!12
2026-04-16 20:28:42 +08:00
zhangheng
02efe5023d
fix(report): table filters
2026-04-16 15:13:10 +08:00
刘耀勇
2b53e70116
Merge branch 'zh' into 'main'
...
fix(common): prod hide lidar
See merge request prism/lable/labelmain!11
2026-04-15 18:39:31 +08:00
zhangheng
c7980e2d17
fix(common): prod hide lidar
2026-04-15 17:09:49 +08:00
刘耀勇
0ca274bc50
Merge branch 'zh' into 'main'
...
Zh
See merge request prism/lable/labelmain!10
2026-04-14 18:37:55 +08:00
zhangheng
2edc1f6b73
fix(ones): bug
2026-04-14 17:14:43 +08:00
zhangheng
86a4955c38
fix(daily): fix style
2026-04-14 16:10:13 +08:00