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

24656 - Handle NoW Draft in ToDoList #118

Merged
merged 8 commits into from
Jan 14, 2025

Conversation

ArwenQin
Copy link
Contributor

*Issue:*bcgov/entity#24656

Description of changes:

  • Handle NoW Draft in ToDoList (Dashboard)
  • Can resume and delete now

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

@severinbeauvais
Copy link
Collaborator

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-118-9dk5tahd.web.app

@ArwenQin
Copy link
Contributor Author

test:
https://business-dashboard-dev--pr-118-9dk5tahd.web.app/BC0886180

@ArwenQin
Copy link
Contributor Author

image

@@ -10,8 +10,7 @@ VUE_APP_BUSINESSES_URL="https://dev.account.bcregistry.gov.bc.ca/"
VUE_APP_BCONLINE_URL="https://d1.bconline.gov.bc.ca/"
VUE_APP_BUSINESS_EDIT_URL="https://dev.edit.business.bcregistry.gov.bc.ca"
VUE_APP_BUSINESS_CREATE_URL="https://dev.create.business.bcregistry.gov.bc.ca"
# old dashboard
VUE_APP_DASHBOARD_URL="https://dev.business.bcregistry.gov.bc.ca/"
VUE_APP_BUSINESS_FILING_URL="https://dev.business.bcregistry.gov.bc.ca/"

Copy link
Contributor Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this.

package.json Outdated
@@ -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",
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you run pnpm i after this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

You may need to commit the lock file, too.

Copy link
Collaborator

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Just committed the lock file

Copy link
Collaborator

@severinbeauvais severinbeauvais Jan 14, 2025

Choose a reason for hiding this comment

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

This looks good, and so does the lock file. Resolving.

Copy link
Collaborator

Choose a reason for hiding this comment

The 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.

@@ -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()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed

Copy link
Collaborator

Choose a reason for hiding this comment

The 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.)

@severinbeauvais
Copy link
Collaborator

/gcbrun

@JazzarKarim
Copy link
Collaborator

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-118-9dk5tahd.web.app

@ArwenQin
Copy link
Contributor Author

updated the enum dependency, now working:
test:
https://business-dashboard-dev--pr-118-9dk5tahd.web.app/BC0886180

pnpm-lock.yaml Outdated Show resolved Hide resolved
@severinbeauvais
Copy link
Collaborator

I see some failed checks. (In the previous PR, these checks passed.) This may be related to the lockfile issue 🤷‍♂️

@ArwenQin
Copy link
Contributor Author

ArwenQin commented Jan 14, 2025

Tried to manually update the enum dependency version, but the checks failed again.
image

@severinbeauvais I will revert back to the old dependencies, like Patrick said
image

Is it ok to leave the enum dependency change now? Then the Resume will not work, until we update it.

Signed-off-by: Qin <[email protected]>
@ArwenQin
Copy link
Contributor Author

@patrickpeinanw Reverting the lock file back, all checks passed in my previous commit, but now it failed again. Do you know why or could you please re-run the failed test?

@meawong
Copy link
Collaborator

meawong commented Jan 14, 2025

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-118-9dk5tahd.web.app

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

I don't know who's going to merge first, but please update the app version.

@ArwenQin
Copy link
Contributor Author

ArwenQin commented Jan 14, 2025

I don't know who's going to merge first, but please update the app version.

Sure. Shall I update the enum version in package file and manually do it in lock file like this:
image

@severinbeauvais

@severinbeauvais
Copy link
Collaborator

Is it ok to leave the enum dependency change now? Then the Resume will not work, until we update it.

My hope is that Patrick approves the enum update and package lock change.

Arwen, you had one commit where you updated the enum and lock file. Did the unit tests pass?

@severinbeauvais
Copy link
Collaborator

Sure. Shall I update the enum version in package file and manually do it in lock file like this:

It depends on Patrick's expert opinion. It also depends on whether the unit tests pass with this change.

@ArwenQin
Copy link
Contributor Author

Sure. Shall I update the enum version in package file and manually do it in lock file like this:

It depends on Patrick's expert opinion. It also depends on whether the unit tests pass with this change.

No, all tests failed when updating the package and lock file

@severinbeauvais
Copy link
Collaborator

No, all tests failed when updating the package and lock file

Darn.

Well, do you want to update the unit tests in this PR or another one?

@ArwenQin
Copy link
Contributor Author

No, all tests failed when updating the package and lock file

Darn.

Well, do you want to update the unit tests in this PR or another one?

Just tried, seems not easy, better in a new PR

Signed-off-by: Qin <[email protected]>
@severinbeauvais
Copy link
Collaborator

Well, do you want to update the unit tests in this PR or another one?

Just tried, seems not easy, better in a new PR

OK, let's do that. I'll approve this PR in a minute. Try to get an approval from Patrick as well.

Copy link
Collaborator

@patrickpeinanw patrickpeinanw left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you for updating the naming for Filing UI. goToBusinessDashboard and dashboardOldUrl were confusing.

Feel free to update the dependency version if needed. I am Ok with doing it either here or in another PR.

Re the failing cypress test, such failure occurs sometimes, and it is not always the same one. Re-running the test would usually remove the error but this time we got no luck. It is a tech debt that has been bugging us for a long time.

@ArwenQin
Copy link
Contributor Author

@severinbeauvais could you please merge it? I don't have admin right.
I will create a new ticket to update the enum dependency and fix unit tests.
Thank you!

Copy link
Collaborator

@JazzarKarim JazzarKarim left a comment

Choose a reason for hiding this comment

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

👍 👍

@severinbeauvais severinbeauvais merged commit c5ecd47 into bcgov:main Jan 14, 2025
4 of 6 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.

6 participants