Skip to content

: ✨ 🛍️ Added the shop background and artwork#105

Merged
kcw-grunt merged 3 commits into
developfrom
feat/add-shop-bento
Apr 27, 2026
Merged

: ✨ 🛍️ Added the shop background and artwork#105
kcw-grunt merged 3 commits into
developfrom
feat/add-shop-bento

Conversation

@kcw-grunt

@kcw-grunt kcw-grunt commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator

📱 Description

This PR adds a new Shop Bento UI component featuring gift card purchasing functionality powered by Bitrefill. The shop section displays animated gift cards (Visa, Amazon, JustEat) with a themed background image, allowing users to buy gift cards with Litecoin. New color gradients, background helpers, and supporting assets have been added to enable the feature.

Platform

  • iOS

🎯 Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactoring (code change that neither fixes a bug nor adds a feature)
  • 📚 Documentation update
  • 🎨 UI/UX improvement
  • ⚡ Performance improvement
  • 🧪 Test addition or improvement
  • ⚙️ CI/CD change

📋 Changes

New Components Added

  • ShopBentoView.swift – Main shop bento component displaying gift card selection and Bitrefill branding with tap-to-open functionality
  • GiftCardsView.swift – Animated gift card carousel with three card types (Visa, Amazon, JustEat) using easing animations
  • ConfirmationStatus.swift – Hexagonal confirmation status indicator (6-segment progress visualization)
  • ShopBackgroundView.swift – Themed background view with gradient and background image overlay for shop section
  • shop-bento/ asset directory – Contains shop background image (store_05.jpg), Bitrefill logos (white/black variants), and merchant logos (Amazon, Visa, JustEat)
  • Added text for the elements
  • Connected state to the click in the Shop Bento

Modifications

  • BentoBackgroundHelpers.swift – Added ShopBackgroundView struct with gradient and image composition for dark theme display
  • Brainwallet+Color.swift – Added new color definitions: middleBlue, outerBlue, middleGray, outerGray, middleOrange, outerOrange and BrainwalletGradient struct with radial gradients (blueCard, grayCard, orangeCard); added Color(hex:) extension for hex color parsing
  • Constants+Events.swift – Added BrainwalletShop struct with Bitrefill referral and standard URLs
  • NewMainView.swift – Replaced FavouritesBentoView with ShopBentoView in main carousel; added shop sheet presentation with WebView integration for Bitrefill
  • NewMainViewModel.swift – Added @Published var shouldShowShop: Bool property to manage shop sheet state
  • TransactionRowView.swift – Refactored layout alignment (trailing), adjusted font sizes (19→17pt timestamp, 22→17pt amount), reduced spacing; added commented-out dev code for confirmation status display
  • BrainwalletHybrid.xcworkspace/xcshareddata/swiftpm/Package.resolved – Updated SPM dependencies
  • brainwallet.xcodeproj/project.pbxproj – Updated build configuration for new assets and files
  • Localizable.xcstrings – Localization updates for shop-related strings

Removals

  • FavouritesBentoView.swift – Removed decorative favorites bento component (replaced with functional shop component)

📊 Statistics

  • Additions: 25452 lines
  • Deletions: 25039 lines
  • Files Changed: 26
  • Commits: 1

🧪 Tests Status

  • Tests ran successfully locally?

📸 Screenshots/Videos

Action Shop
shop

🎯 Reviewers

@kcw-grunt
@josikie

Added text for the elements
Connected state to the click in the Shop Bento
@kcw-grunt
kcw-grunt requested a review from josikie April 26, 2026 23:09
@kcw-grunt kcw-grunt self-assigned this Apr 26, 2026
@kcw-grunt kcw-grunt added enhancement New feature or request ios labels Apr 26, 2026
@kcw-grunt kcw-grunt changed the title Added the shop background and artwork : ✨ 🛍️ Added the shop background and artwork Apr 26, 2026
@gruntsoftware gruntsoftware deleted a comment from github-actions Bot Apr 26, 2026
@kcw-grunt
kcw-grunt merged commit 83d7caf into develop Apr 27, 2026
2 of 4 checks passed
@kcw-grunt
kcw-grunt deleted the feat/add-shop-bento branch May 3, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant