Skip to content

Replace sandbox raw localStorage keys with storage-keys registry #341

Description

@Abidoyesimze

Summary

Sandbox persistence uses duplicated string literals instead of the shared key registry.

Affected files

  • src/app/dashboard/sandbox/SandboxClientPage.tsx
  • src/contexts/SandboxContext.tsx
  • src/lib/storage-keys.ts

Tasks

  • Replace inline localStorage key strings with constants from storage-keys.ts.
  • Add missing keys to the registry if needed.
  • Verify sandbox state still persists across reloads.

Acceptance criteria

  • Scope is limited to the files listed (or agreed alternatives in the PR).
  • Change is verifiable: tests, screenshots, or written QA steps in the PR.
  • No behavior regressions in related user flows.
  • No new duplicate abstractions without a one-line rationale in the PR.

Suggested labels

cleanup, refactor, good first issue

Notes

Standalone cleanup issue from CLEANUP_ISSUES_2026-05.md. Complements the audit queue and product backlog.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions