Skip to content

#218 45 days bonus and sub-subscription#219

Merged
thekingofcity merged 4 commits intomainfrom
#218-45-days-bonus-and-sub-subscription
May 19, 2025
Merged

#218 45 days bonus and sub-subscription#219
thekingofcity merged 4 commits intomainfrom
#218-45-days-bonus-and-sub-subscription

Conversation

@thekingofcity
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

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 adds subscription support by fetching and displaying user subscriptions (including a 45-day bonus reminder), integrates the new API call into login flow, and updates translation keys/UI components to surface subscription-related text.

  • Introduce APISubscription and fetchSubscription thunk; wire into login and app initialization
  • Refactor RedeemModal and SubscriptionSection to use Redux state for subscriptions
  • Add translation entries for subscription types and “Renew now and get an extra 45 days!” in all locales

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/util/constants.ts Added APISubscription interface
src/redux/account/account-slice.ts New fetchSubscription thunk, updated login flow
src/index.tsx Dispatch fetchSubscription on startup
src/components/modal/redeem-modal.tsx Removed getSubscriptions prop; dispatch new thunk
src/components/menu/account-view/subscription-section.tsx Refactored to read activeSubscriptions from store
src/i18n/translations/* Added translation keys for subscription UI and bonus prompt
src/components/menu/account-view/* Unified title sizes and updated translation keys
Comments suppressed due to low confidence (1)

src/components/menu/account-view/subscription-section.tsx:86

  • [nitpick] A large block of legacy UI code is commented out. Remove or restore it to keep the file clean and avoid confusion.
/* {Object.entries(activeSubscriptions)...*/

@thekingofcity thekingofcity merged commit 577ab6b into main May 19, 2025
1 check passed
@thekingofcity thekingofcity deleted the #218-45-days-bonus-and-sub-subscription branch May 19, 2025 18:13
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.

2 participants