Skip to content

Add summary field to JSON responses#42

Merged
robzolkos merged 1 commit intomasterfrom
add-summary-field
Jan 21, 2026
Merged

Add summary field to JSON responses#42
robzolkos merged 1 commit intomasterfrom
add-summary-field

Conversation

@robzolkos
Copy link
Owner

Summary

  • Add summary field to Response struct for human-readable descriptions
  • Add helper functions SuccessWithSummary and SuccessWithPaginationAndSummary
  • Update list/show commands to include summaries (boards, cards, search, columns, comments, tags, users, notifications, reactions)

Summary Formats

Command Example Summary
fizzy board list "5 boards"
fizzy board show ID "Board: Engineering"
fizzy card list --all "42 cards (all)"
fizzy card show 123 "Card #123: Fix login bug"
fizzy search "bug" "7 results for "bug""
fizzy notification list "8 notifications (3 unread)"

Test plan

  • go build ./... compiles successfully
  • go test ./... passes all tests

Add a human-readable summary field to list and show commands that
provides quick feedback about the response data (e.g., "5 boards",
"Card #123: Fix login bug", "7 results for \"bug\"").

The summary adapts to pagination flags and includes contextual
details like unread counts for notifications.
@robzolkos robzolkos merged commit 900f94d into master Jan 21, 2026
1 check passed
@robzolkos robzolkos deleted the add-summary-field branch January 21, 2026 01:10
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