Skip to content

Commit 06f209e

Browse files
author
rsi-pr-agent
committed
fixup! feat(dictation): add configurable cleanup and formatting (#1685)
Fork-Domain: voice-input Fork-Tier: core
1 parent 36850d5 commit 06f209e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/web/src/components/settings/VoiceMicrophoneSettings.fork.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function VoiceMicrophoneSettingsFork() {
2525
setError("Could not list microphones. Check microphone access in your system settings."),
2626
);
2727
};
28-
// oxlint-disable-next-line t3code/react-effect-budget -- subscribes to the mediaDevices `devicechange` DOM event.
28+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- subscribes to the mediaDevices `devicechange` DOM event.
2929
useEffect(() => {
3030
void refresh();
3131
navigator.mediaDevices?.addEventListener("devicechange", refresh);

‎apps/web/src/components/settings/VoiceTextSettings.fork.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function VoiceTextSettingsFork({
5050
const [busy, setBusy] = useState<"save" | "context" | null>(null);
5151
const [message, setMessage] = useState<string | null>(null);
5252
const request = useRef<AbortController | null>(null);
53-
// oxlint-disable-next-line t3code/react-effect-budget -- aborts the in-flight voice text settings request on unmount.
53+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- aborts the in-flight voice text settings request on unmount.
5454
useEffect(() => () => request.current?.abort(), []);
5555
const form =
5656
edited ?? (projectId ? settings?.projects[projectId] : undefined) ?? settings?.defaults;

‎apps/web/src/voice-input/useVoiceSettings.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function useVoiceSettingsQueryFork<A, E>(
1919
settings: A;
2020
} | null>(null);
2121
const [error, setError] = useState<string | null>(null);
22-
// oxlint-disable-next-line t3code/react-effect-budget -- fetches voice settings from the server and refetches on settings-change and window focus DOM events.
22+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- fetches voice settings from the server and refetches on settings-change and window focus DOM events.
2323
useEffect(() => {
2424
if (!prepared || !canRead) return;
2525
let active = true;

‎apps/web/src/voice-input/useVoiceText.fork.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function useVoiceTextFork(input: VoiceTextInputFork) {
4141
? (settings?.projects[input.projectId] ?? settings?.defaults)
4242
: null;
4343
const latest = useRef({ input, config, canOperate });
44-
// oxlint-disable-next-line t3code/react-effect-budget -- refreshes the latest-input ref that async voice text requests read after render.
44+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- refreshes the latest-input ref that async voice text requests read after render.
4545
useLayoutEffect(() => {
4646
latest.current = { input, config, canOperate };
4747
});
@@ -72,7 +72,7 @@ export function useVoiceTextFork(input: VoiceTextInputFork) {
7272
pending.current = null;
7373
setPhase(null);
7474
};
75-
// oxlint-disable-next-line t3code/react-effect-budget -- aborts the in-flight voice text request when the scope changes or the hook unmounts.
75+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- aborts the in-flight voice text request when the scope changes or the hook unmounts.
7676
useEffect(() => {
7777
requestScope.current = scopeKey;
7878
skipAutomatic.current = true;

0 commit comments

Comments
 (0)