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

21977 Handling for new bootstrap filing statuses #684

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

severinbeauvais
Copy link
Collaborator

@severinbeauvais severinbeauvais commented Jul 19, 2024

Issue #: bcgov/entity#21977

Description of changes:

  • app version = 7.3.16
  • added latestReviewComment property to filing interface
  • deleted some unused CSS
  • added pending list toggling from sub-components
  • added Todo List subtitle for change-requested filings (eg, cont in)
  • added Todo List default task handling
  • added Todo List action for change-requests filings (ie, make changes)
  • added Todo List content (body) for change-requested filings
  • fixed misc Todo List console log messages
  • added missing checks for "empty" continuation in
  • added handling for cont in review fields (submitter, date, comment)
  • renamed subtitle subcomponents "SubtitleXXX"
  • added Approved status handling to FilingTemplate.vue
  • renamed body subcomponents "BodyXXX"
  • added Rejected status handling to ContinuationIn.vue
  • added Hide/View Details button to PendingTemplate.vue
  • updated body in ContinuationIn.vue (pending)
  • added misc properties to interfaces as needed
  • 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 business-filings-ui license (Apache 2.0).

@@ -751,7 +751,8 @@ export default class App extends Mixins(
applicationDate: this.dateToYyyyMmDd(this.apiToDate(header.date)),
legalFilings: [header.name],
order: data.courtOrder
}
},
latestReviewComment: header.latestReviewComment
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New property from API that we need for the filing body in case the application is rejected, ie:

image


.v-expansion-panel-header__icon {
display: none;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Obsolete CSS.

@@ -63,7 +63,7 @@
<slot name="body">
<!-- is this a generic paid (not yet completed) filing? -->
<div
v-if="isStatusPaid"
v-if="isStatusPaid || isStatusApproved"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Approved looks like Paid.

(Rejected is handled in ContinuationIn component, not here in the template.)

letter-spacing: -0.01rem;
font-size: $px-14;
font-weight: 700;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Obsolete CSS.

<span>CHANGE REQUESTED</span>
<span class="vert-pipe" />
<span>PAID (filed by {{ item.submitter }} on <DateTooltip :date="item.submittedDate" />)</span>
</div>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's only 1 type of filing that can be "change requested" right now, but I wrote this generically in case we get others.

<!-- non-staff see no buttons for staff filings (cont out, conversion, correction, restoration) -->
<template v-else-if="!isRoleStaff && isStaffFiling(item)">
<!-- no action button in this case -->
</template>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved this up because it takes precedence over a new annual report.

@@ -532,10 +560,7 @@

<!-- is this a draft correction? -->
<template v-else-if="EnumUtilities.isStatusDraft(item) && EnumUtilities.isTypeCorrection(item)">
<div
data-test-class="correction-draft"
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jul 22, 2024

Choose a reason for hiding this comment

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

We aren't doing anything with the data-test-class so I removed the last two (this and below).

@@ -1147,8 +1190,7 @@ export default class TodoList extends Mixins(AllowableActionsMixin, DateMixin) {
await this.loadSpecialResolution(task)
break
default:
// eslint-disable-next-line no-console
console.log('ERROR - invalid name in filing header =', header)
await this.loadDefaultTask(task)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are some tasks that appear in the Todo List and that we don't handle. This new code will actually display them, making it clear to Ops what needs to be fixed (ie, unblock task in Todo List).

nameRequest: this.getNameRequest,
submitter: header.submitter,
submittedDate: new Date(header.date), // API format
latestReviewComment: header?.latestReviewComment
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New properties needed in case changes are needed, ie:

image

@@ -1279,17 +1279,18 @@ describe('Filing History List - incorporation applications', () => {
submitter: 'Cameron'
} as any
])
filingHistoryListStore.setPanel(null) // so we can re-open it
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A panel (in the store) was left open from a previous test.

@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Jul 22, 2024

Copy link
Collaborator

@ArwenQin ArwenQin left a comment

Choose a reason for hiding this comment

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

LGTM!

This {{ filing.displayName }} is rejected for the following reasons:
</p>
<p>
{{ filing.latestReviewComment || '[staff rejection message]' }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we not need to show the lastReviewComment when change requested?

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, we do. It's in the Todo List -- see line 613.

- added latestReviewComment property to filing interface
- deleted some unused CSS
- added pending list toggling from sub-components
- added Todo List subtitle for change-requested filings (eg, cont in)
- added Todo List default task handling
- added Todo List action for change-requests filings (ie, make changes)
- added Todo List content (body) for change-requested filings
- fixed misc Todo List console log messages
- added missing checks for "empty" continuation in
- added handling for cont in review fields (submitter, date, comment)
- renamed subtitle subcomponents "SubtitleXXX"
- added Approved status handling to FilingTemplate.vue
- renamed body subcomponents "BodyXXX"
- added Rejected status handling to ContinuationIn.vue
- added Hide/View Details button to PendingTemplate.vue
- updated body in ContinuationIn.vue (pending)
- added misc properties to interfaces as needed
- updated unit tests
@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-filings-dev--pr-684-83ygv5ha.web.app

- specifically enable pending list tooltips
- auto-expand Continuation In bootstrap filing
- don't show rejected filing details button
- added store getter
// expand bootstrap filing by default
// assumes this the only filing in the Filing History list (which it should be)
this.setPanel(0)
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jul 23, 2024

Choose a reason for hiding this comment

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

I'm thinking we could do this for the other bootstrap filings (amalgamations, incorporations and registrations). Thoughts? Maybe next time I'm in this area of code.

Copy link

sonarcloud bot commented Jul 23, 2024

@severinbeauvais severinbeauvais merged commit 80576c7 into bcgov:main Jul 23, 2024
1 check failed
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