Repository navigation
Shorten template pages to setup and use - #418
Merged
Merged
Conversation
… behavior once Each template.md now covers what a person needs on the template page: what the app does, the setup it requires and how to use it from agents and apps. Calling methods, results, approval levels and customizing a template move to the app templates guide. Usage notes for callers move to each entrypoint's TSDoc, which the API documentation and describe publish.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | cde0ef8 | Nov 26 2026, 10:03 AM |
Comment on lines
+128
to
+135
| Open **View source** on the template page and copy the template's directory into | ||
| your project. Keep `pnpm-workspace.yaml` and `patches/` with the source. Then | ||
| deploy it like any other app: | ||
|
|
||
| ```sh | ||
| pnpm install | ||
| pnpm test | ||
| widefleet deploy |
There was a problem hiding this comment.
Copied templates miss required secrets
The copied-source recipe fails for a fresh Gmail app and other templates that require secrets. widefleet deploy sends the required secret names, but not their values, and the server rejects the deployment. Restore the steps to create the app and set its required secrets before deploying, or link to those steps here.
Contributor
Author
There was a problem hiding this comment.
Fixed in cde0ef8: the guide now separates changing an installed template app (same name, keeps its secrets) from deploying the copy as a new app, which creates the app and saves its required secrets first.
…ew copied app needs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Template pages were long developer manuals: roughly half of each
template.mdrepeated the same deploy steps, approval levels, result statuses and generator instructions, and the rest mixed setup with internals. People reading the page next to Install need to know what the app does, what to set up and how to use it.Changes
templates/*/template.md: each one now has a short intro, Set up (only the vendor steps the template actually needs, plus the own-OAuth-app case for GitHub, Linear and Microsoft) and Use it (agent prompt,widefleet connect, key method names). The 14 files went from about 15,000 to about 3,100 words. Frontmatter is unchanged.apps/docs/docs/guides/app-templates.md: the one place for what all templates share: CLI install with--secret-file, connecting accounts, calling methods and selections, results, approval levels, customizing and regenerating a template.templates/*/src/app.ts: usage notes for callers (paging, content and upload methods, Excel sessions, Teams chat members, Qonto payment approval, Strava IDs and so on) and the previous code example move into the entrypoint's TSDoc as@remarksand@example. The API documentation anddescribepublish them there, so agents see them where they call the methods.templates.test.tsstill checks that every called origin is declared inwidefleet.jsonc. It no longer compares thenetwork allowcommand in the README, because installs grant those origins and the CLI prints the command when it is needed.Verification
pnpm typecheckandpnpm test.packages/template-generator/src/templates.test.tspasses.management-api.integration.test.tsandtemplate-installs.integration.test.tspass against local services.blume validatefinds no broken links. Formatting and lint are clean on the changed files.Set upheading on the Gmail page) runs in CI.

Confidence Score: 5/5
The PR appears safe to merge, with one non-blocking correction still needed in the copied-source instructions.Findings
Summary
Shortens all 14 template pages and moves shared instructions into the app-template guide.
Reviews (2) · Last reviewed commit: "Name excluded operations, the Excel sess..." · Reviewed by Greptile