Skip to content

connect apps: Templates opens in the same window, with a back arrow, and its page slides as a page of Settings does - #490

Merged
SiddDevZ merged 8 commits into
DuskBotAI:devfrom
Yabuku-xD:templates-same-window
Dec 3, 2026
Merged

SiddDevZ merged 8 commits into
DuskBotAI:devfrom
Yabuku-xD:templates-same-window

Conversation

@Yabuku-xD

@Yabuku-xD Yabuku-xD commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The smaller follow-up to #332 that was asked for: Templates opens in the same window as Connect apps, with a back arrow, on today's layout (Settings' shell, title and close from 14115e1 and bc59628). Templates' title, tabs, search and chips are not touched, and neither are ReadyBotGallery or the Templates list.

Measured on dev at 1280×860, going from Connect apps to Templates:

  • a copy of Connect apps shrank and faded over Templates for about 130 ms, with its own dim on top of Templates' dim;
  • Templates sat 13 px lower than Connect apps (y 92 against 79) and 2 px shorter (700 against 702);
  • nothing led back to Connect apps.

Now, for Templates opened from Connect apps only:

  • It keeps Connect apps' place and size (190, 79, 900×702 at 1280×860). Its page slides in from the right, while the dim, the frame and the close button stay put.
  • An arrow before the title goes back. Connect apps takes the dim over in place, and its page slides back in from the left. The close button sits at the same pixel in both windows (1047, 90).
  • A dialog that hands its dim over in the same commit plays no exit copy (markDialogHandoff in dialog-exit.ts). The mark lasts that one commit, so every other dialog's exit is unchanged.
  • The slides move a registered length placed at whole pixels with round(), and the dim trims an odd pixel with mod(), so text is never resampled at a fractional offset mid-slide.
  • The slide plays once, on arrival. A page swapped in later (a package's details, back to the list, an app's page) stays still, so a click lands where it aims.
  • Reduced motion fades the page in place; nothing slides.

Templates opened from the sidebar or anywhere else is unchanged: its own place, no arrow, no slide. Escape and the close button still close the window, as Connect apps' do. The back arrow reuses the "Connect apps" label, so no language pack changes.

This branch carries #483's commits (its tests are red on dev without them), as the other open PRs do.

Before and after

Fixture data only (scripts/control-dusk.ts ui launch), Chrome at 1280×860. Mid-move frames are paused 60 ms after the click.

Connect apps to Templates, 60 ms after the click, before and after

Templates settled, before and after

Back to Connect apps: 60 ms after the arrow, and settled

How it was checked

  • Every frame of both moves recorded in Chrome, 6 rounds each: one dim throughout, the window's box unchanged, the page's x a whole pixel in every frame, the close button fixed. Worst frame gap 17–18 ms going there and 21–23 ms coming back, against 18–22 ms for a plain open of Connect apps. The first move after a reload in the dev build has one longer frame (84–139 ms) while the window mounts cold.
  • New tests:
    • dialog-exit.dom.test.ts: the exit copy plays on a close, but not on a handoff, and plays again once the handoff's moment has passed;
    • TeamLibraryPanel.dom.test.ts: from Connect apps, Templates has the arrow, keeps that window's place and slides in once, and the arrow goes back; opened from anywhere else, nothing changes;
    • ConnectAppsWindow.dom.test.ts: back from the arrow, Connect apps keeps the dim and slides in once; any other open does neither;
    • SidebarTemplates.test.ts: the way back is taken once, and never opens Templates in place.
  • Each rule was removed on purpose; a test fails each time.
  • pnpm typecheck and the CI source guards pass. oxlint passes on the changed files (the whole-repo run runs out of memory on this machine). vitest related on the changed files passes. org-library-ui.e2e passes its Templates steps.
  • pnpm typecheck, pnpm lint and pnpm test pass (typecheck, lint and the related tests pass; the whole pnpm test was not run on this branch)
  • New behaviour has a test
  • No secrets, personal data or local paths in the diff or screenshots

… and the guest skill card test stages four kinds of work

bacb532 left two tests red on dev. Its new skill_manage description dropped the word reusable, so find_tool ranked
skills_list first for "save this procedure as a reusable skill"; the description says reusable SKILL.md again (a skill
is recurring work, which that change keeps). Its duplicate check turns away a create that covers an existing skill, and
the guest skill card test staged four skills with one description, the same as an earlier test's: each now has its own
kind of work.
…list's two retries

Fifteen tests failed in CI on Dec 1 in runs of main, a release and PRs DuskBotAI#477-DuskBotAI#483 whose changes do not reach them, a
different set each run, and pass locally. Each entry names the runs it failed in. vps-routing's 'reuses the existing
VPS with $settings' failed too (PR DuskBotAI#477, run 46623618361) but is left out: its name is made per case, and the list
matches names written in the file.
…s 60 servers link from their own addresses

Every link chaos run since the per-address limit on new links (adc99d7, Nov 14) was cancelled at CI's 60-minute
limit, on main pushes, the weekly run and every PR that touches the link service: the scenarios finished in about five
minutes and printed their table, but a socket or timer a scenario left open held the process. The run now exits once its
results are written. The storm's 60 servers set up their links over one connection, so the node's front gave them one
address, which the limit refused after 30 (Too many new links from here); each now uses its own connection, as 60
machines would. Locally, --quick passes all 12 scenarios and exits in 5.6 minutes.
…y list's retries

chat-mcp-tools' shutdown verdict, memory-order and the encrypted workspace restore failed in PR DuskBotAI#479's run 46740020170,
whose change does not reach them, and pass locally.
…os job installs no packages

The job runs `node apps/link-service/chaos/run.mjs` straight after checkout, so the undici import failed
with ERR_MODULE_NOT_FOUND before any scenario ran.
…ds nothing for 8 s, as the app does

src/lib/live-events.ts gives up on a dial that sends nothing in LIVE_EVENTS_OPEN_MS (8 s) and dials again. The probe
dropped a quiet stream only after it had sent something, so one silent dial after node-5xx's 502s held it down until
the relay closed it, about 90 s, and failed the scenario in CI on five of seven runs.
…and its page slides as a page of Settings does

From Connect apps, Bot templates closed that window and opened Templates as a second one: a copy of Connect apps shrank
and faded over it for about 130 ms with a second dim, Templates sat 13 px lower and 2 px shorter, and nothing led back.
Opened from there, Templates now keeps Connect apps' place and size, its page slides in from the right while the dim,
the frame and the close button stay put, and an arrow before its title goes back: Connect apps takes the dim over in
place and its page slides back in from the left. A dialog handing over in the same commit plays no exit copy. The
slides move a registered length placed at whole pixels, and Connect apps' dim trims an odd pixel, so text is never
resampled mid-slide. Reduced motion fades the page in place. Templates opened from anywhere else is unchanged.
…later stays still

The slide was keyed to the window's own attribute, so every page that mounted later played it again: opening a
package's details in Templates, going back to the list, or an app's page in Connect apps slid in from the side once
more. A click in those 200 ms landed beside its button, and org-library-ui.e2e's "Add Sales desk" missed in CI. The
attribute now clears when a page's own slide ends.
@Yabuku-xD
Yabuku-xD force-pushed the templates-same-window branch from 30ce0db to 2e975f6 Compare December 2, 2026 09:24
@SiddDevZ
SiddDevZ merged commit 05084a3 into DuskBotAI:dev Dec 3, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants