Skip to content

feat: Add Offline Data & Security section with key info and rotation … - #289

Merged
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
Glam26:feature/offline-data-security-ui
Jul 28, 2026
Merged

feat: Add Offline Data & Security section with key info and rotation …#289
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
Glam26:feature/offline-data-security-ui

Conversation

@Glam26

@Glam26 Glam26 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Prioritizing Tool Usage
I have completed the task. Here's a summary of the work:

  1. Created New Branch: Checked out feature/offline-data-security-ui.
  2. Added Offline Data & Security Section: Modified app/settings.tsx to include an "Offline Data & Security"
    section underneath the protocol configuration.
  3. Wired up Key Info: Read the state directly via keyManager.getKeyInfo() upon component mount to display a
    human-readable relative creation date (Created X days ago) and its rotation status (Healthy or Rotation Due).
  4. Manual Rotation Action: Built a Rotate encryption key now button. Clicking the button brings up an explicit
    confirmation dialog informing the user that this process will clear the offline cache, keeping expectations
    accurate.
  5. Rotation Logic: Called keyManager.rotateKey and supplied a reencrypt callback that invokes
    asyncStoragePersister.removeClient(). Providing this callback forces the rotation and properly clears the
    undecryptable legacy data rather than stranding it on disk.
  6. Committed Changes: Committed the updates directly into the new branch following the requirement.

closes #169

@Lakes41
Lakes41 merged commit 933a120 into Adamantine-guild:main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an encryption key status section to the Settings screen

3 participants