Skip to content

Conversation

@dacowan
Copy link
Contributor

@dacowan dacowan commented Dec 11, 2025

Adding a new debugger stats visualization for editor network statistics

  • Fixed an issue with the stats provider where it was only aggregating the first field
  • Added aggregator support for different field variants
  • Added CSS styling for resizable table column headers (they only look different though - turns out the web view table component doesn't support resizing column headers)
  • Fixed an issue in the statistics collector when parent stats had no children
  • Added a dynamic multi column display table (just add new labels and it will expand - no need to set it up beforehand)
  • Added an Editor stats pane
  • Added flags to prettify camel case strings or display as-is
image

- 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
@dacowan dacowan changed the title [Task AB#1494671]: Adding Editor Network Stats feat: [Task AB#1494671]: Adding Editor Network Stats Dec 11, 2025
Copy link
Contributor

Copilot AI left a 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 MinecraftMultiColumnStatisticTable component 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.

dacowan and others added 6 commits December 11, 2025 14:11
- 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
@dacowan dacowan marked this pull request as ready for review December 11, 2025 22:32
@dacowan dacowan requested a review from JakeShirley December 12, 2025 17:51
@JakeShirley JakeShirley changed the title feat: [Task AB#1494671]: Adding Editor Network Stats feat: Adding Editor Network Stats Dec 15, 2025
@dacowan dacowan merged commit 80359d9 into main Dec 16, 2025
3 checks passed
@dacowan dacowan deleted the dacowan/1494671-editor-network-packet branch December 16, 2025 19:29
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.

3 participants