-
Notifications
You must be signed in to change notification settings - Fork 49
31775 Changes to support NIGS #673
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
Conversation
2b71b07 to
ed4ae4b
Compare
- 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
ed4ae4b to
a0fede3
Compare
| .theme--light.v-btn.v-btn--disabled.v-size--default .v-icon { | ||
| color: $app-blue !important; | ||
| opacity: 0.4; | ||
| } |
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.
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.
| > | ||
| <CompanyProvisions | ||
| :provisionsRemoved="areProvisionsRemoved" | ||
| :disabled="disabled" |
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.
"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.
| /** Whether this component should be disabled. */ | ||
| get disabled (): boolean { | ||
| return (this.getDisabledComponents.includes(Components.SHARE_STRUCTURES)) | ||
| } |
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.
As with Articles, this is a top-level component and passes this property down to its sub-component.
| ENTITY_NAME, | ||
| NAME_TRANSLATION, | ||
| SHARE_STRUCTURES | ||
| } |
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.
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.
| 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> |
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.
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.
| color: white !important; | ||
| background-color: $app-blue !important; | ||
| opacity: 0.2; | ||
| } |
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.
| color: $app-blue !important; | ||
| opacity: 0.4; | ||
| } | ||
| } |
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.
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
3740bdc to
e261794
Compare
|
/gcbrun |
|
Temporary Url for review: https://business-edit-dev--pr-673-9xq7u4ii.web.app SB says, try this alteration while NIGS (login as BCREG0020): SB says, try this alteration while in good standing: Try this correction (login as staff) - should be unaffected: |
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.
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" |
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.
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' |
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.
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", |
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.
| :addedDates="getNewResolutionDates" | ||
| :originalResolutions="getOriginalResolutions" | ||
| :isEditMode="true" | ||
| :disabled="disabled" |
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.
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' |
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.
|
|
||
| /** True if business is in good standing. */ | ||
| isGoodStanding (): boolean { | ||
| return !!this.stateModel.businessInformation.goodStanding |
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.
Using !! just in case this prop isn't returned by API.
|
/gcbrun |
|
Temporary Url for review: https://business-edit-dev--pr-673-9xq7u4ii.web.app |
|
@severinbeauvais I bet this is unrelated to this PR, but just curious for the steps """ I hit that link (either one) after logging in with my IDIR. I get
|
loneil
left a comment
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.















Issue #: bcgov/entity#31775
Description of changes:
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).