Skip to content

feat: Add localStorage config persistence#22

Merged
leeandher merged 4 commits intomainfrom
leander/local-storage
Jan 13, 2026
Merged

feat: Add localStorage config persistence#22
leeandher merged 4 commits intomainfrom
leander/local-storage

Conversation

@leeandher
Copy link
Member

@leeandher leeandher commented Jan 9, 2026

Add ability to save and manage multiple named configurations in localStorage,
allowing users to quickly switch between different DSN/tag setups without
re-entering data.

Changes:

  • Form state auto-saves to localStorage as users type, persisting across refreshes
  • Users can save named configurations and switch between them via a new ConfigPanel
  • Config panel shows active config name (or "Unsaved Config" in orange when modified)
  • Saved configs displayed as clickable tags with individual delete buttons

Additional polish:

  • Updated input/select backgrounds from pure black to purple-tinted panel color
  • Added staggered slide-in animations when enabling batch mode controls
  • Fixed batch mode panel height to prevent layout shift when toggling

image

leeandher and others added 3 commits January 9, 2026 18:21
Add ability to save, load, and manage multiple named configurations
in localStorage. Form state auto-saves as users type and persists
across page refreshes.

- Add useConfigStorage hook for localStorage operations
- Add ConfigPanel component for managing saved configs
- Add getConfig/loadConfig methods to useErrorForm and useBatchMode
- Integrate config persistence into ErrorGenerator

Co-Authored-By: Claude <noreply@anthropic.com>
Change input-brutal and select-brutal background color from
brutal-black to bg-panel for a softer, more cohesive look
with the overall purple theme.

Co-Authored-By: Claude <noreply@anthropic.com>
Add staggered slide-in animations when batch mode is enabled.
Set minimum height on container to prevent layout shift when
toggling the controls.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
error-generator Ready Ready Preview, Comment Jan 9, 2026 11:44pm

- Move animation variants to animations.ts (slideInRight, slideInRightItem)
- Inline handleKeyDown in ConfigPanel
- Extract localStorage helpers (safeGetItem, safeSetItem, safeRemoveItem)

Co-Authored-By: Claude <noreply@anthropic.com>
@leeandher leeandher marked this pull request as ready for review January 9, 2026 23:47
@leeandher leeandher requested a review from a team as a code owner January 9, 2026 23:47
@leeandher leeandher merged commit f933497 into main Jan 13, 2026
8 checks passed
@leeandher leeandher deleted the leander/local-storage branch January 13, 2026 16:01
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