Skip to content

fix: data reset completeness + makeId security + README screenshots (v1.5.1.0) - #9

Open
melaniesigrid wants to merge 4 commits into
mainfrom
docs/aso-research
Open

fix: data reset completeness + makeId security + README screenshots (v1.5.1.0)#9
melaniesigrid wants to merge 4 commits into
mainfrom
docs/aso-research

Conversation

@melaniesigrid

Copy link
Copy Markdown
Owner

Summary

  • Data reset completeness — All 3 Settings screens now clear every persisted key (look archive, device ID, notification state, image/descriptor caches). All Oracle screen variants reset their one-shot auto-location guard via dataResetEpoch, and the guard now waits for profileState === 'set' instead of !== 'loading'.
  • SecuritymakeId() replaced Math.random() with fillSecureRandomBytes for local user ID generation. Auth test added confirming Math.random is never called.
  • README screenshots — 4 simulator screenshots (Oracle, Today, You, theme picker) added to README in a 4-column table.

Test plan

  • 202 tests pass (npm test)
  • auth.test.ts asserts Math.random is not called during account creation
  • Data reset in simulator: all tabs clear, auto-location re-fires after reset
  • Screenshots render in GitHub README preview

🤖 Generated with Claude Code

melaniesigrid and others added 4 commits June 2, 2026 17:15
…location resets

- Adds clear() to useArchive, useConsultStreak, useStyleProfile
- useOutfitHistory.clear() now also wipes firstConsultAt + its storage key
- All three Settings screens (Editorial, Y2K, Mondrian) expand ALL_KEYS to
  include look archive, device ID, notification state, and image/descriptor caches
- Oracle screens (Editorial, Y2K, Mondrian) listen to dataResetEpoch and reset
  the one-shot auto-location guard; guard now waits for profileState === 'set'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…+ test

Local user ID suffix is now 24 hex chars from fillSecureRandomBytes
instead of Math.random().toString(36). Added auth.test.ts assertion
confirming Math.random is never invoked during account creation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 simulator screenshots (Oracle, Today, You, theme picker) displayed
in a 4-column table near the top of README.md. TODOS.md marks makeId
and autoLocationStartedRef as resolved and updates test count to 202.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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