docs(freeticket-cli): document inventory, attendees + sales/export filters#6
docs(freeticket-cli): document inventory, attendees + sales/export filters#6LucasLeguizamo wants to merge 1 commit into
Conversation
…lters Adds `ft reports inventory`, `ft reports export attendees` and the new sales/export filter flags to the skill tables, plus a "tickets left to sell per event" recipe. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR Summary by QodoDocument freeticket-cli inventory report and sales/export filtering
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Inventory flags contradict docs
|
| | `ft reports inventory` | Capacity/sold/reserved/available (`--event` `--event-date` `--from` `--to` `--group-by`) | VIEWER | | ||
| | `ft reports export buyers\|attendees\|subscribers` | Export buyers (per sale) / attendees (per ticket) / subscribers | ADMIN | |
There was a problem hiding this comment.
1. Inventory flags contradict docs 🐞 Bug ≡ Correctness
SKILL.md documents ft reports inventory without --include-drafts and without the allowed --group-by values, but references/commands.md documents both. This creates conflicting guidance inside this repo and can cause users to miss supported filters or pass unsupported --group-by values.
Agent Prompt
## Issue description
`skills/freeticket-cli/SKILL.md` lists `ft reports inventory` flags, but it omits `--include-drafts` and does not document the allowed `--group-by` values, while `skills/freeticket-cli/references/commands.md` includes both. This makes the docs inconsistent and can mislead users.
## Issue Context
The detailed reference already lists: `--include-drafts` and `--group-by ticketType|date|event`.
## Fix Focus Areas
- skills/freeticket-cli/SKILL.md[46-52]
- skills/freeticket-cli/references/commands.md[32-40]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| # tickets left to sell per event (one aggregated call, no per-sale fan-out) | ||
| ft reports inventory --group-by event --json | jq '.[] | {eventName, available}' |
There was a problem hiding this comment.
2. Inventory output shape unclear 🐞 Bug ⚙ Maintainability
The new inventory recipe uses jq '.[]', which assumes ft reports inventory --json outputs a top-level JSON array of rows. The docs do not state the JSON shape for reports inventory, so the recipe can be confusing or non-functional depending on whether the command returns an array or a wrapped object.
Agent Prompt
## Issue description
A new recipe pipes `ft reports inventory --json` into `jq '.[] | ...'`, which assumes the command emits a top-level array. The docs don’t explicitly describe `reports inventory` JSON output shape, and elsewhere the docs explain wrapped list pagination shapes.
## Issue Context
If `reports inventory` returns a wrapped object (e.g., `{ data: [...], page: ... }`) or any other non-array shape, the recipe won’t behave as intended. If it does return an array, a brief note would prevent confusion.
## Fix Focus Areas
- skills/freeticket-cli/SKILL.md[67-83]
- skills/freeticket-cli/references/commands.md[52-61]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Superseded by #7 (merged) + #8. Those document |
What
Updates the
freeticket-cliskill to match the CLI's contract sync (AppFreeticket/freeticket-cli#15):ft reports inventoryandft reports export attendeesto the command tables.ft sales listand export filter flags.ft reports inventory --group-by event), the original friction that motivated the inventory endpoint.Note
Pairs with the CLI PR; merge after (or alongside) it so the docs match the published binary.
🤖 Generated with Claude Code