fsanyoto commited on
Commit
c4e2214
Β·
verified Β·
1 Parent(s): 344f467

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "current": "734cf1b",
3
  "releases": [
4
  {
5
  "version": "v14",
 
1
  {
2
+ "current": "47d05ef",
3
  "releases": [
4
  {
5
  "version": "v14",
VERSION CHANGED
@@ -1 +1 @@
1
- 734cf1b
 
1
+ 47d05ef
api/automation_engine.py CHANGED
@@ -5423,7 +5423,15 @@ def graph(defn):
5423
  nodes = [node("trigger", "trigger", sub,
5424
  "On" if t_on else "Off", 0, panel="trigger", on=t_on, detail=det)]
5425
  else:
5426
- nodes = [node("trigger", "trigger", "Schedule",
 
 
 
 
 
 
 
 
5427
  _cron_label(sched.get("cron")) if on else "Manual only", 0,
5428
  panel="schedule", on=on,
5429
  detail="" if on else "It still runs when you press Run now")]
@@ -8386,10 +8394,36 @@ def clean_trigger(raw, previous=None):
8386
  f"it renders so you can see it is coming, and it cannot be saved")
8387
  if key not in TRIGGER_KEYS:
8388
  return None, (f"{key or 'that trigger'!r} is not one of: " + ", ".join(TRIGGER_KEYS))
8389
- if key in ("manual", "schedule"):
8390
- # Not stored: `schedule` already owns the cron and Run now always works. Storing a
8391
- # no-op trigger would be a second copy of that fact, free to disagree with it.
 
8392
  return None, None
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8393
  out = {"key": key,
8394
  "enabled": bool(raw["enabled"]) if "enabled" in raw else
8395
  bool(prev.get("enabled", True)),
 
5423
  nodes = [node("trigger", "trigger", sub,
5424
  "On" if t_on else "Off", 0, panel="trigger", on=t_on, detail=det)]
5425
  else:
5426
+ # ⭐ 2026-08-07 (owner ruling) β€” THE CARD NAMES WHAT ACTUALLY FIRES IT. With the cron off
5427
+ # this node is a MANUAL trigger, and titling it "Schedule" was the screen disagreeing with
5428
+ # the user's own pick β€” the same class of defect as the Database picker that could not be
5429
+ # reached. ⚠ The SUBTITLE is untouched ("Manual only" / the cron label): it is what the
5430
+ # disabled-schedule gate asserts, and it was never the wrong half.
5431
+ # ⚠ `panel="schedule"` STAYS whichever way it reads. Picking Manual says how this fires
5432
+ # TODAY, not that it may never be scheduled β€” the cron has to stay one click away, and
5433
+ # this is the only node that offers it.
5434
+ nodes = [node("trigger", "trigger", "Schedule" if on else "Manual",
5435
  _cron_label(sched.get("cron")) if on else "Manual only", 0,
5436
  panel="schedule", on=on,
5437
  detail="" if on else "It still runs when you press Run now")]
 
8394
  f"it renders so you can see it is coming, and it cannot be saved")
8395
  if key not in TRIGGER_KEYS:
8396
  return None, (f"{key or 'that trigger'!r} is not one of: " + ", ".join(TRIGGER_KEYS))
8397
+ if key == "schedule":
8398
+ # β›” STILL NOT STORED, and the original reasoning holds for THIS key alone: `schedule`
8399
+ # already owns the cron (`defn['schedule']` = `{cron, enabled}`), so a stored
8400
+ # `{key:'schedule'}` would be a second copy of that fact, free to disagree with it.
8401
  return None, None
8402
+ if key == "manual":
8403
+ # ⭐⭐ 2026-08-07 (owner ruling) β€” **MANUAL IS A REAL, STORED CHOICE NOW.**
8404
+ # Owner: *"Make it so that when you choose Manual, it IS a manual automation that the user
8405
+ # can just press Run to make the full flow work."*
8406
+ #
8407
+ # β›” THIS SPLITS A PAIR THAT SHOULD NEVER HAVE BEEN ONE. The old line refused both keys
8408
+ # together with one argument β€” *"storing a no-op trigger would be a second copy of that
8409
+ # fact"* β€” and that argument is TRUE OF `schedule` AND FALSE OF `manual`. A schedule has
8410
+ # another home; **manual has none.** Nothing anywhere recorded "this automation is
8411
+ # manual", so storing it is not a duplicate: it is the only record there has ever been.
8412
+ #
8413
+ # ⚠ WHAT THE CONFLATION COST, measured live: picking Manual wrote nothing, so
8414
+ # `chosen` (`!!trigger || schedule.enabled`) stayed false, the Builder kept showing the
8415
+ # "nobody has decided yet" empty state, and Configuration β€” including the Database picker
8416
+ # a plain automation cannot do without β€” never rendered. The owner reported it twice. The
8417
+ # previous note reasoned that a manual option *"would bounce straight back to this state
8418
+ # on the next reload"* and concluded the option should be HIDDEN; the honest conclusion
8419
+ # was that it should be STORED.
8420
+ #
8421
+ # ⚠ DELIBERATELY BARE. No `enabled`, no `paused`: a manual trigger cannot be switched off
8422
+ # (Run now always works, which is the whole of what it means) and a switch that governs
8423
+ # nothing is worse than no switch. `graph()` keeps this node on the SCHEDULE panel so the
8424
+ # cron stays reachable β€” picking Manual says how it fires today, never that it may not be
8425
+ # scheduled tomorrow.
8426
+ return {"key": "manual"}, None
8427
  out = {"key": key,
8428
  "enabled": bool(raw["enabled"]) if "enabled" in raw else
8429
  bool(prev.get("enabled", True)),
web/src/automation/AutomationBuilder.tsx CHANGED
@@ -1080,7 +1080,14 @@ export default function AutomationBuilder({
1080
  <div className="autox-suggest">
1081
  <p className="autox-suggest-head">Suggested triggers</p>
1082
  {options
1083
- .filter((t) => t.ready !== false && !t.planned && t.key !== "manual")
 
 
 
 
 
 
 
1084
  .slice(0, SUGGESTED)
1085
  .map((t) => (
1086
  <button
 
1080
  <div className="autox-suggest">
1081
  <p className="autox-suggest-head">Suggested triggers</p>
1082
  {options
1083
+ // ⭐ 2026-08-07 (owner ruling) β€” MANUAL IS OFFERED AGAIN. It was excluded
1084
+ // (`t.key !== "manual"`) because picking it stored NOTHING and bounced
1085
+ // straight back to this empty state β€” "a control that undoes itself is
1086
+ // worse than no control", correct while that was true. `clean_trigger` now
1087
+ // STORES `{key:'manual'}`, so the pick sticks, `chosen` goes true and
1088
+ // Configuration opens. Hiding it now would leave the one trigger a person
1089
+ // most expects to find as the only one they cannot choose.
1090
+ .filter((t) => t.ready !== false && !t.planned)
1091
  .slice(0, SUGGESTED)
1092
  .map((t) => (
1093
  <button