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

ProfileHeader component cleanup, generic button with icon elements #1836

Closed
wants to merge 9 commits into from
Closed

Conversation

tarikfp
Copy link
Contributor

@tarikfp tarikfp commented Nov 7, 2023

Web

web-demo.mov

App

app-demo.mov
  • In the current state, the ProfileHeader component uses custom TouchableOpacity components to display the Follow/Unfollow Action button, despite the fact that we already have a pre-existing FollowButton component in the app.

  • Suggested follows icon is not visible in dark mode. It is being displayed as white circle when showSuggestFollows is set to true.

  • Furthermore, when the follow/unfollow action is initiated, the button interactions remain active, and there is no loading indicator displayed which may confuse the user.

To address these issues, we should:

  • Utilize the existing FollowButton component within the ProfileHeader.
  • Changing Suggested follows icon's color to correct one.
  • Enhance the Button component by introducing StartIcon and EndIcon props, enabling the rendering of additional icons such as a plus sign (+) or a checkmark (✓) alongside the follow/unfollow text in FollowButton component. By using Button component, we eliminate the need of controlling loading state to disable interactions on the button since it is already being internally handled by the Button component itself.

App demo after changes

app-fixed.mov

Web demo after changes

web-fixed.mov

tarikfp and others added 8 commits October 28, 2023 23:01
Since react-native-reanimated is not configured for web support (https://docs.swmansion.com/react-native-reanimated/docs/2.x/fundamentals/web-support/), we are enabling fade out animation for iOS and android solely
- Button component with optional start/end icon elements
- Suggested follows icon's dark mode color adjusted in ProfileHeader
-Fix on blur action on search input in suggested follows tab(second tabbar item) causes ProfileCard description content to jump in android and iOS
@tarikfp tarikfp changed the title ProfileHeader component cleanup, Generic Button with Icon Elements ProfileHeader component cleanup, Generic Button with Icon Elements, Fix jumping in second tab Nov 8, 2023
@tarikfp tarikfp changed the title ProfileHeader component cleanup, Generic Button with Icon Elements, Fix jumping in second tab ProfileHeader component cleanup, generic button with icon elements, fix jumping in second tab Nov 8, 2023
@tarikfp tarikfp changed the title ProfileHeader component cleanup, generic button with icon elements, fix jumping in second tab ProfileHeader component cleanup, generic button with icon elements Nov 8, 2023
@tarikfp tarikfp closed this by deleting the head repository Nov 8, 2023
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

1 participant