Skip to content

Conversation

@severinbeauvais
Copy link
Collaborator

@severinbeauvais severinbeauvais commented Jan 30, 2026

Issue #: bcgov/entity#31775

Description of changes:

  • app version = 4.15.0
  • added CSS overirdes for disabled buttons
  • added disabled computeds / props to various components
  • added Components enum
  • added disabledComponents to store + getter + action
  • added goodStanding to business interface
  • added isGoodStanding getter
  • added message box to alteration filing
  • disabled components conditionally in alteration filing
  • misc cleanup

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

@severinbeauvais severinbeauvais self-assigned this Jan 30, 2026
Copilot AI review requested due to automatic review settings January 30, 2026 19:22

This comment was marked as outdated.

- imported latest shared share-structure component
- added CSS overirdes for disabled buttons
- added disabled computeds / props to various components
- added Components enum
- added disabledComponents to store + getter + action
- added goodStanding to business interface + state init
- added isGoodStanding getter
- added message box to alteration filing
- disabled components conditionally in alteration filing
- misc cleanup
.theme--light.v-btn.v-btn--disabled.v-size--default .v-icon {
color: $app-blue !important;
opacity: 0.4;
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

This potentially affects all buttons in this app, so I tested thoroughly...

Example text buttons:
image

Example large buttons (not affected):
image

Another example:
image

Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

More examples:

Enabled:
image

Disabled (looks same as in Dev):
image

>
<CompanyProvisions
:provisionsRemoved="areProvisionsRemoved"
:disabled="disabled"
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

"Articles" is a top-level component (used in Alteration view). It passes this prop down to its sub-components.

Articles is also used by CorpCorrections but in that case, disabled is False by default.

This comment was marked as outdated.

/** Whether this component should be disabled. */
get disabled (): boolean {
return (this.getDisabledComponents.includes(Components.SHARE_STRUCTURES))
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As with Articles, this is a top-level component and passes this property down to its sub-component.

ENTITY_NAME,
NAME_TRANSLATION,
SHARE_STRUCTURES
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

I only implemented this for the alteration top-level components, minus BusinessContactInfo and FolioInformation. (RecognitionDateTime and OfficeAddresses are read-only.)

Ref:

image

Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

Example (regular user):
image

Some actions on this page are unavailable because this company is not in good standing. Bring the
business back into good standing to access all actions.
</article>
</MessageBox>
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

Eg,
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Eg,
image

color: white !important;
background-color: $app-blue !important;
opacity: 0.2;
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

Not needed -- the Change button look fine with the global CSS overrides and the other buttons are never disabled.

image

color: $app-blue !important;
opacity: 0.4;
}
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jan 30, 2026

Choose a reason for hiding this comment

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

Not needed -- the Change button look fine with the global CSS overrides and the other buttons are never disabled or only disabled when the component is expanded (which is blocked).

- added unit tests
@severinbeauvais
Copy link
Collaborator Author

/gcbrun

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 19 out of 20 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

small
color="primary"
class="more-actions-btn"
:disabled="disabled"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This isn't needed because user can't get here (they cannot click Change button, which would then display this drop-down menu).

businessInfo: {
legalName: 'MyLegalName',
legalType: 'BEN',
naicsCode: '100000'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NAICS only applies to firms.

"@bcrs-shared-components/nature-of-business": "1.2.4",
"@bcrs-shared-components/relationships-panel": "1.0.14",
"@bcrs-shared-components/share-structure": "2.2.48",
"@bcrs-shared-components/share-structure": "2.2.53",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

:addedDates="getNewResolutionDates"
:originalResolutions="getOriginalResolutions"
:isEditMode="true"
:disabled="disabled"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ResolutionDates is only used by Alteration.

export { default as EntityInfo } from './EntityInfo.vue'
export { default as ErrorContact } from './ErrorContact.vue'
export { default as HelpSection } from './HelpSection.vue'
export { default as MessageBox } from './MessageBox.vue'
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Feb 2, 2026

Choose a reason for hiding this comment

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

So it can be imported like this:

image


/** True if business is in good standing. */
isGoodStanding (): boolean {
return !!this.stateModel.businessInformation.goodStanding
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using !! just in case this prop isn't returned by API.

@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-edit-dev--pr-673-9xq7u4ii.web.app

@loneil
Copy link
Collaborator

loneil commented Feb 3, 2026

@severinbeauvais I bet this is unrelated to this PR, but just curious for the steps

"""
Try this correction (login as staff) - should be unaffected:
https://business-edit-dev--pr-673-9xq7u4ii.web.app/BC0888459/correction/?accountid=3040&businessid=BC0888459&correction-id=259401
https://dev.edit.business.bcregistry.gov.bc.ca/BC0888459/correction/?accountid=3040&businessid=BC0888459&correction-id=259401
"""

I hit that link (either one) after logging in with my IDIR.

I get

image

But then if I hit Return to dashboard I get an ask to save?
image

Copy link
Collaborator

@loneil loneil 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 I think

Image

question about unrelated (I think...) other error just to confirm though

@severinbeauvais
Copy link
Collaborator Author

I get

image

I think that's because we were both using the same business and I delete the draft correction filing.

@severinbeauvais severinbeauvais merged commit 1ad5e08 into bcgov:main Feb 3, 2026
14 of 15 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.

3 participants