[INTEG-3460] feat: improve google docs quality#10608
Merged
ryunsong-contentful merged 1 commit intogoogle-docs-qualityfrom Feb 24, 2026
Merged
[INTEG-3460] feat: improve google docs quality#10608ryunsong-contentful merged 1 commit intogoogle-docs-qualityfrom
ryunsong-contentful merged 1 commit intogoogle-docs-qualityfrom
Conversation
Harika Kondur (harikakondur)
approved these changes
Feb 24, 2026
Contributor
Harika Kondur (harikakondur)
left a comment
There was a problem hiding this comment.
looks good so far! we can think about integrating this into the workflow with a human approval step: https://mastra.ai/docs/workflows/human-in-the-loop once it's set up
Comment on lines
+335
to
+348
|
|
||
| const endTime = Date.now(); | ||
| const durationMs = endTime - startTime; | ||
| const durationSec = (durationMs / 1000).toFixed(2); | ||
| const durationMin = (durationMs / 60000).toFixed(2); | ||
| console.log('[GeneratePreview] End:', new Date(endTime).toISOString()); | ||
| console.log(`[GeneratePreview] Duration: ${durationSec}s (${durationMin} min)`); | ||
| } catch (err) { | ||
| const endTime = Date.now(); | ||
| const durationMs = endTime - startTime; | ||
| const durationSec = (durationMs / 1000).toFixed(2); | ||
| console.log('[GeneratePreview] End (error):', new Date(endTime).toISOString()); | ||
| console.log(`[GeneratePreview] Duration: ${durationSec}s`); | ||
|
|
Contributor
There was a problem hiding this comment.
nit: logs
Harika Kondur (harikakondur)
added a commit
that referenced
this pull request
Mar 11, 2026
* feat: extend timeout to 50 minutes and add in timing markers (#10608) * fix: update AGENT_ANALYZER_ID constant to reflect new workflow agent name (#10613) * fix: update local agents API URL to use constant for base URL * fix(google-docs): add pagination for content type fetching [INTEG-3491] (#10674) * feat: implement pagination for content type fetching in SelectContentTypeModal * fix: add checks to avoid infinite loop * chore: add env example * chore: update readme * fix: cleanup test modal [INTEG-3496] (#10682) * feat(google-docs): make the test modal more dev friendly * fix(google-docs): cleanup content type ids and spacing * fix(google-docs): implement temporary workaround for content type ID handling in workflows (#10688) * chore: rename useAnalyzePrompt hook to useWorkflowAgent * chore: remove logs * chore: remove logs in useGeneratePreview hook --------- Co-authored-by: ryunsong-contentful <124832189+ryunsong-contentful@users.noreply.github.com>
Franco Banfi (FBanfi)
pushed a commit
that referenced
this pull request
Mar 13, 2026
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
Changes
New Confirm Prompt Modal (
step_2b/ConfirmPromptModal.tsx)google-docs-mapping-agentto preview document analysis before committing to full generationNew
useAnalyzePromptHooklocalhost:4111) and production SDKUpdated
useGeneratePreviewHookModal Flow Updates (
ModalOrchestrator.tsx,useModalManagement.ts)CONFIRM_PROMPTmodal type and state managementConfiguration Updates (
agent.ts)MAX_POLL_TIME_MSfrom 5 minutes to 50 minutesAGENT_ANALYZER_IDconstant for the mapping agentTest plan