Giter Club home page Giter Club logo

Comments (6)

alejandronanez avatar alejandronanez commented on May 28, 2024 1

Any steps for the new people to the repo to follow? Also, any thoughts about the design? I think a logout link in the profile page would be enough.

from git-point.

housseindjirdeh avatar housseindjirdeh commented on May 28, 2024

Thank you @alejandronanez, I had it all in mind and just realized I didn't actually write it down 😞 .

So the UserProfile screen has a menu icon on the top right that lets you follow/unfollow users. We don't have this for the AuthUserProfile screen and I think we can just add this to open an Action Sheet with a Logout button.

2 caveats:

  1. ActionSheetIOS is being used and will be changed soon: #2 (comment) to allow for Android functionality. Will appreciate if we use react-native-actionsheet here as well
  2. There's another ticket open (#8) to allow editing user profile details. If that gets merged in prior --> it probably will make more sense to have Log Out included in that screen. But in the meantime the approach mentioned above will work fine

from git-point.

RolfKoenders avatar RolfKoenders commented on May 28, 2024

I started to play with logging out a bit and at the moment i have the following.

Screen_Shot_2017_07_17_at_20_31_15 Screen_Shot_2017_07_17_at_20_31_25

By clicking yes you would navigate to the 'Login' screen. At this moment i'm trying to figure out how to clear the userData (log the user out).
Till there will be an editing button (Maybe a cogwheel icon next to the profile image will do?) this will do the job i think?

Let me know if i should push my branch and create a pr or its better to combine this with a possible editing feature.

from git-point.

housseindjirdeh avatar housseindjirdeh commented on May 28, 2024

@RolfKoenders that looks amazing 😍

Yep so I had the idea in another ticket #8 for updating profile details to have a little cog wheel icon to navigate to the screen where the user can update their info. I was thinking of having Log Out there but I actually really what you did there. I think this is great for now and when the user profile details screen is created --> we can decide if we want to just move the listitem there or leave it where it is now.

Couple of tiny tiny nitpicks I can see (and I know I could have waited for a PR to put this):

  1. Since the login screen there's a button for Sign In, maybe we should call this Sign Out instead of Log Out (I know - very nitpicky πŸ˜‚ )
  2. Think it might look a little nicer if we leverage SectionList and put your new list item within it. SectionList title can also be called Sign Out
  3. Unsure but are you using octicons for the icon on the left like this. If you are, disregard this point πŸ˜‚ but if not - definitely makes sense to leverage GitHub icons like we do everywhere in the app (feel free to pick any icon that you think makes sense - like an arrow or something)!
  4. Would probably say we should also use hideChevron as a prop (like this to hide the right chevron icon as well since we don't navigate to a separate page

Aside from these tiny things, this is awesome matey. More than happy to have you submit a PR with a dummy ListItem for now and I can show you exactly how we can clear user data if you like (should be really straightforward). Since we use redux-persist in the app to persist the entire user data to AsyncStorage, the idea is pretty much we use persistStore.purge or simply AsyncStorage.clear() when we navigate to the login screen

from git-point.

RolfKoenders avatar RolfKoenders commented on May 28, 2024

As referenced above i created a pr and here are the other answers.

  1. Agree, these things give the overall feeling of the app.
  2. I thought it would look bad, but it isn't.
  3. This is a octicons icon.
  4. I'm trying πŸ˜„

from git-point.

Antoine38660 avatar Antoine38660 commented on May 28, 2024

Can be closed (#131) πŸ˜„

from git-point.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.