bitwarden / web

The website vault (vault.bitwarden.com).
https://vault.bitwarden.com
Other
2.58k stars 405 forks source link

[SG-220] [EUVR] Merge master into feature branch #1637

Closed eliykat closed 2 years ago

eliykat commented 2 years ago

Type of change

Objective

Merge master into feature/endUserVaultRefresh. This required some tidy up work that is worthy of a PR, see detail below.

Code changes

I've done the following:

  1. update jslib to point at jslib/feature/endUserVaultRefresh (HEAD)
  2. merge with master and resolve merge conflicts
  3. there were conflicts in package-lock.json - these were handled by accepting all changes from master, then running npm i
  4. routing routes were being resolved in weird ways, causing unexpected/buggy behaviour. I believe this is because feature modules that should have been lazy loaded were being imported into OssModule and being eagerly loaded before the parent routes. Fixed this here: Do not eagerly load feature modules.
  5. Also renamed some routing modules from thing.module.ts to thing-routing.module.ts to make it clear they're routing modules and not feature modules: see Routing modules should have routing in their name. We're following 2 different patterns here, sometimes we have a whole feature module, sometimes it's just a standalone routing module. Should probably clean this up but that can be done later.

Items 4-5 are probably the only bits that require a code review, otherwise I just would've pushed directly to the branch.

Screenshots

Testing requirements

Before you submit