Repository navigation
UI groundwork: task totals, results matched by output uuid, results opened once, index.html no-cache - #2570
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJ9KD35iAW6g4FnGoBkxTo The simulation card and the status cache read totals through taskTotals(), which takes the server's jobTasksSummary when present and the task list otherwise. jobTasksStatus becomes optional in the status types, and saved simulations with either field load.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJ9KD35iAW6g4FnGoBkxTo Estimators were paired with scoring outputs by array index, so an output got another one's results whenever the order differed. The backend now sends each estimator's output_uuid; results without it are matched by output name, and an estimator no output matches is reported.
…ip polling hidden tabs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJ9KD35iAW6g4FnGoBkxTo - find() with an async callback always matched the first simulation; the search now awaits each input, survives a failed request, and a slower older run no longer overwrites a newer one. - A finished tracked run opens its results once, so the Simulations tab can be reopened without jumping back to the results. - A hidden tab does not poll the status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJ9KD35iAW6g4FnGoBkxTo The page is checked on every load, so a deploy reaches browsers at once; the hashed scripts it loads may stay cached.
…aded from After Load to editor, the editor serialized again may not give the hash stored with the simulation's input, so the search for the current simulation found nothing and its results never loaded. Before the search was fixed, find() with an async callback took the first simulation on the page, which hid this. The editor now keeps the hash of the input it was loaded from until the first change, and the search matches either hash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJ9KD35iAW6g4FnGoBkxTo
grzanka
reviewed
Nov 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJ9KD35iAW6g4FnGoBkxTo
grzanka
enabled auto-merge
November 29, 2026 21:06
grzanka
self-requested a review
November 29, 2026 21:07
grzanka
approved these changes
Nov 29, 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.
Closes #2528
Small UI fixes the later results-pipeline PRs build on. It needs
output_uuidin the backend's results, which yaptide/yaptide#1724 added (merged).Docs: yaptide/for_developers#115 (simulation services: polling loop, matching results to outputs)
Changes
taskTotals(). It takes the server'sjobTasksSummarywhen a status has one and adds upjobTasksStatusotherwise.jobTasksStatusis optional in the status types. Saved simulation files with either field load.tasks=false) is left out here, because today's backend answers an unknown parameter with 400.output_uuidthe backend sends, and by output name for results without it. An estimator that matches no output is logged.find()with an async callback, so it always took the first simulation on the page. It now awaits each input, skips a failed request, and a late older search doesn't overwrite a newer one.index.htmlserved withCache-Control: no-cache, so a deploy reaches browsers on the next load. The hashed scripts stay cacheable.Tests
taskTotals.test.ts(3 tests). 2 tests added to__tests__/RemoteWorkerSimulationService.test.ts: outputs in any order are matched by uuid; the fallback matches by name and logs a mismatch.src/util,src/services,src/ThreeEditorandResultspass, andtscis clean. The rest of the suite has the same 10 Selenium/converter failures as master, caused by ChromeDriver and missing submodules in the test environment.Checks on yap-dev
Deployed on yap-dev together with the backend's object-storage PR, on a copy of the production database, and tested by hand.
Generated by Claude Code