Repository navigation
refactor: improve type safety and organize imports in form and styles modules - #670
Merged
Merged
Conversation
surajair
commented
Feb 4, 2026
Collaborator
- Add explicit ChaiBlockConfig type annotation to FormConfig
- Reorder imports to follow consistent grouping (SDK types, external libs, internal)
- Fix font-helpers import path to use SDK runtime instead of relative path
- Add type assertion for tailwindcss to resolve type compatibility
… modules - Add explicit ChaiBlockConfig type annotation to FormConfig - Reorder imports to follow consistent grouping (SDK types, external libs, internal) - Fix font-helpers import path to use SDK runtime instead of relative path - Add type assertion for tailwindcss to resolve type compatibility
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
sdk | ddadc6f | Feb 04 2026, 10:04 AM |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors code to improve type safety and establish consistent import organization across the Next.js framework package. The changes are purely structural with no functional modifications.
Changes:
- Fixed import path from relative
@/runtimeto SDK package@chaibuilder/sdk/runtime - Added explicit
ChaiBlockConfigtype annotation to improve type safety in form block configuration - Reorganized imports to follow consistent grouping: SDK types/runtime first, external libraries second, internal modules last
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frameworks/nextjs/package/lib/get-blocks-styles.ts | Reorganized imports into logical groups and added type assertion for tailwindcss to handle v3/v4 compatibility |
| frameworks/nextjs/package/lib/font-helpers.ts | Fixed import path from relative @/runtime to absolute SDK path @chaibuilder/sdk/runtime |
| frameworks/nextjs/package/blocks/form-block.tsx | Added explicit ChaiBlockConfig type annotation and reorganized imports for consistency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.