Deploy AIOS web (React glide grid + FastAPI slice)
Browse filesFiles changed (3)
12345{"current": "8c13912","releases": [{"version": "v12",12345{"current": "7799d94","releases": [{"version": "v12",
18c1391217799d94
473 unmodified lines47447547647747847950 unmodified lines53053153253353453553653753853954054154254354454521 unmodified lines56756856957057157231 unmodified lines604605606607608609473 unmodified lines});};const buildConfig = (): Record<string, unknown> => {if (kind === "scrape_db") {const fieldMap: Record<string, string> = {};50 unmodified linesschedule: sched || { cron, enabled: !!automation.schedule?.enabled },});setTouched(false);if (announce) {// The held-back half of `completePreds`, said rather than swallowed.const held = kind === "discover_instagram" ? preds.length - completePreds().length : 0;setMessage(held > 0? `Saved — ${held} condition${held === 1 ? " was" : "s were"} not saved yet, `+ `${held === 1 ? "it needs" : "they need"} a value.`: "Saved.");}return res.automation.id;};21 unmodified linesschedule: { cron: next.cron, enabled: next.enabled },});setTouched(false);await onSaved(automation.id);await loadBoard();} catch (e) {31 unmodified linesschedule: { cron, enabled: key === "schedule" },});setTouched(false);await onSaved(automation.id);await loadBoard();} catch (e) {473 unmodified lines47447547647747847948048148248348448548648748848949049149249349449549650 unmodified lines54754854955055155255321 unmodified lines57557657757857958058131 unmodified lines613614615616617618619473 unmodified lines});};/*** The sentence for whatever `completePreds` held back, or "" when it held nothing.** ⚠ EVERY SAVE PATH SAYS IT, not just the Save button. The trigger picker and the cron control* persist IMMEDIATELY (R9) and announce nothing on success — so without this, CLEARING a* condition's value and then changing the trigger would drop that condition from the stored* filter with the row still on screen and not a word anywhere. Holding a half-written row back* is a courtesy; holding it back in silence is the drop class this module refuses everywhere.*/const heldNote = (): string => {if (kind !== "discover_instagram") return "";const held = preds.length - completePreds().length;if (held < 1) return "";return `Saved — ${held} condition${held === 1 ? " was" : "s were"} not saved yet, `+ `${held === 1 ? "it needs" : "they need"} a value.`;};const buildConfig = (): Record<string, unknown> => {if (kind === "scrape_db") {const fieldMap: Record<string, string> = {};50 unmodified linesschedule: sched || { cron, enabled: !!automation.schedule?.enabled },});setTouched(false);if (announce) setMessage(heldNote() || "Saved.");return res.automation.id;};21 unmodified linesschedule: { cron: next.cron, enabled: next.enabled },});setTouched(false);setMessage(heldNote());await onSaved(automation.id);await loadBoard();} catch (e) {31 unmodified linesschedule: { cron, enabled: key === "schedule" },});setTouched(false);setMessage(heldNote());await onSaved(automation.id);await loadBoard();} catch (e) {
RELEASES.json+1-1
VERSION+1-1
web/src/automation/AutomationDetail.tsx+20-10