Skip to content

feat(ui): removed registered office/attorney fields from strata hotel#1518

Merged
JazzarKarim merged 5 commits intobcgov:mainfrom
JazzarKarim:1082-remove-fields-strata
Apr 16, 2026
Merged

feat(ui): removed registered office/attorney fields from strata hotel#1518
JazzarKarim merged 5 commits intobcgov:mainfrom
JazzarKarim:1082-remove-fields-strata

Conversation

@JazzarKarim
Copy link
Copy Markdown
Collaborator

@JazzarKarim JazzarKarim commented Apr 9, 2026

Issue:

Description of changes:

  • Removed this component from step 2:
image

Now:
In step 2:
image

In step 4 (Review page):
Before:
image

After:
image

When view the strata hotel:
Before:
image

After:
image

We can ignore SC issue as a similar pattern is already used in all of the file...

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License

@JazzarKarim JazzarKarim self-assigned this Apr 9, 2026
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-1518-wrldhcmo.web.app

3 similar comments
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-1518-wrldhcmo.web.app

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-1518-wrldhcmo.web.app

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-1518-wrldhcmo.web.app

@JazzarKarim JazzarKarim marked this pull request as ready for review April 9, 2026 23:47
homeJurisdiction: bus.homeJurisdiction,
businessNumber: bus.businessNumber,
mailingAddress: formatAddress(bus.mailingAddress),
registeredOfficeOrAttorneyForServiceDetails: {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if this field is only used in select UIs, then can we not make this field optional instead of passing emtpy data?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point. Making it optional would be nice/better but there's a caveat. We would need to change that ApiBusinessDetails interface which is in the base layer. I'd rather not go there as that interface is used in a ton of other places so we'll need to be careful with that.

Copy link
Copy Markdown
Collaborator

@dimak1 dimak1 left a comment

Choose a reason for hiding this comment

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

Just few comments around cleanup. Related content also needs to be removed at some point.


const getBusinessSchema = () => {
return getBaseBusinessSchema().omit({
hasRegOffAtt: true,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are you omitting these for now, with intention to cleanup later?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm omitting here to avoid touching shared API types for now. I'm thinking a bigger cleanup for these shared schemas can be done later in a techdebt ticket.

Comment thread strr-strata-web/app/stores/strataApplication.ts
@JazzarKarim JazzarKarim force-pushed the 1082-remove-fields-strata branch from b1c3aa3 to 2a3d357 Compare April 14, 2026 23:12
@sonarqubecloud
Copy link
Copy Markdown

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-1518-wrldhcmo.web.app

@JazzarKarim
Copy link
Copy Markdown
Collaborator Author

@dimak1 @jimmypalelil Let me know if this looks good to you, thanks!

@dimak1
Copy link
Copy Markdown
Collaborator

dimak1 commented Apr 15, 2026

Looks good to me. Just need a new ticket for a more comprehensive tech debt cleanup. Thanks!

@JazzarKarim JazzarKarim merged commit 7b0ddb6 into bcgov:main Apr 16, 2026
14 checks passed
@dimak1 dimak1 mentioned this pull request Apr 23, 2026
2 tasks
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