Skip to content

Commit

Permalink
Incorporation Application UX Updates (#214)
Browse files Browse the repository at this point in the history
* ux Updates

* removed test code

* removed statment conditions

* Added safet check

* test updates
  • Loading branch information
cameron-eyds authored Jul 6, 2021
1 parent 82bad41 commit ea48ba6
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-create-ui",
"version": "2.0.2",
"version": "2.0.3",
"private": true,
"appName": "Create UI",
"sbcName": "SBC Common Components",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddPeopleAndRoles/PeopleAndRoles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
@click="addOrgPerson([{ roleType: RoleTypes.INCORPORATOR }], IncorporatorTypes.CORPORATION)"
>
<v-icon>mdi-domain-plus</v-icon>
<span v-if="entityFilter(CorpTypeCd.BENEFIT_COMPANY)">Add a Corporation or Firm</span>
<span v-if="entityFilter(CorpTypeCd.COOP)">Add Organization</span>
<span v-else>Add a Corporation or Firm</span>
</v-btn>
<v-btn
v-if="!hasRole(RoleTypes.COMPLETING_PARTY, 1, 'ATLEAST')"
Expand Down
2 changes: 1 addition & 1 deletion src/resources/benefitCompany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module
export const BenefitCompanyResource: ResourceIF = {
entityType: CorpTypeCd.BENEFIT_COMPANY,
displayName: GetCorpFullDescription(CorpTypeCd.BENEFIT_COMPANY),
title: 'Benefit Company Statement',
title: 'Benefit Company Statement:',
description: `This company is a benefit company and, as such, has purposes that include conducting its business
in a responsible and sustainable manner and promoting one or more public benefits.`,
statement: null,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/communityContributionCompany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module
export const CommunityContributionCompanyResource: ResourceIF = {
entityType: CorpTypeCd.BC_CCC,
displayName: GetCorpFullDescription(CorpTypeCd.BC_CCC),
title: 'Community Contribution Company Statement',
title: 'Community Contribution Company Statement:',
description: `This company is a community contribution company, and, as such, has purposes beneficial to society.
This company is restricted, in accordance with Part 2.2 of the BCA, in its ability to pay dividends and to
distribute its assets on dissolution or otherwise.`,
Expand Down
4 changes: 2 additions & 2 deletions src/resources/cooperative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module
export const CooperativeResource: ResourceIF = {
entityType: CorpTypeCd.COOP,
displayName: GetCorpFullDescription(CorpTypeCd.COOP),
title: null,
description: null,
title: 'title placeholder',
description: 'descriptor placeholder',
statement: null,
nameRequestType: null, // TBD
steps: [],
Expand Down
2 changes: 1 addition & 1 deletion src/resources/limitedCompany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module
export const LimitedCompanyResource: ResourceIF = {
entityType: CorpTypeCd.BC_COMPANY,
displayName: GetCorpFullDescription(CorpTypeCd.BC_COMPANY),
title: 'Limited Company Statement',
title: null,
description: null,
statement: null,
nameRequestType: NameRequestTypes.CR,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/unlimitedCompany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module
export const UnlimitedCompanyResource: ResourceIF = {
entityType: CorpTypeCd.BC_ULC_COMPANY,
displayName: GetCorpFullDescription(CorpTypeCd.BC_ULC_COMPANY),
title: 'Unlimited Company Statement',
title: 'Unlimited Liability Company Statement:',
description: `The shareholders of this company are jointly and severally liable to satisfy the debts and liabilities
of this company to the extent provided in section 51.3 of the Business Corporations Act.`,
statement: null,
Expand Down
4 changes: 2 additions & 2 deletions src/views/DefineCompany.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div>
<div class="mt-10 company-statement">
<p>
<span class="company-statement-label">{{ getCompanyResources.title }}:</span>
<p v-if="getCompanyResources.title">
<span class="company-statement-label">{{ getCompanyResources.title }}</span>
{{ getCompanyResources.description }}
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/DefineCompany.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ for (const mock of mockEntityInfo) {
expect(wrapper.find('#folio-number-header').text()).toContain('Folio / Reference Number (optional)')
})

it(`displays company statement`, () => {
itIf(mock.entityType !== 'BC')(`displays company statement`, () => {
expect(wrapper.find('.company-statement').exists()).toBe(true)
expect(wrapper.find('.company-statement p').text()).toContain(mock.description)

Expand Down

0 comments on commit ea48ba6

Please sign in to comment.