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

23353 POC for new continuation in design #734

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

severinbeauvais
Copy link
Collaborator

@severinbeauvais severinbeauvais commented Sep 23, 2024

Issue #: bcgov/entity#23353

NOTE: merging this PR will BREAK the current continuation in application functionality, but forthcoming tickets will update the flows/statuses and get things working again. Olga is OK with this.

Description of changes:

  • app version = 5.12.0
  • generalized page blurb functionality
  • always show fee summary
  • added special case for page header
  • added special case for fee summary label
  • added special route checks for continuation in authorization vs application
  • added special continuation in authorization steps
  • added special case for file and pay button label (submit vs resubmit)
  • added special cases for validation in file and pay method
  • added special case for no payment
  • reverted Effective Date Time radio labels
  • updated file upload error messages
  • renamed ContinuationInBusinessHome -> ContinuationInAuthorizationPage
  • added file name validation for ISO-8859-1 encoding
  • renamed ContinuationAuthorization -> AuthorizationProof
  • added filename ISO8859-1 encoding check
  • updated misc existing business information layout, labels, etc
  • removed confirmation checkbox
  • cleaned up summary page
  • fixed alignment on summary page
  • renamed some getters
  • added special case for dialog filing title
  • renamed route + view + enums + getters + interfaces
  • added special case for no fee when restoring draft
  • added page blurbs to continuation in resource files
  • separated auth step from the rest
  • renumbered steps + hide stepper for step 0
  • deleted obsolete dissolution resource objects
  • added some store getters
  • added Authorization Contact Information to step 0 page
  • updated continuation in authorization page validation
  • added special case to show pages errors and scroll properly
  • removed draft-only checks on FED and staff payment components
  • updated/added 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).

Sample Continuation Authorization ("step 0"):

image

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Sep 23, 2024

const localVue = createLocalVue()
localVue.use(VueRouter)
const router = mockRouter.mock()
router.push({ name: 'continuation-in-review-confirm', query: { id: 'T1234567' } })
const wrapper = shallowMount(Actions, {
// declare computed properties to override local and store getters:
computed: {
isContinuationInFiling: () => true,
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 an easy way to override a store getter.

@bcgov bcgov deleted a comment from bcregistry-sre Sep 23, 2024
@bcgov bcgov deleted a comment from bcregistry-sre Sep 23, 2024
@bcgov bcgov deleted a comment from bcregistry-sre Sep 23, 2024
@bcgov bcgov deleted a comment from bcregistry-sre Sep 24, 2024
@severinbeauvais severinbeauvais force-pushed the 23353 branch 2 times, most recently from d5905f1 to 0f6b331 Compare September 24, 2024 23:30
@bcgov bcgov deleted a comment from bcregistry-sre Sep 24, 2024
@@ -12,10 +12,11 @@ export const ContinuationInResourceC: ContinuationInResourceIF = {
entityType: CorpTypeCd.CONTINUE_IN,
filingTypeCode: FilingCodes.CONTINUATION_IN
}],
pageBlurbDraft: `To continue in to B.C., you must first submit a Continuation Authorization and
have it approved by BC Registries before filing a Continuation Application.`,
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Sep 25, 2024

Choose a reason for hiding this comment

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

See App.vue line 170 and store.ts line 1108 for generalized page blurb functionality.

(Also applies to GP and SP, below.)

}
],
items: []
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

^^ Unused code. Must have come from initial copy-paste when implementing firm dissolution.

- generalized page blurb functionality
- always show fee summary
- added special case for page header
- added special case for fee summary label
- added special route checks for continuation in authorization vs application
- added special continuation in authorization steps
- added special case for file and pay button label (submit vs resubmit)
- added special cases for validation in file and pay method
- added special case for no payment
- reverted Effective Date Time radio labels
- updated file upload error messages
- renamed ContinuationInBusinessHome -> ContinuationInAuthorizationPage
- added file name validation for ISO-8859-1 encoding
- renamed ContinuationAuthorization -> AuthorizationProof
- added filename ISO8859-1 encoding check
- updated misc existing business information layout, labels, etc
- removed confirmation checkbox
- cleaned up summary page
- fixed alignment on summary page
- renamed some getters
- added special case for dialog filing title
- renamed route + view + enums + getters + interfaces
- added special case for no fee when restoring draft
- added page blurbs to continuation in resource files
- separated auth step from the rest
- renumbered steps + hide stepper for step 0
- deleted obsolete dissolution resource objects
- added some store getters
- added Authorization Contact Information to step 0 page
- updated continuation in authorization page validation
- added special case to show pages errors and scroll properly
- removed draft-only checks on FED and staff payment components
- updated/added unit tests
@bcgov bcgov deleted a comment from bcregistry-sre Oct 1, 2024
// *** TODO: remove after testing
if (draftFiling.header.status === FilingStatus.CHANGE_REQUESTED) {
this.setFilingStatus(FilingStatus.APPROVED)
}
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 a temporary override for testing. This PR breaks this filing in other ways so I think this is OK to merge into main branch (Dev, etc).

("Change Requested" is only used for continuation in applications, which isn't released to Prod yet, so this change should not affect anything else.)

function isValidLatin1 (str: string): boolean {
// eslint-disable-next-line no-control-regex
return !/[^\u0000-\u00ff]/g.test(str)
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Oct 1, 2024

Choose a reason for hiding this comment

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

I did a bit of research on how to identify filenames with invalid characters and this is the best / cleanest I could find. (Other solutions used libraries or packages and made other assumptions.)

This arose from a file that Janis was trying to upload and which caused an error while trying to upload the file. Now the following error is displayed:

image

Update: I can't upload a sample file with the invalid filename for you to try because GH fixes it.

@bcgov bcgov deleted a comment from bcregistry-sre Oct 1, 2024
>
<!-- the director's affidavit file -->
<template v-if="isContinuationInAffidavitRequired">
<v-btn
v-if="getExistingBusinessInfo.affidavitFileName"
text
color="primary"
class="download-affidavit-btn mt-sm-n2 d-block"
class="download-affidavit-btn mt-sm-n2 d-block px-2 ml-n2"
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Oct 1, 2024

Choose a reason for hiding this comment

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

This and above : fixed alignment, ie

image

Now the button text appears to line up with other content in this column, but the button still has horizontal padding.

@@ -73,7 +73,6 @@

<!-- Continuation Effective Date and Time -->
<section
v-if="(getFilingStatus === FilingStatus.DRAFT) || getEffectiveDateTime.isFutureEffective"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously we hid some sections if this was a Draft. Now, draft applications only see "step 0". In other states, we can show these sections normally.

@severinbeauvais severinbeauvais marked this pull request as ready for review October 1, 2024 19:12
@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-create-dev--pr-734-k2qli397.web.app

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 not a new file. It was previously named "tests/unit/ContinuationInBusinessHome.spec.ts". I don't know why GH isn't recognizing that.

@severinbeauvais
Copy link
Collaborator Author

If you have any further comments on this PR, I will fix them as part of bcgov/entity#23514.

@severinbeauvais severinbeauvais merged commit b841af3 into bcgov:main Oct 1, 2024
5 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.

3 participants