Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid removing snapshots when switching between users #834

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

sejas
Copy link
Member

@sejas sejas commented Jan 23, 2025

Warning

WIP, this draft PR just started and is incomplete
The Proposed Changes are the plan not a reality

Related issues

Proposed Changes

  • Let's keep all the snapshots in appData
  • Let's add a new field userId
  • Let's filter in the UI the snapshots that belong to the current user
  • Let's figure it out what snapshots should be "removed" from appData and when.
  • Updated tests

Testing Instructions

  • Run npm start
  • Authenticate with user A
  • Create a demo site
  • Log out
  • Authenticate with user B
  • Observe you don't see any demo site
  • Log out
  • Authenticate with user A again
  • Observe you see the demo site you've created in step 3

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@sejas sejas self-assigned this Jan 23, 2025
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