Commit Graph

5 Commits

Author SHA1 Message Date
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
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
781b002a7b fix(component): treeselect 2026-05-14 14:12:28 +08:00
zhangheng
a1565dc18e fix(daily): fix multiselect 2026-05-11 18:28:26 +08:00