The dispatch dialog queues a flow run last with Queue or first with Next, on the base picked #199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/3762-s4-dispatch-dialog-s1-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracker: #3762
Step 4 of #3672's planspec: the dispatch dialog as S1-V2.
What it delivers
at: "last"and Nextat: "top", each with the base picked. The dialog shows no queue information.GET /api/projects/:id/queues), its base branch first and chosen, then each other base it queues on, with the work branch after it (cut with its whole name as a tooltip). The line under the title names the project and its repository.api.dispatchFlowtakes aDispatch(flow_id,roles,base,tags,runner,at), andapi.listProjectQueuesreads a project's queues. Awidth-dispatch-branchtoken sets where the work branch wraps under the base, at 390 wide.Tests
Next queues the flow run first in the queue of the base picked: with a plan base held at 0 slots and a flow run already queued on it, the Base Select offersmasterthen the plan; Next sends{base: <plan>, at: "top"}, and the queue reads the new flow run ahead of the one there.{base: "master", at: "last"}.master, the work branch, Queue | Next and no role rows; the open scene checks each role's model, effort and account.Regression
The Roles summary at 390 wide
A collapsed Roles summary longer than its box widened the dialog's body past the dialog's right edge at 390 wide, clipping the tag field, the Roles box and Next, and showed no tooltip. The body's one grid column now has a 0 minimum, so the summary cuts with an ellipsis, and it carries its whole text as its title.
Dispatch’s folded Roles cut the accounts their runs take at the dialog’s edge(goldendispatch-roles-cut): its roles take four accounts, Personal, Work, ChatGPT and Team Pro; the scene checks the summary's title and that the dialog does not scroll sideways at 390 wide.Fail before, on the source of
c17eb6f0with the scene and its goldens:title), and with the title alone added, the dialog scrolled sideways:scrollWidth - clientWidthwas 10.Pass after, at
ead62191: the scene passes in a full run, and every other golden, the@webkitdispatch-dialogincluded, still matches.Edit project's memory switch golden
paints Edit project’s memory switch(web/e2e/memories.spec.ts, goldenproject-memories) opened Edit project, scrolled its Memories section into view and shot the page while the page's task list and the form's Tools rows could still be loading. A load that landed after the scroll moved the page under the shot, so the shot followed the server's timing: the flow's full gate at the branch's head failed it at 390×844 dark, 18639 pixels (ratio 0.06) different, and an earlier full run on this branch rewrote its 1280×800 dark shot. The scene now waits for1 task, the three Tools checkboxes and the2 memorieslink before it scrolls. Its goldens are unchanged.Fail before, on the spec of
ead62191with the task list and the tool catalog each answered 400 ms late (apage.routeprobe, not committed), in a full run of the default config: the four looks failed, 21276 (light), 15340 (phone light), 22756 (dark) and 16913 (phone dark) pixels different; the other 776 passed. In a lone run with the task list alone answered late, the phone dark shot caught the list'sLoading…rows below the form.Pass after, at
7779ea8d, with the same probe, in a full run of the default config: 780 passed and 1 skipped, the four looks matching their goldens.Goldens
Added, in
web/e2e/work-the-flows.spec.ts, light and dark at 1280×800 and 390×844:dispatch-roles(the dialog with Roles open).dispatch-roles-cut(Roles collapsed, its summary cut).Re-recorded, the scenes that show the dialog:
dispatch-dialog(Roles collapsed) in Chromium and in WebKit (its@webkitgoldens, from a full run ofplaywright.webkit.config.ts, whose goldens pass on master here),dispatch-tagsanddispatch-runner. No other snapshot changes.Gates
At
7779ea8d:sak-gate full, gate run 2: passed. The web build's tests, its design check among them, 448 passed; the sx suite and the release check passed; deploy contract PASS; Chromium e2e 780 passed and 1 skipped, the fourproject-memorieslooks among them; runner e2e 10 passed.@webkitdispatch-dialoggoldens are as atead62191, wherenpx playwright test -c playwright.webkit.config.tspassed 1 of 1; this head changes no WebKit scene.