Deploy AIOS web (React glide grid + FastAPI slice)
Browse filesFiles changed (7)
123456{"current": "2b8e675","releases": [{"version": "v25","sha": "bc24829",123456789101112{"current": "v27 (c05a794)","releases": [{"version": "v27","sha": "c05a794","date": "2026-08-18","subject": "release v27"},{"version": "v25","sha": "bc24829",
12b8e6751v27 (c05a794)
156 unmodified lines157158159160161162163156 unmodified linesif tenant:want = str(tenant).strip().lower()rows = [r for r in rows if str(r.get("tenant") or "").lower() == want]rows = sorted(rows, key=lambda r: int(r.get("ts") or 0), reverse=True)out = {"rows": [dict(r) for r in rows], "total": len(rows), "capacity": MAX_ROWS,"tenants": sorted({str(r.get("tenant") or "") for r in _rows() if r.get("tenant")})}if len(_rows()) >= MAX_ROWS:156 unmodified lines157158159160161162163164165166167168169170171172173174175156 unmodified linesif tenant:want = str(tenant).strip().lower()rows = [r for r in rows if str(r.get("tenant") or "").lower() == want]# β THE TIEBREAK IS THE STORE'S OWN ORDER, AND WITHOUT IT "NEWEST FIRST" IS FALSE FOR ANY TWO# ROWS FILED IN THE SAME SECOND (wave-35 QA). `ts` is `int(time.time())` β SECOND resolution β# and Python's sort is STABLE, so under `reverse=True` a tie keeps INSERTION order, which is# oldest-first: the one direction this route promises never to return. It is not hypothetical# and it is not a flake: `api_api`'s R8 row failed on it in the close-out battery, in the# wave-35 QA battery and in a solo re-run, and the baseline recorded the true count anyway, so# a REAL regression would have read as the known-flake line.# β ENUMERATE OVER THE ALREADY-FILTERED LIST: `_rows()` appends, so a row's index IS its arrival# order (the module docstring's "newest LAST in the store"), and `?tenant=` only drops rows, so# the surviving indexes stay monotonic. Raising `ts` to sub-second resolution instead would# break every id already minted as `fb_<ts>_β¦`.rows = [r for _, r in sorted(enumerate(rows),key=lambda p: (int(p[1].get("ts") or 0), p[0]), reverse=True)]out = {"rows": [dict(r) for r in rows], "total": len(rows), "capacity": MAX_ROWS,"tenants": sorted({str(r.get("tenant") or "") for r in _rows() if r.get("tenant")})}if len(_rows()) >= MAX_ROWS:
1590 unmodified lines15911592159315941595159615971598159916001590 unmodified lines// scope, which for a Query surface is the SOURCE database β so autosaving a resize would// have written a view into the source's own workspace under the artefact's id. The router// is what keeps "which store does this spec belong to" answered in one place.const routed = routeQueryViewMutation(queryBinding, scope, {id: eventId(queryBinding ? "query-view-update" : "view"),type: "view_upsert",view: updated as unknown as Record<string, unknown>,}, { query: mutateQueryWorkspace, native: emitHostEvent });if (routed.channel === "refused")signal(TOAST_EVENT, routed.refusal?.message ?? "That view change could not be saved.");1590 unmodified lines159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161590 unmodified lines// scope, which for a Query surface is the SOURCE database β so autosaving a resize would// have written a view into the source's own workspace under the artefact's id. The router// is what keeps "which store does this spec belong to" answered in one place.// ββ WAVE 35 QA β THE SUBJECT OF A QUERY WRITE IS THE ARTEFACT, AND STAMPING IT IS WHAT// MAKES W35-T23 TRUE. This emitted `updated` unchanged, whose `id` is the SOURCE database's// active view (the grid mounts on `gridScopeFor(active.source.database)`, so `views` are the// source's). `routeQueryViewMutation` requires `view.id === binding.artifactId` and the// server requires the same β so EVERY spec write on a Query surface was refused before it// left the browser, and the person saw *"A Query view holds one saved answerβ¦"*, the message// written for a genuine duplicate-view attempt.// β MEASURED, not deduced: resize, sort, group, hide and row height all failed identically// on a pre-wave artefact AND a brand-new one β six for six, zero network writes, `edited`// never flipping. The owner's item was *"I should be able to interact in each of the View// under Query as well, exactly like how I would be able to interact with it under Database// view"*, and the router's own docstring already says these are one thing to it.// β ONLY the emitted subject is re-identified. `setViews` and the tombstone keep using// `updated.id`, because the LOCAL row really is the source's view β the artefact id is who// the WRITE is about, not who the grid is showing.const subject = queryBinding ? { ...updated, id: queryBinding.artifactId } : updated;const routed = routeQueryViewMutation(queryBinding, scope, {id: eventId(queryBinding ? "query-view-update" : "view"),type: "view_upsert",view: subject as unknown as Record<string, unknown>,}, { query: mutateQueryWorkspace, native: emitHostEvent });if (routed.channel === "refused")signal(TOAST_EVENT, routed.refusal?.message ?? "That view change could not be saved.");
803 unmodified lines80480580680780880981052 unmodified lines863864865866867868869870871872873874803 unmodified lines// it client-side would rank the page and label the answer with the scope's count β the exact// "12 rows under 'showing 200 of 5,728'" failure this bypass exists to prevent. The refusal// belongs to `filter_sql`, which maps rank leaves to its UNANSWERABLE tri-state.if (serverWindowed) return asRows(rawRows);const fieldByKey = new Map<string, Field>();for (const f of fields) fieldByKey.set(f.key, f);52 unmodified linesctx.rankSets = NO_RANKING.sets;}const members = new Set(memberPids);out = out.filter((r) =>members.has(r.pid) ||matchFilterTree(filters, filterConj, r, fieldByKey, ctx));}const q = search.trim().toLowerCase();803 unmodified lines80480580680780880981081181281381481581681781881982082182282352 unmodified lines876877878879880881882883884885886887888889890891892893894895896897898899803 unmodified lines// it client-side would rank the page and label the answer with the scope's count β the exact// "12 rows under 'showing 200 of 5,728'" failure this bypass exists to prevent. The refusal// belongs to `filter_sql`, which maps rank leaves to its UNANSWERABLE tri-state.// ββ WAVE 35 QA β A CURATED SET IS NOT A FILTER, AND THE BYPASS ABOVE DOES NOT COVER IT.// `memberPids` is a list of pids the VIEW names; the SQL window never applied it (measured: the// "Starred records" view on `ut_odoo_gl_lines` painted "showing 200 of 978,257" with exactly one// record starred). So narrowing by membership here is not the double-narrowing this bypass// exists to prevent β it is the ONLY narrowing, and skipping it renders a view that promises the// starred rows and shows the whole table.// β The honest limit, stated rather than hidden: the window is one PAGE the server chose, so a// starred record outside it still will not appear. Showing the starred rows that ARE on the page// is strictly better than showing 200 unrelated ones under a heading that says "Starred records",// and the real fix is the server applying `memberPids` to the window.const curated = memberPids.length ? new Set(memberPids) : null;if (serverWindowed) {return asRows(curated ? rawRows.filter((r) => curated.has(r.pid)) : rawRows);}const fieldByKey = new Map<string, Field>();for (const f of fields) fieldByKey.set(f.key, f);52 unmodified linesctx.rankSets = NO_RANKING.sets;}out = out.filter((r) =>(curated ? curated.has(r.pid) : false) ||matchFilterTree(filters, filterConj, r, fieldByKey, ctx));} else if (curated) {// ββ WAVE 35 QA β THE WHOLE NARROWING USED TO LIVE INSIDE `if (filters.length)`, SO A VIEW// THAT IS *ONLY* A CURATED SET SHOWED EVERY ROW IN THE TABLE. `memberPids` was designed as// pinned rows that "ride the `||` below without matching anything" (the note above) β an// ADDITION to a filter result β and nothing covered the case where the membership IS the view.// W35-T40's "Starred records" is exactly that: `filters: []` with `memberPids` non-empty. The// server was right every time (`GET /starred/records` returned `ids:[7745], count:1` and the// view's own `config.memberPids` carried it); the client threw the answer away and painted// "3,634 records". Reproduced three times, on a small database and on a 978k-row one.// β It is an `else if`, not a second unconditional pass: with filters present, membership must// stay a UNION (pinned rows ride along), and re-applying it here would turn that union into an// intersection and hide every row the filters matched.out = out.filter((r) => curated.has(r.pid));}const q = search.trim().toLowerCase();
3086 unmodified lines3087308830893090309130924 unmodified lines3097309830993100310131023086 unmodified lines.shell-nav-templates {margin: 0 8px 2px;width: calc(100% - 16px);}/* β W33-T75's law reaches this row too. `.shell-nav.is-rail-loading > *` cannot select it β thisbutton is a SIBLING of `.shell-nav`, not a child β so while `/nav` is in flight it would paint in4 unmodified linesmargin: 0 6px 2px;width: calc(100% - 12px);padding: 7px 10px;}.shell-side.is-collapsed .shell-side-bottom { padding: 8px 2px 10px; }.shell-side.is-collapsed .shell-account {3086 unmodified lines3087308830893090309130923093309430953096309730983099310031013102310331043105310631074 unmodified lines31123113311431153116311731183119312031213086 unmodified lines.shell-nav-templates {margin: 0 8px 2px;width: calc(100% - 16px);/* ββ WAVE 35 QA β `margin-top: auto` IS WHAT MAKES THE ROW'S OWN `done-when` TRUE. It ships as aSIBLING of `.shell-side-bottom` for a real behavioural reason (that band's `onClickCapture`swallows a collapsed click and expands the rail instead, which a row with no popover must notinherit) β but the band ALSO carries `margin-top: auto`, so the band went to the bottom andthis row stayed pinned under Connectors. MEASURED on the deployed build at 1600x1000: the rowat y=362, the account button at y=945, a **549 px** gap. The ticket says "the rail's bottomband, directly above the account button" and the owner said "just above our User button".Taking the auto-margin HERE makes this row absorb the free space instead, so it lands againstthe band's top border and the band's own auto-margin becomes a no-op behind it.β It must survive `.is-rail-hidden`: while `/nav` is in flight this row is `display: none`, thefree space falls back to the band's own `margin-top: auto`, and the account row stays pinned.β The gate that was green over this compared SOURCE-STRING INDEXES (`verify_ui.py`:`_shell_code.find("shell-nav-templates")` vs the account marker) β source order cannot see anauto margin, so it read "above" for a row 549 px away. [[gate-pins-a-spelling-not-a-claim]] */margin-top: auto;}/* β W33-T75's law reaches this row too. `.shell-nav.is-rail-loading > *` cannot select it β thisbutton is a SIBLING of `.shell-nav`, not a child β so while `/nav` is in flight it would paint in4 unmodified linesmargin: 0 6px 2px;width: calc(100% - 12px);padding: 7px 10px;/* The collapsed rule RE-SETS the whole margin shorthand, so it re-sets `margin-top` to 0 with itβ the fix above would hold expanded and silently revert the moment the rail folded. Restatedhere rather than reordered, because the shorthand is what carries the collapsed gutters. */margin-top: auto;}.shell-side.is-collapsed .shell-side-bottom { padding: 8px 2px 10px; }.shell-side.is-collapsed .shell-account {
923 unmodified lines9249259269279289299301291 unmodified lines2222222322242225222622272228923 unmodified lines*/const VIEW_OPEN_RETRY_MS = [0, 250, 700, 1500, 2600, 5000, 9000, 14000, 21000] as const;const openViewInDatabase = useCallback((database: string, viewId: string) => {window.location.hash = `#/db/${database}`;viewEmitCancel.current?.();viewEmitCancel.current = retryEmit(() => {1291 unmodified lines<buttontype="button"ref={dbButton}className={"shell-nav-item shell-nav-db" + (dbAt ? " is-active" : "")}aria-haspopup="dialog"aria-expanded={!!dbAt}onMouseEnter={navCollapsed ? tipEnter("Database") : undefined}923 unmodified lines9249259269279289299309319329339349359369379389399409411291 unmodified lines22332234223522362237223822392240224122422243224422452246224722482249225022512252923 unmodified lines*/const VIEW_OPEN_RETRY_MS = [0, 250, 700, 1500, 2600, 5000, 9000, 14000, 21000] as const;const openViewInDatabase = useCallback((database: string, viewId: string) => {// ββ WAVE 35 QA β THIS WROTE `#/db/${database}` AND NOTHING IN THE APP READS A `db/` PREFIX,// SO EVERY STARRED-VIEW TILE ON HOME AND ON STARRED WAS A DEAD CLICK. `routeKeyOf` strips only// a leading `#/` (`nav.ts`), so the route became the literal `"db/ut_odoo_invoices"`;// `resolveRoute` looks that up against entry keys that are BARE (`"ut_odoo_invoices"`), missed,// and the shell fell back to Home β the URL changed, the screen did not. Reproduced on two// different views, held for 30 s+, and confirmed structurally: `"db/"` appeared exactly ONCE// in `Shell.tsx` + `nav.ts` + `dbFrame.tsx` combined β here, the writer, with no reader// anywhere. Every other hash write in this file is `#/${key}` (`:1764`, `:2934`, β¦); this one// invented a second vocabulary for the same thing. [[one-question-two-normalizers]]// β The failure is silent by construction, which is why no gate saw it: a route that does not// resolve is the SAME code path as "no route yet", and that path renders Home on purpose.window.location.hash = `#/${database}`;viewEmitCancel.current?.();viewEmitCancel.current = retryEmit(() => {1291 unmodified lines<buttontype="button"ref={dbButton}// ββ WAVE 35 QA β `dbAt` ALONE IS THE FLYOUT ANCHOR, NOT THE CURRENT SURFACE, AND// THAT MADE W35-T03 FALSE ON THE ONE ROW A PERSON SPENDS MOST OF THEIR DAY IN.// Measured on the deployed build: standing on "Odoo customers", `.shell-nav-db` read// exactly `shell-nav-item shell-nav-db` β every rail row painted identically plain,// nothing marking Database as current. It lit up only while the flyout was manually// REOPENED, which is a click the ticket's "at a glance" does not allow for. Six of the// seven rows in that clause were right; this one was gated on the wrong fact.// β THE FLYOUT'S OWN ROWS ALREADY HAD THE RIGHT ANSWER (`active.key === item.key`,// below) β the button was the only thing in the rail reading a different question.// So this asks the SAME question the rows ask: is the resolved route one of the// databases this flyout lists? [[one-evaluator-per-question]]className={"shell-nav-item shell-nav-db"+ (dbAt || (!!active && dbEntries.some((e) => e.key === active.key))? " is-active" : "")}aria-haspopup="dialog"aria-expanded={!!dbAt}onMouseEnter={navCollapsed ? tipEnter("Database") : undefined}
RELEASES.json+7-1
VERSION+1-1
api/routes_feedback.py+13-1
web/src/customer-grid/CustomerGrid.tsx+17-1
web/src/customer-grid/useVisibleRows.ts+28-3
web/src/index.css+19
web/src/shell/Shell.tsx+26-2