Skip to content

bug: Workspace Inbox ask row jumps in height when answered — badge line is empty while pending #4229

Closed

Description

@vybe

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.title for asks, withdraw reason) are a secondary source of height variance; the primary defect is the badge line.

Activity

  1. added
    priority-p2
    type-bug
    theme-ui-ux
    complexity-low
    status-ready
    on Nov 4, 2026
  2. removed
    status-ready
    on Nov 4, 2026
  3. vybe commented on Nov 4, 2026

    @vybe
    ContributorAuthor

    /claim

  4. added
    status-in-progress
    on Nov 4, 2026
  5. github-actions commented on Nov 4, 2026

    @github-actions

    Claimed by @vybe. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/4229-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #4229
  6. added
    status-in-dev
    and removed
    status-in-progress
    on Nov 4, 2026
  7. removed
    status-in-dev
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p2theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions