Skip to content

feat(cli): add optional page report exports - #22

Merged
blackopsrepl merged 2 commits into
masterfrom
feat/page-report-exports
Oct 2, 2026
Merged

blackopsrepl merged 2 commits into
masterfrom
feat/page-report-exports

Conversation

@blackopsrepl

Copy link
Copy Markdown
Owner

Summary

  • Add independently selectable tranche page --export-json and --export-xlsx outputs; default page behavior stays unchanged.
  • Publish a versioned JSON schema and produce a filterable workbook with PR, group, batch, and parked sheets.
  • Keep the existing report binding and staleness validation gates; document that prior standalone exports remain snapshots until regenerated.

Validation

  • make test
  • make check
  • Integration tests validate JSON against the published schema and inspect workbook sheets, headers, filters, and frozen headers.

Closes #21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f06d8e9e52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pub(super) fn write(root: &Root, payload: &Value, report_binding: &str) -> Result<usize, String> {
let document = super::export_data::document(payload, report_binding);
let path = root.docs_dir().join("data/report.xlsx");
let mut workbook = Workbook::new();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pin the XLSX creation timestamp

Workbook::new() uses the current time for the workbook's document creation metadata, so regenerating report.xlsx from unchanged inputs at a later time produces different bytes and unnecessary tracked docs/ churn. Set deterministic document properties—using a fixed timestamp or a stable value derived from the report—before saving so identical inputs reproduce the same artifact.

AGENTS.md reference: AGENTS.md:L48-L52

Useful? React with 👍 / 👎.

@blackopsrepl
blackopsrepl merged commit 459426e into master Oct 2, 2026
2 checks passed
@blackopsrepl
blackopsrepl deleted the feat/page-report-exports branch October 2, 2026 20:18
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.

Add optional JSON and Excel exports to the page renderer

1 participant