Repository navigation
Show token owner in options page - #7380
Conversation
|
ٍSome longer usernames and names may not fit next to the token input box. |
|
No, I mean that I had implemented |
|
Ah yes, that part should be removed. |
| const scopes = await getTokenScopes(tokenField.value); | ||
| const text = `👤 @${await getNameFromToken(tokenField.value)}`; |
There was a problem hiding this comment.
Better parallelize them:
| const scopes = await getTokenScopes(tokenField.value); | |
| const text = `👤 @${await getNameFromToken(tokenField.value)}`; | |
| const [scopes, user] = await Promise.all([ | |
| getTokenScopes(tokenField.value), | |
| getNameFromToken(tokenField.value), | |
| ]); |
The emoji is part of the UI so it should be added near the DOM/HTML generation
There was a problem hiding this comment.
The emoji is part of the UI so it should be added near the DOM/HTML generation
I'm sorry, I'm unsure how to do that, I can't find any place where the HTML is generated. The images seem to get added through CSS
|
I forgot to mention this: it lacks support for GitHub Enterprise and it will break for GHE users. Can you add it? If not, I'd have to revert this PR before the next release. It looks like this: refined-github/source/options.tsx Lines 62 to 66 in eb1d1af |





Related to #6000 (comment)
Screenshot