Skip to content

feat: add human-friendly report presentation [CMP-48642] - #64

Merged
chaim0m merged 1 commit into
mainfrom
feat/chaim/report-presentation-CMP-48642
Aug 11, 2026
Merged

feat: add human-friendly report presentation [CMP-48642]#64
chaim0m merged 1 commit into
mainfrom
feat/chaim/report-presentation-CMP-48642

Conversation

@chaim0m

@chaim0m chaim0m commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Jira

https://doitintl.atlassian.net/browse/CMP-48642

Summary

Extracts the human report-presentation portion of doiteng/omni#60609. Stacked on #63.

Changes

  • Makes pivot tables the default only for interactive table output, with flat and forced-pivot overrides.
  • Adds readable timestamps, hourly period handling, date-column priority, currency-aware formatting, and wide-table improvements.
  • Adds bounded default pivots for high-cardinality time ranges.
  • Updates Cloud Intelligence branding across the CLI and package metadata.
  • Adds focused presentation, currency, timestamp, and pivot regression tests.

Currency is attached only when the request or response explicitly provides it; the CLI does not assume USD when config.currency is omitted.

Testing

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • golangci-lint run --new-from-rev feat/chaim/report-result-shaping-CMP-48642 ./...
  • go build ./...

No emulators were used.

Dependency

Merge #63 first, then retarget this PR to main.

@chaim0m
chaim0m requested a review from eranchetz as a code owner August 11, 2026 12:51
@chaim0m chaim0m added the review-effort: 3 Medium review effort label Aug 11, 2026
@chaim0m
chaim0m requested review from a team, apgiorgi and taltultc as code owners August 11, 2026 12:51
@github-actions github-actions Bot added documentation Improvements or additions to documentation packaging Package manager and distribution changes labels Aug 11, 2026
Comment thread response_transform.go Outdated
Comment thread body_validation.go
@chaim0m
chaim0m requested a review from yariv-doit August 11, 2026 13:41
@chaim0m
chaim0m changed the base branch from feat/chaim/report-result-shaping-CMP-48642 to main August 11, 2026 13:43
@chaim0m
chaim0m force-pushed the feat/chaim/report-presentation-CMP-48642 branch from d929285 to 21b43e9 Compare August 11, 2026 13:48
@chaim0m
chaim0m merged commit 558273b into main Aug 11, 2026
8 checks passed
Comment thread response_transform.go

if viper.GetBool("pivot-rows") {
if pivoted, ok := pivotReportBody(rows, schema); ok {
if shouldPivotReportRows() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟡 Medium: preserve the --max-rows contract for pivots

Returning the pivot here bypasses effectiveMaxRows() below, so both the agent-mode default cap and an explicit --max-rows are silently ignored whenever pivoting succeeds. Reproducing with 20 unique groups and --pivot --max-rows 10 emits 21 rows (20 groups plus totals), despite the flag promising a maximum number of report rows.

Please calculate totals from the complete input, then limit the emitted non-total pivot rows while preserving the totals and reporting the omitted count.

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

Labels

documentation Improvements or additions to documentation packaging Package manager and distribution changes review-effort: 3 Medium review effort

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants