Skip to content

feat: minor improvements to activity history - #506

Merged
Dzejkop merged 5 commits into
mainfrom
act-history/2
Sep 4, 2026
Merged

feat: minor improvements to activity history#506
Dzejkop merged 5 commits into
mainfrom
act-history/2

Conversation

@paolodamico

@paolodamico paolodamico commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

store the failure_reason as text (negligible perf difference, much clearer)


Note

Medium Risk
Changing the activity column type and serialization can break reads for existing DBs that still store integer failure codes unless a migration runs; CREATE TABLE IF NOT EXISTS alone will not alter old tables.

Overview
Activity history now persists failure_reason as lowercase text in SQLite instead of integer codes, and read/write paths use strum (Display / FromStr) instead of hand-rolled i64 mappers.

activity_entries.failure_reason is defined as TEXT NOT NULL with an empty string when there is no reason (replacing SQL NULL). Cache schema reset is renamed to reset_cache_schema and documents that disposable-cache resets do not drop activity history; a related test assertion is simplified.

Reviewed by Cursor Bugbot for commit 77bc96b. Bugbot is set up for automated code reviews on this repo. Configure here.

ketzusaka and others added 2 commits September 3, 2026 10:06
Introduces a sharable on-device store for Android and iOS to retain credential activity. We're re-using some components from the Wallet storage here, while maintaining a separate database for the local activity as it is a separate concern and should never be backed up with the existing systems.

I've modeled the changes after how I typically use rust; mod.rs is mainly imports with most of the code in dedicated files, and tests in their related files.

This system is expected to evolve over time so i've prioritized a sensible migration strategy as part of these changes.

Tested integration on iOS. Will do Android later and follow up with any PRs that might be necessary for their integration. No runtime differences until the host apps are updated to use the new system.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T23:17:50.246989Z f43c1af PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f43c1afef5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/walletkit-core/src/storage/cache/activity.rs
@paolodamico paolodamico changed the title feaat: minor improvements to activity history feat: minor improvements to activity history Sep 3, 2026
ketzusaka
ketzusaka previously approved these changes Sep 3, 2026
murph
murph previously approved these changes Sep 3, 2026
@ketzusaka
ketzusaka disabled the stack merge September 4, 2026 03:45
@ketzusaka
ketzusaka disabled the stack merge September 4, 2026 03:47
Base automatically changed from credential-activity-history to main September 4, 2026 03:47
@ketzusaka
ketzusaka dismissed stale reviews from murph and themself via 7d21d81 September 4, 2026 03:47

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7d21d81. Configure here.

Comment thread crates/walletkit-core/src/storage/cache/schema.rs
@Dzejkop
Dzejkop merged commit f7c15ee into main Sep 4, 2026
22 checks passed
@Dzejkop
Dzejkop deleted the act-history/2 branch September 4, 2026 14:06
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.

4 participants