Skip to content

Conversation

snomiao
Copy link
Member

@snomiao snomiao commented Aug 17, 2025

Summary

• Replace all instances of //@ts-ignore with proper TypeScript type assertion for Modal theme props
• Use theme={customThemeTModal as Modal['props']['theme']} across 10 Modal components
• Improve type safety and eliminate TypeScript suppression comments

Test plan

  • Run lint checks - passed with only unrelated warning
  • Run format checks - all files properly formatted
  • Verify all Modal components still render correctly
  • Test Modal functionality in each affected component

🤖 Generated with Claude Code

@Copilot Copilot AI review requested due to automatic review settings August 17, 2025 19:46
Copy link

vercel bot commented Aug 17, 2025

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

Project Deployment Preview Comments Updated (UTC)
registry-web Error Error Sep 23, 2025 0:23am

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors TypeScript suppression comments by replacing all instances of @ts-ignore with proper type assertions for Modal theme props across 10 Modal components. The change improves type safety by using explicit type casting instead of suppressing TypeScript errors.

  • Replaces @ts-ignore comments with proper TypeScript type assertion syntax
  • Uses customThemeTModal as Modal['props']['theme'] for consistent type casting
  • Maintains the same runtime behavior while improving type safety

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
components/publisher/EditSecretKeyModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/publisher/CreatePublisherModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/nodes/NodeVersionDeleteModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/nodes/NodeLogoModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/nodes/NodeEditModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/nodes/NodeDeleteModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/nodes/AdminNodeClaimModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/nodes/AdminCreateNodeFormModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/AccessTokens/CreateSecretKeyModal.tsx Replace @ts-ignore with type assertion for Modal theme prop
components/AccessTokens/CopyAccessKeyModal.tsx Replace @ts-ignore with type assertion for Modal theme prop

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

🎨 Chromatic Visual Testing Results

Resource URL
🔍 Build Results Chromatic Build
📚 Storybook View Storybook

Check the visual changes and approve or request changes as needed.

snomiao and others added 2 commits September 23, 2025 00:21
…me props

Replace all instances of //@ts-ignore with proper TypeScript type assertion
theme={customThemeTModal as Modal['props']['theme']} across Modal components
to improve type safety and eliminate TypeScript suppression comments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Wrap verifyRepoPermissions function with useCallback to prevent re-creation on every render
- Add missing dependencies to useEffect dependency array: currentStage, router, t, verifyRepoPermissions
- Ensure stable function references for proper React hook dependency tracking

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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