Skip to content

Make page headers and sidebar footers bundled, forkable renderers #4833

Description

@brsbl

The workflow

Ambient restyles bb's page-header controls and sidebar footer as glass surfaces. I'd like to customize their presentation through bundled, forkable renderers, as with thread-list and sidebar navigation, while retaining bb's actions and behavior.

What happens today

Plugins can contribute header actions and footer items, but cannot replace the complete page-header or sidebar-footer renderer. Ambient therefore targets private DOM and overrides layout. Two reproduced failures show the cost:

  1. Header styles silently disappeared. Core cleanup 3f28c07f25 removed data-app-page-header-actions from AppPageHeader. Ambient still selected it for the glass fill and right alignment, so both stopped applying. The plugin continued to compile.
  2. Footer icons disappeared despite available space. Ambient made the footer shrink to its visible contents, while bb measured that row to choose how many icons fit. These policies formed a feedback loop. In the isolated app, initial load showed four icons; opening Ambient stretched the row and revealed six. Closing/opening a disclosure should not change capacity when the sidebar width is unchanged.

Verified in the branch web app at bb c201f6490a63b10fd3d72561f89516134444c266, with Ambient from brsbl/bb-plugins@70a9f9d66, using Chrome for Testing 151 on macOS, desktop 1440×900 and mobile 390×844 at 2× density.

What you would expect

Ship the page-header and sidebar-footer presentations as bundled, selectable renderers built on supported SDK contracts. Expose their reusable pieces so a plugin can replace one surface without copying the entire app shell.

  • bb owns the semantics: actions, enabled/visible state, permissions, persisted footer order and hidden items, disclosure lifecycle, and native window/safe-area constraints.
  • The selected renderer owns presentation: grouping, spacing, glass, and responsive arrangement. Footer overflow is computed once from the renderer's available width; core and plugin should not independently alter the same capacity calculation.
  • Preserve existing integrations: existing action registrations and preferences continue working. Disabling a custom renderer restores the bundled one, and an error leaves a recovery path to bb's controls.
  • Protect the contract: cover contributed actions, footer overflow, disclosure open/close, and compact/native layouts in integration checks. Internal DOM cleanup should not silently break a supported renderer.

Stable surface roles and styling hooks would be a useful interim step for simple appearance changes.

Context and alternatives

AGENT GENERATED

Activity

  1. added
    ui
    plugins
    on Oct 4, 2026
  2. bb-slop-cop commented on Oct 4, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied missing classifications: Type: Feature · Priority: Medium · Effort: High; labels: ui, plugins. No existing classification values needed preservation.

    This requests new supported renderer contracts for app chrome, rather than a repair to existing supported behavior. Customization has workarounds, but introducing replaceable surfaces and preserving action, preference, layout, and recovery behavior requires substantial design work.

    Reproduction report and fix skipped because the final Type is Feature; no pull request opened.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginsui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions