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

24576 - Updates to NSF messaging #3207

Merged
merged 7 commits into from
Jan 21, 2025

Conversation

rodrigo-barraza
Copy link
Collaborator

Issue #:
bcgov/entity#24576

Description of changes:
Added reason to client view NSF when account is suspended.
Added reason to admin view when viewing a suspended account.
Updated NSF copy and icons.
Cleaned up date formats to be more human-readable.

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

@State(useOrgStore) private currentOrganization!: Organization
@State(useCodesStore) private suspensionReasonCodes!: Code[]
private formatDate = CommonUtils.formatDisplayDate
export default defineComponent({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you looks good

@@ -148,6 +148,11 @@ export default class CommonUtils {
static formatDatePickerDate (date?: Date) {
return moment(date || new Date()).format('YYYY-MM-DD')
}

static formatDateToHumanReadable (date: Date | string | moment.Moment) {
Copy link
Collaborator

@seeker25 seeker25 Jan 16, 2025

Choose a reason for hiding this comment

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

type DateLike = string | Date | moment.Moment

date: DateLike

can replace line 141 too like this

Copy link
Collaborator

Choose a reason for hiding this comment

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

image

@rodrigo-barraza rodrigo-barraza marked this pull request as ready for review January 17, 2025 17:30
@rodrigo-barraza rodrigo-barraza requested review from ochiu and Jxio January 17, 2025 17:30
@@ -21,7 +21,7 @@
Account Suspended
</div>
<div>
Account has been suspended for {{ accountSuspendReason }}.
This acount has been suspended. Returned system error message: {{ reason }}.
Copy link
Collaborator

Choose a reason for hiding this comment

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

acount

@@ -85,16 +85,9 @@
{{ currentOrganization.name }}
</h1>
<p
v-if="isPremiumAccount"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Aye good stuff

@rodrigo-barraza rodrigo-barraza merged commit 3723d73 into bcgov:main Jan 21, 2025
10 of 12 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.

2 participants