Remove init quest promo#350
Conversation
n13
left a comment
There was a problem hiding this comment.
please add referral skip button back in
|
Having a lot of problems creating new account There's a lot of "loading" screens that take forever - also they don't need to be there. The referral page doesn't need to load referral status when we just created a wallet - referral is not set yet. flutter: getReferralData response: {"error":"An internal server error occurred"} |
Create account does not need network calls
All this happened because task master was down, but it showed us some things we can improve, like removing waits from create account |


Key Changes
1. Refactoring
ReferralActionSheetReferralAndRewardActionSheethas been appropriately renamed toReferralActionSheet, reflecting that it now focuses solely on the referral code entry and submission.QuestsPromoVideoimport and usage.directlyShowRewardProgram,showRewardProgram, and related state variables (_isRewardProgram,_isLastPromo)._handleOptInand_handleSkipReferrallogic, which significantly simplifies the component._buildSheetContentmethod is now much cleaner, handling only the loading state, submission success (checksum), or the input form.2. Quests Tab & Opt-In Flow (
QuestsScreen&Navbar)QuestsScreennow accepts aplayPromoVideoboolean.Navbar.dart,playPromoVideois derived from_selectedIndex == 3. This is a good optimization forIndexedStack. It ensures that the heavy video content or the "Opt-In" flow inQuestsScreenonly initializes/plays when the user actually navigates to that tab.playPromoVideois false),QuestsScreenshows a lightweight loading placeholder.!_isRewardProgramParticipant), it effectively replaces the removed referral sheet promo by showing theQuestsPromoVideodirectly on the screen.3. Minor UI Adjustments
reset_confirmation_bottom_sheet.dartsaw some structural formatting changes (removing an outerPaddingwidget). This likely tightens the layout of the bottom sheet.showReferralFormActionSheetfunction.