Skip to content

fix: use correct enum type in SecretPropertyDiffs#836

Merged
nimish-ks merged 1 commit intomainfrom
fix/secret-property-diffs-type-error
Mar 29, 2026
Merged

fix: use correct enum type in SecretPropertyDiffs#836
nimish-ks merged 1 commit intomainfrom
fix/secret-property-diffs-type-error

Conversation

@nimish-ks
Copy link
Copy Markdown
Member

Summary

  • SecretPropertyDiffs.tsx was comparing historyItem.type (typed as ApiSecretEventTypeChoices) against ApiSecretTypeChoices, which TypeScript flags as having no type overlap
  • Changed all references to use ApiSecretEventTypeChoices since the component operates on SecretEventType objects
  • This fixes the frontend build failure blocking all PRs (including feat: add Azure external identity provider #835)

Test plan

  • TypeScript compiles without errors
  • Verify secret history diff view still renders correctly

The committed schema.graphql was stale — the backend generates
ApiSecretEventTypeChoices for SecretEventType.type but the committed
schema had ApiSecretTypeChoices. This caused CI to fail because
codegen in Docker produced a different type than what the frontend
code expected.

Regenerated schema from backend and updated SecretPropertyDiffs to
use ApiSecretEventTypeChoices.
@nimish-ks nimish-ks force-pushed the fix/secret-property-diffs-type-error branch from 52644e9 to 04c2802 Compare March 29, 2026 05:03
@nimish-ks nimish-ks merged commit 7c085e3 into main Mar 29, 2026
7 checks passed
@nimish-ks nimish-ks deleted the fix/secret-property-diffs-type-error branch March 29, 2026 06:21
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