Skip to content

[BUG] Settings purge should only remove SecuScan localStorage keys #464

@utksh1

Description

@utksh1

Problem

Settings.handleNuclearPurge() currently calls localStorage.clear(). That removes every key for the origin, including unrelated app state that SecuScan does not own.

Expected behavior

The purge action should remove only SecuScan-owned keys, for example keys prefixed with secuscan and known app keys such as sidebar-expanded.

Acceptance criteria

  • Replace broad localStorage.clear() with targeted removal of SecuScan-owned keys.
  • Keep the existing confirmation modal and reload behavior.
  • Add or update a focused unit test proving unrelated localStorage keys are preserved.

Metadata

Metadata

Labels

area:frontendFrontend React/UI workbeginner friendlySmall scoped task suitable for beginner contributorsgood first issueFriendly starter issue for first-time contributorslevel:beginner20 pts difficulty label for small beginner-friendly PRspriority:lowNice-to-have issue with low urgencytype:bugBug fix work category bonus label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions