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

Todo Section - Dialogs #28

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Todo Section - Dialogs #28

merged 3 commits into from
Aug 19, 2024

Conversation

patrickpeinanw
Copy link
Collaborator

*Issue:*bcgov/entity#21352

Description of changes:

  • Confirm DIalog for deleting draft (draft filing and draft application)
  • Confirming Dialog for cancelling payment
  • DeleteError Dialog
  • CancelPaymentError Dialog
  • Error Dialog for loading affiliation invitation
  • Error Dialog for authorizing affiliation invitation

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

@patrickpeinanw
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-28-720ty29n.web.app

Copy link
Collaborator

@hfekete hfekete left a comment

Choose a reason for hiding this comment

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

In general OK.
Big question is is there not going to be internationalization (i18n) for these dialogs ?
Also 2 small ones

const loadAffiliationInvitationError = ref(todosStore.loadAffiliationsError.length > 0)

const authorizeAffiliationErrorOptions: DialogOptionsI = {
title: 'Error updating affiliation invitation.',
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this going to be internationalized ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes I agree I think this should all be from the lang file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Many texts in the dashboard are from the imported enums or functions, so the content can't be fully internationalized until those texts from the external source are updated. But I agree that we need to use the lang file in the new dashboard.

I have updated the i18n stuff for the dialogs. There are many other places in the todo section that i18n need to be applied. I will change that later in a separate PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Create a ticket if you dont have it, for the next PR

attach="#todoList"
:display="loadAffiliationInvitationError"
:options="loadAffiliationInvitationErrorOptions"
@close="loadAffiliationInvitationError = false"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it make sense to clear error queue if they are acknowledged and have this as a computed value ?
Was there a reason, why the errors should stay in the queue after closing the error dialog ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. Updated

@patrickpeinanw patrickpeinanw requested a review from hfekete August 19, 2024 21:37
@patrickpeinanw
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-28-720ty29n.web.app

@hfekete
Copy link
Collaborator

hfekete commented Aug 19, 2024

Looks good to me now! Thanks for updating texts.

@patrickpeinanw patrickpeinanw merged commit d8d5641 into bcgov:main Aug 19, 2024
6 checks passed
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