Spaces:
Running
Running
github-actions[bot] commited on
Commit ·
cdf7b5f
1
Parent(s): be4c9d8
Deploy 364041a
Browse filesThe projects were in no order, and only scrolling reached them (#413)
Source: https://github.com/WINTER4000/turingDNA/commit/364041acad1c2ba3341b39cd955cf64557855da4
Files changed (7)
- dee/server.py+20-7
- dee/static/app.css+52
- dee/static/app.js+117-1
- dee/static/index.html+55-43
- tests/js/portfolio_pager.cjsAdded+213
- tests/test_awaiting_results.py+24-10
- tests/test_projects_in_order_six_at_a_time.pyAdded+217
6372 unmodified lines637363746375637663776378637963806381638263836384638563866372 unmodified lines"text": "","cta": "Open", "route": p["kind"]}# OPEN LOOPS FIRST, then recency. Sorting purely by date buries the# one card that is waiting on the user under whatever they opened most# recently — and the whole reason this surface exists is to put the# unfinished thing in front of them.def _rank(g):act = _next_action(g)waiting = 1 if act.get("type") in ("awaiting", "round2") else 0return (waiting, str(g["at"] or ""))constructs = []for g in sorted(groups.values(), key=_rank, reverse=True):6372 unmodified lines6373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996372 unmodified lines"text": "","cta": "Open", "route": p["kind"]}# NEWEST WORK FIRST. Nothing else.## This used to rank open loops above everything ("waiting" first, date# second) so that a card blocked on the user could not be buried. The# cost was a list that did not read as a list: a library last touched# on 15 October sat above a construct saved the same morning, with# nothing on either card to explain why. Reported 2026-11-27 as "the# projects aren't chronologically displayed", which is exactly what it# looked like, because that is what it was.## The open loop is still marked — the card carries `next.type`, and the# client paints "awaiting" and "round2" with the emphatic footer# (app.js `actCls`, guarded by test_awaiting_results). It is found by# colour and by the search box now, not by being moved to the top of# somebody's work.## Sorted on `at`, which is `updated_at` — the newest piece of work in# the project, not when the project was born. That is the one the card# shows as "Last worked".def _rank(g):return str(g["at"] or "")constructs = []for g in sorted(groups.values(), key=_rank, reverse=True):
8197 unmodified lines8198819982008201820282038197 unmodified linesbackground: var(--ink-strong); padding: 7px 12px; white-space: nowrap; flex: none; }.mc-cx-act.hot .mc-cx-act-go { background: var(--success); }/* Sign-in nudge in the gated (anonymous) constructs slot — previously theonly sign-in affordance was the sidebar foot, three big zeros below. */.mc-signin { grid-column: 1 / -1; padding: 22px; background: var(--bg-card); border: 1px solid var(--line);8197 unmodified lines81988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558197 unmodified linesbackground: var(--ink-strong); padding: 7px 12px; white-space: nowrap; flex: none; }.mc-cx-act.hot .mc-cx-act-go { background: var(--success); }/* ── Finding work instead of scrolling for it ─────────────────────────────The portfolio shows one page of cards; this is the box that reaches therest of them and the button that reveals the next page. Both are hiddenbelow one page's worth, so a workspace with three projects is not handeda search box to look at.The two [hidden] restatements are not decoration: a class that setsdisplay: beats the `hidden` attribute's UA display:none — the same trap.mc-recent[hidden] already carries a restatement for. .mc-cx is flex, sowithout the first the pager would set `hidden` on every card past thesixth and every one of them would keep rendering; .mc-find is flex too,so without the second a workspace with three projects would be handedthe search box this whole block exists to withhold. .mc-more needs norestatement — it sets no display of its own, so the UA rule governs. */.mc-cx[hidden] { display: none; }.mc-find[hidden] { display: none; }.mc-find { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }.mc-find-in {flex: 1; min-width: 0; max-width: 340px;padding: 8px 12px; font-family: inherit; font-size: var(--t-2);color: var(--ink-strong); background: var(--bg-card);border: 1px solid var(--line-strong); border-radius: var(--r-2);}.mc-find-in::placeholder { color: var(--ink-faint); }.mc-find-in:focus-visible {outline: none; border-color: var(--ink-strong);box-shadow: var(--ring) var(--brand-ring);}/* The result count. aria-live in the markup, so a filter that empties thegrid is announced rather than silently leaving a reader on a blank page. */.mc-find-n {margin: 0; font-family: var(--font-mono); font-size: var(--t-1);letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);}.mc-more {margin: 14px 0 0; padding: 9px 16px; min-height: 40px;font-family: var(--font-mono); font-size: var(--t-2); letter-spacing: 0.04em;color: var(--ink-strong); background: var(--bg-card);border: 1px solid var(--line-strong); border-radius: var(--r-2);cursor: pointer; transition: background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);}.mc-more:hover { background: var(--bg-hover); border-color: var(--ink-strong); }.mc-more:focus-visible { outline: none; box-shadow: var(--ring) var(--brand-ring); }@media (max-width: 760px) {/* The box takes the width it can get, and both controls clear the 44pxtap floor (constraint: iOS). */.mc-find { flex-wrap: wrap; gap: 8px; }.mc-find-in { max-width: none; min-height: 44px; }.mc-more { width: 100%; min-height: 44px; }}/* Sign-in nudge in the gated (anonymous) constructs slot — previously theonly sign-in affordance was the sidebar foot, three big zeros below. */.mc-signin { grid-column: 1 / -1; padding: 22px; background: var(--bg-card); border: 1px solid var(--line);
20389 unmodified lines2039020391203922039320394203952039623 unmodified lines204202042120422204232042420425424 unmodified lines20850208512085220853208542085520856208572085892 unmodified lines20951209522095320954209552095620389 unmodified lines(card.querySelector('.mc-cx-meta') || card).appendChild(el);unseenTotal += p.unseen || 0;}if (shelf && card.parentNode !== shelf) shelf.appendChild(card);moved++;return;}23 unmodified linesif (countEl && /\d/.test(countEl.textContent || '')) {countEl.textContent = 'Your constructs — ' + left;}}// 2. The nav badge and the workspace pointer that used to carry this424 unmodified lines};}async function load(force) {const grid = document.getElementById('mcPortfolio');if (!grid) return;const doneSkeleton = _skeletonWhileSlow(grid, 3);// Shared with catalog.js, and seeded from the boot fetch in <head>.// These were two independent /api/mission calls on one page load.92 unmodified lines} else {grid.innerHTML = projHtml + artHtml ||'<p class="muted">No constructs yet.</p>';if (countEl) {// Projects count; they are named pieces of work with a target// and a phase. Recents do not — they live in their own section20389 unmodified lines20390203912039220393203942039520396203972039820399204002040123 unmodified lines204252042620427204282042920430204312043220433424 unmodified lines208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097392 unmodified lines2106621067210682106921070210712107220389 unmodified lines(card.querySelector('.mc-cx-meta') || card).appendChild(el);unseenTotal += p.unseen || 0;}if (shelf && card.parentNode !== shelf) {// It may have been paged out of the portfolio on its way// here; the shelf has no pager, so everything in it shows.card.hidden = false;shelf.appendChild(card);}moved++;return;}23 unmodified linesif (countEl && /\d/.test(countEl.textContent || '')) {countEl.textContent = 'Your constructs — ' + left;}// The first page was computed over a grid that still held// these cards; without this it keeps their holes.try { applyPortfolioView(); } catch (_) {}}// 2. The nav badge and the workspace pointer that used to carry this424 unmodified lines};}/* ── Six at a time, and a box to find the rest ───────────────────────The portfolio grew past the point where scrolling it is a way to findanything. Three rules, and they interact, so they live in one functionthat is safe to call again at any time:· with no query, the first MC_PAGE cards show and "See more" revealsanother MC_PAGE;· with a query, EVERY match shows regardless of the page size —searching and then still having to press "see more" would be thesearch not working;· the count line says how many of how many matched, because a filterthat silently shows nothing looks like lost work.Order comes from the server (/api/mission, _rank) and is purelychronological. Nothing here re-sorts.Called again after decorateCollaboration(), which MOVES shared cardsout of this grid into the shelf. Without that second call the firstpage keeps the holes where those cards were. */const MC_PAGE = 6;let _mcShown = MC_PAGE;let _mcWired = false;function _mcCards() {const g = document.getElementById('mcPortfolio');return g ? [].slice.call(g.querySelectorAll('.mc-cx')) : [];}/* Name and kind. Deliberately NOT the date line: "Created 3d ago" wouldmake every card match "ago", and nobody searches for a relative date. */function _mcHay(card) {const kind = card.querySelector('.mc-cx-sub');return ((card.getAttribute('data-name') || '') + ' ' +(kind ? kind.textContent : '')).toLowerCase();}function applyPortfolioView() {const cards = _mcCards();const box = document.getElementById('mcSearch');const find = document.getElementById('mcFind');const note = document.getElementById('mcFindCount');const more = document.getElementById('mcMore');// The search box earns its place only once scrolling is the problem.// Withdrawing it also drops whatever was typed in it — and the query// has to be read AFTER that, not before. Reading first left a stale// term filtering a grid whose box was already gone: delete enough// projects to fall under one page while a search is active and every// remaining card vanished, with no visible box to explain why.if (find) find.hidden = cards.length <= MC_PAGE;if (find && find.hidden && box && box.value) box.value = '';const q = ((box && box.value) || '').trim().toLowerCase();const matched = q ? cards.filter((c) => _mcHay(c).indexOf(q) >= 0) : cards;const shown = q ? matched.length : Math.min(_mcShown, cards.length);cards.forEach((c) => { c.hidden = true; });matched.slice(0, shown).forEach((c) => { c.hidden = false; });if (note) {note.textContent = !q ? '': matched.length ? matched.length + ' of ' + cards.length + ' match': 'No project matches that.';}if (more) {const left = cards.length - shown;// One button, two states: it reveals the next page until there is// nothing left to reveal, then it puts the list back.more.hidden = !!q || cards.length <= MC_PAGE;more.textContent = left > 0? 'See ' + left + ' more' : 'Show fewer';more.dataset.mode = left > 0 ? 'more' : 'fewer';}// A card that just came back into view may never have been asked to// paint its fold.const grid = document.getElementById('mcPortfolio');if (grid) { try { resolveMcThumbs(grid); } catch (_) {} }}function _wirePortfolioControls() {if (_mcWired) return;const box = document.getElementById('mcSearch');const more = document.getElementById('mcMore');if (!box && !more) return;if (box) {box.addEventListener('input', applyPortfolioView);box.addEventListener('keydown', (e) => {if (e.key === 'Escape' && box.value) {box.value = '';applyPortfolioView();}});}if (more) more.addEventListener('click', () => {_mcShown = more.dataset.mode === 'fewer'? MC_PAGE : _mcShown + MC_PAGE;applyPortfolioView();if (more.dataset.mode === 'fewer') {// Collapsing from the bottom of a long list would otherwise// leave the viewport below the whole section.const sec = more.closest('.mc-sec');if (sec) sec.scrollIntoView({ block: 'nearest' });}});_mcWired = true;}async function load(force) {const grid = document.getElementById('mcPortfolio');if (!grid) return;// A refresh starts at the first page again; the controls are// outside the grid, so they survive its innerHTML and are wired once._mcShown = MC_PAGE;_wirePortfolioControls();const doneSkeleton = _skeletonWhileSlow(grid, 3);// Shared with catalog.js, and seeded from the boot fetch in <head>.// These were two independent /api/mission calls on one page load.92 unmodified lines} else {grid.innerHTML = projHtml + artHtml ||'<p class="muted">No constructs yet.</p>';applyPortfolioView();if (countEl) {// Projects count; they are named pieces of work with a target// and a phase. Recents do not — they live in their own section
236 unmodified lines237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276642 unmodified lines9199209219229239249252740 unmodified lines36663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137321 unmodified line373437353736373737383739236 unmodified linescritical path is an availability dependency we don't control.Top-level, not a subdirectory: /static/<path> only minifies andhard-caches assets with no slash in the name. --><link rel="stylesheet" href="/static/open-props-1.7.23.min.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/app.css?v=20261127-glass-on-the-chrome" /><!-- The work catalog + the draggable rail. Kept out of app.css so two newself-contained surfaces stay reviewable; every colour is an app.csstoken, so both themes work with nothing added. --><link rel="stylesheet" href="/static/catalog.css?v=20261127-glass-on-the-chrome" /><!-- Units, the run strip and the decision trace. Same reasoning ascatalog.css: kept out of app.css so a self-contained surface staysreviewable, and every colour is an app.css token so both themeswork with nothing added. --><link rel="stylesheet" href="/static/trace.css?v=20261127-glass-on-the-chrome" /><!-- Disclosure surfaces added in the 2026-08 scientific review (CRISPRscope strip, provenance "Assumes" line). Separate file for the samereason as catalog.css: small, self-contained, and app.css's cascadeis hostile. Uses app.css tokens only, so both themes work. --><link rel="stylesheet" href="/static/science.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/workbench.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/workspaces.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/collab.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/interaction.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/referrals.css?v=20261127-glass-on-the-chrome" /><link rel="stylesheet" href="/static/onboarding.css?v=20261127-glass-on-the-chrome" /><!-- Light, depth and a signature per instrument. After the componentsheets so it can lift them; before motion.css and accent.css, whichkeep the last word on Mission Control's motion and on amber. --><link rel="stylesheet" href="/static/atmosphere.css?v=20261127-glass-on-the-chrome" /><!-- Depth + motion for Mission Control. LAST: it refines .mc-* rules thatapp.css already defines at the same specificity, so it has to win onorder rather than by inflating selectors. Sets no colour. --><link rel="stylesheet" href="/static/motion.css?v=20261127-glass-on-the-chrome" /><!-- The secondary colour (the landing amber) by role: the key action,where you are, and selection. LAST, for the same reason asmotion.css: it overrides colours set earlier at equal specificity. --><link rel="stylesheet" href="/static/accent.css?v=20261127-glass-on-the-chrome" /><link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=5" /><link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png?v=3" /><!-- Mol* (PDBe) 3-D viewer is ~4.9 MB. We do NOT eager-load it on every642 unmodified linesthere is nothing in them. --><section class="mc-sec"><div class="mc-sec-h"><p class="micro" id="mcCxCount">Your constructs</p><a class="mc-sec-r" id="mcAllDesigns" role="button" tabindex="0">View saved work →</a></div><div class="mc-grid" id="mcPortfolio"><p class="muted">Loading…</p></div></section><!-- Shared work, as its own field. Collaborative projects are2740 unmodified linesAuthorization header on every same-origin /api/* call. Withoutthis, signed-in users would still hit the anonymous-quotagate. --><script src="/static/identity.js?v=20261127-glass-on-the-chrome"></script><script src="/static/notifications.js?v=20261127-glass-on-the-chrome"></script><script src="/static/auth.js?v=20261127-glass-on-the-chrome"></script><!-- Checkout runs on the approved turingdna.com origin, outside this iframe. --><script src="/static/billing.js?v=20261127-glass-on-the-chrome" defer></script><!-- Cloning reference data must load before app.js so the Designercan read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. --><script src="/static/cloning_db.js?v=20261127-glass-on-the-chrome" defer></script><!-- Before context.js and tabs.js: which project the bench is in decideswhere each tool keeps its state (tabs.js reads it at mount). --><script src="/static/project.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/context.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/lineage.js?v=20261127-glass-on-the-chrome" defer></script><!-- Before app.js: it mounts a strip at init. Both are `defer`, so theyrun in document order. --><script src="/static/tabs.js?v=20261127-glass-on-the-chrome" defer></script><!-- Also before app.js, for the same document-order reason: app.jsregisters its perception provider as it parses. A missingTDPerception is survivable by design — the agent is then blind tothe bench rather than the page being broken — but loading it latewould make that the normal case. --><script src="/static/perception.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/app.js?v=20261127-glass-on-the-chrome" defer></script><!-- The decision trace, BEFORE cockpit.js: applyEvent calls TDTrace.pushon the very first event, and both are `defer`, so document order isload order. Loading it after would drop the opening events of arestored run on the floor — silently, since the push is guarded. --><script src="/static/trace.js?v=20261127-glass-on-the-chrome" defer></script><!-- THE COCKPIT — the persistent orchestrator rail. Loads after app.js soTDBench/TDStructure exist when a tool result asks the workspace torender something. This is the only conversation surface in the app. --><script src="/static/decisions.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/cockpit.js?v=20261127-glass-on-the-chrome" defer></script><!-- structcard before catalog: the catalog calls TDStructCard.observe assoon as it paints. Both are defer, so document order is load order. --><script src="/static/structcard.js?v=20261127-glass-on-the-chrome" defer></script><!-- After app.js on purpose: it reuses that file's Mol* helpers(ensureMolstar, _afCreateViewer, _afRefit, _afShowError) rather thanstanding up a second viewer. --><script src="/static/interaction.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/catalog.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/workspaces.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/collab.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/history.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/teamwork.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/order.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/referrals.js?v=20261127-glass-on-the-chrome" defer></script><!-- Getting started (0064). After referrals.js, whose dialog two of itssteps open; it starts on auth.js's td:account event, not at load. --><script src="/static/onboarding.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/atmosphere.js?v=20261127-glass-on-the-chrome" defer></script><script src="/static/railsplit.js?v=20261127-glass-on-the-chrome" defer></script><!-- Dwell-time heartbeat. Loads after auth.js so its /api/ping calls gothrough the JWT-attaching fetch wrapper (signed-in attribution). --><script src="/static/telemetry.js?v=20261127-glass-on-the-chrome" defer></script><!-- First-party UX-behaviour collector (dead/rage clicks, scroll depth,funnel steps, feature clicks, client errors). Structure-only, neverreads sequence content; shares telemetry.js's persisted td_session_idand POSTs batches to /api/collect via sendBeacon. First-party /staticfile so it satisfies the strict script-src CSP. --><script src="/static/collector.js?v=20261127-glass-on-the-chrome" defer></script><!-- PostHog, loaded LAST on purpose. It chains window.fetch to turn asuccessful API call into a named product event, and auth.js and1 unmodified lineso it observes the response the user actually got rather than one oftheirs mid-flight. See dee/static/posthog.js for why autocapture andsession replay are off and must stay off. --><script src="/static/posthog.js?v=20261127-glass-on-the-chrome" defer></script></body></html>236 unmodified lines237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276642 unmodified lines9199209219229239249259269279289299309319329339349359369372740 unmodified lines36783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337441 unmodified line374637473748374937503751236 unmodified linescritical path is an availability dependency we don't control.Top-level, not a subdirectory: /static/<path> only minifies andhard-caches assets with no slash in the name. --><link rel="stylesheet" href="/static/open-props-1.7.23.min.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/app.css?v=20261127-six-at-a-time" /><!-- The work catalog + the draggable rail. Kept out of app.css so two newself-contained surfaces stay reviewable; every colour is an app.csstoken, so both themes work with nothing added. --><link rel="stylesheet" href="/static/catalog.css?v=20261127-six-at-a-time" /><!-- Units, the run strip and the decision trace. Same reasoning ascatalog.css: kept out of app.css so a self-contained surface staysreviewable, and every colour is an app.css token so both themeswork with nothing added. --><link rel="stylesheet" href="/static/trace.css?v=20261127-six-at-a-time" /><!-- Disclosure surfaces added in the 2026-08 scientific review (CRISPRscope strip, provenance "Assumes" line). Separate file for the samereason as catalog.css: small, self-contained, and app.css's cascadeis hostile. Uses app.css tokens only, so both themes work. --><link rel="stylesheet" href="/static/science.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/workbench.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/workspaces.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/collab.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/interaction.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/referrals.css?v=20261127-six-at-a-time" /><link rel="stylesheet" href="/static/onboarding.css?v=20261127-six-at-a-time" /><!-- Light, depth and a signature per instrument. After the componentsheets so it can lift them; before motion.css and accent.css, whichkeep the last word on Mission Control's motion and on amber. --><link rel="stylesheet" href="/static/atmosphere.css?v=20261127-six-at-a-time" /><!-- Depth + motion for Mission Control. LAST: it refines .mc-* rules thatapp.css already defines at the same specificity, so it has to win onorder rather than by inflating selectors. Sets no colour. --><link rel="stylesheet" href="/static/motion.css?v=20261127-six-at-a-time" /><!-- The secondary colour (the landing amber) by role: the key action,where you are, and selection. LAST, for the same reason asmotion.css: it overrides colours set earlier at equal specificity. --><link rel="stylesheet" href="/static/accent.css?v=20261127-six-at-a-time" /><link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=5" /><link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png?v=3" /><!-- Mol* (PDBe) 3-D viewer is ~4.9 MB. We do NOT eager-load it on every642 unmodified linesthere is nothing in them. --><section class="mc-sec"><div class="mc-sec-h"><p class="micro" id="mcCxCount">Your constructs</p><a class="mc-sec-r" id="mcAllDesigns" role="button" tabindex="0">View saved work →</a></div><!-- Six at a time. The box and the button sit OUTSIDE#mcPortfolio on purpose: load() replaces that grid'sinnerHTML on every refresh, and a control inside itwould lose its value and its listener each time. Bothstay hidden until there is more work than one pageholds (app.js: applyPortfolioView). --><div class="mc-find" id="mcFind" hidden><input class="mc-find-in" id="mcSearch" type="search" autocomplete="off"placeholder="Search your projects" aria-label="Search your projects" /><p class="mc-find-n" id="mcFindCount" role="status" aria-live="polite"></p></div><div class="mc-grid" id="mcPortfolio"><p class="muted">Loading…</p></div><button class="mc-more" id="mcMore" type="button" hidden></button></section><!-- Shared work, as its own field. Collaborative projects are2740 unmodified linesAuthorization header on every same-origin /api/* call. Withoutthis, signed-in users would still hit the anonymous-quotagate. --><script src="/static/identity.js?v=20261127-six-at-a-time"></script><script src="/static/notifications.js?v=20261127-six-at-a-time"></script><script src="/static/auth.js?v=20261127-six-at-a-time"></script><!-- Checkout runs on the approved turingdna.com origin, outside this iframe. --><script src="/static/billing.js?v=20261127-six-at-a-time" defer></script><!-- Cloning reference data must load before app.js so the Designercan read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. --><script src="/static/cloning_db.js?v=20261127-six-at-a-time" defer></script><!-- Before context.js and tabs.js: which project the bench is in decideswhere each tool keeps its state (tabs.js reads it at mount). --><script src="/static/project.js?v=20261127-six-at-a-time" defer></script><script src="/static/context.js?v=20261127-six-at-a-time" defer></script><script src="/static/lineage.js?v=20261127-six-at-a-time" defer></script><!-- Before app.js: it mounts a strip at init. Both are `defer`, so theyrun in document order. --><script src="/static/tabs.js?v=20261127-six-at-a-time" defer></script><!-- Also before app.js, for the same document-order reason: app.jsregisters its perception provider as it parses. A missingTDPerception is survivable by design — the agent is then blind tothe bench rather than the page being broken — but loading it latewould make that the normal case. --><script src="/static/perception.js?v=20261127-six-at-a-time" defer></script><script src="/static/app.js?v=20261127-six-at-a-time" defer></script><!-- The decision trace, BEFORE cockpit.js: applyEvent calls TDTrace.pushon the very first event, and both are `defer`, so document order isload order. Loading it after would drop the opening events of arestored run on the floor — silently, since the push is guarded. --><script src="/static/trace.js?v=20261127-six-at-a-time" defer></script><!-- THE COCKPIT — the persistent orchestrator rail. Loads after app.js soTDBench/TDStructure exist when a tool result asks the workspace torender something. This is the only conversation surface in the app. --><script src="/static/decisions.js?v=20261127-six-at-a-time" defer></script><script src="/static/cockpit.js?v=20261127-six-at-a-time" defer></script><!-- structcard before catalog: the catalog calls TDStructCard.observe assoon as it paints. Both are defer, so document order is load order. --><script src="/static/structcard.js?v=20261127-six-at-a-time" defer></script><!-- After app.js on purpose: it reuses that file's Mol* helpers(ensureMolstar, _afCreateViewer, _afRefit, _afShowError) rather thanstanding up a second viewer. --><script src="/static/interaction.js?v=20261127-six-at-a-time" defer></script><script src="/static/catalog.js?v=20261127-six-at-a-time" defer></script><script src="/static/workspaces.js?v=20261127-six-at-a-time" defer></script><script src="/static/collab.js?v=20261127-six-at-a-time" defer></script><script src="/static/history.js?v=20261127-six-at-a-time" defer></script><script src="/static/teamwork.js?v=20261127-six-at-a-time" defer></script><script src="/static/order.js?v=20261127-six-at-a-time" defer></script><script src="/static/referrals.js?v=20261127-six-at-a-time" defer></script><!-- Getting started (0064). After referrals.js, whose dialog two of itssteps open; it starts on auth.js's td:account event, not at load. --><script src="/static/onboarding.js?v=20261127-six-at-a-time" defer></script><script src="/static/atmosphere.js?v=20261127-six-at-a-time" defer></script><script src="/static/railsplit.js?v=20261127-six-at-a-time" defer></script><!-- Dwell-time heartbeat. Loads after auth.js so its /api/ping calls gothrough the JWT-attaching fetch wrapper (signed-in attribution). --><script src="/static/telemetry.js?v=20261127-six-at-a-time" defer></script><!-- First-party UX-behaviour collector (dead/rage clicks, scroll depth,funnel steps, feature clicks, client errors). Structure-only, neverreads sequence content; shares telemetry.js's persisted td_session_idand POSTs batches to /api/collect via sendBeacon. First-party /staticfile so it satisfies the strict script-src CSP. --><script src="/static/collector.js?v=20261127-six-at-a-time" defer></script><!-- PostHog, loaded LAST on purpose. It chains window.fetch to turn asuccessful API call into a named product event, and auth.js and1 unmodified lineso it observes the response the user actually got rather than one oftheirs mid-flight. See dee/static/posthog.js for why autocapture andsession replay are off and must stay off. --><script src="/static/posthog.js?v=20261127-six-at-a-time" defer></script></body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213/* Six at a time, and the box that reaches the rest — driven, not grepped.
The python suite beside this one reads source for the page size, the hidden-attribute rule and the call sites. Source assertions find the WORDS. They cannot find the thing that actually broke while this was being written: applyPortfolioView read the query BEFORE withdrawing the search box, so falling under one page with a search active filtered the survivors against a term whose box was already gone and hid every card. Reading first and reading last look identical in a grep.
So this lifts the real functions out of app.js and drives them against a real DOM, the way tests/js/form_draft.cjs does for the draft boxes. */const { test } = require('node:test');const assert = require('node:assert/strict');const vm = require('node:vm');const fs = require('node:fs');
const SRC = fs.readFileSync(__dirname + '/../../dee/static/app.js', 'utf8');
function body(name) { const head = SRC.indexOf('function ' + name + '('); assert.notStrictEqual(head, -1, name + ' is gone from app.js'); let depth = 0; for (let j = SRC.indexOf('{', head); j < SRC.length; j++) { if (SRC[j] === '{') depth++; else if (SRC[j] === '}') { depth--; if (depth === 0) return SRC.slice(head, j + 1); } } throw new Error(name + ' has unbalanced braces');}
function constant(name) { const m = SRC.match(new RegExp('const ' + name + ' = (\\d+);')); assert.ok(m, name + ' is gone from app.js'); return Number(m[1]);}
const MC_PAGE = constant('MC_PAGE');
/* A DOM small enough to reason about and real enough to exercise `hidden`, querySelectorAll and the element lookups the functions actually make. */function makeDom(items) { const nodes = {}; function el(tag, attrs) { const node = { tagName: tag, hidden: false, value: '', textContent: '', dataset: {}, _attrs: attrs || {}, _kids: [], getAttribute(k) { return this._attrs[k] === undefined ? null : this._attrs[k]; }, querySelector(sel) { const want = sel.replace('.', ''); for (const k of this._kids) if (k._attrs.class === want) return k; return null; }, addEventListener() {}, closest() { return null; }, }; return node; } const cards = items.map((it) => { const card = el('button', { class: 'mc-cx', 'data-name': it.name }); const kind = el('span', { class: 'mc-cx-sub' }); kind.textContent = it.kind; card._kids.push(kind); return card; }); nodes.mcPortfolio = { querySelectorAll(sel) { assert.equal(sel, '.mc-cx'); return cards.filter((c) => c._live !== false); }, }; nodes.mcSearch = el('input', { id: 'mcSearch' }); nodes.mcFind = el('div', { id: 'mcFind' }); nodes.mcFind.hidden = true; nodes.mcFindCount = el('p', { id: 'mcFindCount' }); nodes.mcMore = el('button', { id: 'mcMore' }); nodes.mcMore.hidden = true; return { nodes, cards };}
function load(items) { const { nodes, cards } = makeDom(items); const sandbox = { document: { getElementById: (id) => nodes[id] || null }, resolveMcThumbs() {}, console, }; vm.createContext(sandbox); vm.runInContext( 'var MC_PAGE = ' + MC_PAGE + '; var _mcShown = MC_PAGE; var _mcWired = false;\n' + body('_mcCards') + '\n' + body('_mcHay') + '\n' + body('applyPortfolioView') + '\n' + 'function setShown(n) { _mcShown = n; }\n' + 'function shown() { return _mcShown; }\n', sandbox); const api = { apply: () => vm.runInContext('applyPortfolioView()', sandbox), bump: () => vm.runInContext('_mcShown += MC_PAGE; applyPortfolioView()', sandbox), reset: () => vm.runInContext('_mcShown = MC_PAGE; applyPortfolioView()', sandbox), type(q) { nodes.mcSearch.value = q; api.apply(); }, visible: () => cards.filter((c) => c._live !== false && !c.hidden) .map((c) => c.getAttribute('data-name')), drop(n) { cards.slice(n).forEach((c) => { c._live = false; }); }, nodes, cards, }; api.apply(); return api;}
const TEN = [ { name: 'BRCA1 CDS', kind: 'Construct' }, { name: 'MC1R CDS', kind: 'Construct' }, { name: 'CD4 CDS', kind: 'Construct' }, { name: 'HBB CDS', kind: 'Construct' }, { name: 'Hemoglobin subunit beta', kind: 'Library' }, { name: 'HLAA_HUMAN', kind: 'Library' }, { name: 'Turing run', kind: 'Library' }, { name: 'PCSK9 thermostability', kind: 'Library' }, { name: 'KRAS guide set', kind: 'CRISPR design' }, { name: 'TP53 primer pair', kind: 'Primer analysis' },];
test('one page is shown, and the order is left exactly as it arrived', () => { const p = load(TEN); assert.equal(p.visible().length, MC_PAGE); assert.deepEqual(p.visible(), TEN.slice(0, MC_PAGE).map((x) => x.name));});
test('the button names how many are left, and reveals another page', () => { const p = load(TEN); assert.equal(p.nodes.mcMore.textContent, 'See 4 more'); p.bump(); assert.equal(p.visible().length, 10); assert.equal(p.nodes.mcMore.dataset.mode, 'fewer'); assert.equal(p.nodes.mcMore.textContent, 'Show fewer');});
test('a search reaches past the page it is sitting on', () => { // PCSK9 is the 8th card: never on page one. A search that could only // see the rendered page would be a filter over six things. const p = load(TEN); p.type('pcsk9'); assert.deepEqual(p.visible(), ['PCSK9 thermostability']);});
test('the kind is searchable, not only the name', () => { const p = load(TEN); p.type('library'); assert.equal(p.visible().length, 4); assert.equal(p.nodes.mcFindCount.textContent, '4 of 10 match');});
test('matching is case-insensitive and ignores surrounding space', () => { const p = load(TEN); p.type(' TuRiNg '); assert.deepEqual(p.visible(), ['Turing run']);});
test('every match shows, even past one page', () => { const p = load(TEN); // 'r' is in every one of the ten, name or kind — so the match set is // comfortably larger than a page. ('c' matched exactly six, which is // MC_PAGE, and would have passed whether or not paging was lifted.) p.type('r'); const matches = TEN.filter((x) => (x.name + ' ' + x.kind).toLowerCase().includes('r')); assert.equal(p.visible().length, matches.length); assert.ok(matches.length > MC_PAGE, 'the fixture no longer tests paging past a page'); assert.equal(p.nodes.mcMore.hidden, true, 'see-more competes with the search');});
test('nothing matching says so instead of leaving a blank grid', () => { const p = load(TEN); p.type('zzzz'); assert.equal(p.visible().length, 0); assert.equal(p.nodes.mcFindCount.textContent, 'No project matches that.');});
test('clearing the box restores the page and the button', () => { const p = load(TEN); p.type('turing'); p.type(''); assert.equal(p.visible().length, MC_PAGE); assert.equal(p.nodes.mcFindCount.textContent, ''); assert.equal(p.nodes.mcMore.hidden, false);});
test('under one page there is no box and no button', () => { const p = load(TEN.slice(0, 5)); assert.equal(p.nodes.mcFind.hidden, true); assert.equal(p.nodes.mcMore.hidden, true); assert.equal(p.visible().length, 5);});
test('falling under one page WHILE searching does not hide the survivors', () => { /* THE BUG THIS FILE WAS WRITTEN FOR. The box is withdrawn and its value dropped; if the query is read before that happens, the five remaining cards are filtered against a term the user can no longer see or clear, and the section renders empty. */ const p = load(TEN); p.type('turing'); assert.equal(p.visible().length, 1); p.drop(5); // a refresh comes back with five p.apply(); assert.equal(p.nodes.mcFind.hidden, true, 'the box should be withdrawn'); assert.equal(p.nodes.mcSearch.value, '', 'and emptied with it'); assert.equal(p.visible().length, 5, 'all five survivors must be visible');});
test('a stale query never outlives its own box', () => { const p = load(TEN); p.type('zzzz'); // matches nothing p.drop(3); p.apply(); assert.equal(p.visible().length, 3);});96 unmodified lines97989910010110210310410510610710810911011111211361 unmodified lines17517617717817918018196 unmodified lines)def test_open_loops_sort_above_recent_work():"""Sorting purely by date buries the one card waiting on the user underwhatever they opened most recently."""with open("dee/server.py", encoding="utf-8") as fh:src = fh.read()assert "def _rank(g):" in src, "the construct sort no longer prioritises open loops"i = src.index("def _rank(g):")body = src[i:i + 400]assert "awaiting" in body and "round2" in body, ("the sort does not treat both loop states as waiting")def test_the_waiting_card_is_emphasised_like_round_2():61 unmodified linesassert by_name["PCSK9 fresh"]["next"]["type"] == "build", ("a day-old library is being nagged for results it cannot have")# and the waiting one comes firstassert cons[0]["name"] == "MSTN thermostability", (f"open loop is not sorted first: {[c['name'] for c in cons]}")96 unmodified lines97989910010110210310410510610710810911011111211311411511611711811912012112212312412561 unmodified lines18718818919019119219319419596 unmodified lines)def test_open_loops_are_marked_rather_than_moved():"""This used to assert the opposite: that _rank put open loops aboveeverything, so a card waiting on the user could not be buried.Reversed 2026-11-27 on the founder's report — "the projects aren'tchronologically displayed". It was not a sorting slip; it was this rule,which put a library last touched in October above a construct saved thesame morning with nothing on either card to explain the order. The listis strictly chronological now (test_projects_in_order_six_at_a_time), andthe portfolio pages and filters, so a card is found rather than ranked.The idea behind the old rule survives in the half that never depended onposition: the card still carries its loop state and the client stillpaints it emphatically — which is the test directly below this one."""with open("dee/server.py", encoding="utf-8") as fh:src = fh.read()assert "def _rank(g):" in src, "the construct sort is gone entirely"i = src.index("def _rank(g):")body = src[i:src.index("\n\n", i)]assert "awaiting" not in body and "round2" not in body, ("the action is deciding position again — see this docstring")assert "_next_action" in src, "the loop state is no longer computed at all"def test_the_waiting_card_is_emphasised_like_round_2():61 unmodified linesassert by_name["PCSK9 fresh"]["next"]["type"] == "build", ("a day-old library is being nagged for results it cannot have")# ...and the list stays in date order while saying so. This asserted the# opposite until 2026-11-27 (the waiting card was ranked first); see# test_open_loops_are_marked_rather_than_moved above for why it reversed.assert [c["name"] for c in cons] == ["PCSK9 fresh", "MSTN thermostability"], (f"the list is not newest-first: {[c['name'] for c in cons]}")
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217"""The projects list, in order, six at a time, with a box to find the rest.
Reported 2026-11-27: "add a search feature to projects so that you don't haveto scroll and only display 6 most recent projects. also add see more buttonand more important error is that the projects aren't chronologicallydisplayed."
THE ORDERING WAS NOT A SORTING SLIP. /api/mission ranked open loops aboveeverything — `(waiting, date)` — so a library last touched on 15 October satabove a construct saved the same morning. Reproduced against the realendpoint before the fix, with a fixture mirroring the screenshot:
# name updated_at state 1 sp|P04439|HLAA_HUMAN 2026-11-03T15:37:44Z awaiting 2 Turing run 2026-10-15T15:37:44Z awaiting 3 BRCA1 CDS 2026-11-27T15:17:44Z open <- today
That ranking came from #54 with a real idea behind it (a card blocked on theuser should not be buried). The cost was a list that did not read as a list,with nothing on any card to explain the order. The idea survives in the halfthat never depended on position: the open loop still carries its `next.type`and the client still paints it with the emphatic footer, so it is found bycolour and by the search box instead of by jumping the queue.
The client half is tested for real in tests/js/portfolio_pager.cjs — pagingand filtering are behaviour, and the assertions here would read the samewhether the code ran or not."""import datetime as _dtimport pathlibimport reimport shutilimport subprocessimport types
import pytest
from dee import server
STATIC = pathlib.Path("dee/static")
def _read(rel): return pathlib.Path(rel).read_text(encoding="utf-8")
def _ago(**kw): return (_dt.datetime.now(_dt.timezone.utc) - _dt.timedelta(**kw)).strftime("%Y-%m-%dT%H:%M:%SZ")
@pytest.fixturedef client(): app = server.create_app() app.config.update(TESTING=True) return app.test_client()
def _mission(monkeypatch, client, libraries=(), plasmids=(), tested=None): monkeypatch.setattr(server._auth, "get_auth", lambda: types.SimpleNamespace(anonymous=False, user_id="u1")) monkeypatch.setattr(server._auth, "get_mutation_priors", lambda: []) monkeypatch.setattr(server._auth, "list_libraries", lambda uid: list(libraries)) monkeypatch.setattr(server._auth, "list_plasmids", lambda uid: list(plasmids)) monkeypatch.setattr(server._auth, "list_crispr_designs", lambda uid: []) monkeypatch.setattr(server._auth, "list_primer_analyses", lambda uid: []) monkeypatch.setattr(server._auth, "de_outcome_counts_by_library", lambda uid: dict(tested or {})) return client.get("/api/mission").get_json()["constructs"]
# --------------------------------------------------------------------------- ## the ordering# --------------------------------------------------------------------------- #SCREENSHOT = dict( libraries=[ {"id": "lib-hla", "name": "HLAA_HUMAN", "created_at": _ago(days=24), "n_variants": 10, "top_fitness": 10.56}, {"id": "lib-turi", "name": "Turing run", "created_at": _ago(days=43), "n_variants": 10, "top_fitness": 7.86}, ], plasmids=[ {"id": "pl-brca", "name": "BRCA1 CDS", "created_at": _ago(minutes=20)}, {"id": "pl-mc1r", "name": "MC1R CDS", "created_at": _ago(hours=17)}, {"id": "pl-cd4", "name": "CD4 CDS", "created_at": _ago(hours=18)}, {"id": "pl-hbb", "name": "HBB CDS", "created_at": _ago(days=5)}, ],)
def test_the_list_is_in_date_order_and_nothing_jumps_the_queue(client, monkeypatch): rows = _mission(monkeypatch, client, **SCREENSHOT) stamps = [r["updated_at"] for r in rows] assert stamps == sorted(stamps, reverse=True), ( "the projects are not in date order:\n" + "\n".join(f" {r['name']:<14} {r['updated_at']} {r['next']['type']}" for r in rows))
def test_an_aged_open_loop_sits_below_this_mornings_work(client, monkeypatch): """The specific inversion in the report: the two 'waiting on your results' libraries from weeks ago stood above constructs from hours ago.""" rows = {r["name"]: i for i, r in enumerate(_mission(monkeypatch, client, **SCREENSHOT))} assert rows["BRCA1 CDS"] < rows["HLAA_HUMAN"] assert rows["MC1R CDS"] < rows["Turing run"]
def test_the_open_loop_is_still_marked_just_not_moved(client, monkeypatch): """The idea behind the old ranking was that a card blocked on the user must not disappear. It still cannot: it carries its state, and the client paints that state (test_awaiting_results guards the emphasis).""" rows = {r["name"]: r for r in _mission(monkeypatch, client, **SCREENSHOT)} assert rows["HLAA_HUMAN"]["next"]["type"] == "awaiting" assert rows["Turing run"]["next"]["type"] == "awaiting"
def test_the_sort_no_longer_consults_the_action(client, monkeypatch): src = _read("dee/server.py") i = src.index("def _rank(g):") body = src[i:src.index("\n\n", i)] for word in ("awaiting", "round2", "_next_action"): assert word not in body, ( f"_rank still reads {word!r} — the action is deciding position again")
def test_ties_do_not_crash_on_a_missing_date(client, monkeypatch): """`at` is None for a row that never carried one; it must sort last rather than raise.""" rows = _mission(monkeypatch, client, plasmids=[{"id": "a", "name": "Dated", "created_at": _ago(days=1)}, {"id": "b", "name": "Undated", "created_at": None}]) assert [r["name"] for r in rows][0] == "Dated"
# --------------------------------------------------------------------------- ## one page at a time# --------------------------------------------------------------------------- #def test_a_page_is_six(): js = _read("dee/static/app.js") assert re.search(r"const MC_PAGE = 6;", js), "the page size is no longer six"
def test_the_hidden_card_is_actually_hidden(): """.mc-cx sets display:flex, and an element rule beats the `hidden` attribute's UA display:none — the trap .mc-recent[hidden] already carries a restatement for. Without this the pager marks cards hidden and every one of them keeps rendering.""" css = re.sub(r"/\*.*?\*/", "", _read("dee/static/app.css"), flags=re.S) assert re.search(r"\.mc-cx\[hidden\]\s*\{[^}]*display:\s*none", css), ( "cards marked hidden by the pager will still render")
def test_the_controls_live_outside_the_grid(): """load() replaces #mcPortfolio's innerHTML on every refresh. A search box inside it would lose its value and its listener each time.""" html = _read("dee/static/index.html") grid = html.index('id="mcPortfolio"') assert html.index('id="mcSearch"') < grid, "the search box is inside the grid" assert html.index('id="mcMore"') > html.index("</div>", grid), ( "the see-more button is inside the grid")
def test_the_page_is_recomputed_after_shared_work_leaves_the_grid(): """decorateCollaboration MOVES shared cards out of the portfolio into the shelf. A first page computed before that keeps the holes where they were.""" js = _read("dee/static/app.js") i = js.index("async function decorateCollaboration()") j = js.index("\n function ", i + 10) assert "applyPortfolioView()" in js[i:j], ( "the page is never recomputed after the shelf takes its cards")
def test_a_card_that_moves_to_the_shelf_is_shown_again(): """It may have been paged out of the portfolio on its way there, and the shelf has no pager of its own.""" js = _read("dee/static/app.js") i = js.index("shelf.appendChild(card)") assert "card.hidden = false" in js[i - 400:i], ( "a shared card paged out of the portfolio stays invisible on the shelf")
def test_the_query_is_read_after_the_box_is_withdrawn(): """THE BUG THIS ORDER EXISTS FOR. Falling under one page while a search is active withdraws the box and drops its value; reading the query first filters the survivors against a term that is no longer on screen and empties the section. Driven in tests/js/portfolio_pager.cjs; pinned here because the two orders are one line apart and read identically.""" js = _read("dee/static/app.js") i = js.index("function applyPortfolioView()") body = js[i:js.index("\n function ", i + 10)] clear = body.index("box.value = ''") read = body.index("const q =") assert clear < read, ( "applyPortfolioView reads the query before clearing the box")
@pytest.mark.skipif(shutil.which("node") is None, reason="node is not installed; the JS runtime suite cannot run")def test_the_pager_runtime_suite_passes(): """Paging and filtering are behaviour. Every assertion above reads source and would pass whether or not the code ran.""" suite = pathlib.Path(__file__).parent / "js" / "portfolio_pager.cjs" if not suite.exists(): pytest.skip(f"{suite} missing") proc = subprocess.run(["node", "--test", str(suite)], cwd=pathlib.Path(__file__).parent.parent, capture_output=True, text=True, timeout=120) assert proc.returncode == 0, ( "the portfolio pager runtime tests failed:\n\n" + proc.stdout[-4000:] + "\n" + proc.stderr[-2000:])
def test_the_cache_token_is_one_token(): toks = set(re.findall(r"\?v=([A-Za-z0-9._-]+)", _read("dee/static/index.html"))) assert len({t for t in toks if len(t) > 3}) == 1, f"mixed tokens: {toks}"dee/server.py+20-7
dee/static/app.css+52
dee/static/app.js+117-1
dee/static/index.html+55-43
tests/js/portfolio_pager.cjsAdded+213
tests/test_awaiting_results.py+24-10
tests/test_projects_in_order_six_at_a_time.pyAdded+217