Co-pilot mint -> lit migration#503
Draft
Copilot wants to merge 5 commits into
Draft
Conversation
Components added: - Text, BigStat, Image, Empty (display) - Brand, TitledSection, Hero, HeroImage (layout) - ShareLink, ShareButton, ShareCode, CouponCode, ReferralCodes (sharing) - InputField, CheckboxField, DropdownField, PasswordField, NameFields, RadioCard (forms) - NavigationSidebar, NavigationSidebarItem, Tabs, Tab, Router, Route, NavigationMenu (navigation)
…onents Components added: - DividedLayout, StatContainer, LinkButton, Pagination, PopupContainer, Scroll, CloseButton, FormMessage (utility) - PortalContainer, PortalLogin, PortalRegister, PortalForgotPassword, PortalResetPassword, PortalChangePassword, PortalProfile, PortalFooter, PortalFrame (portal) - Leaderboard, LeaderboardRank, TaskCard, Timeline, TimelineEntry, ProgramExplainer, ProgramExplainerStep (game/stats) - UserName, QRCode, ReferralCard, ReferralIframe, RewardExchangeList, HeaderLogo, TextSpan, ProgramMenu, LogoutCurrentUser (misc) - ReferralTable, RewardsTable, InvoiceTable, TableCell, TableRow, PayoutButtonScroll (tables) - PortalEmailVerification, PortalVerifyEmail, PortalRegistrationForm, PortalChangeMarketing, PortalLogout, PortalProtectedRoute, PortalGoogleLogin, MarketingEmailsCheckbox, ContextRouter, GraphQLClientProvider (complex auth)
…for hooks - Migrate verification/lead components (WidgetVerification, CodeVerification, EmailVerification, LeadForm, EditProfile, InstantAccessRegistration, ReferredRegistration) - Migrate tax-and-cash components (TaxAndCash, TaxAndCashDashboard, BankingInfoForm, PayoutDetailsCard, PayoutStatusAlert, UserInfoForm, IndirectTaxForm, DocusignForm) - Migrate remaining components (CardFeed, BaseRegistration, GoogleSignIn, PortalGoogleRegistrationForm) - Add vitest unit tests for 11 component hooks - All 94 components now migrated with stories and Chromatic readiness
- Added msw dependency and test script to package.json - Added unit test project configuration to vite.config.ts - Created 54 new test files covering all hooks (excluding demo hooks) - Tests cover: initial state, form validation, event dispatch, GraphQL query handling, pagination, and interaction flows - All 65 test files pass with 244 tests total
…ponents Update the ShareLink GraphQL query to pass engagementMedium and shareMedium parameters, matching the updated mint-components behavior after the master merge.
Copilot created this pull request from a session on behalf of
Sam Beveridge (00salmon)
May 25, 2026 23:17
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After merging master into the
litbranch, the mint-components ShareLink hook was updated to passengagementMediumandshareMedium: DIRECTto the GraphQL query. This change needed propagation to the lit-components equivalent.Changes
ShareLink/useShareLink.tsquery to includeengagementMediumvariable andshareMedium: DIRECTparameter, matching the new mint-components behaviorAnalysis of other mint changes
All other changes from the master merge (76 files) were already reflected in lit-components — the lit hooks were built with the newer patterns (no
optimizeCloudinaryUrl, no vanity URL customization, simplified programId handling,prettyAvailableValuefor reward balance, nopartnerFundsTransferdate fields, etc.). No additional propagation required.