Skip to content
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

frontend: Details page blinking fixes #2651

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

sniok
Copy link
Contributor

@sniok sniok commented Dec 10, 2024

After #2627 was merged I've noticed some blinking that was happening when navigating to details page from the list page

This PR adds 2 fixes, one for AuthVisible query key and another for the simple table

How to test:
Navigate to Pods
Click on any Pod
No blinking/layout shifting should occur

AuthVisible fix adjust how the key for the query is defined. Previously it was passing the whole object into the key which wasn't very deterministic and would request auth again sometimes even if the object is the same.

The SimpleTable fix is described in the commit message

@sniok sniok requested a review from joaquimrocha December 10, 2024 14:46
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 10, 2024
@sniok sniok added frontend Issues related to the frontend bug Something isn't working and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Dec 10, 2024
@sniok sniok marked this pull request as draft December 10, 2024 14:54
@sniok sniok force-pushed the details-blinking-fix branch from dfec57a to 75c0b14 Compare December 10, 2024 15:39
@sniok sniok marked this pull request as ready for review December 11, 2024 13:53
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 11, 2024
When new data is passed in the SimpleTable there's a special case of
preventing an update to not disturb user flow but when it's first page
the data will always be updated but the Refresh button is still shown
for one frame

Signed-off-by: Oleksandr Dubenko <[email protected]>
@sniok sniok force-pushed the details-blinking-fix branch from 75c0b14 to 2e260fc Compare December 12, 2024 13:30
@joaquimrocha joaquimrocha added this to the v0.27.0 milestone Dec 12, 2024
@joaquimrocha joaquimrocha merged commit 0c03241 into main Dec 12, 2024
18 checks passed
@joaquimrocha joaquimrocha deleted the details-blinking-fix branch December 12, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Issues related to the frontend size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants