-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
Temporary Url for review: https://business-create-dev--pr-734-k2qli397.web.app SB says, try these:
|
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, |
There was a problem hiding this comment.
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.
cd39947
to
9ab954a
Compare
d5905f1
to
0f6b331
Compare
@@ -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.`, |
There was a problem hiding this comment.
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: [] | ||
} |
There was a problem hiding this comment.
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.
70b9f64
to
422083f
Compare
fd9f9e7
to
c5ca782
Compare
- 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
// *** TODO: remove after testing | ||
if (draftFiling.header.status === FilingStatus.CHANGE_REQUESTED) { | ||
this.setFilingStatus(FilingStatus.APPROVED) | ||
} |
There was a problem hiding this comment.
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) | ||
} |
There was a problem hiding this comment.
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:
Update: I can't upload a sample file with the invalid filename for you to try because GH fixes it.
> | ||
<!-- 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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -73,7 +73,6 @@ | |||
|
|||
<!-- Continuation Effective Date and Time --> | |||
<section | |||
v-if="(getFilingStatus === FilingStatus.DRAFT) || getEffectiveDateTime.isFutureEffective" |
There was a problem hiding this comment.
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.
/gcbrun |
Temporary Url for review: https://business-create-dev--pr-734-k2qli397.web.app |
There was a problem hiding this comment.
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.
If you have any further comments on this PR, I will fix them as part of bcgov/entity#23514. |
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:
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"):