Skip to content

TS strict (1/4): type annotations, dead-code cleanup, strict-error CI infra#3686

Merged
tegan-temporal merged 1 commit into
mainfrom
strict/1-base
Jul 17, 2026
Merged

TS strict (1/4): type annotations, dead-code cleanup, strict-error CI infra#3686
tegan-temporal merged 1 commit into
mainfrom
strict/1-base

Conversation

@tegan-temporal

@tegan-temporal tegan-temporal commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

First of a 4-PR split of #3640 (enable TypeScript strict mode).

Zero runtime impact, no CI/enforcement changes. Contains only: noImplicitAny-driven type annotations, import type conversions, Storybook/test typing, and dead-code removal. 36 files.

Global strict stays off and the Danger strict-error check stays in warn mode until the final PR — so merging this early blocks nothing. All files verified strict-clean.


Stack (merge bottom-up):

  1. TS strict (1/4): type annotations, dead-code cleanup, strict-error CI infra #3686 strict/1-base — type annotations + dead-code cleanup (zero runtime)
  2. TS strict (2/4): strictNullChecks null-safety guards #3687 strict/2-mechanical — strictNullChecks null-safety guards
  3. TS strict (3/3): runtime model/form/service changes + enable strict mode #3688 strict/3-behavior — runtime-affecting model/form/service changes
  4. TS strict (4/4): enable strict mode in base tsconfig #3640 ts-strict-mode — flip strict: true + enforce in CI

Split verified: stacking all four reproduces the original combined tree byte-for-byte.

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Jul 17, 2026 4:47pm

Request Review


<!-- Info Alert -->
<Alert intent="info" class="text-sm">
<Icon name="info" slot="icon" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this slot does not exist in Alert and apparently never did??? the Icon is chosen from the Alert icon prop which defaults to intent prop

@tegan-temporal
tegan-temporal marked this pull request as ready for review July 17, 2026 16:32
@tegan-temporal
tegan-temporal requested a review from a team as a code owner July 17, 2026 16:32
import allEventTypesFixture from '$fixtures/all-event-types.json';

const events = allEventTypesFixture as unknown as CommonHistoryEvent[];
const events = allEventTypesFixture as unknown as Record<

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the accurate shape, it's not an array

@andrewzamojc andrewzamojc 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.

LGTM. All safe stuff 👍

@@ -1,4 +1,6 @@
export const workflowStartedEvent = {
import type { PotentiallyDecodable } from './decode-payload';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review this file with by hiding whitespace changes, the diff is weird due to the whitespace change

Zero runtime impact: noImplicitAny type annotations, import type conversions,
Storybook/test typing, and dead-code removal. No CI/enforcement changes here.
@tegan-temporal
tegan-temporal enabled auto-merge (squash) July 17, 2026 16:49
@tegan-temporal
tegan-temporal merged commit 892163b into main Jul 17, 2026
18 checks passed
@tegan-temporal
tegan-temporal deleted the strict/1-base branch July 17, 2026 16:55
tegan-temporal added a commit that referenced this pull request Jul 17, 2026
Mechanical null-safety: nullish-coalescing defaults, optional chaining,
{#if} render guards, and generics-driven refactors. Behavior-preserving.
Rebased onto main after the base PR (#3686) merged.
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