Skip to content

Add CLI with receipt subcommand, migrate to GraphQL#6

Merged
gwillem merged 3 commits into
mainfrom
wdg/cli
Feb 18, 2026
Merged

Add CLI with receipt subcommand, migrate to GraphQL#6
gwillem merged 3 commits into
mainfrom
wdg/cli

Conversation

@gwillem

@gwillem gwillem commented Feb 18, 2026

Copy link
Copy Markdown
Owner
image

Summary

  • Fix broken receipt retrieval, switched from REST to Graphql, fixes Receipts: 503 unreachable #1 and Receipts now seem to go through the GraphQL endpoint #5
  • Replace cmd/login with cmd/appie with subcommands
  • Add receipt subcommand: list recent receipts (-n flag) or view detail by transaction ID
  • Add ReceiptDiscount and ReceiptPayment types, showing discounts and payment methods in detail view
  • Use XDG config dir (~/.config/appie/config.json) as default config path

Test plan

  • Unit tests for both GraphQL receipt endpoints (list + detail)
  • go run ./cmd/appie receipt lists recent receipts
  • go run ./cmd/appie receipt <id> shows items, discounts, and payment
  • go run ./cmd/appie login completes OAuth flow

Add unified CLI with login and receipt subcommands, use XDG config
dir (~/.config/appie/config.json) as default config path.
AH moved receipts to GraphQL endpoints (posReceiptsPage, posReceiptDetails).
Add discounts and payments to Receipt type, add receipt detail view with
transaction ID lookup, unit tests for both endpoints.
@gwillem gwillem merged commit 08028ba into main Feb 18, 2026
1 check passed
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.

Receipts: 503 unreachable

1 participant