Skip to content

Ext saved reports: localStorage persistence on the SDK (UI SDK 1.13)#824

Closed
vincentmakes wants to merge 1 commit into
mainfrom
claude/ea-savings-tracking-extension-qhh03f
Closed

Ext saved reports: localStorage persistence on the SDK (UI SDK 1.13)#824
vincentmakes wants to merge 1 commit into
mainfrom
claude/ea-savings-tracking-extension-qhh03f

Conversation

@vincentmakes

@vincentmakes vincentmakes commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Extension report pages could not keep their filters and selection across a browser refresh. The SDK's useSavedReport wrapper only re-exported the URL-saved-report layer (config / savedReportId / name) and dropped the core hook's localStorage auto-persist layer that makes every core report survive a refresh. This re-exports that layer.

Changes

  • useExtensionSavedReport now re-exports consumeConfig / persistConfig / resetAll alongside the existing fields, so an extension report keeps its state across a refresh exactly like a core report (URL saved report > localStorage > defaults).
  • Bumped UI_SDK_VERSION to 1.13 (additive — host checks the major only).
  • Surface + version-pin tests updated; VERSION2.12.0, CHANGELOG.md, CLAUDE.md.

Test Plan

  • npx vitest run src/lib/extensionSavedReport.test.tsx src/lib/extensionHost.test.tsx → 24/24 pass.

  • All CI checks pass

  • Added/updated tests for new or changed behavior

@vincentmakes vincentmakes force-pushed the claude/ea-savings-tracking-extension-qhh03f branch from fe099ec to 311a8aa Compare July 14, 2026 03:17
The SDK's useSavedReport wrapper only re-exported the URL-saved-report
layer (config / savedReportId / name) and dropped the core hook's
localStorage auto-persist layer that makes every core report survive a
browser refresh.

Re-export consumeConfig / persistConfig / resetAll from
useExtensionSavedReport so an extension report page can keep its filters
and selection across a refresh exactly like a core report (URL saved
report > localStorage > defaults). Bump UI_SDK_VERSION to 1.13 (additive)
and assert the new surface in the saved-report test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnYtzJEyS2hkAou7CY2pYi
@vincentmakes vincentmakes force-pushed the claude/ea-savings-tracking-extension-qhh03f branch from 311a8aa to 6b8f327 Compare July 14, 2026 03:24
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying turbo-ea-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6b8f327
Status:⚡️  Build in progress...

View logs

Copy link
Copy Markdown
Owner Author

Superseded by #826 (branch renamed). Closing.


Generated by Claude Code

@vincentmakes vincentmakes deleted the claude/ea-savings-tracking-extension-qhh03f branch July 14, 2026 04:08
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.

2 participants