docs: telemetry page, Homebrew install tab, convex typed returns#147
Conversation
Ports the real gaps from the Tembo draft PRs (#134, #136, #144) onto post-#128 main: - New /docs/telemetry page covering collected events, error-report redaction, storage/transport, CI detection, and every opt-out, verified against packages/email-sdk/src/telemetry.ts and core.ts. Adds the telemetry option to the client reference and a meta.json entry. - Homebrew tab on the install page plus a pointer from the CLI reference, matching Formula/email-sdk.rb and the release automation (which opens a formula-bump PR rather than pushing to main). - One-line notes that convex-email status/listEvents returns are typed and the ConvexEmailDoc/ConvexEmailEventDoc/ConvexEmailDeliveryStatus types are exported. Generated-By: PostHog Code Task-Id: ec2538f2-5c80-4142-b4b3-b1a53394862e
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Generated-By: PostHog Code Task-Id: ec2538f2-5c80-4142-b4b3-b1a53394862e
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Greptile SummaryThis PR adds three documentation additions that were missing from the docs site after the
Confidence Score: 5/5Documentation-only changes; no executable code is modified. Every technical claim in the new telemetry page, Homebrew tab, and Convex typed-return sentences was checked against the corresponding source files and all match. The No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User installs email-sdk] --> B{Install method}
B -->|npm / project| C[npx email-sdk / local binary]
B -->|bunx / no-install| D[bunx email-sdk]
B -->|Homebrew global| E[brew install --formula URL]
E --> F[email-sdk binary on PATH]
C & D & F --> G[CLI commands\nadapters · doctor · send]
G --> H{Telemetry enabled?}
H -->|Yes default| I[capture cli command run → PostHog]
H -->|No: EMAIL_SDK_TELEMETRY=0\nDO_NOT_TRACK=1\nNODE_ENV=test\ntelemetry:false| J[No-op telemetry]
I --> K[fire-and-forget 3 s timeout]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[User installs email-sdk] --> B{Install method}
B -->|npm / project| C[npx email-sdk / local binary]
B -->|bunx / no-install| D[bunx email-sdk]
B -->|Homebrew global| E[brew install --formula URL]
E --> F[email-sdk binary on PATH]
C & D & F --> G[CLI commands\nadapters · doctor · send]
G --> H{Telemetry enabled?}
H -->|Yes default| I[capture cli command run → PostHog]
H -->|No: EMAIL_SDK_TELEMETRY=0\nDO_NOT_TRACK=1\nNODE_ENV=test\ntelemetry:false| J[No-op telemetry]
I --> K[fire-and-forget 3 s timeout]
Reviews (1): Last reviewed commit: "docs(agents): live-check scripts also lo..." | Re-trigger Greptile |
Triages the five Tembo draft docs PRs (written before the #128 full docs rewrite) and ports the parts main still lacks, rewritten in the current docs voice and re-verified against source.
What's here
Telemetry page (from #144). The READMEs disclose telemetry, but the docs site had no page for it. Adds
/docs/telemetrycovering the four events and their properties, error-report redaction, storage/transport, CI detection, and every opt-out (EMAIL_SDK_TELEMETRY,DO_NOT_TRACK,telemetry: false,NODE_ENV=test). Every claim checked againstpackages/email-sdk/src/telemetry.ts,core.ts, andcli.ts. Also adds thetelemetryoption to the client reference TypeTable and the sidebar entry.Homebrew install (from #134).
Formula/email-sdk.rbshipped with 0.6.5 but neither install.mdx nor the CLI reference mentioned it. Adds a third tab to the install page and a pointer from the CLI reference. Corrects the draft's claim that releases update the formula onmainautomatically:release.ymlopens an automated formula-bump PR, so the copy onmaintracks releases after that PR merges.Convex typed returns (from #136). One sentence each in the component docs and the package README noting
status/listEventsresolve toConvexEmailDoc | null/ConvexEmailEventDoc[]and that those types (plusConvexEmailDeliveryStatus) are exported. The draft's full field table duplicated what the rewritten page already says in prose, so it was not ported.Not ported: #135 (adapter-contract already documents
sendBulkin the type and options table, and message.mdx covers the fallback semantics) and #140 (iterable.mdx already disambiguates adapter-levelsendAtfrom the rejected message field).Validation
cd apps/fumadocs && bun run types:check— greenbun run build— green, telemetry page prerenderedCreated with PostHog Code