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
8 changes: 8 additions & 0 deletions .changeset/import-run-automations-default-on.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@object-ui/plugin-grid': patch
---

ImportWizard now defaults the "Run automations & triggers" checkbox to ON
(framework#2922): automations always ran on import before the server honored
the flag, so preserving behavior means opt-out rather than opt-in. The reset
path restores the same default.
6 changes: 4 additions & 2 deletions packages/plugin-grid/src/ImportWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,9 @@ export const ImportWizard: React.FC<ImportWizardProps> = ({
const [writeMode, setWriteMode] = useState<ImportWriteMode>('insert');
const [matchFields, setMatchFields] = useState<string[]>([]);
const [createMissingOptions, setCreateMissingOptions] = useState(false);
const [runAutomations, setRunAutomations] = useState(false);
// Default ON: automations always ran on import before framework#2922 wired
// the flag up server-side, so preserving behavior means opt-out, not opt-in.
const [runAutomations, setRunAutomations] = useState(true);
const [skipBlankMatchKey, setSkipBlankMatchKey] = useState(false);
// Opt-in: route this import through a background job even when the row count
// is under the async threshold. This is the only way to obtain an undoable
Expand Down Expand Up @@ -1970,7 +1972,7 @@ export const ImportWizard: React.FC<ImportWizardProps> = ({
setStep('upload'); setHeaders([]); setRows([]); setMapping({}); setProgress(0); setResult(null);
setCorrections({}); setSelectedTemplateId(null); setMappingName(null);
setWriteMode('insert'); setMatchFields([]);
setCreateMissingOptions(false); setRunAutomations(false); setSkipBlankMatchKey(false);
setCreateMissingOptions(false); setRunAutomations(true); setSkipBlankMatchKey(false);
setJobId(null); setAsyncCounts(null);
setValidating(false); setDryRunResult(null);
setShowHistory(false);
Expand Down
Loading