Naiyuan Qing
a82431a3d7
chore: react-doctor cleanup — button types, useContext→use(), toSorted, error fixes
- Add explicit type="button" to 61 <button> elements missing the attribute
- Replace useContext() with React 19 use() across 16 context consumers
- Replace [...arr].sort() with arr.toSorted() in 12 web/desktop files
(mobile excluded — Hermes lacks toSorted support)
- Fix rules-of-hooks violation: useSidebar try/catch → useSidebarSafe null check
- Fix nested component definition: useMemo wrapping HeaderRight → useCallback
- Fix missing ARIA: add aria-expanded + aria-controls to combobox in create-squad
React Doctor score: 23 → 30. No behavioral changes, no business logic modified.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 14:45:29 +08:00
..
2026-05-26 17:00:01 +08:00
2026-05-09 13:12:00 +08:00
2026-05-26 14:59:38 +08:00
2026-05-06 16:40:21 +08:00
2026-05-18 15:13:07 +08:00
2026-05-20 15:18:42 +08:00
2026-04-22 16:58:42 +08:00
2026-05-21 15:33:47 +08:00
2026-04-29 17:58:19 +02:00
2026-05-19 17:23:30 +02:00
2026-05-14 15:06:21 +08:00
2026-05-27 14:45:29 +08:00
2026-04-28 17:33:48 +08:00
2026-05-27 14:45:29 +08:00
2026-04-27 18:24:40 +08:00
2026-05-22 19:14:55 +08:00
2026-05-13 18:46:20 +08:00
2026-04-16 21:21:20 +08:00
2026-04-29 22:51:29 +02:00
2026-05-21 19:00:26 +08:00
2026-05-27 14:45:29 +08:00
2026-05-25 18:42:48 +08:00
2026-05-11 16:56:54 +08:00
2026-05-21 14:07:40 +08:00
2026-05-27 14:45:29 +08:00
2026-05-26 14:59:38 +08:00
2026-05-14 14:11:22 +02:00
2026-05-26 17:00:01 +08:00
2026-05-18 10:35:18 +02:00
2026-04-16 13:16:35 +08:00
2026-04-16 13:16:35 +08:00
2026-05-26 09:42:29 +08:00
2026-05-07 14:17:35 +08:00
2026-05-22 15:21:10 +08:00