Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function BillingLimitRecoveryPanel({
const formRef = useRef<HTMLFormElement>(null);

useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- A refreshed server recommendation intentionally resets this editable amount draft.
setNewAmount(String(suggestedNewLimitDollars));
}, [suggestedNewLimitDollars]);

Expand Down
1 change: 1 addition & 0 deletions apps/webapp/app/components/code/TSQLResultsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ const DebouncedInput = forwardRef<
const [value, setValue] = useState(initialValue);

useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- Programmatic filter changes intentionally reset the debounced input draft.
setValue(initialValue);
}, [initialValue]);

Expand Down
1 change: 1 addition & 0 deletions apps/webapp/app/components/primitives/DateTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export const RelativeDateTime = ({ date, timeZone, capitalize = true }: Relative

// On first render
useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- A changed date intentionally resets the timer-backed relative text.
Comment thread
carderne marked this conversation as resolved.
setRelativeText(getRelativeText(realDate, capitalize));
}, [realDate, capitalize]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ function PurchaseBranchesModal({

const [amountValue, setAmountValue] = useState(extraBranches);
useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- The authoritative branch count intentionally resets this modal draft.
setAmountValue(extraBranches);
}, [extraBranches]);
const isLoading = fetcher.state !== "idle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ function RenameDashboardDialog({ title }: { title: string }) {

// Sync newTitle state when title changes (after successful rename)
useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- A completed rename intentionally resets this editable title draft.
setNewTitle(title);
}, [title]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ function LogsDisplay({
const logsContainerRef = useRef<HTMLDivElement>(null);

useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- Deployment status changes intentionally reset the user-controlled collapse state.
setCollapsed(initialCollapsed);
Comment thread
carderne marked this conversation as resolved.
}, [initialCollapsed]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ export function PurchaseSeatsModal({

const [amountValue, setAmountValue] = useState(extraSeats);
useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- The authoritative seat count intentionally resets this modal draft.
setAmountValue(extraSeats);
}, [extraSeats]);
const isLoading = fetcher.state !== "idle";
Expand Down