Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dashpay): restoring Contacts flow #584

Merged

Conversation

Syn-McJ
Copy link
Member

@Syn-McJ Syn-McJ commented Aug 5, 2023

Issue being fixed or feature implemented

As a part of the "Bringing back DashPay" initiative, the contacts entry point in the tabbar should be restored.

What was done?

  • Fix some build errors
  • Restore Contacts and Explore tabs in the tabbar
  • Update the tabbar icons (selected/unselected)
  • Mock the username in dashPayModel to sync with the HomeHeaderView
  • Mock Contacts when searching
  • Use a single flag for DashPay mocking functionality

How Has This Been Tested?

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 self-assigned this Aug 5, 2023
@@ -24,7 +24,6 @@ extern NSNotificationName const DWDashPayAvailabilityStatusUpdatedNotification;
@protocol DWDashPayReadyProtocol <NSObject>

@property (readonly, nonatomic, assign) BOOL isDashPayReady;
@property (readonly, nonatomic, assign) BOOL isDashPayReadyMainSuggestion;
Copy link
Member Author

Choose a reason for hiding this comment

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

Not needed atm. Removed to keep the DWDashPayReadyProtocol footprint low.

@@ -42,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)homeModelWantToReloadShortcuts:(id<DWHomeProtocol>)model;
@end

@protocol DWHomeProtocol <DWTxDisplayModeProtocol>
@protocol DWHomeProtocol <DWTxDisplayModeProtocol, DWDashPayReadyProtocol>
Copy link
Member Author

Choose a reason for hiding this comment

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

Contacts VC requires DWDashPayReadyProtocol which was implemented by the home model before. Perhaps there is a path to refactor this in the future stories.

@Syn-McJ Syn-McJ marked this pull request as ready for review August 7, 2023 10:57
@Syn-McJ Syn-McJ requested a review from tikhop August 7, 2023 10:58
@@ -24,5 +24,6 @@

NSInteger DW_MIN_USERNAME_LENGTH = 3;
NSInteger DW_MAX_USERNAME_LENGTH = 24;
BOOL MOCK_DASHPAY = YES; // TODO: remove once Platform is available
Copy link
Member Author

Choose a reason for hiding this comment

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

I figure it's better to reference a single flag for any mocking code. Will be easier to turn off and remove once the platform is available.

Copy link
Collaborator

@tikhop tikhop left a comment

Choose a reason for hiding this comment

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

Looks good!

@tikhop tikhop merged commit 996cf38 into dashpay:feature/dashpay Aug 8, 2023
2 checks passed
@Syn-McJ Syn-McJ deleted the feature/dashpay-contacts-flow branch August 21, 2023 11:49
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.

None yet

2 participants