feat: add report generation for assistant flows#210
Open
nic0laz wants to merge 1 commit intovxcontrol:masterfrom
Open
feat: add report generation for assistant flows#210nic0laz wants to merge 1 commit intovxcontrol:masterfrom
nic0laz wants to merge 1 commit intovxcontrol:masterfrom
Conversation
Extend the report generator to support assistant-mode flows (chat-style flows without tasks). Backend: - Add allAssistantLogs(flowId: ID!) GraphQL query that returns all assistant logs for a flow across all its assistants - Implement resolver using existing DB helpers - Regenerate gqlgen boilerplate Frontend: - report.ts: Extend generateReport() with optional assistantLogs parameter; add generateAssistantReport() that formats message/answer pairs as readable markdown - flow.tsx: Show the Report dropdown for all flows (not just task-based ones); pass assistantLogs from FlowProvider context into the report generator - flow-report.tsx: Fetch assistant logs via the new allAssistantLogs query when a flow has no tasks; pass them to generateReport() for the standalone report page - types.ts: Add AllAssistantLogsDocument query and generated hooks for the new backend query Before this change, clicking Report on an assistant flow produced No tasks available for this flow and the Report button was hidden entirely. Now it correctly renders the conversation as a structured Markdown/PDF document.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Frontend
Test plan
Generated with Claude Code