Skip to content

fix(interactions): show the request countdown in the card header - #387

Merged
nixuuu merged 1 commit into
devfrom
fix/request-countdown-placement
Nov 9, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/request-countdown-placement

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 9, 2026

Copy link
Copy Markdown
Member

Moves known request deadlines into a shared card header: beside the title on wider cards and right-aligned below it on narrow cards. The question panel keeps the countdown before its collapse chevron, truncates the title first, and preserves the header when the gateway marks the request expired. Known deadlines keep their reserved space after resolution.

Applies the same header pattern to thread permission cards, timeline requests, bot questions and bot approvals. Mobile question and timeline requests use the equivalent wrapping header; the changes are JS/TS only. Amber at 25 seconds, tabular digits and non-live countdown behavior are preserved. The existing intentional two-row question footer is unchanged.

Verification

  • Browser: light/dark at 1280, 720 and 390 px; short, typical and very long synthetic titles; question panel, timeline request, permission card and both bot cards. Checked normal/amber/zero/expired countdown states, collapse/expand before and after expiry, and advancing from 1 of 3 to 2 of 3. Header dimensions and title/chevron positions remain stable relative to the header when the countdown clears. No overlapping controls or seams observed. Temporary gallery fixtures were removed; no screenshots are committed.
  • Passed: bun install, bun run gen:check, bun run typecheck, bun run lint, bun run format:check, and bun run --filter @canopy/web build.
  • Passed: full bun run check:tmp, 1854 passed / 161 skipped / 0 failed across 329 files, with nothing left in its temporary directory. A preceding full run hit three ENOSPC failures while copying supervisor test binaries in the memory-backed temporary filesystem; the complete rerun used a disk-backed temporary directory and passed, including those three cases. No test or application code was changed for this environment issue.
  • Mobile: bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive passed before and after the changes. Unchanged fingerprints: iOS 2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3; Android c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d. No native-device visual check was performed.
  • Copy audit: no new or changed UI text.

Related: #226

@nixuuu
nixuuu merged commit acd4a9f into dev Nov 9, 2026
10 checks passed
@nixuuu
nixuuu deleted the fix/request-countdown-placement branch November 9, 2026 09:08
nixuuu added a commit that referenced this pull request Nov 9, 2026
Mobile now previews and moves an individual thread or bot to another
linked computer, opens the moved result, converts provider environment
proxy settings into a reusable proxy, and shows per-item import results
with Open thread actions. Suggested library items are preselected;
conflicts and secrets still require an explicit choice.

Environment review shares file and text change summaries with web.
Selecting a stored skill version fetches that version's artifact before
Save becomes available. The existing GetAgentEnvironment
request/response gains additive preview fields; the gateway checks
ownership and retrieves the immutable artifact without changing
assignments or the environment revision. An older gateway that omits the
artifact leaves Save blocked and asks the owner to update that computer.
Proxy migration sends only instance identity, name and revision; saved
credentials stay in the gateway.

Validation:

- On the final top branch, `bun install`, `bun run gen:check`, `bun run
typecheck`, `bun run lint`, `bun run format:check`, foreground `bun run
check:tmp` and `apps/web`'s `bun run build` passed. Full suite: 1868
passed, 162 skipped, zero failures, 21587 assertions across 330 files;
no test temp entries left. The web build reports a chunk-size warning.
All layers were rebased onto `acd4a9f1` (including #386/#387) before the
full checks. Final fingerprint generation was repeated on every layer
after squashing review fixes; the final tree matches the tested tree.
- Focused `tests/integration/agent-skills.test.ts`: 9 passed, 126
assertions, zero failures. Covers the selected historical artifact,
unchanged assignment/revision, unavailable versions and foreign-owner
rejection.
- No dependencies, native configuration, native builds, system
notifications or UI tests added.

Production runtime fingerprints, before → after this layer:

| Platform | Before | After |
| --- | --- | --- |
| iOS | `2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3` |
`2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3` |
| Android | `c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d` |
`c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d` |

Generated with `bunx [email protected] fingerprint:generate --platform
<ios|android> --build-profile production --json --non-interactive`.

Copy audit (docs/copy.md §8): reviewed new labels, states, errors and
confirmations for sentence case, glossary, action wording and recovery.
“These files belong to the currently assigned version. Saving restores
the selected library version.” → “Review the selected version before
saving. Saving syncs these files to the assigned computers.” The review
now refers to the artifact actually fetched. Aggregate import status →
item statuses/errors and “Open thread”; the action names its
destination. No humour or new glossary terms. All new icon actions have
text labels. Visual text-length audit remains manual and unverified.

Manual QA still required; installed simulator clients cannot execute
this checkout. Use an existing compatible client after the JS changes
are available. Repeat in light/dark, phone width (~390 dp) and Fold
width (~720 dp), with short, typical and 80-character names and long
paths:

1. Thread header menu / bot menu → Move to a computer. Check offline and
unsupported targets, preview blocks, workspace placement, confirmation,
completion and Open moved item. Verify the destination and offline home
gates.
2. Settings → Providers → an instance with saved proxy environment →
Move to a proxy. Name and save it; verify the instance uses the proxy
while the saved secret remains masked. Retry a stale revision.
3. Settings → Import → expand a completed and a partly failed run. Check
each result, warning/error, Open thread and suggested library selection.
Open import from an available computer and the empty thread list.
4. Settings → Agent environment → edit a skill → select an older version
→ Review files. Confirm selected contents, added/removed/binary/script
files, complete before/after text, fetch failure/retry and blocked Save
until the selected artifact loads. Review an instruction change too.
5. Check compact overlays, nested scrolling, long labels and
loading/error states for clipping, gaps and layout shifts. Web shares
the change summaries and also needs a light/dark narrow/wide visual
check.

Keep this PR and the entire stack in draft; do not merge individual
layers.
nixuuu added a commit that referenced this pull request Nov 9, 2026
Mobile bot details now pause, activate and delete routines and cancel
reminders. Sidebar bot menus add pin/unpin and movement, preserve
editing/archive/delete, and expose archived conversations. Actions
respect the available home and live connection; routine deletion
explains its effect and asks for confirmation.

Bot creation starts with model selection. Web and mobile share pure
duplicate-name validation and shorthand colour normalization through
`packages/domain`. A pending approval card opens the bot's
approval-policy picker through the existing update route; changing
policy does not answer the card, and the gateway remains authoritative.

Validation:

- On the final top branch, `bun install`, `bun run gen:check`, `bun run
typecheck`, `bun run lint`, `bun run format:check`, foreground `bun run
check:tmp` and `apps/web`'s `bun run build` passed. Full suite: 1868
passed, 162 skipped, zero failures, 21587 assertions across 330 files;
no test temp entries left. The web build reports a chunk-size warning.
All layers were rebased onto `acd4a9f1` (including #386/#387) before the
full checks. Final fingerprint generation was repeated on every layer
after squashing review fixes; the final tree matches the tested tree.
- Mobile TypeScript, repository lint and formatting passed during
implementation. Existing gateway integration suites cover bot routines,
lifecycle and approval enforcement; no new UI or trivial unit tests.
- No dependencies or native configuration changed.

Production runtime fingerprints, before → after this layer:

| Platform | Before | After |
| --- | --- | --- |
| iOS | `2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3` |
`2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3` |
| Android | `c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d` |
`c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d` |

Generated with `bunx [email protected] fingerprint:generate --platform
<ios|android> --build-profile production --json --non-interactive`.

Copy audit (docs/copy.md §8): read-only routine/reminder rows → “Pause
routine”, “Activate routine”, “Delete routine” and “Cancel reminder”;
each action names its object. Delete confirmation repeats the verb and
explains queued/active runs and irreversibility. Silent duplicate-name
rejection → shared “A bot with this name already exists. Choose another
name.” Errors state the failure and recovery; titles use sentence case
and bot/routine terminology. No humour, new glossary terms or icon-only
meaning. Visual short/typical/long-name audit remains manual and
unverified.

Manual QA still required; installed simulator clients cannot execute
this checkout. Use an existing compatible client after the JS changes
are available. Repeat light/dark at phone (~390 dp) and Fold (~720 dp)
widths, with short, typical and 80-character names:

1. Open bot details on a live home. Pause/reactivate a routine, cancel a
reminder, cancel and confirm routine deletion. Disconnect its home and
verify all mutations become unavailable.
2. Sidebar Bots → ellipsis and long press. Pin/unpin, edit, archive,
expand Archived, unarchive and delete. Check pin order, confirmation
preferences, stale settings retry and move entry. Verify read-only home
behavior.
3. Create bot. Choose the first model, enter an existing name with
case/space variations, enter `#abc`, then save. Verify duplicate
feedback and normalized colour. Retry an unconfirmed creation unchanged.
4. Open a pending approval → Change approval policy. Pick a policy,
verify the existing countdown stays in the header, then separately
answer the card. Repeat offline and after expiry.
5. Inspect compact menus, reserved row action space, wrapped schedule
metadata and keyboard interaction for clipping, seams or layout shifts.
Web's shared validation also needs a creation/edit smoke check.

Keep this PR and the entire stack in draft; do not merge individual
layers.
nixuuu added a commit that referenced this pull request Nov 29, 2026
A long answer could wrap “answered by you” across two lines while a
resolved countdown still occupied 8.5 rem of the transcript row. On a
narrow timeline the empty countdown could occupy an entire second row.

Activity headers now keep the chevron, icon, preview and status on one
line. Long previews use an ellipsis. Question summaries keep the
additional-question count visible. In narrow rows the full answer and
respondent are available on expansion, including the link to an
answering agent. Active deadlines stay visible in the collapsed row.
Decision cards in the composer and bot conversations keep their reserved
countdown space.

## Verification

- Reproduced the reported layout in Chromium with the real work group
and item components. At a row width of 693 px the long answered question
went from 48 px to 28 px, matching the adjacent tool call. At a viewport
width of 390 px the corrected row measured 44 px.
- Checked short and long answers, multiple questions, deadlines in
progress and at zero, long tool and parent-thread names, masked answers,
keyboard expansion and the parent link. Covered viewport widths from 320
to 1024 px and narrow columns at 1280 px in dark mode with reduced
motion.
- Switched the same question from pending to answered at 820 and 320 px.
Checked its header height, the bare-question label and the reserved
countdown space in the shared decision-card header.
- Ran the web package typecheck and formatted the edited Svelte files
locally. The full verification gate runs in CI.

## Copy audit

Existing labels carry over. “Waiting for you” also labels the compact
waiting indicator. The additional-question count and status remain
readable with a long answer. The author and routing information are
available by touch and keyboard through the disclosure when the row is
narrow.

Fixes: #387
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.

1 participant