Repository navigation
Phase E5: Replace the dataset page Compute dialog - #506
Merged
neuromechanist merged 12 commits intoNov 7, 2026
Merged
neuromechanist merged 12 commits into
neuromechanist merged 12 commits into
Conversation
neuromechanist
merged commit Nov 7, 2026
ea21483
into
feature/issue-493-epic-compute-web
2 of 3 checks passed
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase E5: replace the dataset page Compute dialog (website#498)
Part of epic website#493. The "Compute instructions" dialog now describes
nemar compute(request access, dry run, submit against<id>@<version>, follow, results) instead of an S3 prefix and a Neuroscience Gateway flow that never shipped. The old "coming soon" note and its link to website#6 are gone. Closing #498 and #6 is left to the driver. website#6's body is retargeted (NSG connector superseded by NEMAR compute); website#498 removes the dialog's link to that issue, and that change is live once it reaches production.What changed
src/lib/compute-instructions.ts: pure builder,closed|not_available|ready. Commands only; no URL, limit, price, balance or machine.src/components/ActionBar.astro: new dialog body (samedl-cmdcopy rows and delegated copy handler as Download), hookdata-compute-open,aria-labelledby, focusable<pre>.[id].astropassesanonymousandunpublished.src/lib/compute-labels.ts:datasetDialoglocal labels. No new shared copy key; shared keys reused:compute_access.section.lede,.request.cta,.granted.link,.terms_unpublished.body,compute_page.queue_note. nemar-cli's account-copy contract is untouched, so there is no nemar-cli companion PR.scripts/capture-compute-cli-help.mjsandtest/fixtures/compute/cli-help/: realnemar ... --help-alloutput from nemar-cli e0685a25.Decisions (driver answers)
computeRequestsOpen(COMPUTE_REQUESTS_ENABLED, apiBase()): production shows the "not open yet" dialog until the owner flips the flag.nm/onpre-filter on facts the page holds is interim. Follow-ups already filed in nemar-cli: #2090 (public availability read), #2091 (per-dataset eligibility fact), #2092 (job environment docs: where staged data and outputs are), #2093 (includeglob flag).Tests
src/lib/compute-instructions.test.ts: exact commands, band and version handling, everynot_availablereason, honesty scan (nos3://, npm, NSG, rclone, URL, resource flag, promise word, machine word, digits), with a mutation check.test/compute-instructions-cli-parity.test.ts: every command and flag in every row exists in the captured help; the--dataset <id@version>form; each paraphrased claim still has its help line. Verified by mutation:--datasetto--dataandlisttojobsboth fail it.test/compute-dialog-ui.test.ts: source scan scoped to the dialog element (not the whole page, since Use this data legitimately renderss3://nemar/<id>/zarr/...).Verification run
bun run lint,bun run typecheck(0 errors),bun run test(191 files, 5164 tests, drift env vars pointed at the Epic D worktree),bun run build(public/og-image.pngreverted).curlof the dialog element: open backend (staging API base) onnm000104andon004696shows the commands with the page's id and version; the production default shows only theclosedtext; stagingnm099998(anonymous) andxx099900show only the onenot_availablesentence with no link or command. Nos3://,nsgportal,website/issues/6,npm installin any of them.<job>the only placeholder) and show "Copied", Escape closes and focus returns to the button, tab order is links,<pre>s, Copy buttons, Close; no horizontal page scroll, each<pre>scrolls inside itself, copy buttons are 44 px; light and dark both checked.Review fixes
/loginscript appendslocation.hashtonextthroughnextWithHash(src/lib/auth.ts) only when it is a plain anchor name (#plus a letter, then letters, digits,_,-) andnexthas no fragment.safeRedirectPathstill validatesnexton/login/verifyand accepts the result; tests cover a good hash, hostile hashes (javascript:,//evil, encoded newline, spaces,<script>), an existing fragment, and theURLSearchParamsround trip. Limit, accepted: the server-computed ORCID sign-in link cannot see a fragment, so it still drops it.<pre>removed).Not verified
appUrlunit tests plus the single-host relative links); read production HTML after release.#compute-accessfragment surviving a real sign-in end to end was covered by unit and source tests only, not by signing in.readydialog) and not attached.