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
Variant selection components #1034
Conversation
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.
Initial review, this is looking good, a few comments and ideas to ponder...
packages/snap-store-mobx/src/Search/Stores/SearchResultStore.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.
There is a TODO on line 364
use sorting function from config
This is something that will likely come up at some point, but just wanted to mention it here that maybe we could add it to the VariantConfig
when we merge this with the preSelected
config. I can make a task for this.
packages/snap-store-mobx/src/Search/Stores/SearchResultStore.ts
Outdated
Show resolved
Hide resolved
packages/snap-preact-components/src/components/Molecules/Swatches/Swatches.stories.tsx
Outdated
Show resolved
Hide resolved
packages/snap-preact-components/src/components/Molecules/VariantSelection/VariantSelection.tsx
Outdated
Show resolved
Hide resolved
packages/snap-preact-components/src/components/Molecules/VariantSelection/VariantSelection.tsx
Outdated
Show resolved
Hide resolved
packages/snap-preact-components/src/components/Molecules/VariantSelection/VariantSelection.tsx
Outdated
Show resolved
Hide resolved
packages/snap-preact-components/src/components/Molecules/VariantSelection/VariantSelection.tsx
Outdated
Show resolved
Hide resolved
We should keep in mind that images using background will not lazy load; we may want to consider some logic that creates images instead in some cases. Additionally adding a mapping property for |
Grid component prop ideas:
Swatch component prop ideas:
Would be nice to put selection option fieldName as themeName on component. |
…ries for variantselection
No description provided.