feat: rename and delete entries #3
Loading…
Reference in a new issue
No description provided.
Delete branch "delete-rename"
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?
Adds the last missing entry operations from the roadmap.
What changes for the user
passcore
Store::delete_entry(entry, base), likepass rm:Remove <entry> from store.ChangedBeforeDeleteerror if a sync changed or removed the entry since it was opened.Store::rename_entry(&EntryRename { from, to, base, secret, edited }), likepass mv:.gpg-id, the encrypted file moves byte for byte. A sync's merge then sees a rename, so an edit made on another device follows it.Rename <a> to <b>., or… and edit it using TouchPass.when edited.Changedfor a stale version, and with an error for a target that already exists, the same name, or an invalid name.write_entrynow shares the password and version checks with these through two small helpers.Bridge / QML
write_entrytakes two new params,renamedFromandedited. An edit with a different name goes torename_entry.delete_entry(entry, version)withdeleted/delete_failedsignals.qml/DeleteDialog.qml; the Delete button inEntryDialogopens it fromEntryListPage.Tests
.gpg-id, invalid renames).tst_DeleteDialog(4 tests), plus rename and "edited" tests intst_EntryEditor.Results:
cargo make: fmt, clippy-D warnings, 73 passcore tests, coverage 92%,cargo auditall pass.cargo make qml-test: 43/43 pass.cargo make click: builds, andclick-reviewpasses.🤖 Generated with Claude Code