-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CL-106] use CL's DialogService in Desktop & Browser #5875
[CL-106] use CL's DialogService in Desktop & Browser #5875
Conversation
Fixed Issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are looking great! Nice work on this 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes related to AC look good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SM changes look good, thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I feel the same about enums so nice to see the unions. Not importing makes it slightly more difficult to refactor/rename, but seems like everyone else is good with that so 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Only a single non blocking question.
@@ -21,6 +21,9 @@ export class ModalConfig<D = any> { | |||
replaceTopModal?: boolean; | |||
} | |||
|
|||
/** | |||
* @deprecated Use the Component Library's `DialogService` instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor question (non-blocking): should we include a target date + tech debt item for cleaning up and removing this service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Type of change
Relies on: #5890
Objective
DialogService
DialogServiceAbstraction
was deleted, and all imports of it were updated to the CL'sDialogService
.DialogService.open
is now available in Desktop and Browser, meaning theModalService
can be fully deprecated.BrowserDialogService
andElectronDialogService
were deleted. SimpleDialogs in all clients will now use the CL implementation.libs/angular
andlibs/components
SimpleDialogComponent
and related files were moved tolibs/components
.libs/angular
is now a restricted import in the CLSimpleDialogType
andSimpleDialogCloseType
are now types instead of enumts-jest
and re-exporting enums in multiple files: [Bug]: Exported enums not working on tests kulshekhar/ts-jest#3397Code changes
.eslintrc.json
: Added restricted importslibs/angular/src/services/modal.service.ts
: Added deprecation notelibs/components/src/dialog/dialog.service.ts
: Updated imports; removed DialogServiceAbstraction; addedtranslate
method that is called bySimpleDialogComponent
libs/components/src/dialog/simple-dialog/types.ts
: ColocatedSimpleDialog
typeslibs/shared/tsconfig.libs.json
: Added@bitwarden/components
import aliaslibs/angular/src/services/dialog/*
: deletedDialogServiceAbstraction
; removedSimpleDialog
enumsScreenshots
DialogService.open
withbit-dialog
in browser extension:Screen.Recording.2023-07-24.at.10.19.33.AM.mov
DialogService.open
withbit-dialog
on desktop:Screen.Recording.2023-07-24.at.10.36.56.AM.mov
Before you submit