Skip to content

Add a zero-tolerance TypeDoc documentation gate#436

Draft
leynos wants to merge 2 commits into
mainfrom
typedoc-rollout
Draft

Add a zero-tolerance TypeDoc documentation gate#436
leynos wants to merge 2 commits into
mainfrom
typedoc-rollout

Conversation

@leynos

@leynos leynos commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

This branch adds a zero-tolerance TypeDoc documentation gate to
make all, covering the three JavaScript/TypeScript surfaces of the
workspace: frontend-pwa (src, expanded, excluding the generated
Orval client and tests), packages/types, and packages/tokens (plain
JavaScript via a dedicated tsconfig.typedoc.json with allowJs and
checkJs: false). Each surface has its own TypeDoc configuration
beside its tsconfig; a root docs:check script chains them and
make docs-check runs it inside make all. Every run uses
emit: "none" with validation warnings treated as errors: 100%
documentation of the selected surfaces, qualified names reported for
any omission, and no documentation artefacts written. Generated Orval
output and generated declaration files are not inspected.

Review walkthrough

Validation

  • make check-fmt, make lint, make docs-check,
    make test-frontend, and the spelling gates: all green.
  • make test-scripts fails only on the two local_k8s smoke tests,
    which require a kind-wildside-preview cluster context that does not
    exist on the build machine — pre-existing environmental dependence,
    unrelated to this change (93 of 95 script tests pass).
  • A clean docs:check run emits no files.

Notes

leynos added 2 commits July 18, 2026 00:45
Prepare for a zero-tolerance TypeDoc documentation gate across the
JavaScript/TypeScript workspaces: document the fetch mutators and query
keys in `frontend-pwa/src/api`, the root `App` component, the zod user
schema fields in `@app/types` (field-site comments so the inferred
output types carry them), the token-reference resolver in
`@app/tokens`, and the contrast validator's `PackageJson` typedef
(converted to `@property` form so each field can carry a description).
Add `docs-check` to `make all` (and a root `docs:check` script)
covering three surfaces, each with its own configuration beside its
tsconfig: `frontend-pwa` (`src`, `expand`, excluding the generated
Orval client under `src/api/generated` and tests), `packages/types`
(`src`, `expand`), and `packages/tokens` (JavaScript via a dedicated
`tsconfig.typedoc.json` with `allowJs`, `checkJs: false`). Each runs
TypeDoc's `notDocumented` validation with `emit: "none"` and validation
warnings treated as errors: 100% documentation of the selected
surfaces, qualified names reported for any omission, and no
documentation artefacts written.

TypeDoc and TypeScript 5.9.2 are added at the workspace root with pnpm.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @leynos, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ca24a443-a609-4ba0-b4c7-212080cdca6f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch typedoc-rollout

Comment @coderabbitai help to get the list of available commands.

codescene-access[bot]

This comment was marked as outdated.

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No quality gates enabled for this code.

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.

1 participant