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

chore: suspend load header components #256

Merged
merged 3 commits into from
May 27, 2024
Merged

chore: suspend load header components #256

merged 3 commits into from
May 27, 2024

Conversation

duyet
Copy link
Owner

@duyet duyet commented May 27, 2024

No description provided.

Copy link

vercel bot commented May 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clickhouse-monitoring ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 5:37pm

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @duyet - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -24,13 +25,17 @@ export function Header() {
<span className="flex sm:hidden">{TITLE_SHORT}</span>
</h2>
<div className="text-muted-foreground">
<ClickHouseHost />
<Suspense>
Copy link
Contributor

Choose a reason for hiding this comment

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

issue (bug_risk): Suspense component missing fallback prop

The Suspense component should include a fallback prop to handle the loading state. This ensures that users have a visual indication that content is being loaded.

</div>
</div>
</div>
<div className="flex items-center space-x-2">
<Menu />
<ReloadButton />
<Suspense>
Copy link
Contributor

Choose a reason for hiding this comment

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

issue (bug_risk): Suspense component missing fallback prop

The Suspense component should include a fallback prop to handle the loading state. This ensures that users have a visual indication that content is being loaded.

@duyet duyet merged commit 5e3ecce into main May 27, 2024
10 checks passed
@duyet duyet deleted the chore/ui branch May 27, 2024 17:42
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.

1 participant