Skip to content

feat(dashspend): buy gift card UI#701

Merged
Syn-McJ merged 15 commits into
dashpay:feature/dashspendfrom
Syn-McJ:feat/dashspend-pay-ui
May 19, 2025
Merged

feat(dashspend): buy gift card UI#701
Syn-McJ merged 15 commits into
dashpay:feature/dashspendfrom
Syn-McJ:feat/dashspend-pay-ui

Conversation

@Syn-McJ

@Syn-McJ Syn-McJ commented May 17, 2025

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

After DashSpend login, the user should be redirected to the payment screen for buying the gift card.

What was done?

  • Payment screen UI
  • Merge master branch
  • Confirmation dialog UI

How Has This Been Tested?

QA

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@Syn-McJ
Syn-McJ requested review from Copilot and pankcuf May 17, 2025 04:25
@Syn-McJ Syn-McJ self-assigned this May 17, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements the new gift card buying UI for DashSpend by introducing new SwiftUI components and refactoring parts of the HomeView architecture. Key changes include injecting a HomeViewModel into HomeView, converting HomeBalanceView from a UIKit view to a SwiftUI view, and adding new DashSpendPay UI components and view models; additionally, merchant data has been updated to use savingsBasisPoints.

Reviewed Changes

Copilot reviewed 90 out of 90 changed files in this pull request and generated no comments.

Show a summary per file
File Description
DashWallet/Sources/UI/Home/Views/HomeView.swift Updated to accept HomeViewModel via initializer and removed obsolete DWHomeModelUpdatesObserver methods.
DashWallet/Sources/UI/Home/Views/Home Header View/HomeHeaderView.swift Adjusted initializer and view setup to remove balanceView dependency.
DashWallet/Sources/UI/Home/Views/Home Balance View/HomeBalanceView.swift Converted from a UIView-based implementation to a SwiftUI view with gesture handling updated accordingly.
DashWallet/Sources/UI/Explore Dash/Views/DashSpend/DashSpendPayViewModel.swift New view model for DashSpendPay features with minor naming inconsistency.
(Multiple additional files) New UI components and updated logic for DashSpend feature integration and merchant savings representation.
Comments suppressed due to low confidence (1)

DashWallet/Sources/UI/Explore Dash/Views/DashSpend/DashSpendPayViewModel.swift:80

  • Consider renaming 'maximumimit' to 'maximumLimit' for clarity and consistency.
var maximumimit: String { String.localizedStringWithFormat(NSLocalizedString("Max: %@", comment: "DashSpend"), fiatFormatter.string(for: maximumAmount) ?? "0.0" ) }

@pankcuf pankcuf 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.

LGTM

@Syn-McJ
Syn-McJ merged commit c6b86e9 into dashpay:feature/dashspend May 19, 2025
@Syn-McJ
Syn-McJ deleted the feat/dashspend-pay-ui branch May 19, 2025 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants