1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00
Commit Graph

12288 Commits

Author SHA1 Message Date
Jared Snider
300b606d27 SG-680 - Domain-add-edit-dialog - Confirmation required now for domain deletion 2022-12-12 11:23:29 -05:00
Jared Snider
976d7c29b0 SG-680 - Domain verification progress - (1) CopyDnsTxt added to state service (2) Refactored dialog to use async actions (3) Dialog form changes now mark form controls as touched for more responsive error handling 2022-12-09 16:53:29 -05:00
Jared Snider
964fab1782 SG-680 - OrgDomainApi svc - must await send of delete call otherwise runs synchronously. Duh. 2022-12-09 16:51:08 -05:00
Jared Snider
a2aac79ce2 SG-680 - Domain Name Custom Reactive forms validator refactor - swapped to regex to support proper domain format (which now enforces the requirement of a .com or similar) 2022-12-09 16:49:57 -05:00
Jared Snider
cbd6e96aa4 SG-680 - DomainAddEditDialog - Unique domain name enforcement implemented 2022-12-08 18:14:57 -05:00
Jared Snider
64daf70cea SG-680 - Domain verification progress - (1) Table layout + loading working for the most part (more translations needed (2) Add & edit opening dialog (3) Dialog first draft of save and verify 2022-12-08 17:53:37 -05:00
Jared Snider
19e7513d65 SG-680 - OrgDomain.service - replace delete with splice as delete doesn't actually alter array. Duh. 2022-12-08 17:50:47 -05:00
Jared Snider
e57faf2e63 Form-button - Added useful note regarding use of the bitFormButton directive and how it requires the use of the bitButton directive as well. 2022-12-08 16:34:44 -05:00
Jared Snider
98917ce06d SG-680 - Updated Domain Name custom validator to pass back error message in format the error.component.ts expected so it can be displayed without an untranslated error prefix of "invalidDomainName" 2022-12-08 16:15:13 -05:00
Jared Snider
f528c4ba5a SG-680 - Domain Add Edit Dialog - (1) Added custom validator for domain name (2) Disable verify btn if form invalid 2022-12-07 11:40:15 -05:00
Jared Snider
d58c93e517 SG-680 - Domain Add Edit Dialog - (1) Random generation of DNS TXT Record now working (2) DNS TXT Record Copyable (3) Additional translations added (4) Info callout added 2022-12-06 18:43:21 -05:00
Jared Snider
6bdc78385b Merge branch 'feature/SG-771-org-domain-claiming-web' into feature/SG-680-create-domain-verification-comp 2022-12-06 10:20:11 -05:00
Daniel James Smith
200dd0a1fb [PS-1906] Extract uploadEvents from EventService into new service (#4108)
* Move event.service to it's own folder

Move abstractions/event.service to abstractions/event/event.service
Move services/event.service to services/event/event.service
Fix all the imports

* Extract event-upload from event.service

Move `uploadEvents` from `EventService` to `EventUploadService`
Create event-upload-service-factory
Fix wiring up all the dependencies

* Remove clearEvents from EventService

clearEvents is only related to uploading events and can be moved into EventUploadService

Change the logout-method to only call EventUploadService.uploadEvents as that also calls clearEvents internally

* Rename EventService to EventCollectionService

Rename libs\common\abstraction\event\event.service.ts to libs\common\abstractions\event\event-collection.service.ts

Rename libs\common\services\event\event.service.ts to libs\common\services\event\event-collection.service.ts

Fix all the imports

Fix up service regristration/instantiation

Reanme \browser\src\background\service_factories\event-service.factory.ts to \browser\src\background\service_factories\event-collection-service.factory.ts

* Move interval to upload events to EventUploadSvc

Move the `init()` from event-collection.service to event-upload.service
Change call-site in web, desktop, browser
2022-12-06 14:47:42 +01:00
Oscar Hinton
1dca425dc4 [SM-370] Bump pkg & pkg-fetch (#4165) 2022-12-06 11:37:37 +01:00
Oscar Hinton
84bd5ae7ee Update urls to match the contributing docs (#4192) 2022-12-06 11:20:27 +01:00
Rui Tomé
d240d96368 [EC-342] Gate custom permissions behind enterprise plan (#3907)
* [EC-342] Add 'UseCustomPermissions' property in Organization.

* [EC-342] Add/Edit message texts for Permission types

* [EC-342] Add check to determine if org can have custom permissions

* [EC-342] Add description to message text

* [EC-342] Checking if the selected user type is 'Custom'

* Update apps/web/src/locales/en/messages.json

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* [EC-342] Update custom permissions check to only look for UseCustomPermissions flag. Create updateUser and inviteUser methods.

* [EC-342] Split Custom Permissions text into 3 parts.

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2022-12-06 09:50:24 +00:00
Jared Snider
a529ad0ffb SG-680 - Good start on Domain Add Edit Dialog 2022-12-05 18:50:06 -05:00
Jared Snider
15211c867d SG-680 - Moved domain verification comp into subfolder to add clarity in folder structure 2022-12-05 17:22:52 -05:00
Jared Snider
6cd7f681a1 SG-680 - Update OrgDomainApiService to use ListResponse and map into OrganizationDomainResponse properly 2022-12-05 17:10:36 -05:00
Jared Snider
4bb2e8db11 SG-680 - OrgDomainApiServiceAbstraction should be an abstract class 2022-12-05 17:01:09 -05:00
Jared Snider
3fb872df66 SG-680 - New OrgDomain state and API services need to be registered on jslib-services.module in order to be injectable into components for use (this is what maps abstractions to implementation for dependency injection) 2022-12-05 17:00:07 -05:00
github-actions[bot]
9ec1750727 Bumped desktop version to 2022.11.1 (#4187)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-05 13:39:49 -08:00
Jared Snider
0534ab91f6 Merge branch 'feature/SG-771-org-domain-claiming-web' into feature/SG-680-create-domain-verification-comp 2022-12-05 15:22:02 -05:00
Opeyemi
28dbb4c8a8 update ::set-output to latest (#4177)
* update ::set-output to latest

* update workflow for linter error
2022-12-05 15:04:04 +00:00
Daniel James Smith
bfa19a6749 Fix links in README to our contrib guidelines (#4186) 2022-12-05 13:08:43 +01:00
Abhishek Shandilya
34394c5d0e fix url (#4183) 2022-12-05 09:27:02 +01:00
Andreas Coroiu
d17d188534 [CL-50] Form controls (checkbox and radio) (#4066)
* [CL-50] feat: scaffold checkbox component

* [CL-50] feat: implement control value accessor for checbox

* [CL-50] feat: add form-field support to checkbox

* [CL-50] feat: implement non-selected checkbox styling

* [CL-50] feat: implement checkbox checked styles

* [CL-50] feat: improve checkbox form-field compat

* [CL-50] fix: checkbox border hover wrong color

* [CL-50] feat: use svg instead of bwi font

* [CL-50] feat: scaffold radio button

* [EC-50] feat: implement radio logic

* [CL-50] feat: add radio group tests

* [CL-50] feat: add radio-button tests

* [CL-50] feat: implement radio button styles

* [CL-50] fix: checkbox style tweaks

* [CL-50] feat: smooth radio button selection transition

* [CL-50] chore: various fixes and cleanups

* [CL-50] feat: add form field support

* [EC-50] feat-wip: simplify checkbox styling

* [EC-50] feat: extract checkbox into separate component

* [CL-50] feat: add standalone form control component

* [CL-50] feat: remove unnecessary checkbox-control
It wasn't really doing anything, might as well use form control directly

* [CL-50] chore: create separate folder with form examples

* [CL-50] feat: switch to common bit-label

* [CL-50] feat: let radio group act as form control

* [CL-50] chore: restore form-field component

* [CL-50] feat: add support for hint and error

* [CL-50] fix: storybook build issue

* [CL-50] fix: radio group label wrong text color

* [CL-50] fix: translation

* [CL-50] fix: put hint and errors outside label

* [CL-50] feat:

* [CL-50] feat: add custom checkbox example story

* [CL-50] chore: remove 1 from full example name

* [CL-50] chore: clean up unused icon

* [CL-50] chore: clean up unused tailwind plugin

* [CL-50] fix: ring offset color in custom example

* [CL-50] chore: clean up unused icon

* [CL-50] chore: add design link

* [CL-50] chore: remove unused import

* [CL-50] fix: pr review comments

* [CL-50] fix: improve id handling
2022-12-05 08:49:03 +01:00
Jared Snider
874b983f8c SG-680 - Created Domain Verification component and started scaffolding out HTML 2022-12-02 18:16:54 -05:00
Jared Snider
36b2823e82 SG-680 - Update Organization model to include a canManageDomainVerification check 2022-12-02 17:02:02 -05:00
Jared Snider
729d21d3c4 SG-680 - Refactor Org Domain API & domain services to conform to ADR 0013 - Avoid layered folder structure for request/response models (i.e., put models near "owner" services) 2022-12-02 16:51:07 -05:00
Daniel James Smith
e9781b4214 [PS-1901] Add menu item to remove a previously set password from a Send (#4100)
* Remove a previously set password from a Send

* Only refresh if the send item was selected before

* Display menuItem only when a password has been set
2022-12-02 21:10:03 +01:00
Rui Tomé
9dc72428d0 [EC-584] Update ApiService to remove any appendages to ClientVersion (#4008)
* [EC-584] Update ApiService to remove any appendages to ClientVersion

* [EC-584] Extract application version number logic from ApiService to PlatformUtils

* Update libs/electron/src/services/electronPlatformUtils.service.ts

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>

* [EC-584] Use getApplicationVersion as source for getApplicationVersionNumber

* [EC-584] Remove defaulting to dash on getApplicationVersionNumber and add unit tests

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
2022-12-02 19:38:12 +00:00
Jared Snider
a8d79b78cd Two-factor-setup comp - change "tabbed-header" class to "page-header" to achieve visual consistency with other settings components. 2022-12-02 11:05:46 -05:00
Oscar Hinton
0a73290714 [SM-329] Merge libs/electron into desktop (#3989) 2022-12-02 12:45:09 +01:00
Patrick H. Lauke
8e4e770ca3 Fix typo for DuckDuckGo form field (#4172) 2022-12-02 02:09:13 +01:00
github-actions[bot]
d64e8d7449 Autosync the updated translations (#4169)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-02 01:28:34 +01:00
github-actions[bot]
91dbb5dbf3 Autosync the updated translations (#4170)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-02 01:27:21 +01:00
github-actions[bot]
e7f484c75f Autosync the updated translations (#4171)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-02 01:25:51 +01:00
github-actions[bot]
7563005757 Bumped web version to 2022.11.2 (#4167)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-01 14:34:56 -08:00
Patrick H. Lauke
844d0d333d Desktop: tweak left-hand filters (#3727)
* correct issue of "allVaults" string literal being used
* make "(Organisation is disabled)" part of the `appA11yTitle`
* add folder name to the edit folder button's `appA11yTitle`

Co-authored-by: Daniel James Smith <djsmith@web.de>
2022-12-01 22:13:00 +01:00
Justin Baur
7b55096edf [PS-1942] Add Provider Filters (#4147)
* Add Helper to filter out Provider Orgs

* Use filter where getAll used to be used

* Change name to isNotProviderUser
2022-12-01 15:31:24 -05:00
Jared Snider
1698ad9b81 SG-680 - (1) Updated getByOrgId method to return array of data to match back end + renamed it as such (2) Updated OrgDomainApiService get methods to update the OrgDomainService observables 2022-12-01 14:48:55 -05:00
Jared Snider
9402c93fd9 SG-680 - Renaming org domain service abstractions to match existing convention 2022-12-01 10:38:18 -05:00
github-actions[bot]
41673f0f6d Bumped cli version to 2022.11.0 (#4160)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-01 12:21:56 +00:00
dgoodman-bw
6e1aef543d Ps 1061 cli update command returns wrong version (#4071)
* PS-1061 - replace out of date url references

* PS-1061 - reverse position of error case handling to reduce nesting

* PS-1061 - remove unnecessary constructor parameters, move downloadUrl construction to separate function

* PS-1061 - move constants outside of class, readability improvements

* PS-1061 - use standard notation for property assignment

* PS-1061 - initialize downloadUrl with default value
2022-11-30 15:47:19 -07:00
Michał Chęciński
81c98778e9 Add switch to github and electron releases (#4158) 2022-11-30 12:51:54 -08:00
Vince Grassia
d18b2ecd56 Fix the Staged Rollout Desktop workflow (#4157) 2022-11-30 09:36:09 -05:00
Opeyemi
922239504d fix_staged_rollout_typo (#4156) 2022-11-30 14:14:05 +00:00
Matt Gibson
d4a8e5829a Do not use object constructors for names (#4149)
* Do not use object constructors for names

Minification was selecting different class names for different instances
of services, which was causing them not to sync properly.

This was happening _only_ in production mode for some reason, perhaps
due to minifying post chunking?

* Add tests for additional synced properties
2022-11-29 17:40:39 -06:00
Jared Snider
6f20cc24e1 SG-680 - (1) Created Org Domain API and observable based data store service (2) Created required response and request models 2022-11-29 18:28:08 -05:00