-
Notifications
You must be signed in to change notification settings - Fork 18
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
24656 - Handle NoW Draft in ToDoList #118
Changes from 3 commits
3039ca5
90386de
54c4f59
0472b44
2fc6a91
ec2e3aa
57d51f7
33edce7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
}, | ||
"dependencies": { | ||
"@bcrs-shared-components/corp-type-module": "^1.0.16", | ||
"@bcrs-shared-components/enums": "^1.1.12", | ||
"@bcrs-shared-components/enums": "1.1.18", | ||
"@bcrs-shared-components/interfaces": "^1.1.16", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. try to update the enum dependency, try to test if it fixes the filing type error There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may need to commit the lock file, too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you! Just committed the lock file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks good, and so does the lock file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @patrickpeinanw Can we keep this change and the lock file change? I assume the unit tests will be OK with just an update to the enums shared package. |
||
"@headlessui/vue": "^1.7.22", | ||
"@iconify/json": "^2.2.214", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ import { FilingTypes } from '@bcrs-shared-components/enums' | |
/** Files a new filing (todo item). */ | ||
export const doFileNow = (item: TodoItemI) => { | ||
const business = useBcrosBusiness() | ||
const { goToBusinessDashboard, goToEditPage } = useBcrosNavigate() | ||
const { goToFilingUI, goToEditPage } = useBcrosNavigate() | ||
switch (item.name) { | ||
case FilingTypes.ANNUAL_REPORT: { | ||
// file the subject Annual Report | ||
const path = `/${business.currentBusiness.identifier}/annual-report` | ||
const param = { filingId: '0', arFilingYear: item.ARFilingYear.toString() } | ||
goToBusinessDashboard(path, param) | ||
goToFilingUI(path, param) | ||
break | ||
} | ||
case FilingTypes.CONVERSION: { | ||
|
@@ -41,7 +41,7 @@ export const doResumePayment = (item: TodoItemI): boolean => { | |
export const doResumeFiling = (item: TodoItemI): void => { | ||
const { currentBusinessIdentifier } = useBcrosBusiness() | ||
const { bootstrapIdentifier } = useBcrosBusinessBootstrap() | ||
const { goToBusinessDashboard, goToCreatePage, goToEditPage } = useBcrosNavigate() | ||
const { goToFilingUI, goToCreatePage, goToEditPage } = useBcrosNavigate() | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. renamed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! (PS The dashboard code will be removed from Filings UI in the near future, so it will truly be only a filings UI.) |
||
let navigateFn: Function | undefined | ||
let path = '' | ||
|
@@ -55,29 +55,29 @@ export const doResumeFiling = (item: TodoItemI): void => { | |
break | ||
|
||
case FilingTypes.ANNUAL_REPORT: | ||
// navigate to the Annual Report page of the old dashboard | ||
navigateFn = goToBusinessDashboard | ||
// navigate to the Annual Report page of Filings UI | ||
navigateFn = goToFilingUI | ||
path = `/${currentBusinessIdentifier}/annual-report` | ||
params = { filingId: item.filingId.toString(), arFilingYear: item.ARFilingYear.toString() } | ||
break | ||
|
||
case FilingTypes.CHANGE_OF_DIRECTORS: | ||
// navigate to Change of Directors page of the old dashboard | ||
navigateFn = goToBusinessDashboard | ||
// navigate to Change of Directors page of Filings UI | ||
navigateFn = goToFilingUI | ||
path = `/${currentBusinessIdentifier}/standalone-directors` | ||
params = { filingId: item.filingId.toString() } | ||
break | ||
|
||
case FilingTypes.CHANGE_OF_ADDRESS: | ||
// navigate to Change of Address page of the old dashboard | ||
navigateFn = goToBusinessDashboard | ||
// navigate to Change of Address page of Filings UI | ||
navigateFn = goToFilingUI | ||
path = `/${currentBusinessIdentifier}/standalone-addresses` | ||
params = { filingId: item.filingId.toString() } | ||
break | ||
|
||
case FilingTypes.CONSENT_CONTINUATION_OUT: | ||
// navigate to Consent Continuation Out page of the old dashboard | ||
navigateFn = goToBusinessDashboard | ||
// navigate to Consent Continuation Out page of Filings UI | ||
navigateFn = goToFilingUI | ||
path = `/${currentBusinessIdentifier}/consent-continuation-out` | ||
params = { filingId: item.filingId.toString() } | ||
break | ||
|
@@ -90,8 +90,8 @@ export const doResumeFiling = (item: TodoItemI): void => { | |
break | ||
|
||
case FilingTypes.CONTINUATION_OUT: | ||
// navigate to Continuation Out page of the old dashboard | ||
navigateFn = goToBusinessDashboard | ||
// navigate to Continuation Out page of Filings UI | ||
navigateFn = goToFilingUI | ||
path = `/${currentBusinessIdentifier}/continuation-out` | ||
params = { filingId: item.filingId.toString() } | ||
break | ||
|
@@ -145,6 +145,16 @@ export const doResumeFiling = (item: TodoItemI): void => { | |
params = { 'conversion-id': item.filingId.toString() } | ||
break | ||
|
||
case FilingTypes.NOTICE_OF_WITHDRAWAL: | ||
// navigate to Notice of Withdrawal page of Filings UI | ||
navigateFn = goToFilingUI | ||
path = `/${currentBusinessIdentifier}/notice-of-withdrawal` | ||
params = { | ||
filingToBeWithdrawn: item.filingToBeWithdrawn.toString(), | ||
filingId: item.filingId.toString() | ||
} | ||
break | ||
|
||
case FilingTypes.SPECIAL_RESOLUTION: | ||
// navigate to Edit UI to resume this Special Resolution | ||
navigateFn = goToEditPage | ||
|
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.
Rename it to Filing URL
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 like this.