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

21297 - Business Tombstone updates #11

Merged
merged 22 commits into from
Jul 5, 2024
Merged

21297 - Business Tombstone updates #11

merged 22 commits into from
Jul 5, 2024

Conversation

hfekete
Copy link
Collaborator

@hfekete hfekete commented Jun 27, 2024

*Issue:21297 *bcgov/entity#21297

Description of changes:

  • updates for Business tombstone
  • added badges for historical, etc ...
  • added links
  • added statuses
  • added new store for filings

Missing:

  • staff comments
  • actual actions in the actions menu
  • name and status for temp business

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

@hfekete hfekete self-assigned this Jun 27, 2024
Copy link
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

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

Hey really nice work this is a lot of stuff you had to add, I've just some got minor comments. Also just needs some tests

.env.example Outdated Show resolved Hide resolved
}

/** Response object from LegalServices.fetchDocuments(). */
export interface FetchDocumentsI {
Copy link
Collaborator

Choose a reason for hiding this comment

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

These interfaces aren't being used here, do we need them? Also the comment should be updated since its referencing class api stuff

src/services/legal-s.ts Outdated Show resolved Hide resolved

const blob = await fetchDocuments(summaryDocument.link) // todo: show alert box on error
if (blob) {
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you use the 'download-file' util ? I think it is the same code. NOTE: downloadFile is used by director search as well

Copy link
Collaborator

Choose a reason for hiding this comment

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

sorry I remember you asked if we had something like this before haha

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, moved the code a bit, and used the util file to download and save it.

Comment on lines +51 to +57
export interface BusinessWarningI {
code: string // FUTURE: use an enum
filing?: string // not used
message: string
warningType: WarningTypesE
data?: any // optional extra properties (eg, amalgamationDate)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The WarningTypesE here and the WarningType in the warning-type-e.ts are not consistent. Maybe we can use WarningTypeE?

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 renamed and reorganized this, nice spotting it.
This happened as I introduced some of existing interfaces/enums from entities.

@hfekete
Copy link
Collaborator Author

hfekete commented Jul 4, 2024

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-11-6uggeve8.web.app

Copy link
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

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

Very nice work

src/interfaces/business-i.ts Outdated Show resolved Hide resolved
@hfekete
Copy link
Collaborator Author

hfekete commented Jul 5, 2024

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-11-6uggeve8.web.app

@hfekete hfekete merged commit eec45a3 into bcgov:main Jul 5, 2024
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.

4 participants