xfbs / diff.rs

Web application to render a diff between Rust crate versions. Implemented in Yew, runs fully in the browser as WebAssembly.
https://diff.rs
MIT License
106 stars 11 forks source link

Hide files and subtrees without any changes #44

Open SwishSwushPow opened 2 weeks ago

SwishSwushPow commented 2 weeks ago

I think this has changed as part of the tailwind rewrite. Files and directories that don't include any changes are shown now, but I think they should be hidden again. I had my first look at the project today and just put together this small PR: https://github.com/xfbs/diff.rs/pull/43

xfbs commented 2 weeks ago

I took #43 and expanded it slightly to add a button, now we can hide unchanged files + folders:

Screenshot from 2024-10-14 00-15-33

However, this currently is not the default (because it would break another workflow, which is to use diff.rs to view a crate's contents, which is used by cargo-vet).