Skip to content

bug(project hub): Overview renders a pending ask in full and stretches the content column to match #3574

Closed

Description

@vybe

Summary

The project page's Overview tab breaks as soon as one pending ask on the project has a long body. The "Needs you" card renders the ask in full (every paragraph, bullet list and code span of an approval request), and because the hub is one CSS grid, the Metrics card in the content column stretches to the same height, leaving a screen-tall empty panel next to a wall of text. The Overview should show a summary of each ask, and the content column should be laid out independently of the sidebar.

Context

Seen on a project whose steward agent raised one needs_approval ask with a multi-paragraph body (plan summary, a numbered list of design calls, inline code). On the Overview:

  • The "Needs you" card ran to several screens of text, with the full markdown body and the option chips.
  • The "Metrics" card (empty: "No metrics yet…") was stretched to the sidebar's height, so the left two-thirds of the page was blank below one line of copy.
  • The page lost its at-a-glance purpose: health, rollup and metrics are what the Overview is for, and an approval's full argument belongs in the Inbox / the ask's thread.

Cause, from the code:

  • src/frontend/src/components/portal/projects/ProjectHub.vue lays out the hub as grid grid-cols-1 gap-4 lg:grid-cols-3, with "Where it stands" and "Metrics" at lg:col-span-2 and "Needs you" in the third column. Grid rows stretch to the tallest cell, so a tall sidebar card inflates the content card beside it.
  • The "Needs you" card delegates to PortalAsks.vue (pending-only show-agent), which is the full Inbox renderer: it prints ask.question through AskMarkdown in full, plus the action line, options and the answer form. There is no compact mode.

Acceptance Criteria

  • On the project Overview, an ask in "Needs you" shows a summary: kind badge, agent, title, and the body clamped to a few lines (or a short excerpt), with a clear way to open the full ask (expand in place, or open the thread / Inbox). The full body is never rendered unconditionally on the Overview.
  • Answering stays possible from the Overview (the current in-place answer flow is kept, behind the expand or as a compact action row) — the summary must not regress the "answered in place" behaviour.
  • The content column (Where it stands, Metrics) is wired as its own column: its cards size to their own content and are not stretched by the "Needs you" column (e.g. items-start on the grid, or two column containers instead of row-spanning cells). An empty Metrics card is one short line tall regardless of the sidebar.
  • Both light and dark themes, and the single-column layout below lg, are checked: the clamped body and expand control read correctly in all three.
  • A long ask body (multi-paragraph markdown with a list and code spans) and a short one-line ask both render as a bounded card; covered by a unit test on the project hub (tests/unit under src/frontend).
  • Design-system contract honoured: semantic tokens only, existing primitives (BaseCard, BaseBadge), no raw palette classes added; the raw-color and loading-gate ratchets stay green.

Technical Notes

  • Owner area: docs/memory/architecture/workspace.md (Portal / project hub). Read before changing; docs/memory/feature-flows/workspace-agents-at-the-centre.md documents the hub's three cards.
  • Likely shape: a compact (or summary) prop on PortalAsks.vue / the ask card that clamps ask.question (line-clamp-* plus an "Show more" toggle) and hides the action line until expanded, used only by ProjectHub.vue; the Inbox keeps the full renderer. Alternatively a small ProjectAskSummary component that reuses AskMarkdown with a clamp and emits open-thread.
  • Keep the markdown path through AskMarkdown (sanitiser, bug(operator-queue): markdown in approval/question asks renders as raw text on some surfaces (portal asks, options, resolved history) #3115) for the excerpt; do not substring raw markdown into plain text in a way that cuts a code span or list item mid-token.
  • Related: the Inbox rows already truncate (PortalInboxRow.vue) — the Overview should behave more like the Inbox list than like the open Inbox item.

Activity

  1. added
    priority-p1
    type-bug
    theme-ui-ux
    complexity-low
    status-ready
    on Oct 11, 2026
  2. removed
    status-ready
    on Oct 11, 2026
  3. vybe commented on Oct 11, 2026

    @vybe
    ContributorAuthor

    /claim

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

    @github-actions

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

    Next steps:

    1. Create branch: feature/3574-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #3574
  6. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 11, 2026
  7. removed
    status-in-dev
    on Oct 26, 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-p1theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions