-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common issues caught in PR review #1479
Comments
Beachball change files
|
Testing
|
Storybook
|
Styles
|
Component index.ts
|
PR structure
|
TypeScript
|
Buddy Reviews The Nimble Code Review process states that contributions from outside the Nimble dev team should have reviews from a member of the Nimble Team before moving to Owners review. If you are outside the NI organization, create an issue for discussion ideally before creating a PR. If you are inside the NI organization and new to contributing to Nimble reach out on the Design System Teams channel to discuss your goals and get a Nimble point of contact. Current Nimble Contacts:
|
Component Templates
|
Related Changes
|
Upgrading dependencies In the course of updating dependencies you may find that some dependencies get upgraded with a semver range that actually breaks the build. For example:
|
Handling unstable stories If you see a chromatic diff for unstable stories (such as the menu stories) verify the snapshots but do not accept bad snapshots. Instead to create good snapshots you should be able to do the following:
|
Avoid memory leaks
|
# Pull Request ## 🤨 Rationale Updates dependencies manually to address build issues revealed by #2482 #2481 #2480. Found that just updating dependencies by rebuilding the lock fails the build which means the [repo is in a bad state](#1479 (comment)) and that should be addressed quickly. ## 👩💻 Implementation - Update major deps and rebuild lock - Found that the now [deprecated tiptap link validate](https://tiptap.dev/docs/editor/extensions/marks/link#validate-deprecated) function is expected to still function with [backwards compat](ueberdosis/tiptap#5812) however there seems to be a regression as it [fails our build by allowing autolinking of unexpected protocols](https://github.com/ni/nimble/actions/runs/12110590706/job/33761233944#step:17:613). - Switched from tiptap link validate to [shouldAutoLink](https://tiptap.dev/docs/editor/extensions/marks/link#shouldautolink) as described by docs. That seems to not fail the build. - Pushed the min semver range version up for all the tiptap / prosemirror packages as otherwise it seems to[ fail build when type checking libraries](ueberdosis/tiptap#5867). **NOTE**: It seems to be transitive dependency type issues that will fail builds, I think it's possible that minimal upgrades done by renovate may hit issues in app updates. If an app adopting latest these changes fails to build it may need to rebuild the lock files in a clean workspace to align transitive deps on latest versions and avoid library type check issues. - Updates to [prettier 3.4](https://prettier.io/blog/2024/11/26/3.4.0.html) resulting in lots of changes. ## 🧪 Testing Rely on CI. ## ✅ Checklist - [x] I have updated the project documentation to reflect my changes or determined no changes are needed.
🧹 Tech Debt
We'll use this issue to collect common issues found in PR review. Put the issues in comments, feel free to edit other people's comments with more info (does everyone have that permission?)
Once we've collected enough we can figure out what to do with the list. Maybe a code review checklist, maybe training material, maybe automated lint rules to catch this stuff for us, maybe capturing it in CONTRIBUTING in more detail.
The text was updated successfully, but these errors were encountered: