Sometimes when changing an organization fault filter the system can end up in a postion where the filter modifier selected isn't valid for the newly selected organization.
The clearest example of this are collections, since changing any org filter with a collection already selected will make that collection selection invalid.
Because of this, when an organization filter is selected we check to make sure modifiers are still valid. If they aren't we clear them.
This isn't working if a list is checked and this list is null. An error throws and the filter doesn't change. This commit adds a null check to keep things moving.
These changes rename and rewrite the GroupingsComponent into a VaultFiltersModule. The module follows typical angular patterns for structure and purpose, and contain components for each filter type. The mostly communicate via Input and Output, and depend on a VaultFilterService for sending and recieving data from other parts of the product.
This is an MVP implementation of the changes needed for the vault refresh. This includes collapsable top level groupings, and organization based filters that dynamically adjust folders and collections.
* add ellipsis pipe
* run prettier
* Account for ellipsis length in returned string
* Fix complete words case
* Fix another complete words issue
* fix for if there are not spaces in long value
* extract length check to beginning of method
* condense if statements
* remove log
* Remove error Response type check
Minimization is impacting type checking in a non-consistent way.
The previous type check works locally,
but not from build artifacts 🤷. We only set `captchaRequired` on
our errors when we want a resubmit with captcha included, so we're safe
keying off that
* linter
* add ellipsis pipe
* run prettier
* Account for ellipsis length in returned string
* Fix complete words case
* Fix another complete words issue
* fix for if there are not spaces in long value
* extract length check to beginning of method
* condense if statements
* remove log
* Remove error Response type check
Minimization is impacting type checking in a non-consistent way.
The previous type check works locally,
but not from build artifacts 🤷. We only set `captchaRequired` on
our errors when we want a resubmit with captcha included, so we're safe
keying off that
* linter
* Add test suite for existing importer
* Fix 2fa-seed not copied on login records
* Fix secure note title not being set
* Add support for importing 2FA file
* Fixed casing on import of MykiCsvImporter
* Import all unmapped fields as customFields
* WIP: Add import of UserIdCard
* Add support for IdCards
* Move existing dashlane importer into dashlaneImporters
* Add testData for Dashlane CSV importer
* Add dashlane Csv importer and unit tests
* Fixed linting issues
* Moved dashlaneCsv types to own file
* Register DashlaneCsv importer
* Removed temp private method and use base impl
* rename spec imports
* Move scope of mapped columns
* Migrate folders into collection if imported via org
* Initial commit
* Refactor the 1pux types
* Add test data
* 1Pux importer and tests
* Fixed a typo in the 1Pux types
* Make the linter happy
* Register and instantiate importer
* Fix adding secure notes
* Add missing placeholder property to types
* Test for existance of TOTP seed
* Add more test data
* Move processFullName into BaseImporter
* Add categoryEnum for easier mapping
* Refactoring of the importer and add support for different item types
* Make linter happy
* Modified some test data
* Fix linting issues
* Remove fieldvalue references comment
* Remove commented mapping use during tests