Skip to content

refactor(frontend): dashboard logs inside virtual list#101

Merged
zowks merged 3 commits into
mainfrom
refactor/frontend/logs
Jun 16, 2026
Merged

refactor(frontend): dashboard logs inside virtual list#101
zowks merged 3 commits into
mainfrom
refactor/frontend/logs

Conversation

@zowks

@zowks zowks commented Jun 16, 2026

Copy link
Copy Markdown
Member

Description

Briefly describe what this PR does :
Display cluster logs inside a virtual list for better performance.


Context / Motivation

Explain why this change is needed:
Too many logs would make the dashboard crash


Checklist

  • My code follows the project's coding style
  • Tests pass locally
  • I added/updated relevant tests
  • I updated documentation (if needed)
  • This PR is ready for review

Additional Notes

@zowks zowks requested review from a9ex and Copilot June 16, 2026 14:51
@zowks zowks self-assigned this Jun 16, 2026
@zowks zowks added enhancement New feature or request frontend labels Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the clusters dashboard widgets (notably logs) by introducing a custom virtualized list implementation and reorganizing cluster widgets into a dedicated widgets/ folder, alongside dependency updates.

Changes:

  • Added a home-grown VirtualList component and refactored cluster logs to render through it (plus a new $lib/components/ClusterLogs.svelte).
  • Introduced a reusable Widget.svelte wrapper and moved cluster logs/shards into components/widgets/.
  • Updated frontend dependencies (Skeleton, Svelte, Tailwind, Vite, Oxlint) and refreshed the lockfile.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pnpm-lock.yaml Lockfile updates reflecting dependency bumps.
packages/frontend/package.json Bumps Svelte/Skeleton/Tailwind/Vite tooling versions.
packages/frontend/src/routes/(form)/setup/components/Account.svelte Updates enhance callback usage to reset the form via element.
packages/frontend/src/routes/(form)/setup/components/Bot.svelte Updates enhance callback usage to reset the form via element.
packages/frontend/src/routes/(app)/clusters/+page.svelte Refactors collapsible rendering and switches to new widget components.
packages/frontend/src/routes/(app)/clusters/components/Widget.svelte New shared widget wrapper component for cluster cards.
packages/frontend/src/routes/(app)/clusters/components/widgets/ClusterLogs.svelte New logs widget wrapper using $lib/components/ClusterLogs.svelte.
packages/frontend/src/routes/(app)/clusters/components/widgets/ClusterShards.svelte New shards widget wrapper using Widget.svelte.
packages/frontend/src/lib/remotes/clusters.remote.ts Refactors getClusterLogs query signature and reverses returned log order.
packages/frontend/src/lib/components/VirtualList.svelte New virtual list implementation used for log rendering.
packages/frontend/src/lib/components/ClusterLogs.svelte New shared log viewer built on VirtualList with boundary/pending/failed snippets.
packages/frontend/src/routes/(app)/clusters/components/Header.svelte Removed (functionality appears reorganized into other components).
packages/frontend/src/routes/(app)/clusters/components/ClusterLogs.svelte Removed (superseded by new widget/lib component).
packages/frontend/src/routes/(app)/clusters/components/ClusterShards.svelte Removed (superseded by new widget component).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/frontend/src/lib/components/VirtualList.svelte
Comment thread packages/frontend/src/lib/components/VirtualList.svelte
Comment thread packages/frontend/src/lib/components/VirtualList.svelte
Comment thread packages/frontend/src/lib/components/ClusterLogs.svelte Outdated
Comment thread packages/frontend/src/routes/(app)/clusters/components/Widget.svelte Outdated
Comment thread packages/frontend/src/routes/(app)/clusters/+page.svelte
Comment thread packages/frontend/src/routes/(app)/clusters/+page.svelte
@zowks zowks merged commit 4c080fa into main Jun 16, 2026
5 checks passed
@zowks zowks deleted the refactor/frontend/logs branch June 16, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants