Repository navigation
Description
Summary
In the Workspace Inbox, an approval (or any other ask) row changes height when it is answered. A pending ask with no priority / expiry badge renders its badge line empty (zero height); the moment the operator answers it, the Answered · you / Approved · you badge appears in that line and the row grows by one badge height, so every row below it jumps under the reader. A row should be the same height in every state — pending, answered, expired, cancelled, dismissed.
Context
Reported from daily use: answer an approval in the Inbox and the list visibly shifts. The design-system contract (docs/memory/design-system-contract.md) names layout stability — reserve space, no jumps on state change — as a non-negotiable, and portalInbox.js already promises that "an answered ask changes a count, never a chip's position under the reader". The row itself breaks that promise.
Where it happens: src/frontend/src/components/portal/PortalInboxList.vue — the trailing <span class="mt-1 flex items-center gap-1.5 flex-wrap"> badge line. For it.type === 'ask' && it.status === 'pending' it only renders a priority / expiry / replaces badge when one applies (§3g A10 deliberately dropped the always-true "Waiting on you" badge), so the common pending row has an empty line; the v-else-if ended-badge (askStatusLabel) then fills it on answer.
Acceptance Criteria
- An ask row in the Inbox list has the same rendered height whether it is pending or ended (answered / approved / rejected / expired / cancelled / dismissed / no longer available). Answering an ask does not move any other row.
- A pending ask with no priority / expiry / replaces badge still reserves the badge line — either by a fixed-height badge line or by a pending-state badge (e.g.
Unanswered/Waiting) that the ended badge replaces in place. The reporter is fine with the pending label; whichever is chosen must keep the row height identical across states. - Both themes, both row densities (selected / unselected) — no raw palette classes, tokens only; the raw-color ratchet does not grow.
- A unit spec (
src/frontend/tests/unit/) pins the invariant: the badge line renders for a pending ask with no urgency badges, and the pending → answered transition swaps content without adding a new element/line.
Technical Notes
- Component:
src/frontend/src/components/portal/PortalInboxList.vue(template badge line +askStatusLabel). - Row builders:
src/frontend/src/components/portal/portalInbox.js. - Related history: §3g A10 (removing the always-true "Waiting on you" badge), trinity#3524 (verdict on the answered row), trinity-enterprise#901 (withdraw-reason line — a second optional line on ended rows; check it does not reintroduce a jump for the withdrawn case).
- The row's other optional lines (
it.titlefor asks, withdraw reason) are a secondary source of height variance; the primary defect is the badge line.
Activity
vybe commentedon Nov 4, 2026
/claim
github-actions commentedon Nov 4, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/4229-<short-slug>Fixes #4229fix(workspace): an Inbox ask row keeps its height when answered (#4229)…