Skip to content

feat: persist user preferences across browser sessions - #1355

Open
Mohataseem89 wants to merge 1 commit into
singhtrivendra:mainfrom
Mohataseem89:fix/persist-user-preferences
Open

feat: persist user preferences across browser sessions#1355
Mohataseem89 wants to merge 1 commit into
singhtrivendra:mainfrom
Mohataseem89:fix/persist-user-preferences

Conversation

@Mohataseem89

Copy link
Copy Markdown

Summary

This PR fixes #333 by persisting user preferences using localStorage, allowing settings to survive page refreshes and browser sessions.

Changes

  • Added a reusable useLocalStorage hook.
  • Persisted accent color.
  • Persisted framework selection.
  • Persisted preview size preferences.
  • Persisted active tabs.
  • Persisted accent selections.
  • Automatically restores saved preferences on application startup.
  • Included safe JSON parsing and fallback to default values.

Testing

  • npm run build passes successfully.
  • Verified that persisted preferences survive page refreshes.
  • Verified that defaults are restored when no saved preference exists.

Fixes #333

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

@Mohataseem89 is attempting to deploy a commit to the Trivendra's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Mohataseem89

Copy link
Copy Markdown
Author

Hi @singhtrivendra,

Just following up on this PR. It looks like the Vercel deployment workflow is awaiting maintainer approval before the checks can run.

Whenever you have time, I'd appreciate a review. Please let me know if any changes are needed.

Thank you!

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.

Missing Persistent User Preference Storage Causes Settings Loss Across Sessions

1 participant