Closed ethan-ozelius-contentful closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
forma-36 | ✅ Ready (Inspect) | Visit Preview | Jul 22, 2024 2:47pm |
Latest commit: 44dccff22195fdfa6f8e637f292a81bd51fc81d4
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Path | Size | Loading time (3g) | Running time (snapdragon) | Total time |
---|---|---|---|---|
CommonJS | 136.69 KB (-1.16% 🔽) | 2.8 s (-1.16% 🔽) | 740 ms (+5.61% 🔺) | 3.5 s |
Module | 132.94 KB (-1.23% 🔽) | 2.7 s (-1.23% 🔽) | 865 ms (+15.48% 🔺) | 3.6 s |
Hello Ethan,
I am sorry you missed this. We introduced the icon as part of the v5 alpha icons and you can already use it.
import { PaintBrushIcon } from ‘@contentful/f36-icons-alpha’;
We introduced it in the updated navigation (internal beta as we speak).
We migrated all v4 icons to use v5, but it was missed in Experiences because it was a custom SVG, which the codemod does not support.
Purpose of PR
Fix a support issue that came up, where users are unable to resolve
import { PaintBrushIcon } from '@contentful/f36-icons-alpha';
dependency when using yarn."@contentful/f36-icons-alpha": "npm:@contentful/f36-icons@^5.0.0-alpha.26"
which uses thenpm:
prefix to alias the v5 package since the v4 and v5 f36-icons package both have the same name.@contentful/f36-icons@^5.0.0-alpha
dependency and adds the paintbrush to v4. (see number 2). Once the paintbrush icon has been merged into v4,<EntityListItem>
will import that icon and add it back.As part of an effort to improve the UX of forma36's
<EntityCard>
, by supporting Experiences, as an entity type, this PR adds the paintbrush icon which will be the default icon for Experiences in the<EntityCard>
. However, since Entity List has a dependency on f36-icons, the icon has to be added before it can be referenced anywhere else.This Icon technically already exists in user_interface navbar in the Studio Experiences tab (see screenshot), but is obviously not accessible to forma.
Screenshot of Icon
PR Checklist
readme.md
file(s)