Skip to content

rework: static handler for svelte implementation of the dashboard#304

Merged
Sweattypalms merged 22 commits into
ferrumc-rs:feature/dashboardfrom
ErdemGKSL:feature/dashboard
Jan 5, 2026
Merged

rework: static handler for svelte implementation of the dashboard#304
Sweattypalms merged 22 commits into
ferrumc-rs:feature/dashboardfrom
ErdemGKSL:feature/dashboard

Conversation

@ErdemGKSL

@ErdemGKSL ErdemGKSL commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

Don't accept this pr before accepting the dashboard pr, since build.rs uses downloadable file from dashboard repository.
see: ferrumc-rs/dashboard#1

ReCore-sys and others added 18 commits December 28, 2025 16:39
* Add particle packets and systems

* Glowing pigs!

* Collisions patch

* Particles track player

* Clippy

* Return ok for dropped conn

* Fix requested changes
* feat : add ungrounding system for entities

* fix : clippy lint

* fix : rustfmt

* fix : add some docs + clippy lints
Move chunk cache to Dashmap instead of moka
…ent units

- Switch memory reporting unit from `Megabytes` to `Kilobytes` in `tps.rs` to match actual data source
- Update memory label from "Memory (MB)" to "Memory (MiB)"
- Format current and peak memory values as `{:.2}MiB` using new `get_mib` helper
- Add `get_mib` function to convert kilobytes to mebibytes (`kb / 1024.0`)
- Remove platform-specific RSS scaling in `memory.rs`, now always using raw `process.memory()` in bytes
fix(performance): correctly display memory
since this is for a pull request, we should use the official ferrumc-rs repo for source
Comment thread src/lib/dashboard/build.rs Outdated
println!("cargo:rustc-cfg=dashboard_build");

// 5. Rerun if the dashboard-dist directory is deleted
println!("cargo:rerun-if-changed=dashboard-dist");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How would you handle dashboard UI updates? Because I'm pretty sure this means only one download and that's it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Why i did it:
FORCE_UPDATE=1 cargo build -r --features dashboard
i run this when an update happens since workflows have empty directory for it.

But i will make it re-download it every time it compiles.

Zip will be on memory from now on,.
It will try to download it every time it compiles.
If no internet (or something that prevents downloading), will use old dashboard, if none exists, it will fallback to the  dashboard offline build failed message in the html.
@ErdemGKSL ErdemGKSL requested a review from Sweattypalms January 4, 2026 20:30
@Sweattypalms Sweattypalms merged commit 5f1adb9 into ferrumc-rs:feature/dashboard Jan 5, 2026
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.

5 participants