Skip to content

Conversation

@yakov116
Copy link
Member

@yakov116 yakov116 commented Jul 3, 2020

Yeah that time of week LOL

@yakov116
Copy link
Member Author

yakov116 commented Jul 3, 2020

Was going to do

It might be worth deleting getRepoURL and adding it to this line https://github.com/sindresorhus/refined-github/blob/daf633137ec08e6f5647a6f8bb0b02d5dce58ef9/source/github-helpers/index.ts#L8

Originally posted by @fregante in #3308 (comment)

But dont this we gain anything since

We have to make it lowercase though, to not undo #2892.

Originally posted by @FloEdelmann in #3308 (comment)

@yakov116
Copy link
Member Author

yakov116 commented Jul 3, 2020

@fregante
Copy link
Member

fregante commented Jul 3, 2020

Yes

@kidonng
Copy link
Member

kidonng commented Jul 5, 2020

@yakov116 Could you also add #3247 (comment) and https://github.com/sindresorhus/refined-github/pull/3247/files/dd15d83e6f55d7be29c528535479246aaf1c27f7#diff-c372438f929b897327158a989ea88c17R65 (change current style to className)?

@fregante
Copy link
Member

fregante commented Jul 5, 2020

Regarding reaction-avatars: GitHub has a native component for that, it’s called “avatar stack” and we could use it to drop some of our custom CSS. It can be found on the dashboard.

However that should probably be its own PR because I don’t know if it works as well as ours

@yakov116 yakov116 marked this pull request as ready for review July 5, 2020 14:37
@yakov116
Copy link
Member Author

yakov116 commented Jul 5, 2020

I think I'm done here. 😄

// Without this, Firefox will follow the link instead of submitting the reaction button
<a href={isFirefox ? undefined : `/${username}`} className="rounded-1 avatar-user">
<img src={imageUrl} style={{borderRadius: 'inherit'}}/>
<img src={imageUrl} className="rounded-1"/>
Copy link
Member

@kidonng kidonng Jul 5, 2020

Choose a reason for hiding this comment

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

You should use className="avatar-user rounded-1" because rounded-1 is for old design and has smaller radius (6px):
image

Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
<img src={imageUrl} className="rounded-1"/>
<img src={imageUrl} className="avatar-user rounded-1"/>

Copy link
Member

Choose a reason for hiding this comment

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

@yakov116 Why?

Copy link
Member Author

Choose a reason for hiding this comment

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

Followed @kidonng #3314 (comment)

You should use className="avatar-user rounded-1" because rounded-1 is for old design and has smaller radius (6px):

Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>

You should use className="avatar-user rounded-1" because rounded-1 is for old design and has smaller radius (6px):
@fregante fregante added the bug label Jul 5, 2020
Co-authored-by: Fregante <opensource@bfred.it>
@kidonng
Copy link
Member

kidonng commented Jul 6, 2020

Could you please revert another mistake in #3247 (comment) again 😅? (and you should use 6px now)

Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>
@yakov116
Copy link
Member Author

yakov116 commented Jul 7, 2020

@fregante anything waiting on me to finish?

@yakov116
Copy link
Member Author

yakov116 commented Jul 7, 2020

@fregante did you get the new preview? If yes from what i see we now have an issue detecting permalinks from the branch selector. It does not say if its a tag/tree anymore.

@fregante
Copy link
Member

fregante commented Jul 7, 2020

Let's handle that in a separate PR once that design leaves beta.

@fregante fregante merged commit da83130 into refined-github:master Jul 7, 2020
@fregante
Copy link
Member

fregante commented Jul 7, 2020

In your next round you could change this line to use github-url-detection https://github.com/sindresorhus/refined-github/blob/da8313019d31ab4bdf3fd4a5f75be961d95a6a9a/source/features/file-finder-buffer.tsx#L18

@yakov116
Copy link
Member Author

yakov116 commented Jul 7, 2020

In your next round you could change this line to use github-url-detection

Next round?? Why would there be that? Lol

@yakov116 yakov116 deleted the lint-console branch July 7, 2020 23:07
@@ -12,5 +14,8 @@ void features.add({
}, {
waitForDomReady: false,
repeatOnAjax: false,
Copy link
Member Author

Choose a reason for hiding this comment

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

any reason this is not working correctly with repeatOnAjax: false

Copy link
Member

@fregante fregante Jul 13, 2020

Choose a reason for hiding this comment

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

Because sometimes it goes from isPR to isConversationList with an ajax load, but repeatOnAjax: false prevents the page detection, it should be dropped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants