forked from farhoodlabs/paperclip
Improve operator workflow QoL (#5291)
## Thinking Path > - Paperclip is a control plane operators use repeatedly to supervise agent companies. > - Common operator workflows depend on fast scanning of inboxes, issue sidebars, workspaces, cost totals, and runtime services. > - Several small UI and service gaps made those workflows slower or less clear. > - This pull request groups the operator-facing QoL changes that can stand alone from recovery and adapter work. > - The benefit is a denser, clearer board experience for issue triage and workspace operation. ## What Changed - Added inbox assignee/project grouping and issue list token/runtime totals. - Improved issue properties with removable blocker chips and workspace task links. - Improved execution workspace layout, runtime controls, issues tab default, and stopped-port reuse behavior. - Added mobile markdown/routine dialog fixes, page title company names, sidebar polish, and dashboard run task label cleanup. ## Verification - `pnpm install --frozen-lockfile` - `pnpm exec vitest run ui/src/lib/inbox.test.ts ui/src/components/IssueProperties.test.tsx ui/src/components/WorkspaceRuntimeControls.test.tsx server/src/__tests__/workspace-runtime.test.ts server/src/__tests__/costs-service.test.ts` ## Risks - Medium UI risk because this touches several operator surfaces. The branch is intentionally grouped around workflow/QoL files and keeps the file count below the Greptile limit. ## Model Used - OpenAI GPT-5 Codex via Paperclip `codex_local` adapter, with shell/git/GitHub CLI tool use. ## 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 run tests locally and they pass - [x] I have added or updated tests where applicable - [x] If this change affects the UI, I have included before/after screenshots - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1322,9 +1322,69 @@ describe("inbox helpers", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("persists workspace grouping preferences", () => {
|
||||
it("groups assignee sections by latest issue activity while preserving non-issue sections", () => {
|
||||
const agentIssue = makeIssue("agent", true);
|
||||
agentIssue.assigneeAgentId = "agent-1";
|
||||
|
||||
const userIssue = makeIssue("user", false);
|
||||
userIssue.assigneeUserId = "user-1";
|
||||
|
||||
const unassignedIssue = makeIssue("unassigned", false);
|
||||
|
||||
const items: InboxWorkItem[] = [
|
||||
{ kind: "issue", timestamp: 5, issue: agentIssue },
|
||||
{ kind: "approval", timestamp: 8, approval: makeApproval("pending") },
|
||||
{ kind: "issue", timestamp: 7, issue: userIssue },
|
||||
{ kind: "issue", timestamp: 2, issue: unassignedIssue },
|
||||
];
|
||||
|
||||
expect(groupInboxWorkItems(items, "assignee", {
|
||||
agentById: new Map([["agent-1", "Coder"]]),
|
||||
userLabelById: new Map([["user-1", "Riley"]]),
|
||||
})).toEqual([
|
||||
{ key: "kind:approval", label: "Approvals", items: [items[1]] },
|
||||
{ key: "assignee:user:user-1", label: "Riley", items: [items[2]] },
|
||||
{ key: "assignee:agent:agent-1", label: "Coder", items: [items[0]] },
|
||||
{ key: "assignee:none", label: "Unassigned", items: [items[3]] },
|
||||
]);
|
||||
});
|
||||
|
||||
it("groups project sections by latest issue activity while preserving non-issue sections", () => {
|
||||
const paperclipIssue = makeIssue("paperclip", true);
|
||||
paperclipIssue.projectId = "project-1";
|
||||
|
||||
const onboardingIssue = makeIssue("onboarding", false);
|
||||
onboardingIssue.projectId = "project-2";
|
||||
|
||||
const noProjectIssue = makeIssue("no-project", false);
|
||||
|
||||
const items: InboxWorkItem[] = [
|
||||
{ kind: "issue", timestamp: 9, issue: paperclipIssue },
|
||||
{ kind: "issue", timestamp: 4, issue: onboardingIssue },
|
||||
{ kind: "join_request", timestamp: 6, joinRequest: makeJoinRequest("join-1") },
|
||||
{ kind: "issue", timestamp: 2, issue: noProjectIssue },
|
||||
];
|
||||
|
||||
expect(groupInboxWorkItems(items, "project", {
|
||||
projectById: new Map([
|
||||
["project-1", { name: "Paperclip App" }],
|
||||
["project-2", { name: "Onboarding" }],
|
||||
]),
|
||||
})).toEqual([
|
||||
{ key: "project:project-1", label: "Paperclip App", items: [items[0]] },
|
||||
{ key: "kind:join_request", label: "Join requests", items: [items[2]] },
|
||||
{ key: "project:project-2", label: "Onboarding", items: [items[1]] },
|
||||
{ key: "project:none", label: "No project", items: [items[3]] },
|
||||
]);
|
||||
});
|
||||
|
||||
it("persists inbox grouping preferences", () => {
|
||||
saveInboxWorkItemGroupBy("workspace");
|
||||
expect(loadInboxWorkItemGroupBy()).toBe("workspace");
|
||||
saveInboxWorkItemGroupBy("assignee");
|
||||
expect(loadInboxWorkItemGroupBy()).toBe("assignee");
|
||||
saveInboxWorkItemGroupBy("project");
|
||||
expect(loadInboxWorkItemGroupBy()).toBe("project");
|
||||
});
|
||||
|
||||
it("persists collapsed inbox groups per company", () => {
|
||||
|
||||
Reference in New Issue
Block a user