-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improve Activity Log page request lifecycle #3016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting the introduction of the MainView
and the modeling of the lifecycle of an API request. Curious about the possibility to be reused elsewhere.
However tests for ActivityLogOverview
and ActivityLogPage
are failing and need to be adjusted.
setLoading(false); | ||
}); | ||
// defer the loading state to avoid flickering | ||
const tid = setTimeout(() => setActivityLogRequest(request.loading()), 500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: how can the flickering be reproduced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, it is something visually annoying that has no functional effect. Maybe it only applies to local executions, when the latency is near zero.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright thanks for clarifying.
12a996f
to
24a75cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the conflict to be resolved (my bad 😄 ) LGTM! Thanks!
24a75cc
to
cb379d6
Compare
Description
Refine how the Activity log page handles the API request
lib/api/request