Skip to content

Copilot/migrate mint to lit components#511

Open
Sam Beveridge (00salmon) wants to merge 18 commits into
masterfrom
copilot/migrate-mint-to-lit-components
Open

Copilot/migrate mint to lit components#511
Sam Beveridge (00salmon) wants to merge 18 commits into
masterfrom
copilot/migrate-mint-to-lit-components

Conversation

@00salmon

Copy link
Copy Markdown
Contributor

Description of the change

Description here

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation or Development tools (readme, specs, tests, code formatting)

Links

  • Jira issue number: (PUT IT HERE)
  • Process.st launch checklist: (PUT IT HERE)

Checklists

Development

  • Prettier was run (if applicable)
  • The behaviour changes in the pull request are covered by specs
  • All tests related to the changed code pass in development

Paperwork

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has a Jira number
  • This pull request has a Process.st launch checklist

Code review

  • Changes have been reviewed by at least one other engineer
  • Security impacts of this change have been considered

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.
…mponents

Add useDemo* hooks with static/mock data and isDemo() ternary branching
to 47 lit-components, mirroring the mint-components demo pattern for
sandbox environments. Components covered include:
- Copy-text: ShareLink, ShareCode, CouponCode, ReferralCode, ReferralCodes
- Data display: UserName, QRCode, ReferralIframe, ShareButton, TaskCard
- Tables: ReferralTable, RewardsTable, InvoiceTable, RewardExchangeList
- Portal/Auth: PortalLogin, PortalProfile, EditProfile, PortalRegister,
  PortalRegistrationForm, PortalGoogleRegistrationForm, PortalLogout,
  PortalProtectedRoute, PortalChangeMarketing, PortalChangePassword,
  PortalForgotPassword, PortalResetPassword, PortalEmailVerification,
  PortalVerifyEmail
- Tax/Payout: TaxAndCash, TaxAndCashDashboard, BankingInfoForm,
  DocusignForm, IndirectTaxForm, UserInfoForm, PayoutButtonScroll,
  PayoutDetailsCard, PayoutStatusAlert
- Navigation: NavigationMenu, NavigationSidebarItem, Pagination,
  ContextRouter, ProgramMenu
- Forms: CheckboxField, DropdownField, InputField, NameFields, PasswordField
- Other: GoogleSignIn, InstantAccessRegistration, LogoutCurrentUser,
  LeadForm, WidgetVerification
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants