impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
17 stars 4 forks source link

[Bug] Dev Back button breaks the app in multiple places #214

Open Oran-Dan opened 1 month ago

Oran-Dan commented 1 month ago

Description

The dev back button is flawed in multiple places throughout the app. Mostly the starting pages upon opening the app have bugged behavior when clicking the dev back button: Homepage, Login page, Start onboarding (select locale) page.

Please test yourself as well, and add any other bugged routes you encounter

Bugs / cases that need our attention: - Dev mode should be activated in all scenarios described below

Login page / Start page: Testflight app on iOS & desktop Ubuntu:

  1. Click the Dev back button
  2. This takes you to the blank logo page

Ferris profile, with or without user profile logged in Testflight app on iOS & desktop Ubuntu:

  1. Open app and go straight to Ferris.
  2. Immediately click on the Dev back button
  3. This will take you to the blank logo page.

User profile logged in Testflight app on iOS & desktop Ubuntu:

  1. It should log in automatically
  2. Click back button
  3. It takes you to the login page and then logs you in automatically again after less than a second.

On homepage after onboarding Testflight app on iOS & desktop Ubuntu:

  1. Click Dev back button
  2. This takes you back into the onboarding process, with the first page being the "Your profile is now protected. Nice job, undefined!". After finishing the onboarding I think we don't want that, perhaps just log out or something else.
  3. Any point after onboarding you can go back into the onboarding process by clicking the back button enough.

Shenron profile homepage Testflight app on iOS & desktop Ubuntu:

  1. Log in
  2. Switch to shenron, step "create profile"
  3. Back button will leave you at the same homepage (presumably because the previous page was also the homepage, but the profile doesn't switch back, even though I don't think it should either)

Shenron profile interactive steps 2, 4 & 6 Testflight app on iOS & desktop Ubuntu:

  1. Click one of the above steps

Shenron profile homepage Testflight app on iOS & desktop Ubuntu:

  1. Log in
  2. Switch to shenron, step "create profile"
  3. Back button will leave you at the same homepage (presumably because the previous page was also the homepage, but the profile doesn't switch back, even though I don't think it should either)

Shenron profile interactive steps 2, 4, 6 & 8 Testflight app on iOS & desktop Ubuntu:

  1. Click one of the above steps
  2. Click either accept or reject
  3. Click back button
  4. White screen and app breaks.

Trashing and recreating dev profiles

  1. Trash and recreate a dev profile a few times.
  2. Continuously click the Dev back button
  3. You will be logged out, taken to the blank logo page, and logged back in

Hardware Specification

Operating system: iOS & Ubuntu RAM: Cores: Device:

Steps to Reproduce the Bug

specified above

Expected Behaviour

Up for discussion

Actual Behaviour

Specified above

Errors

Instances of actually breaking the app are the back button after Shenron steps 2, 4, 6 & 8.

maiertech commented 1 month ago

Related: https://github.com/impierce/identity-wallet/issues/134.