logancyang_obsidian-copilot/src/components/ui
Zero Liu a92012dc4d
chore(lint): fix no-direct-set-state-in-use-effect violations (#2454)
* chore(lint): fix no-direct-set-state-in-use-effect violations

Replaced 56 setState-in-useEffect anti-patterns across 21 files with
idiomatic React patterns: derived state via useMemo, useSyncExternalStore
for external stores, key-prop resets, render-phase prev-value trackers,
and lazy useState initializers. Deleted dead defensive syncs in
PlusSettings, ModelEditDialog, and the fallback-notice effect in
CustomCommandChatModal. Narrowly suppressed three legitimate cases
(interval-driven animation, DOM measurement, Lexical pill→context absorb).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* address codex comment

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 16:23:55 -07:00
..
badge.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
button.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
card.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
checkbox.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
collapsible.tsx Relevant note new UI (#981) 2024-12-30 13:55:30 -08:00
dialog.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
dropdown-menu.tsx fix: close Radix portaled layers when mobile drawer hides (#2223) 2026-02-28 14:14:19 -08:00
form-field.tsx feat: enhance optional parameter controls with toggle functionality. (#1716) 2025-08-15 21:32:29 -07:00
help-tooltip.tsx chore(popout): window-global API swaps — timers, globalThis, base64 (W3/9) (#2401) 2026-05-12 22:24:17 -07:00
input.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
label.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
mobile-card.tsx chore(lint): fix no-array-index-key and other React lint warnings (#2453) 2026-05-14 02:19:38 -07:00
model-display.tsx chore(lint): fix no-array-index-key and other React lint warnings (#2453) 2026-05-14 02:19:38 -07:00
ModelParametersEditor.tsx chore(eslint): enable no-explicit-any; fix ~395 violations (#2452) 2026-05-14 02:08:45 -07:00
ModelSelector.tsx fix(ui): show enabled models without API keys as disabled in dropdown (#2313) 2026-03-19 06:47:50 -07:00
obsidian-native-select.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
parameter-controls.tsx feat: add mobile-responsive components for settings. (#1813) 2025-09-22 18:06:54 -07:00
password-input.test.tsx feat(keychain): migrate API key storage to Obsidian Keychain (#2364) 2026-05-14 13:57:21 -07:00
password-input.tsx feat(keychain): migrate API key storage to Obsidian Keychain (#2364) 2026-05-14 13:57:21 -07:00
popover.tsx fix: close Radix portaled layers when mobile drawer hides (#2223) 2026-02-28 14:14:19 -08:00
progress.tsx feat: Add project new context loading ui. (#1695) 2025-08-08 09:59:00 -07:00
resizable.tsx feat: Support project context preview. (#1551) 2025-06-24 12:35:48 -07:00
scroll-area.tsx feat: Support editing all parameters individually for each model (#1562) 2025-06-27 15:57:12 -07:00
SearchBar.tsx feat: Support project context preview. (#1551) 2025-06-24 12:35:48 -07:00
select.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
separator.tsx feat: Support editing all parameters individually for each model (#1562) 2025-06-27 15:57:12 -07:00
setting-item.tsx Improve Search v3 (#1721) 2025-08-15 21:24:42 -07:00
setting-slider.tsx chore(lint): fix no-direct-set-state-in-use-effect violations (#2454) 2026-05-14 16:23:55 -07:00
setting-switch.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
setting-tabs.tsx feat: add mobile-responsive components for settings. (#1813) 2025-09-22 18:06:54 -07:00
slider.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
table.tsx Enable basic obsidian eslint rules (#2410) 2026-05-13 00:49:49 -07:00
tabs.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
textarea.tsx chore(styles): replace element.style with Tailwind + CSS vars (W5/9) (#2400) 2026-05-12 22:50:05 -07:00
tooltip.tsx Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
url-tag-input.tsx chore(icons): drop deprecated lucide Youtube icon; reuse Globe for URLs (#2449) 2026-05-14 01:19:41 -07:00