Repository navigation
Add user-local-time feature - #2549
Conversation
This is the first implementation of adding the user's time to their hovercard. This is done through checking their last commit author date. It is still a bit rough implementation and might not be final.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks for the review, will go through it 👍 Just noticed another problem: |
This means that |
Yes I think that's the solution. |
|
@fregante I moved everything into I wasn't sure how to make the iterator work without TS yelling so I did this instead. Happy for any suggestions to make this work with TS 😄 |
fregante
left a comment
There was a problem hiding this comment.
Thanks for the changes! It's looking good!
user-local-time feature
|
I think now only this is left:
I left a |
Use URL to construct the url and handle empty text response correctly.
This also now exposes the api.getError function to throw any other error.
|
Added the |
|
Thank you for this PR @dertieran! 🕙 As expected in some cases this triggers a looot of requests, for example For this reason caching is vital and there are further improvements possible, if anyone wants to improve it.
|
content.js:9484 Uncaught (in promise) TypeError: Cannot read property 'append' of null
at MutationObserver.<anonymous> (content.js:9484)When hovering over the contributors on the main repo page Looks like thisselector needs to be more specific |

This is the first implementation of adding the user's time to their hovercard.
This is done through checking their last commit author date.
Screenshot
It is still a bit rough implementation and might not be final.
Todos:
apibe handled here or extracted outRight now most of them just result into an empty time (that is also chached).
Closes #1233