chore: comprehensive refactor — async DB, dependency bumps, chat sync events, and code quality #10
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AmanoTeam/Papo!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/updates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR contains a broad set of maintenance and feature improvements across the codebase, primarily focused on async safety, dependency updates, internationalization completeness, and preparing for live chat property updates from the WhatsApp sync stream.
Changes
Async & Threading
relm4::spawnto prevent blocking the GTK main thread (application.rs,store/database.rs).relm4::spawn_blocking(utils.rs).spawn_blockingwrapper for libsql database connection setup.Dependencies
libadwaitato0.9andrelm4to0.11.whatsapp-rustfrom a git dependency to the crates.io registry.Cargo.lockaccordingly.WhatsApp Session & Sync
SelfPushNameUpdatedduring initial sync (session/client.rs,application.rs).session/client.rs,application.rs,components/chat_list.rs).Code Quality & Refactors
ChatRow,ChatRowWidgets,Login,Message, andApplicationto follow the "length-then-alphabetical" convention.session/client.rsandcomponents/chat_view.rsto reduce stack size.i18n!translations to previously hardcoded error strings and the about dialog.i18n_f!macro to usereplacenfor correct placeholder substitution.Documentation
AGENTS.mdwith comprehensive AI agent guidelines for project development.Chores
FIXMEnote for the currently unusedPKGDATADIRconstant inconfig.rs.in.2bb65731a7to59acd71526View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.