Skip to content

fix(docs): exclude alpha/beta reflections and recurse endpoints - #2444

Merged
mariechatfield merged 5 commits into
mainfrom
fix/docs-alpha-exclusion-and-flow-endpoints
Jul 22, 2026
Merged

fix(docs): exclude alpha/beta reflections and recurse endpoints#2444
mariechatfield merged 5 commits into
mainfrom
fix/docs-alpha-exclusion-and-flow-endpoints

Conversation

@mariechatfield

Copy link
Copy Markdown
Contributor

Summary

  • TypeDoc's exclude option filters source-file globs, not comment tags — @alpha/@beta had no exclusion behavior (unlike @internal), so tagged symbols still rendered (as a badge) instead of disappearing from the generated reference. Add a RESOLVE_BEGIN pass that strips reflections tagged @alpha/@beta before pages are built, checking signatures too since a function's comment lives there, not the parent declaration.
  • endpointsForFlow() only flattened one level of a flow's composed names against inventory.blocks. When a composed name is itself a nested flow (PayrollExecutionFlow inside PayrollFlow, CreatePaymentFlow inside PaymentFlow) rather than a leaf block, the lookup missed and its endpoints silently dropped out of the parent's rolled-up Endpoints table. Now recurses into inventory.flows for such names.

Test plan

  • npm run derive regenerates cleanly with 0 errors
  • Verified PayrollFlow's Endpoints table now includes the previously-missing GET /v1/companies/:companyId/payrolls (via PayrollExecutionFlow)
  • OffCycleFlow, DismissalFlow, TransitionFlow, EmployeeListFlow, both OnboardingFlow pages also gained previously-dropped endpoints from the same fix
  • Diffed derived docs against a from-scratch npm run derive run — no drift
  • Pre-existing, unrelated failure in docs-site/plugins/typedoc-custom/sdk-router.test.ts ("hooks from different directories get separate pages") reproduces on main too — not introduced by this change

🤖 Generated with Claude Code

mariechatfield and others added 3 commits July 21, 2026 17:56
…erence

TypeDoc's `exclude` option filters source-file globs, not comment tags, and
`@alpha`/`@beta` have no built-in exclusion behavior (unlike `@internal`) —
they only render as a badge. Add a RESOLVE_BEGIN pass that strips any
reflection tagged `@alpha`/`@beta` (checking signatures too, since function
comments live there, not the parent declaration) before pages are built.

SDK-1127

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
endpointsForFlow() only flattened one level: for each composed name in
flow.blocks, it looked up inventory.blocks[name] and fell back to []. That
silently drops endpoints for names that are themselves flows (e.g.
PayrollExecutionFlow inside PayrollFlow, or CreatePaymentFlow inside
PaymentFlow) rather than leaf blocks, since those live in inventory.flows
instead. Recurse into inventory.flows for such names, guarding against a
cycle between flows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mariechatfield
mariechatfield requested a review from a team as a code owner July 22, 2026 01:05
@mariechatfield mariechatfield changed the title fix(docs): exclude @alpha/@beta reflections and recurse into nested flows for Endpoints rollup fix(docs): exclude alpha/beta reflections and recurse endpoints Jul 22, 2026
mariechatfield and others added 2 commits July 21, 2026 18:26
Codifies the Mermaid step-flow diagram conventions worked out across the
docs walkthrough (layout choice by flow shape, start/stop markers, edge
and node semantics, wrapper-flow collapsing, when to keep vs. drop edge
labels, what not to draw, fixing oversized diagrams, styling, and a
verify-against-source checklist) so new flow diagrams start from the
same rules instead of re-deriving them per flow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extend collectOnEventKeys to resolve the type of function parameters —
so components declared as `function Foo(props: FooProps)` (props-object
pattern) are recognized as event emitters when FooProps includes onEvent,
matching the behavior for destructured `{ onEvent }` params.

Also adds a test suite for tsdoc-stub-lib covering buildSkeleton,
extractInfo, collectOnEventKeys (including the new path), and
processSymbol.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mariechatfield
mariechatfield added this pull request to the merge queue Jul 22, 2026
Merged via the queue into main with commit 66059c1 Jul 22, 2026
39 checks passed
@mariechatfield
mariechatfield deleted the fix/docs-alpha-exclusion-and-flow-endpoints branch July 22, 2026 18:27
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