-
Notifications
You must be signed in to change notification settings - Fork 775
refactor(orgs): get organizations via GraphQL and display name instead login #347
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
Changes from all commits
78ef77e
f3a5ee5
16c27ee
fe77ed0
70a8496
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,7 @@ class UserListItemComponent extends Component { | |
| subtitle: string, | ||
| onlyImageNavigate: boolean, | ||
| titleStyle: Object, | ||
| imageUrl: string, | ||
| navigation: Object, | ||
| icon: string, | ||
| iconAction: Function, | ||
|
|
@@ -85,6 +86,7 @@ class UserListItemComponent extends Component { | |
| title, | ||
| subtitle, | ||
| titleStyle, | ||
| imageUrl, | ||
| onlyImageNavigate, | ||
| navigation, | ||
| icon, | ||
|
|
@@ -131,7 +133,7 @@ class UserListItemComponent extends Component { | |
| <Image | ||
| style={styles.avatar} | ||
| source={{ | ||
| uri: user.avatar_url, | ||
| uri: imageUrl || user.avatar_url, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's best to make the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not think that it will turn out, i.e. when querying GraphQL, another notation is used (lowerCase instead of snake_case). We have already done this here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still think that having an optional prop, magically provided by another prop in some cases, is a bit confusing. I'm in favor of "real dumb" presentation components. Also in the spirit of #350 (did you check it?), I think GraphQL responses should be stored using the same schemas as REST responses in the entities array. That would enable us to access the data in the same way, regardless of where it came from (rest or graphql). Am I making sense? :/
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have not watched, but probably this will solve the problem, it seems to me... |
||
| }} | ||
| /> | ||
| </ImageContainerComponent> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe for later but I think we can move this
urlinto a constants files.