-
Notifications
You must be signed in to change notification settings - Fork 463
feat(types): add Media Library asset aspect types #9146
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
No changes to documentation |
Coverage Report
File Coverage
|
⚡️ Editor Performance ReportUpdated Tue, 15 Apr 2025 09:28:59 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
📊 Playwright Test ReportThis report contains test results, including videos of failing tests. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2e1be79
to
93fad0d
Compare
93fad0d
to
17abd4c
Compare
38560b1
to
8f78b2d
Compare
8f78b2d
to
6d10258
Compare
4e52dcb
to
ca0e762
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
|
||
return { | ||
_type: MEDIA_LIBRARY_ASSET_ASPECT_TYPE_NAME, | ||
_id: `${name}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
ca0e762
to
7f4b7f4
Compare
7f4b7f4
to
5966f1a
Compare
🧪 E2E Preview environment🔑 Environment Variables for Local TestingThis is the preview URL for the E2E tests: https://e2e-studio-cs2vpvdxf.sanity.dev To run the E2E tests locally, you can use the following environment variables, then run 💬 Remember to build the project first with
|
Description
This branch adds types for Media Library aspects and a
defineAssetAspect
function for defining aspects. This is based on prior work by @sgulseth and @sjelfull.These additions can be imported from either
sanity
or@sanity/types
.What to review
The new
defineAssetAspect
and types. Does all the naming make sense?Testing
Added some basic unit tests.