Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/routes_tables.py +11 -3
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
- web/src/index.css +4 -0
- web/src/styles/sdlc86/pdp-text.css +2 -2
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "33476c8232",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
33476c8232
|
api/routes_tables.py
CHANGED
|
@@ -672,8 +672,8 @@ def _records_lock_message(table_key, definition, st):
|
|
| 672 |
return f"This {name} is locked, so only user-created field values can be edited."
|
| 673 |
|
| 674 |
|
| 675 |
-
def
|
| 676 |
-
"""Require editor authority
|
| 677 |
# Share one snapshot across the read, editor and record-mode checks.
|
| 678 |
st = st if st is not None else _ut().lend(session.runtime)
|
| 679 |
# ⭐ W36-T21 — `scope_applied=True` because every row write behind this wall is bounded by a
|
|
@@ -683,6 +683,12 @@ def _records_or_refuse(session, table_key, st=None, *, cell_updates=None):
|
|
| 683 |
defn = _defn_or_refuse(session, table_key, st=st, scope_applied=True)
|
| 684 |
if not _ut().may_edit_database(table_key, session.uname, is_admin=session.admin, st=st):
|
| 685 |
raise err(403, "database_read_only", "Can edit access is required to change this database.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 686 |
if not _ut().records_mutable(table_key, st=st):
|
| 687 |
if cell_updates and table_key != "ut_activity":
|
| 688 |
from core import shared_overlay
|
|
@@ -4535,7 +4541,8 @@ def restore_history(table_key: str, event_id: str, body: dict = Body(default=Non
|
|
| 4535 |
from core import grid_events
|
| 4536 |
|
| 4537 |
_managed_or_refuse(session, table_key, mutation=True)
|
| 4538 |
-
|
|
|
|
| 4539 |
body = body if isinstance(body, dict) else {}
|
| 4540 |
row_id = str(body.get("rowId") or "").strip()
|
| 4541 |
if not row_id:
|
|
@@ -4565,6 +4572,7 @@ def restore_history(table_key: str, event_id: str, body: dict = Body(default=Non
|
|
| 4565 |
raise err(404, "history_event_not_found", "that retained value version is unavailable")
|
| 4566 |
if any(key in (g.get("hidden") or ()) for key in updates):
|
| 4567 |
raise err(403, "field_hidden", "that retained version includes a hidden field")
|
|
|
|
| 4568 |
prior_history_ids = {
|
| 4569 |
str(item.get("id")) for item in _ut().value_history(
|
| 4570 |
table_key, row_id, st=session.runtime, retention_days=days,
|
|
|
|
| 672 |
return f"This {name} is locked, so only user-created field values can be edited."
|
| 673 |
|
| 674 |
|
| 675 |
+
def _editor_or_refuse(session, table_key, st=None):
|
| 676 |
+
"""Require editor authority on a database this session may see. `(defn, st)`."""
|
| 677 |
# Share one snapshot across the read, editor and record-mode checks.
|
| 678 |
st = st if st is not None else _ut().lend(session.runtime)
|
| 679 |
# ⭐ W36-T21 — `scope_applied=True` because every row write behind this wall is bounded by a
|
|
|
|
| 683 |
defn = _defn_or_refuse(session, table_key, st=st, scope_applied=True)
|
| 684 |
if not _ut().may_edit_database(table_key, session.uname, is_admin=session.admin, st=st):
|
| 685 |
raise err(403, "database_read_only", "Can edit access is required to change this database.")
|
| 686 |
+
return defn, st
|
| 687 |
+
|
| 688 |
+
|
| 689 |
+
def _records_or_refuse(session, table_key, st=None, *, cell_updates=None):
|
| 690 |
+
"""Require editor authority and reserve locked database edits for authored field values."""
|
| 691 |
+
defn, st = _editor_or_refuse(session, table_key, st)
|
| 692 |
if not _ut().records_mutable(table_key, st=st):
|
| 693 |
if cell_updates and table_key != "ut_activity":
|
| 694 |
from core import shared_overlay
|
|
|
|
| 4541 |
from core import grid_events
|
| 4542 |
|
| 4543 |
_managed_or_refuse(session, table_key, mutation=True)
|
| 4544 |
+
# A locked database admits authored values only, so its record wall waits for the retained values.
|
| 4545 |
+
_editor_or_refuse(session, table_key)
|
| 4546 |
body = body if isinstance(body, dict) else {}
|
| 4547 |
row_id = str(body.get("rowId") or "").strip()
|
| 4548 |
if not row_id:
|
|
|
|
| 4572 |
raise err(404, "history_event_not_found", "that retained value version is unavailable")
|
| 4573 |
if any(key in (g.get("hidden") or ()) for key in updates):
|
| 4574 |
raise err(403, "field_hidden", "that retained version includes a hidden field")
|
| 4575 |
+
_records_or_refuse(session, table_key, cell_updates=updates)
|
| 4576 |
prior_history_ids = {
|
| 4577 |
str(item.get("id")) for item in _ut().value_history(
|
| 4578 |
table_key, row_id, st=session.runtime, retention_days=days,
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
4168af0d8c19f14ac597f3ca8fb3a02b35b3e12ef9f6df521973878ca781d979
|
web/src/index.css
CHANGED
|
@@ -13679,6 +13679,10 @@ input.conn-odoo-v:disabled { background: var(--lp-surface-2); color: var(--lp-mu
|
|
| 13679 |
.cg-overlay.cg-w46-stop-addmenu,
|
| 13680 |
.cg-overlay.home-name-tip,
|
| 13681 |
.cg-overlay.lp-proj-status-menu,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13682 |
.cg-overlay.sheet-cell-export-pop,
|
| 13683 |
.cg-overlay.sheet-cell-menu-pop,
|
| 13684 |
.cg-overlay.sheet-chart-color-list,
|
|
|
|
| 13679 |
.cg-overlay.cg-w46-stop-addmenu,
|
| 13680 |
.cg-overlay.home-name-tip,
|
| 13681 |
.cg-overlay.lp-proj-status-menu,
|
| 13682 |
+
.cg-overlay.pdp-brief-type-menu,
|
| 13683 |
+
.cg-overlay.pdp-continue-menu,
|
| 13684 |
+
.cg-overlay.pdp-settings-menu,
|
| 13685 |
+
.cg-overlay.pdp-setup-pop,
|
| 13686 |
.cg-overlay.sheet-cell-export-pop,
|
| 13687 |
.cg-overlay.sheet-cell-menu-pop,
|
| 13688 |
.cg-overlay.sheet-chart-color-list,
|
web/src/styles/sdlc86/pdp-text.css
CHANGED
|
@@ -143,8 +143,8 @@
|
|
| 143 |
.pdp-chart-chips button[aria-selected="true"] { border-color: var(--lp-primary); color: var(--lp-primary); background: var(--lp-primary-tint); font-weight: var(--lp-fw-semibold); }
|
| 144 |
.pdp-chart-count { white-space: nowrap; margin-left: 4px; }
|
| 145 |
.pdp-chart-arrow { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; }
|
| 146 |
-
.pdp-chart-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width:
|
| 147 |
-
.pdp-chart-track::-webkit-scrollbar {
|
| 148 |
.pdp-chart-slide { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
|
| 149 |
.pdp-chart-slide > span > b { color: var(--lp-ink); }
|
| 150 |
.pdp-chart { position: relative; min-width: 0; }
|
|
|
|
| 143 |
.pdp-chart-chips button[aria-selected="true"] { border-color: var(--lp-primary); color: var(--lp-primary); background: var(--lp-primary-tint); font-weight: var(--lp-fw-semibold); }
|
| 144 |
.pdp-chart-count { white-space: nowrap; margin-left: 4px; }
|
| 145 |
.pdp-chart-arrow { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; }
|
| 146 |
+
.pdp-chart-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; overscroll-behavior-x: contain; }
|
| 147 |
+
.pdp-chart-track::-webkit-scrollbar { width: 8px; height: 8px; }
|
| 148 |
.pdp-chart-slide { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
|
| 149 |
.pdp-chart-slide > span > b { color: var(--lp-ink); }
|
| 150 |
.pdp-chart { position: relative; min-width: 0; }
|