-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Adding Editor Network Stats #339
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
Conversation
- Trying to add resizable columns to the multi-column table but the web view implementation doesn't support it apparently - Added some support for column variants (previously, it assumed all columns were the same numeric format) - Added new columns for packet sizes into the Editor pane
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.
Pull request overview
This PR adds a new Editor Network Stats visualization to the diagnostics panel, along with several infrastructure improvements to support multi-column statistics display.
Key Changes:
- Introduced a new
MinecraftMultiColumnStatisticTablecomponent for displaying dynamic multi-column data tables with flexible column configurations - Fixed aggregation logic in the statistics provider to handle events with multiple numeric values per child
- Added CSS styling for enhanced table column headers with visual resize indicators
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
webview-ui/src/diagnostics_panel/prefabs/tabs/EditorNetworkStats.tsx |
New tab component for displaying editor network packet statistics with 4 value columns (Sent Count, Received Count, Min Size, Max Size) |
webview-ui/src/diagnostics_panel/prefabs/index.tsx |
Registers the new EditorNetworkStats tab in the diagnostics panel |
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx |
New reusable table component supporting dynamic multi-column displays with sorting, prettify options, and multiple data processing paths |
webview-ui/src/diagnostics_panel/StatisticProvider.tsx |
Enhanced MultipleStatisticProvider to allow events with children_string_values even when values array is empty |
webview-ui/src/diagnostics_panel/App.css |
Added comprehensive styling for multi-column grid including column headers, resize handles, and fixed column widths |
src/stats/stats-provider.ts |
Extended aggregateData method to handle both single and multiple numeric values per child stat, converting them to string arrays |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx
Outdated
Show resolved
Hide resolved
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx
Outdated
Show resolved
Hide resolved
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx
Show resolved
Hide resolved
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx
Outdated
Show resolved
Hide resolved
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx
Show resolved
Hide resolved
webview-ui/src/diagnostics_panel/controls/MinecraftMultiColumnStatisticTable.tsx
Outdated
Show resolved
Hide resolved
…StatisticTable.tsx Co-authored-by: Copilot <[email protected]>
…StatisticTable.tsx Co-authored-by: Copilot <[email protected]>
…StatisticTable.tsx Co-authored-by: Copilot <[email protected]>
…StatisticTable.tsx Co-authored-by: Copilot <[email protected]>
- Fixed up column widths to be a little more realistic - Removed some duplicate code
- Fixed column widths was nasty, made them properties of the table
Adding a new debugger stats visualization for editor network statistics