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

fix(*): Style updates, add edit issue body functionality #409

Merged
merged 4 commits into from Oct 2, 2017

Conversation

housseindjirdeh
Copy link
Member

@housseindjirdeh housseindjirdeh commented Oct 2, 2017

Various fixes/updates for #381

  • Changes color of mark all notifications button

image

  • Adds padding for no notifications message in notifications screen

image

  • Fixes this problem:

image

  • Allows editing of issue description

editdescription

  • Makes title/subtitle of IssueDescriptionListItem better in terms of boldness

image

  • Removes the user title from repository list item (@lex111 - with this it's unlikely we'll see the private box being squeezed anymore as most repo titles aren't nearly as long)

image

@@ -172,6 +173,28 @@ export const editIssueComment = (issueCommentId, owner, repoName, body) => {
};
};

export const editIssueBody = (owner, repoName, issueNum, body) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

editIssue currently already exists and I'm definitely not a fan of how I'm passing updateParams to it. Because the comment is HTML, can't leverage that to pass in a new update parameter for the text to replace state.

Will need to refactor how editIssue works later without a doubt and instead of passing in updateParams, just get what's returned from the API (and we can then just remove this)

@lex111
Copy link
Member

lex111 commented Oct 2, 2017

Removes the user title from repository list item (@lex111 - with this it's unlikely we'll see the private box being squeezed anymore as most repo titles aren't nearly as long)

Let's remove this label and display this icon?

@lex111 lex111 mentioned this pull request Oct 2, 2017
@lex111
Copy link
Member

lex111 commented Oct 2, 2017

Adds padding for no notifications message in notifications screen

And why are they needed? There in fact there is an alignment on the center, and after addition padding, any more will not be absolutely on the center to be displayed.

@chinesedfan
Copy link
Member

@housseindjirdeh User titles are needed, at least for searched result or stared repositories. This feature is added by #254 in particular. And I also mentioned the redundancy, but you missed it. :)

@machour
Copy link
Member

machour commented Oct 2, 2017

Seconding @lex111, let's use that emoji and bring back username/reponame :

If I'm on some user profile, then check his repos, I'll have to remember the user name, or navigate back and forth to have the repo full name to clone it

@@ -63,7 +63,7 @@ const renderTitle = repository =>
<View style={styles.repositoryContainer}>
<View style={styles.titleWrapper}>
<Text style={styles.title}>
{repository.full_name}
{repository.name}
Copy link
Member

Choose a reason for hiding this comment

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

As correctly noted, displaying only the name of the repository will not be convenient, so we need to add a check: if this is an auth screen, then show only the name of the repository, and if the user profile, then display the full name.

Copy link
Member

@lex111 lex111 Oct 2, 2017

Choose a reason for hiding this comment

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

Although, maybe it can just add the lock icon (if private) to the end of the title?
@chinesedfan so in fact will work?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it doesn't matter the pending element is the private box or the lock icon, as long as the parent element is Text and the child view has width&height specified.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@jouderianjr
Copy link
Member

@housseindjirdeh What do you think about handling with edit issue body in another screen. Maybe we could create an edit issue for edit the description and the title.

@housseindjirdeh
Copy link
Member Author

And why are they needed? There in fact there is an alignment on the center, and after addition padding, any more will not be absolutely on the center to be displayed.

Honestly I just felt that the message looks a bit squeezed for English copy?

image

Probably just imagining things, reverted it back and removed that padding :)

User titles are needed, at least for searched result or stared repositories. This feature is added by #254 in particular. And I also mentioned the redundancy, but you missed it. :)

Have no idea how I missed that point. Thank you, and I completely forgot that search and starred repos would have to show that. Updated it so now only the authenticated list of users repositories won't show (otherwise it will :))

Let's remove this label and display this icon?

Done:

image

@housseindjirdeh
Copy link
Member Author

@jouderianjr so you make a good point, and right now if you head to the settings screen you can modify a few issue settings (but not title or description)

image

We could have issue title and description modifiable here but honestly I actually prefer at least the description being modified the same way as any other comment. It feels intuitive as I still think of it as a comment.

Definitely curious if you think there's a better option however, as well as how we can add functionality to edit the issue title in the future 🤔

@lex111
Copy link
Member

lex111 commented Oct 2, 2017

Honestly I just felt that the message looks a bit squeezed for English copy?

Oops, did not notice if padding left and right, then this should not affect the alignment, although at first glance it seemed to me that this is so. Excuse me, let's it return, but can we make them smaller?

@lex111
Copy link
Member

lex111 commented Oct 2, 2017

Let's remove this label and display this icon?

Do not you think that the size is big? In my opinion it was better if you reduce the size of the icon?

@housseindjirdeh
Copy link
Member Author

Oops, did not notice if padding left and right, then this should not affect the alignment, although at first glance it seemed to me that this is so. Excuse me, let's it return, but can we make them smaller?

Cheers no worries. Added some padding but reduced it a bit :)

image

Do not you think that the size is big? In my opinion it was better if you reduce the size of the icon?

And nice you're probably right. Reduced it:

image

@machour
Copy link
Member

machour commented Oct 2, 2017

@housseindjirdeh I'd rather use type="default" (or no type) for the "Mark all as read" button.
Let's keep "success" for strong actions, like merge

@housseindjirdeh
Copy link
Member Author

housseindjirdeh commented Oct 2, 2017

@housseindjirdeh I'd rather use type="default" (or no type) for the "Mark all as read" button.
Let's keep "success" for strong actions, like merge

Done.

Although the default button looks interesting 🤔 Are these the intended colors @machour? (just showing it defaulted for the merge button for demo, don't have any notifications in the moment that's why :))

image

@machour
Copy link
Member

machour commented Oct 2, 2017

@housseindjirdeh that icon should be black, otherwise it's the intended look.

@jouderianjr
Copy link
Member

We could have issue title and description modifiable here but honestly I actually prefer at least the description being modified the same way as any other comment. It feels intuitive as I still think of it as a comment.

Definitely curious if you think there's a better option however, as well as how we can add functionality to edit the issue title in the future 🤔

I got it, make sense, so we can release that in v1.3 and then reorganize this screen in order to fit edit title and body 😄

Nice job mate!

@@ -188,7 +191,12 @@ export class Button extends Component {
}}
disabledStyle={disabledStyle}
icon={
icon && { ...defaultIconStyle, ...sizes[size].iconStyle, ...icon }
icon && {
...defaultIconStyle,
Copy link
Member Author

Choose a reason for hiding this comment

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

Extended this since didn't seem like icons were being styled in the component within @machour

@housseindjirdeh
Copy link
Member Author

@housseindjirdeh that icon should be black, otherwise it's the intended look.

@machour fixed:

image

@housseindjirdeh
Copy link
Member Author

@jouderianjr Exactly what I was thinking :)

@housseindjirdeh housseindjirdeh merged commit 7e184e6 into gitpoint:master Oct 2, 2017
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

5 participants