From 96afc4afc20cda04b7813b3fd81257687eae426c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:31:32 +0000 Subject: [PATCH] Refactor modify_entry to reduce complexity by using helper methods Refactored the `modify_entry` method in `src/seedpass/core/entry_management.py` to delegate entry modification logic to specialized private helper methods: - `_modify_common_fields`: Handles fields common to all entries (label, notes, archived, etc.) - `_modify_password_entry`: Handles password-specific fields and policy - `_modify_totp_entry`: Handles TOTP-specific fields (period, digits) - `_modify_key_value_entry`: Handles key-value specific fields - `_modify_managed_account_entry`: Handles managed account specific fields This change improves code readability and maintainability by breaking down a large, complex function into smaller, focused units. Verified with existing tests. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com>