1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-09-28 03:57:47 +02:00
bitwarden-desktop/src/scss
Addison Beck f32b917a9f
[Account Switching] Misc Bug Fixes and Refactors (#1223)
* [bug] Pull serverUrl directly from stateService for the account switcher

Create a small extended Account model for handling the switchers server url, and pull environment urls from disk where they actually live

* [refactor] Add a message handler for switching accounts

* This allows for logic reuse between manually switching accounts and automatically switching accounts on login
* This commit also adds a loading spinner to app root while syncing after a switch

* [bug] Remove vertical scrollbar

* An old styling fix to add extra height and padding seems to be now creating an unecassary scroll bar. It is likely that since making more use of flexbox for our containers that this issue has been resolved without the manually added extra hight & padding

* [refactor] Turn down activity monitoring

Saving last activity is a disk call, and we currently do this a lot more than is necassary. For example:
* We track mousedown & click, which is redundant
* We track every mouse movement regardless of if an action is taken. This seems inappropriate for use in locking behavior.

* [bug] Address potential race condition when locking

Sometimes when swapping between an unlocked account and a locked account a race condition occurs that swaps the user but doesn't redirect to the lock screen
This commit just adds some awaits and restructures lock order of operations to be more in line with other message handlers

* [refactor] Change click event to mousedown event for the account switcher

This is simply a little snappier, and ensures we stay ahead of change detection and don't get stuck not properly interpreting the action

* [chore] Update jslib

* [chore] Linter fixes

* [chore] Linter fixes

* [chore] Update jslib

* [chore] Update jslib
2022-01-12 09:23:00 -05:00
..
base.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
box.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
buttons.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
environment.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
grid.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
header.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
list.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
misc.scss [Account Switching] Misc Bug Fixes and Refactors (#1223) 2022-01-12 09:23:00 -05:00
modal.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
pages.scss [Account Switching] Misc Bug Fixes and Refactors (#1223) 2022-01-12 09:23:00 -05:00
plugins.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
styles.scss Add credit card logos to allow displaying icons based on brand (#1149) 2021-12-21 13:21:41 +01:00
variables.scss [bug] Apply background color for light theme account switcher (#1211) 2021-12-28 14:53:37 -05:00
vault.scss Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00