Closed stipsan closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
performance-studio | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 16, 2024 9:49am |
test-next-studio | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 16, 2024 9:49am |
test-studio | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 16, 2024 9:49am |
No changes to documentation
Component Testing Report Updated May 16, 2024 9:55 AM (UTC)
File | Status | Duration | Passed | Skipped | Failed |
---|---|---|---|---|---|
comments/CommentInput.spec.tsx | ✅ Passed (Inspect) | 34s | 15 | 0 | 0 |
formBuilder/ArrayInput.spec.tsx | ✅ Passed (Inspect) | 7s | 3 | 0 | 0 |
formBuilder/inputs/PortableText/Annotations.spec.tsx | ✅ Passed (Inspect) | 26s | 6 | 0 | 0 |
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx | ✅ Passed (Inspect) | 31s | 11 | 7 | 0 |
formBuilder/inputs/PortableText/Decorators.spec.tsx | ✅ Passed (Inspect) | 14s | 6 | 0 | 0 |
formBuilder/inputs/PortableText/FocusTracking.spec.tsx | ✅ Passed (Inspect) | 36s | 15 | 0 | 0 |
formBuilder/inputs/PortableText/Input.spec.tsx | ✅ Passed (Inspect) | 1m 17s | 21 | 0 | 0 |
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx | ✅ Passed (Inspect) | 1m 4s | 18 | 0 | 0 |
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx | ✅ Passed (Inspect) | 7s | 3 | 9 | 0 |
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx | ✅ Passed (Inspect) | 20s | 9 | 0 | 0 |
formBuilder/inputs/PortableText/Styles.spec.tsx | ✅ Passed (Inspect) | 15s | 6 | 0 | 0 |
formBuilder/inputs/PortableText/Toolbar.spec.tsx | ✅ Passed (Inspect) | 31s | 12 | 0 | 0 |
Great catch cody, thanks! I will see if we can add an eslint to complain about this so you can't import sanity/structure
inside structure
Description
When running
sanity build
this annoying warning happens:Turns out the root cause is that inside
node_modules/sanity/lib/_chunks-es/StructureToolProvider.mjs
there's this import:That's a problem, because
sanity/lib/structure.mjs
is re-exporting from./_chunks-es/StructureToolProvider.mjs
. This PR solves it by changing the import to the same relative imports used by other components that useusePaneRouter
.What to review
If it builds it works, moving forward we should be careful not to introduce new circular references.
git blame
shows that this circular import were added less than a month ago.Testing
Existing tests are sufficient
Notes for release
Fixes a circular import inside
sanity/structure
forusePaneRouter