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

fix(analytics): only show metric cards if apps are present [MA-3030] #543

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

adorack
Copy link
Contributor

@adorack adorack commented Aug 1, 2024

No description provided.

@adorack adorack marked this pull request as ready for review August 1, 2024 20:58
@adorack adorack requested a review from a team as a code owner August 1, 2024 20:58
@@ -39,7 +39,10 @@
class="no-auth-strategies-warning"
data-testid="no-auth-strategies-warning"
/>
<AnalyticsConfigCheck require-analytics>
<AnalyticsConfigCheck
v-if="!myAppsReady || appsArePresent"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!myAppsReady is the "not" intended here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the logic is:

  • Apps are loading -> myAppsReady is false -> show the skeleton loader for the metric cards.
  • If apps are present -> appsArePresent is true -> show the metric cards and let them issue the query.
  • If apps are not present -> appsArePresent is false -> hide the metric cards.

I tested without !myAppsReady and the UX seemed jarring -- the metric cards would pop up as soon the table loaded and cause the table to shift downward. It seems less jarring to hide them when the apps are not present.

@adorack adorack merged commit 987d0ed into main Aug 2, 2024
7 checks passed
@adorack adorack deleted the fix/my-apps branch August 2, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants