Skip to content
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

19874 Changed some snackbar messages to dialogs #660

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

severinbeauvais
Copy link
Collaborator

@severinbeauvais severinbeauvais commented Feb 16, 2024

Issue #: bcgov/entity#19874

Description of changes:
- app version = 5.9.5
- used error dialog for "business not in LEAR" scenario
- used error dialog for "unable to add business" scenario
- used error dialog for "error marking new business" scenario
- bolded labels in RegistriesContactInfo component
- added generic error dialog component
- created test suite for new dialog
- updated unit tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

Severin Beauvais added 2 commits February 16, 2024 15:27
- used error dialog for "business not in LEAR" scenario
- used error dialog for "unable to add business" scenario
- used error dialog for "error marking new business" scenario
- bolded labels in RegistriesContactInfo component
- added generic error dialog component
@severinbeauvais severinbeauvais self-assigned this Feb 16, 2024
- update unit tests
@@ -305,6 +315,9 @@ export default class AmalgamatingBusinesses extends Mixins(AmalgamationMixin, Co
allOk = false
snackbar = false
snackbarText = ''
errorDialog = false
errorDialogText = undefined as string
errorDialogTitle = undefined as string
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I used "null" here, the dialog didn't use its default prop values. This works.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See ticket for example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this affects every usage of this component, but this is the new UI design.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See ticket for examples.


expect(wrapper.emitted('close')).toBeUndefined()
await wrapper.find('.v-btn').trigger('click')
expect(wrapper.emitted('close')).toEqual([[]])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what gets emitted if you don't emit a value.

@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcgov bcgov deleted a comment from bcregistry-sre Feb 17, 2024
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-create-dev--pr-660-bm23wsrw.web.app

Copy link
Contributor

@PaulGarewal PaulGarewal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@jamespaologarcia jamespaologarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@severinbeauvais severinbeauvais merged commit 7284775 into bcgov:main Feb 20, 2024
5 checks passed
JazzarKarim pushed a commit to JazzarKarim/business-create-ui that referenced this pull request Feb 23, 2024
* - app version = 5.9.5
- used error dialog for "business not in LEAR" scenario
- used error dialog for "unable to add business" scenario
- used error dialog for "error marking new business" scenario
- bolded labels in RegistriesContactInfo component
- added generic error dialog component

* - created test suite for new dialog

* - rename dialog message -> text
- update unit tests

---------

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants