Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses onboarding state leaking across account-creation sessions by clearing persisted onboarding values from sessionStorage so subsequent signups/onboarding runs start clean (resolving #951).
Changes:
- Clear onboarding-related
sessionStoragekeys during signup submission. - Clear onboarding-related
sessionStoragekeys after archive creation flow completes. - Add unit tests to verify the
sessionStoragekeys are cleared in both flows.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/app/onboarding/components/create-new-archive/create-new-archive.component.ts |
Clears onboarding session storage after onSubmit() and includes onboardingScreen in the cleared keys. |
src/app/onboarding/components/create-new-archive/create-new-archive.component.spec.ts |
Adds a test ensuring onboarding sessionStorage keys are cleared after archive creation. |
src/app/auth/components/signup/signup.component.ts |
Clears onboarding sessionStorage keys at the start of signup submission. |
src/app/auth/components/signup/signup.component.spec.ts |
Adds a test ensuring onboarding sessionStorage keys are cleared when signup is submitted. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/app/onboarding/components/create-new-archive/create-new-archive.component.ts
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #952 +/- ##
==========================================
- Coverage 48.69% 48.59% -0.11%
==========================================
Files 350 350
Lines 11339 11348 +9
Branches 1898 1899 +1
==========================================
- Hits 5522 5514 -8
- Misses 5627 5643 +16
- Partials 190 191 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
30d77c8 to
ca0022b
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/app/onboarding/components/create-new-archive/create-new-archive.component.ts
Outdated
Show resolved
Hide resolved
src/app/onboarding/components/create-new-archive/create-new-archive.component.spec.ts
Outdated
Show resolved
Hide resolved
158cd85 to
1a5c89b
Compare
QA InstructionsSummaryThis PR resolves issue #951 by ensuring that onboarding session data is cleared after onboarding is completed or when a user logs out. This is achieved by using a new method Test Environment Setup
Test ScenariosSignup Component Behavior
Onboarding Workflow Behavior
Regression Risks
Things to Watch For
Generated by QA Instructions Action |
1415821 to
0b3dd0e
Compare
We were not reliably clearing out onboarding metadata when it finished or when users logged out, which meant that if the same browser was used to create two accounts there could be some contamination of the onboarding step for the second user. This (1) fixes that, and (2) moves the state management to the OnboardingService rather than an individual component. Issue #951 Ensure web archive name is empty during account creation
0b3dd0e to
3108334
Compare
This PR fixes an issue where onboarding data could carry over between onboarding sessions.
Resolves #951