diff --git a/screenshots/PR-9092-work-products-tab-desktop.png b/screenshots/PR-9092-work-products-tab-desktop.png new file mode 100644 index 00000000000..2fd674d0def Binary files /dev/null and b/screenshots/PR-9092-work-products-tab-desktop.png differ diff --git a/screenshots/PR-9092-work-products-tab-mobile.png b/screenshots/PR-9092-work-products-tab-mobile.png new file mode 100644 index 00000000000..2ae3dcaceea Binary files /dev/null and b/screenshots/PR-9092-work-products-tab-mobile.png differ diff --git a/server/src/services/work-product-adoption.ts b/server/src/services/work-product-adoption.ts index 97332c307bd..76c52e56271 100644 --- a/server/src/services/work-product-adoption.ts +++ b/server/src/services/work-product-adoption.ts @@ -111,7 +111,6 @@ function githubPullRequestIdentity(url: string): { externalId: string; title: st } catch { return null; } - return null; } function shortSha(value: string) { diff --git a/server/src/services/work-products.ts b/server/src/services/work-products.ts index d916d1a5d1c..f5057acb35e 100644 --- a/server/src/services/work-products.ts +++ b/server/src/services/work-products.ts @@ -5,6 +5,8 @@ import type { IssueWorkProduct } from "@paperclipai/shared"; type IssueWorkProductRow = typeof issueWorkProducts.$inferSelect; +const EXECUTION_WORKSPACE_WORK_PRODUCTS_LIMIT = 200; + function toIssueWorkProduct(row: IssueWorkProductRow): IssueWorkProduct { return { id: row.id, @@ -52,7 +54,8 @@ export function workProductService(db: Db) { eq(issueWorkProducts.executionWorkspaceId, executionWorkspaceId), ), ) - .orderBy(desc(issueWorkProducts.isPrimary), desc(issueWorkProducts.updatedAt)); + .orderBy(desc(issueWorkProducts.isPrimary), desc(issueWorkProducts.updatedAt)) + .limit(EXECUTION_WORKSPACE_WORK_PRODUCTS_LIMIT); return rows.map(toIssueWorkProduct); }, diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 943b2ecd542..425bcb11d97 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -177,6 +177,7 @@ function boardRoutes() { } /> } /> } /> + } /> } /> } /> } /> @@ -440,6 +441,7 @@ export function App() { } /> } /> } /> + } /> } /> } /> } />