Skip to content

docs: add QBO report export domain skill#314

Open
alexph-dev wants to merge 1 commit intobrowser-use:mainfrom
alexph-dev:docs/qbo-report-export-skill
Open

docs: add QBO report export domain skill#314
alexph-dev wants to merge 1 commit intobrowser-use:mainfrom
alexph-dev:docs/qbo-report-export-skill

Conversation

@alexph-dev
Copy link
Copy Markdown

@alexph-dev alexph-dev commented May 6, 2026

Summary\n- add a QuickBooks Online custom-report export domain skill\n- document the clean QBO Export to PDF flow and why Page.printToPDF is the wrong tool\n- document the fast blob-save path for QBO-generated PDF viewer blobs\n- capture compact menu/report-state checks and validation steps\n\n## Notes\n- sanitized to avoid business-specific report names, company names, customer codes, or local paths\n\n## Testing\n- docs-only change; not run


Summary by cubic

Adds a domain skill doc for exporting QuickBooks Online custom reports to clean PDFs using the in-app export and direct blob save path. Clarifies why CDP Page.printToPDF is wrong and provides simple validation steps for reliable automation.

  • New Features
    • Documents the fast path: QBO Export → Export to PDF, then fetch blob:https://qbo.intuit.com/... and save bytes.
    • Covers browser attachment to a logged-in Chromium profile and reading report dates/state before export.
    • Describes compact/expand menu usage for summary vs. detailed reports with quick DOM/text checks.
    • Includes a code template to wait for and save the PDF blob, plus pdfinfo/pdftotext validation.
    • Notes pitfalls: avoid Page.printToPDF, OS save sheets, stale tabs, and premature blob fetches.

Written for commit 1583bd7. Summary will update on new commits.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="agent-workspace/domain-skills/qbo/report-export.md">

<violation number="1" location="agent-workspace/domain-skills/qbo/report-export.md:84">
P2: Selecting the last blob target from an unordered target list can save a stale/wrong PDF when multiple QBO blob targets exist.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

for t in cdp("Target.getTargets")["targetInfos"]
if t.get("url", "").startswith("blob:https://qbo.intuit.com/")
]
return blobs[-1] if blobs else None
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot May 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Selecting the last blob target from an unordered target list can save a stale/wrong PDF when multiple QBO blob targets exist.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At agent-workspace/domain-skills/qbo/report-export.md, line 84:

<comment>Selecting the last blob target from an unordered target list can save a stale/wrong PDF when multiple QBO blob targets exist.</comment>

<file context>
@@ -0,0 +1,157 @@
+        for t in cdp("Target.getTargets")["targetInfos"]
+        if t.get("url", "").startswith("blob:https://qbo.intuit.com/")
+    ]
+    return blobs[-1] if blobs else None
+
+def save_qbo_pdf_blob(out_path, timeout=30):
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant