-
Notifications
You must be signed in to change notification settings - Fork 1
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
293 unlock new designs for shopify gate #294
Conversation
✨ (shopify): add OffKeyInfo component with stories and types for state management 🌐 (i18n): add localization support for OffKeyInfo states (unlocked, unlocking, used, locked)
… consistency ✨ feat(shopify): add OffKeyHeader and OffKeyHeaderConnected components for enhanced UI 📝 docs(shopify): update storybook examples to reflect new component structure and hooks usage ✨ (OffKeyHowToGet.stories.tsx, OffKeyHowToGet.tsx): add OffKeyHowToGet component and story for Shopify unlock feature ✨ (OffKeyInfo.stories.tsx, OffKeyInfo.tsx): add skeleton loader to OffKeyInfo and update stories ✨ (OffKeyProfile.stories.tsx): add stories for OffKeyProfile component with different user states ✨ (OffKeyProfile.tsx, examples.tsx, types.ts): add OffKeyProfile component, examples, and new types for Shopify feature 🌐 (en.json): add translations for OffKeyProfile component in Shopify feature
… to improve test accuracy ✨ (OffKeyAuth & OffKeyAuth.stories.tsx): add OffKeyAuth component and stories for enhanced wallet authentication flow ✨ (OffKeyAuthSignIn.tsx, examples.tsx): add OffKeyAuth components for Shopify unlock feature 🚚 (OffKeyHeaderNotConnected.tsx): remove unused OffKeyHeaderNotConnected component 📝 (en.json): update localization messages for OffKeyAuth feature ♻️ (OffKeyHeader.tsx): refactor OffKeyHeader to support optional profile and className props
…er code ♻️ (OffKeyAuth/examples.tsx): replace Card with div for simpler structure ✨ (OffKeyGate): add new OffKeyGate component for gate state management 📝 (OffKeyGate/examples.tsx): add examples for OffKeyGate component usage ♻️ (OffKeyHeader.tsx): adjust padding and separator margin for better layout 🔧 (OffKeyHeaderConnected.stories.tsx): streamline decorators by removing unnecessary ones ✨ (OffKeyInfo.stories.tsx, OffKeyInfo.tsx): Add className prop to OffKeyInfo for styling flexibility ♻️ (OffKeyInfo.stories.tsx): Rename OffKeySkeleton to OffKeyInfoSkeleton for consistency ✨ (OffKeyProfile.tsx): Update Button styling for better UI consistency and add isIconOnly prop ✨ (getGateStateForAddress.ts): Implement getGateStateForAddress action for gate state management 🌐 (en.json): Add localization for OffKeyGate and OffKeyHeaderConnected components
… management - Replace `ShopifyAuth` with `OffKeyAuth` to utilize new authentication mechanism. - Introduce `OffKeyHeader` and `OffKeyLayout` components for better structure and design consistency. - Implement internationalization support in authentication components to enhance user experience across different locales. - Refactor layout components to use `OffKeyLayout`, improving code readability and maintainability. - Adjust CSS for `OffKeyAuth` to improve UI alignment and spacing, ensuring a cohesive look and feel. - Update examples to demonstrate the usage of new `OffKey` components, providing clear guidance for developers.
- Introduced `OffKeyHeaderConnected`, `OffKeyProfile`, and `OffKeyGate` components to enhance the Shopify integration by providing a more cohesive and feature-rich user interface. - Implemented internationalization support for the new components to ensure a seamless user experience across different locales. - Refactored the layout structure to accommodate the new header and gate components, improving the overall page architecture and readability. - Removed outdated `@profile/page.tsx` in favor of a more integrated approach within the new layout system. - Updated the `index.ts` exports to include the newly added components, making them available for use across the application. - Enhanced the English locale messages to include translations for the newly introduced components, ensuring clarity and accessibility for English-speaking users.
…ion error ♻️ (OffKeyProfile.tsx): refactor signOutUserAction to handle errors with specific toast message
♻️ Refactor page.tsx to use OffKeyGateSignIn, enhancing UX 📝 Update en.json with new localization for gate sign-in text 💡 Add TODO comment in OffKeyProfile.tsx for future error handling improvement
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
PR Description updated to latest commit (8d0a4d2) |
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Type
enhancement, documentation
Description
OffKeyAuth
,OffKeyGate
,OffKeyHeader
, etc.) for better structure and functionality.OffKeyLayout
for consistent layout management across Shopify feature pages.OffKeyProfile
component for managing user profiles in connected state.OffKeyGate
component for managing gate states (unlocked, unlocking, used, locked).Changes walkthrough
12 files
page.tsx
Refactor Auth Page to Use OffKeyAuth Component
apps/unlock/app/[locale]/shopify/[gateId]/(notConnected)/@auth/page.tsx
OffKeyAuth
component with localization support.NextIntlClientProvider
for localized messages.page.tsx
Implement OffKeyHeader in Header Page
apps/unlock/app/[locale]/shopify/[gateId]/(notConnected)/@header/page.tsx
OffKeyHeader
component for the header section.layout.tsx
Use OffKeyLayout for Layout Management
apps/unlock/app/[locale]/shopify/[gateId]/(notConnected)/layout.tsx
ShopifyCard
withOffKeyLayout
for layout management.page.tsx
Integrate OffKeyGateSignIn Component
apps/unlock/app/[locale]/shopify/[gateId]/(notConnected)/page.tsx
OffKeyGateSignIn
component for sign-in functionality.page.tsx
Implement Connected User Header with OffKeyProfile
apps/unlock/app/[locale]/shopify/[gateId]/[address]/@header/page.tsx
OffKeyHeaderConnected
andOffKeyProfile
for connected userheader.
layout.tsx
Use OffKeyLayout in Address-Specific Layout
apps/unlock/app/[locale]/shopify/[gateId]/[address]/layout.tsx
OffKeyLayout
for layout management in address-specificpages.
page.tsx
Implement OffKeyGate Component for Gate State Management
apps/unlock/app/[locale]/shopify/[gateId]/[address]/page.tsx
OffKeyGate
component to manage gate state.index.ts
Export New Components for Shopify Feature
libs/features/unlock/shopify/src/index.ts
OffKeyAuth
,OffKeyGate
,OffKeyGateSignIn
,etc.) from the library.
OffKeyAuth.tsx
Add OffKeyAuth Component for Wallet Authentication
libs/features/unlock/shopify/src/lib/OffKeyAuth/OffKeyAuth.tsx
OffKeyAuth
component for wallet authentication flow.OffKeyGate.tsx
Introduce OffKeyGate Component
libs/features/unlock/shopify/src/lib/OffKeyGate/OffKeyGate.tsx
OffKeyGate
component for gate state management.OffKeyHeader.tsx
Implement OffKeyHeader Component
libs/features/unlock/shopify/src/lib/OffKeyHeader/OffKeyHeader.tsx
OffKeyHeader
component for the header section.OffKeyProfile.tsx
Add OffKeyProfile Component for User Profile Management
libs/features/unlock/shopify/src/lib/OffKeyProfile/OffKeyProfile.tsx
OffKeyProfile
component for user profile management.1 files
en.json
Add Translations for New Shopify Feature Components
libs/next/i18n/src/messages/en.json
OffKeyAuth
,OffKeyGate
,OffKeyProfile
, etc.).