[x] Users should be able to configure a list of principals that they would like to watch.
[x] Users should be able to switch between the list of principals.
[x] Users should also be allowed to give names to the principals, and their names should appear in the dropdown menu.
ACCEPTANCE CRITERIA
Given that I am on the login screen,
When I click the Watch-Only option,
Then a field will be displayed where I can enter a principal.
(See IMAGE 1)
Given that I am logging in from the Watch-Only option,
When I log in using a Principal,
Then I will be able to see all the information for that account.
When I log into an account using watch-only option,
The principal I have used to log in will be stored in local storage.
Given that Principals are stored in local storage,
When I click on the Watch-Only option on the login screen, and expand the drop-down menu,
Then will be displayed all the saved Principals, and I can select one of them to log in with that account in watch-only mode.
(See IMAGE 2)
Given that I have a list of Principals in the dropdown menu of the watch-only option on the login screen,
When I click on the edit option,
Then I can add a name to that principal or edit this name, and this information will be saved to local storage.
(See IMAGE 3 and 4)
Given that I log into an account using watch-only mode and have a list of Principals in the dropdown menu
When I click on the edit option,
Then I can add a name to that principal or edit this name, and this information will be saved to local storage.
(See IMAGE 5 and 6)
Given that I have added Names to the Principals in the dropdown menu of the watch-only option on the login screen,
When I expand to see the list of Principals
Then the names I have added to each Principal will be displayed and no names will be displayed in case I have not added one.
(See IMAGE 7)
Given that I log into an account using watch-only and have added Names to the Principals in the dropdown menu
When I expand to see the list of Principals
Then the names I have added to each Principal will be displayed and no names will be displayed in case I have not added one.
(See IMAGE 8)
Given that I have a list of principals in the dropdown menu of the watch-only option on the login screen,
When I click on the search field
Then I can search by name or Principal.
(See IMAGE 9)
Given that I log into an account using watch-only and have a list of principals in the dropdown menu
When I click on the search field
Then I can search by name or Principal.
(See IMAGE 10)
Given that I have a list of Principals in the dropdown menu of the watch-only option on the login screen,
When I click on the delete option
Then I can delete that principal from local storage so that it no longer appears as an option in the Principals list.
(See IMAGE 11)
Given that I log into an account using watch-only and have a list of Principals in the dropdown menu
When I click on the delete option for any of the principals that is not selected
Then I can delete that principal from local storage so that it no longer appears as an option in the Principals list.
(See IMAGE 12)
Given that I have selected one of the principals from the list (login screen / watch-ony option)
When I click on the input field
Then I can edit this principal if I want.
(See IMAGE 13)
As a user, I want to be able to easily switch between accounts from Watch Only Mode. so that I can see their information.
HPL Wallet link: https://vgxgm-maaaa-aaaap-abuva-cai.icp0.io/
Given that I am on the login screen, When I click the Watch-Only option, Then a field will be displayed where I can enter a principal. (See IMAGE 1)
Given that I am logging in from the Watch-Only option, When I log in using a Principal, Then I will be able to see all the information for that account.
When I log into an account using watch-only option, The principal I have used to log in will be stored in local storage.
Given that Principals are stored in local storage, When I click on the Watch-Only option on the login screen, and expand the drop-down menu, Then will be displayed all the saved Principals, and I can select one of them to log in with that account in watch-only mode. (See IMAGE 2)
Given that I have a list of Principals in the dropdown menu of the watch-only option on the login screen, When I click on the edit option, Then I can add a name to that principal or edit this name, and this information will be saved to local storage. (See IMAGE 3 and 4)
Given that I log into an account using watch-only mode and have a list of Principals in the dropdown menu When I click on the edit option, Then I can add a name to that principal or edit this name, and this information will be saved to local storage. (See IMAGE 5 and 6)
Given that I have added Names to the Principals in the dropdown menu of the watch-only option on the login screen, When I expand to see the list of Principals Then the names I have added to each Principal will be displayed and no names will be displayed in case I have not added one. (See IMAGE 7)
Given that I log into an account using watch-only and have added Names to the Principals in the dropdown menu When I expand to see the list of Principals Then the names I have added to each Principal will be displayed and no names will be displayed in case I have not added one. (See IMAGE 8)
Given that I have a list of principals in the dropdown menu of the watch-only option on the login screen, When I click on the search field Then I can search by name or Principal. (See IMAGE 9)
Given that I log into an account using watch-only and have a list of principals in the dropdown menu When I click on the search field Then I can search by name or Principal. (See IMAGE 10)
Given that I have a list of Principals in the dropdown menu of the watch-only option on the login screen, When I click on the delete option Then I can delete that principal from local storage so that it no longer appears as an option in the Principals list. (See IMAGE 11)
Given that I log into an account using watch-only and have a list of Principals in the dropdown menu When I click on the delete option for any of the principals that is not selected Then I can delete that principal from local storage so that it no longer appears as an option in the Principals list. (See IMAGE 12)
Given that I have selected one of the principals from the list (login screen / watch-ony option) When I click on the input field Then I can edit this principal if I want. (See IMAGE 13)
IMAGE 1![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/01ac3ff4-1f64-4838-b0dd-1b4b84579cf0)
IMAGE 2![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/710f15e3-066a-4f7b-af7d-90e7135e7e2c)
IMAGE 3![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/73245628-1874-444f-b737-2a70f7d14a73)
IMAGE 4![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/a2cfc07b-03d5-4645-b79e-7368abf7f30e)
IMAGE 5![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/b0ae2d15-2447-4a35-99a7-81bddef5c3fc)
IMAGE 6![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/1e681854-478a-42b0-a733-9dfbe30645c6)
IMAGE 7![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/54d70942-38c8-4f30-bfb5-3234041a2ac9)
IMAGE 8![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/4ec249bb-c076-46c8-8696-c36e4fb4a089)
IMAGE 9![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/5c06c15f-0d44-45f2-a127-e467bd293d04)
IMAGE 10![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/7ac65f77-7327-4301-891c-31627e909d6b)
IMAGE 11![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/e782d420-b145-4340-b4ca-ca8123473687)
IMAGE 12![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/81bcc28b-14de-423b-a392-a8515c262a5e)
IMAGE 13![image](https://github.com/SDS-Timo/hpl-wallet/assets/117093454/d4a1bf60-74d7-443e-8707-146d9116a0c9)