mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-24 05:47:10 +01:00
Left-align wrapped Inbox filters with search (#22720)
## Thinking Path
> - Paperclip helps people manage agents and tasks.
> - The Inbox toolbar lets people search and filter decisions.
> - Its dropdowns wrap when the sidebar leaves too little room.
> - An automatic margin pushes the wrapped row away from Search.
> - This change distributes space between controls on the same row and
aligns wrapped controls with Search.
## Linked Issues or Issue Description
Refs #22675.
**What happened?**
At intermediate widths, Inbox filters wrapped onto a second row and left
a large blank space at its start.
**Expected behavior**
The first wrapped button lines up with Search.
**Steps to reproduce**
Open Inbox and narrow the content area until the filters wrap below
Search.
## What Changed
Use flexbox space distribution on the Inbox toolbar and clear the filter
group's automatic start margin.
## Verification
All 38 CoordinatorNeedsYou tests passed at 536c7385ce. Local browser
measurements during development confirmed aligned left edges at 320px
and 890px and a right-aligned filter group at 1200px.
## Risks
The layout depends on Search and the filter group being the toolbar's
two direct children.
## Model Used
OpenAI Codex (GPT-6), with code execution and browser verification.
## Checklist
- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [ ] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
---------
Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
506211b917
commit
d1207c31d4
2 files changed
+7
No files matched your search
@@ -94,6 +94,11 @@ for (const mobile of [false, true]) test(`Mine retains Inbox behavior inside Tas
|
||||
const inbox = page.getByRole("region", { name: "Needs You", exact: true });
|
||||
await expect(inbox.getByRole("toolbar", { name: "Decisions controls" })).toBeVisible();
|
||||
await expect(inbox.getByRole("button", { name: "Filter decisions by assignee, Assigned to you", exact: true })).toBeVisible();
|
||||
await page.setViewportSize({ width: 1024, height: 720 });
|
||||
const search = await inbox.locator("[data-toolbar-search]").boundingBox();
|
||||
const firstFilter = await inbox.getByRole("button", { name: /^Filter decisions by agent,/ }).boundingBox();
|
||||
expect(firstFilter!.y).toBeGreaterThanOrEqual(search!.y + search!.height);
|
||||
expect(firstFilter!.x).toBeCloseTo(search!.x, 0);
|
||||
}
|
||||
} finally {
|
||||
await request.put(preferencePath, { data: { coordinatorWorkspaceEnabled: preferences.coordinatorWorkspaceEnabled } });
|
||||
|
||||
@@ -5268,6 +5268,8 @@ html:not(.dark) .coordinator-sidebar {
|
||||
.coordinator-decision-card [data-attention-context] :is(p, span, button, time) { font-size: var(--text-xs); line-height: var(--text-xs--line-height); }
|
||||
.coordinator-decision-card [data-decision-prompt] { font-size: var(--text-base); line-height: var(--text-base--line-height); font-weight: var(--font-weight-medium); }
|
||||
/* The Needs You toolbar fits one row: the search takes what the filters leave. */
|
||||
[data-canonical-toolbar="inbox"] { justify-content: space-between; }
|
||||
[data-canonical-toolbar="inbox"] .design-toolbar-actions { margin-inline-start: 0; }
|
||||
.coordinator-needs-you > :not([role="toolbar"]) { max-width: var(--container-4xl); margin-inline: auto; }
|
||||
.coordinator-needs-you [data-toolbar-search] input { flex: 1; width: auto; }
|
||||
.coordinator-decision-card [data-needs-you-panel] :is(p, label) { font-size: var(--text-compact); line-height: calc(var(--spacing) * 5); }
|
||||
|
||||
Reference in new issue
Block a user