Repository navigation
Fancy pull request loading animations - #3228
Conversation
|
@niik I'm gonna assign this to you in case you wanna tweak the timings or easing. |
Since all icons are the same here. Even if we did want to this is the wrong way, we'd need to wrap it in a div and size that. Octicons should only be sized on height as they're variable width
To balance out the margin on the right
We have a right margin on .info
nextSelectableRow assumes that there's always one selectable row, that's not necessarily the case so it could end up recursing indefinitely. This rewrites it from a recursive method into a finite loop. Fixes #996.
There was a problem hiding this comment.
Code looks good.
Testing this out on desktop/desktop and microsoft/vscode shows the old "No open pull requests" view initially (probably while it's fetching the initial PRs?) rather than this loading panel (maybe it's quickly transitioning after that?) - any pointers on how I should be testing this?
| public nextSelectableRow( | ||
| direction: 'up' | 'down', | ||
| row: number | ||
| ): number | null { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
CSS looks legit 2 me but, like @shiftkey, I'm not quite sure how to test this. (I even tried opening the menu with my WiFi turned off 🙈) |
This Stack Overflow answer shows how to simulate bad Internet connections with the Chrome DevTools. Does that help? |
I've got a sassy comeback here about Australian internets not requiring a simulation, but I'll try out the Chrome Dev Tools too 😉 |
Ayyup! That does help. It looks like it still shows the empty state before loading the list, just like what @shiftkey stated earlier. |
| this.emitError(error) | ||
| } finally { | ||
| this.changeActiveFetchCount(repository, c => c - 1) | ||
| this.emitUpdate(repository) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| ): Promise<void> { | ||
| const api = API.fromAccount(account) | ||
|
|
||
| this.changeActiveFetchCount(repository, c => c + 1) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** Is the store currently fetching the list of open pull requests? */ | ||
| public isFetchingPullRequests(repository: GitHubRepository): boolean { | ||
| const key = repository.dbID |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🏐 |
|
I'll let @shiftkey close this out just in case he has more to add. |
shiftkey
left a comment
There was a problem hiding this comment.
Gave it another test, all looks good (I saw the animation too! 😎)
|
Props to @iAmWillShepherd for helping out with the review 💎 |

Fixes #2868
s/o to @niik for reminding me that
keyis a thing that one needs for animations, and for writing the pulse CSS