Repository navigation
feat: replace the Tauri app with a native egui app - #89
Conversation
|
Important Review skippedToo many files! This PR contains 979 files, which is 879 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configuration
⛔ Files ignored due to path filters: 48
📒 Files selected for processing: 979
You can disable this status message by setting the
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. Comment |
…es under a glass layer and keep galleys longer
…avatar pack while the window builds
Two Windows-only settings in a new System card: startWithSystem writes the HKCU Run value with --tray, closeToTray hides the window to the notification area instead of quitting. The tray icon is hand-rolled on windows-sys to keep the exe small; --tray starts hidden with the icon up.
…-to-egui # Conflicts: # Cargo.lock # Cargo.toml
Keep release panic recovery enabled for legacy LevelDB reads and background jobs. Refresh external stores on focus and restoration without replacing local edits, and retain arrow focus in text inputs. Cover these paths with headless regressions and a release migration smoke check. Update the webpki certificate patches required by cargo audit.
|
Note Clanker GPT-6.1 Sol is responding on behalf of meetsu Fixed the three findings from the correctness review in
The Ubuntu audit failure is also fixed by the compatible patches Validation on this commit:
No native window, real account switch or installer was exercised on this commit. The initial focused review is complete, its three findings are addressed, and all 30 existing review discussions are resolved. CodeRabbit still skips the oversized PR. Current-head CI is pending before merge. |
|
Note Clanker GPT-6.1 Sol is responding on behalf of meetsu
The app-only build links rfd's Wayland backend; the workspace checks had unified its dynamic-loading feature. The Ubuntu package provides the missing file. CI YAML parsing and |
Note
Clanker Claude Opus 5.5 is responding on behalf of meetsu
Summary
accshift becomes a native egui app: Tauri, WebView2 and the Svelte front-end are gone, and the installers update a 1.0.x install in place (same
accshift-gui.exe, identifier, data, deep links and updater feed).Scrolling the account grid at 143 Hz: median frame interval 13.3 to 7.0 ms, p90 23.9 to 8-9 ms. The egui column predates the memory pass below: against egui 0.36 on the same harness, it takes private bytes from 127 to 51 MB, the boot peak from 231 to 54 MB and the working set from 141 to 71 MB.
what changed
crates/accshift-appholds the logic without UI: backend (real and mock), stores, i18n, updater, single instance, deep links, v0.x localStorage migration.crates/accshift-eguidraws every screen with a CPU renderer and DirectWrite text, checked against Tauri frames (mostly 45 to 55 dB PSNR).crates/accshift-themeis the theme engine; its default tokens and built-in themes moved out ofsrc/.src-tauri,src,public,vendor/wry, vite, svelte and tailwind are removed; the five crates share one Cargo workspace and lock.bundle/bundle.mjspacks the egui exe with the Tauri bundler and the oldtauri.conf.json, now incrates/accshift-egui, on all three OSes.AppRun.wrappedwith mode 0755 instead of the bundler's 0770, which failed under firejail with "Permission denied" (bundle.mjs).ci.ymlruns fmt, clippy and tests of the workspace on three OSes plus the worker;release.ymland the dev build bundle egui everywhere.APP_VERSIONcomes from the workspace version, and a test checks it againsttauri.conf.json.accshift_core::http, which now builds every HTTP client.main.vblank.rs,ui/smooth_scroll.rs).screens/settings.rs,app/settings_panel.rs).HKCU\...\Runvalue with a--trayflag, which only the shippedaccshift-guimanages and which starts the window hidden (lifecycle/autostart.rs,main.rs,soft.rs).window/tray.rs).soft.rs).soft.rs,window/frame.rs).soft.rs).release.yml,.signpath/).accshift-cli/build.rs).to question
The Tauri CLI stays as the packager only (
@tauri-apps/cli, the one npm dependency left), so NSIS keys, deb names and updater signatures match existing installs. egui is on 0.37: the vendored epaint is re-based on 0.37.0 with its three text patches, the DirectWrite hook kept since upstream's glyph rasterizer works per cluster without harfrust shaping. The installer grows from 6.7 to 8.7 MiB, 2.2 MB of it the onboarding clips as animated WebP. The 240 ms entrance of the Tauri app is dropped on purpose: the window shows its final frame, and the grid is settled about 230 ms sooner. The Tauri CLI also addslibwebkit2gtk-4.1-0andlibgtk-3-0to the deb and rpm dependencies, which the egui app no longer loads. The tray is hand-rolled onwindows-sysrather than thetray-iconcrate, to add no dependency and no exe weight, since exe size drives the launch-time hash under Smart App Control.Related issue
none
Tested on
/P /R /UPDATE) replaced a running 1.0.5 and kept data, shortcut,accshift://and uninstall entry; uninstall kept the data..appand dmg carry the eguiaccshift-gui, same identifier andaccshift://scheme; not launchedfirejail --appimageon Ubuntu 26.04, where 1.0.5 exits with code 126; deb and rpm built, not installedChecklist
cargo fmt --all --check,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked, worker typecheck and testsnot verified: the egui GUI on screen on Linux and macOS, an update downloaded from the release feed, the tray icon and its menu on screen, and launch at sign-in after a real reboot. A right click in a text field opens a small Cut, Copy, Paste, Select all menu instead of Edge's full one.