Repository navigation
refactor(egui): split the six longest files into modules - #134
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
This pull request breaks six very long files in No comments posted: the reviewers raised no finding. Note Partial review: part of the review did not complete, so other issues may remain.
Review details
Files skipped (8)
Limitations (1)
Commands run (11)No checks passed: sandbox has no Rust toolchain (no rustc/cargo/rustup), no C toolchain (no gcc/clang/ld/ar/pkg-config) or X11/Wayland dev libs, and passed · exit 0 · 0 s ls -R /work | head -n 200; echo "---"; cat /work/README.md 2>/dev/null | head -n 150; echo "==="; cat /work/package.json 2>/dev/null | head -n 100; echo "==="; cat /work/Cargo.toml 2>/dev/null | head -n 100; echo "==="; cat /work/.github/CONTRIBUTING.md 2>/dev/null | head -n 200passed · exit 0 · 0 s ls /work/crates/accshift-egui/src/ 2>&1 | head -n 50; echo "==="; ls /work/crates/accshift-egui/src/ui/text/ /work/crates/accshift-egui/src/ui/paint/ /work/crates/accshift-egui/src/soft/ 2>&1; echo "==="; rustc --version; cargo --version; echo "==="; cat /work/crates/accshift-egui/Cargo.toml | head -n 80failed · exit 1 · 0 s echo $PATH; ls /root/.cargo/bin/ 2>&1 | head -n 20; ls /usr/local/cargo/bin/ 2>&1 | head -n 20; ls /opt/rust*/bin 2>&1 | head; which rustup 2>&1; find / -maxdepth 5 -name cargo -type f 2>/dev/null | head -n 10failed · exit 1 · 0 s ls /usr/local/lib/ 2>&1 | head -n 30; echo "==="; ls /opt/ 2>&1; echo "==="; ls ~/ 2>&1; echo "==="; env | sort | head -n 40; echo "==="; ls /work/*.mjs /work/scripts/ 2>&1 | head -n 30; echo "==="; cat /work/rust-toolchain* 2>&1; echo "==="; find / -maxdepth 6 -name "rustc" 2>/dev/null | headpassed · exit 0 · 0 s ls -la /usr/local/bin/ 2>&1 | head -n 50; echo "===NODE==="; ls /usr/local/lib/node-v24.21.0-linux-x64/bin/ 2>&1 | head; /usr/local/lib/node-v24.21.0-linux-x64/bin/node --version 2>&1; echo "===BUN==="; ls /usr/local/lib/patrol-bun/ 2>&1 | head -n 20; echo "===PY==="; python3 --version 2>&1; echo "===GATES==="; head -n 120 /work/scripts/gates.mjs 2>&1; echo "===CONTRIB==="; head -n 150 /work/.github/CONTRIBUTING.md 2>&1passed · exit 0 · 0 s id 2>&1; echo "==="; curl --version 2>&1 | head -n 3; wget --version 2>&1 | head -n 3; echo "==="; apt-get --version 2>&1 | head -n 3; echo "==="; df -h 2>&1 | head -n 10; free -m 2>&1 | head -n 10; echo "==="; ls -la /work/crates/accshift-egui/src/ui/text/ /work/crates/accshift-egui/src/ui/paint/ 2>&1; echo "==="; wc -l /work/crates/accshift-egui/src/soft/*.rs /work/crates/accshift-egui/src/ui/text/*.rs /work/crates/accshift-egui/src/ui/paint/*.rs 2>&1 | head -n 40passed · exit 0 · 0 s git -C /work status --short | head -n 30; echo "==="; git -C /work log --oneline -5; echo "==="; ls /work/crates/accshift-egui/src/ui/components/controls/editing/ /work/crates/accshift-egui/src/ui/components/dialog/theme_editor/ /work/crates/accshift-egui/src/ui/components/onboarding/steps/ /work/crates/accshift-egui/src/soft/ 2>&1; echo "==="; wc -l /work/crates/accshift-egui/src/ui/components/controls/editing/*.rs /work/crates/accshift-egui/src/ui/components/dialog/theme_editor/*.rs /work/crates/accshift-egui/src/ui/components/onboarding/steps/*.rs 2>&1; echo "==="; git -C /work show --stat HEAD | head -n 60passed · exit 0 · 0 s id 2>&1; sudo -n true 2>&1; echo "==="; df -h /work /tmp $HOME 2>&1; echo "===GATES==="; cat /work/scripts/gates.mjs 2>&1 | head -n 200passed · exit 0 · 0 s mkdir -p /work/.patrol-home && export HOME=/work/.patrol-home; echo "HOME=$HOME"; echo "===CONTRIB-LINUX==="; grep -n -i -A15 "linux\|apt\|prereq\|dependenc" /work/.github/CONTRIBUTING.md 2>&1 | head -n 80; echo "===TOOLCHAIN==="; gcc --version 2>&1 | head -n 2; pkg-config --version 2>&1; echo "===LIBS==="; ldconfig -p 2>/dev/null | grep -i -E "libX11|libxkb|libGL|libwayland|fontconfig|freetype" | head -n 20; echo "===PKGCONF==="; pkg-config --exists x11 && echo "x11 present" || echo "x11 MISSING"; pkg-config --exists wayland-client && echo "wayland present" || echo "wayland MISSING"; pkg-config --exists fontconfig && echo "fontconfig present" || echo "fontconfig MISSING"passed · exit 0 · 0 s export HOME=/work/.patrol-home; cat /etc/os-release 2>&1 | head -n 5; echo "===APT==="; apt-get --version 2>&1 | head -n 2; dpkg-deb --version 2>&1 | head -n 2; echo "===NET==="; curl --version 2>&1 | head -n 2; wget --version 2>&1 | head -n 2; python3 -c "import urllib.request; print('urllib ok')" 2>&1; echo "===CC-SEARCH==="; ls /usr/bin/ 2>&1 | grep -i -E "gcc|clang|cc$|ld$|ar$|make" | head; echo "===RUSTUP-DL==="; curl -sSf -o /tmp/rustup-init.sh https://sh.rustup.rs 2>&1 | head -n 5; ls -la /tmp/rustup-init.sh 2>&1passed · exit 0 · 0 s export HOME=/work/.patrol-home; ls /etc/apt/ 2>&1; cat /etc/apt/sources.list 2>&1 | head -n 10; cat /etc/apt/sources.list.d/*.list 2>&1 | head -n 20; echo "===UPDATE-TEST==="; mkdir -p /tmp/apt/lists/partial /tmp/apt/cache/archives/partial && apt-get -o Dir::State::Lists=/tmp/apt/lists -o Dir::Cache::Archives=/tmp/apt/cache/archives -o Debug::NoLocking=1 update 2>&1 | tail -n 15 |
Note
Clanker Claude Opus 5.5 is responding on behalf of meetsu
Summary
Splits the six longest files of
accshift-eguiinto submodule folders. Pure refactor: same public API, no behaviour or pixel change.ui/text.rs(1764 lines)ui/text/{mod,book,fallback,layout,style,tests}.rsui/paint.rs(1734)ui/paint/{mod,clip,geometry,gradient,mesh,shadow,types,tests}.rsdialog/theme_editor.rs(1629)theme_editor/{mod,controls,css_field,layout,sections}.rscontrols/editing.rs(1622)editing/{mod,input,layout,words,tests}.rsonboarding/steps.rs(1402)steps/{mod,deal,deal_rows,features,welcome}.rssoft.rs(1313)soft/{mod,events,paint,platform,present,window_ops,tests}.rsEvery new file is at most 504 lines.
Testing
537b14cand from this branch. 0 shots differ consistently; the shots that differ between two runs of this branch differ just as much between two runs of the same base binary (known animation non-determinism).build-safe node scripts/gates.mjs: exit 0 (fmt, clippy, 2055 Rust tests, worker, bundle, Stream Deck).verified
git diff --check 61fcb92..HEADpassed.79b17d4.Related issue
None.
Tested on
Checklist