-
Notifications
You must be signed in to change notification settings - Fork 450
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
feat(manifest): add icons, tools & projectId #7980
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Dec 16, 2024 4:44 PM (UTC) ❌ Failed Tests (2) -- expand for details
|
⚡️ Editor Performance ReportUpdated Mon, 16 Dec 2024 16:44:40 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
bddcb59
to
0edb847
Compare
0edb847
to
aec2da0
Compare
NOTE: if we approve this PR, I will make the necessary follow ups to tools that don't exist in this monorepo e.g. |
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.
Have not manually tested yet, will come back for that:
Should we set the version to 1.1?
Design flaw one: it is hardcode to version: 1
.
Do we just break the format right away and make it version: string
? Then you set '1.1' when writing the file? Or do we continue the design as is and hardcode version: 2
possibly version: 1.1
, but I think the former fits better if we go with number
.
Version is not used anywhere atm, so open to suggestions. Maybe just increment the number when we change things, ie 2, would be my gut feeling atm.
Is there an issue with including the projectId in the manifest files?
I dont see any problem with this. Its not a secret. Lets not discuss the org/project paradigm here (in public).
Is there concern over un-deprecating icons in tools?
I'll let Studio team answer this one. It could be seen as a bit odd to have a field in the config-api that is not used by Studio itself, so you could argue it should be nested under a new options property or something.
packages/sanity/src/_internal/cli/actions/manifest/extractManifestAction.ts
Outdated
Show resolved
Hide resolved
packages/sanity/src/_internal/manifest/extractWorkspaceManifest.ts
Outdated
Show resolved
Hide resolved
30952a9
to
c1a548a
Compare
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
many changes have since been made.
packages/sanity/src/_internal/manifest/extractWorkspaceManifest.ts
Outdated
Show resolved
Hide resolved
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.
LGTM 🚀
Description
Building on the work in #7403, the Content OS requires more information from the studio. Namely icons & tool information but ideally the projectId as well (although we could add this server side if this was preferable).
Tool['icon']
but it is still considered optional.__internalApplicationType
so we can group multiple across workspaces with the future ambitions these become applications. This is undocumented and will not impact plugin authors.To avoid breaking change issues with create, even though the manifest is now used for more generic purposes we've kept the same naming conventions.
Related issues (and context)
What to review
projectId
in the manifest files?type
to tools?Testing
Manual testing
In a project you can deploy using sanity deploy:
Known issues
Notes for release
Not required.