Skip to content

fix csv file downloads - #30

Merged
efiegel merged 1 commit into
mainfrom
fiegel/fix-csv-download
Oct 22, 2026
Merged

efiegel merged 1 commit into
mainfrom
fiegel/fix-csv-download

Conversation

@efiegel

@efiegel efiegel commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

parseAs: "blob" like trust center downloads

image

@efiegel
efiegel force-pushed the fiegel/fix-csv-download branch from 086e05e to a4b2206 Compare October 22, 2026 21:20

@dennis-chen-vanta dennis-chen-vanta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

did you test that pdf/png still works with this change? LGTM otherwise.

@efiegel

efiegel commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

did you test that pdf/png still works with this change? LGTM otherwise.

yep! forgot to include the screenshot
image

@efiegel
efiegel merged commit 5be965e into main Oct 22, 2026
7 checks passed
dennis-chen-vanta added a commit that referenced this pull request Oct 26, 2026
…xfmt

- One module per stage (spec, naming, options, help, groups, render),
  with main.ts running them in order. Values that were module-level
  globals (the group names, the groups with endpoints) are computed in
  buildGroups and passed in.
- The renderer writes plain templates, and oxfmt lays them out using
  the repo's .oxfmtrc.json, replacing the hand-written line-width logic.
- pluralize, indefinite, and change-case replace the hand-rolled
  singular/plural, a/an, and case helpers. Output is unchanged.
- commandDescription is split by kind of command: actions, the group's
  own resources, resources under a collection, and resources under an item.
- Downloads pass `parseAs: "blob"`. #30 added this to documents.ts by
  hand, so regenerating dropped it; `trust-centers
  download-resource-media` gets it too.
- `pnpm generate:commands` runs scripts/codegen/main.ts.

Apart from the header and parseAs, the generated commands match the
previous generator's output after formatting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dennis-chen-vanta added a commit that referenced this pull request Oct 26, 2026
…xfmt

- One module per stage (spec, naming, options, help, groups, render),
  with main.ts running them in order. Values that were module-level
  globals (the group names, the groups with endpoints) are computed in
  buildGroups and passed in.
- The renderer writes plain templates, and oxfmt lays them out using
  the repo's .oxfmtrc.json, replacing the hand-written line-width logic.
- pluralize, indefinite, and change-case replace the hand-rolled
  singular/plural, a/an, and case helpers. Output is unchanged.
- commandDescription is split by kind of command: actions, the group's
  own resources, resources under a collection, and resources under an item.
- Downloads pass `parseAs: "blob"`. #30 added this to documents.ts by
  hand, so regenerating dropped it; `trust-centers
  download-resource-media` gets it too.
- `pnpm generate:commands` runs scripts/codegen/main.ts.

Apart from the header and parseAs, the generated commands match the
previous generator's output after formatting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants