[PR #210] [CLOSED] feat: add report generation for assistant flows #238

Closed
opened 2026-06-06 22:09:50 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vxcontrol/pentagi/pull/210
Author: @nicoarias81
Created: 3/16/2026
Status: Closed

Base: masterHead: feature/report-assistant-flows


📝 Commits (1)

  • 56392de feat: add report generation for assistant flows

📊 Changes

7 files changed (+365 additions, -11 deletions)

View changed files

📝 backend/pkg/graph/generated.go (+139 -0)
📝 backend/pkg/graph/schema.graphqls (+2 -0)
📝 backend/pkg/graph/schema.resolvers.go (+32 -0)
📝 frontend/src/graphql/types.ts (+60 -0)
📝 frontend/src/lib/report.ts (+103 -3)
📝 frontend/src/pages/flows/flow-report.tsx (+24 -4)
📝 frontend/src/pages/flows/flow.tsx (+5 -4)

📄 Description

Summary

Extend the report generator to support assistant-mode flows (chat-style flows without tasks). Previously the Report button was hidden for assistant flows, and generating a report showed only "No tasks available for this flow."

Backend

  • Add GraphQL query that returns all assistant logs for a flow across all its assistants, without requiring a specific
  • Implement resolver using existing + DB helpers
  • Regenerated gqlgen boilerplate ()

Frontend

  • ****: Extend with an optional parameter. When a flow has no tasks but has assistant logs, delegate to which formats / message pairs as readable Markdown sections
  • ****: Show the Report dropdown for all flows that have a flow object (not just task-based ones); pass from context into the report generator
  • ****: When a flow has no tasks, fetch all assistant logs via the new query. Supports both the inline Report dropdown and the standalone report page (including PDF download)
  • ****: Add query and generated Apollo hooks

Test plan

  • Task-based flow: Report button still appears and generates correct Markdown/PDF
  • Assistant flow: Report button now appears and generates a conversation-style report
  • Assistant flow web view (): Renders conversation correctly
  • Assistant flow PDF download: Generates valid PDF from conversation
  • Flow with no tasks and no assistant logs: Shows graceful empty state

Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vxcontrol/pentagi/pull/210 **Author:** [@nicoarias81](https://github.com/nicoarias81) **Created:** 3/16/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/report-assistant-flows` --- ### 📝 Commits (1) - [`56392de`](https://github.com/vxcontrol/pentagi/commit/56392de6ddefb38e1ab9afdff7f4d42a4cee5486) feat: add report generation for assistant flows ### 📊 Changes **7 files changed** (+365 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `backend/pkg/graph/generated.go` (+139 -0) 📝 `backend/pkg/graph/schema.graphqls` (+2 -0) 📝 `backend/pkg/graph/schema.resolvers.go` (+32 -0) 📝 `frontend/src/graphql/types.ts` (+60 -0) 📝 `frontend/src/lib/report.ts` (+103 -3) 📝 `frontend/src/pages/flows/flow-report.tsx` (+24 -4) 📝 `frontend/src/pages/flows/flow.tsx` (+5 -4) </details> ### 📄 Description ## Summary Extend the report generator to support **assistant-mode flows** (chat-style flows without tasks). Previously the Report button was hidden for assistant flows, and generating a report showed only "No tasks available for this flow." ### Backend - Add GraphQL query that returns all assistant logs for a flow across all its assistants, without requiring a specific - Implement resolver using existing + DB helpers - Regenerated gqlgen boilerplate () ### Frontend - ****: Extend with an optional parameter. When a flow has no tasks but has assistant logs, delegate to which formats / message pairs as readable Markdown sections - ****: Show the Report dropdown for all flows that have a flow object (not just task-based ones); pass from context into the report generator - ****: When a flow has no tasks, fetch all assistant logs via the new query. Supports both the inline Report dropdown and the standalone report page (including PDF download) - ****: Add query and generated Apollo hooks ## Test plan - [ ] Task-based flow: Report button still appears and generates correct Markdown/PDF - [ ] Assistant flow: Report button now appears and generates a conversation-style report - [ ] Assistant flow web view (): Renders conversation correctly - [ ] Assistant flow PDF download: Generates valid PDF from conversation - [ ] Flow with no tasks and no assistant logs: Shows graceful empty state Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-06 22:09:50 -04:00
yindo closed this issue 2026-06-06 22:09:50 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vxcontrol/pentagi#238