Skip to content

Reconcile paired loan views and snapshot exports - #360

Merged
bliatun-code merged 1 commit into
mainfrom
codex/reconcile-loan-snapshots
Dec 2, 2026
Merged

bliatun-code merged 1 commit into
mainfrom
codex/reconcile-loan-snapshots

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

Paired loan views and CSV snapshots

When the active-loan request falls back to its cache but history loads from the Host, the Active tab could omit a new loan or show old details. Use the live history row for each ID it covers and retain active loans outside that history page from the dedicated cache. This applies to incoming and outgoing loans. A successful dedicated active read, including an empty one, retains its existing authority.

Snapshot CSV downloads now use the same rows as the All view, including older active loans beyond the history page. The full Host CSV endpoint and the target checks before download remain in place.

Verification

  • npm run verify
  • Unit regressions cover new and updated active loans, returned loans, deleted spools, cache-only rows and empty active lists.
  • Browser tests exercise Active, All and Returned with a partial Host failure and check an older inbound loan in a snapshot CSV.

@bliatun-code
bliatun-code merged commit b313729 into main Dec 2, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/reconcile-loan-snapshots branch December 2, 2026 10:15
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.

1 participant