Skip to content

Commit

Permalink
18123 rebased legal name FB with main (#626)
Browse files Browse the repository at this point in the history
* 18027 AGM Location change (#551)

* 18027-agm location details 1

* 18027-agm location details 2

* 18027-agm location details 3

* 18027-update package version

* 18027-agm location details 4

* 18027-agm location details 5

* 18027-agm location details 6

* 18027-agm location details 7

* 18027-agm location details 8

* 18027-agm location details 9

* AGM Location Change First PR (#553)

* AGM Location Change First PR

* small adjustment

* small fixes in response to Sev's comments

* Fixed in response to Sev's comments

* AGM Location Change second PR (#554)

* AGM Location Change second PR

* Fixed unit tests

* fixed in response to Sev's comments

* fixed error text

* AGM Location Change Third PR (#555)

* Created + updated unit tests

* Fixed EntityMenu test from ticket part 1

* Fixed lint errors

* Fixes in response to Sev's comments

* fixed lint issues

* Fixed in reponse to Sev's comments

* removed unnecessary test code

* AGM Location Change 4th and final PR (#556)

* AGM Location Change 4th and final PR

* changed method name

* changed comment

* fixed lint error

* removed unnecessary line

* Fix in response to Sev's comment

* Fixed in response to Sev's comment + simplified logic

* Removed staff payment dialog

* update agm location variable

* AGM Location Change 5th PR for styling issues (#559)

* AGM Location Change 5th PR for styling issues

* fixed left spacing of ripple

* fixed small lint issue

* fixed in response to Sev's comments

* Pre-populate the certify block when logged in user is not staff

* Moved user's full name to store to minimize API calls

* Fixed in response to Sev's comments

* Added optional chaining

* 16764 - Fixed end user certify block

* Reverted currentuser interface + fixed accordingly

* Prevent from showing undefined in certified block

* Prevented undefined from showing in certify block in agm location change

* 18024 Incremental AGM extension work (#558)

- app version = 6.9.5
- imported shared DatePicker component
- renamed a base class
- added a base class
- saved user info into store
- added initial AboutTheBusiness sub-component
- added initial AgmExtensionEvaluation sub-component
- added AgmExtensionHelp sub-component
- added initial ExtensionRequest sub-component
- added VcardTemplate
- updated tooltip text
- updated FF
- added AgmExtEval interface
- renamed RootStateIF -> AuthenticationStateIF
- renamed StateIF -> RootStateIF
- added DateMixin function for DatePicker component
- updated fetchUserInfo to return object (not Axios response)
- added missing default FF
- deleted obsolete dialog, transition, buttons, methods, CSS from AGM Extension
- added help section
- added initial sub-components to AGM Extension
- updated intro text
- updated some whitespace
- updated filing code
- removed delay in mounted() in AGM Extension
- updated onHaveChanges() watcher in AGM Extension
- pre-populated CertifiedBy
- deleted obsolete transition, methods, CSS from AGM Extension
- removed delay in mounted() in AGM Location Chg
- updated onHaveChanges() watcher in AGM Location Chg
- updated unit tests
- misc cleanup

* Make Certify block non-editable if non-staff user (AGM Filings) (#564)

Make certify block non-editable if non-staff user

* feat: digital business card (#566)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18284: digital business card (#552)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: cleanup spelling and handle edge cases

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: failing tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu logic

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18284 Updated CSP (#561)

- added wss://*.gov.bc.ca to connect-src

* refactor: remove websocket support in favour of interval polling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove console log

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address PR comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove unused import

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: build and test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: digital business card (#562)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: cleanup spelling and handle edge cases

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: failing tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu logic

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: remove websocket support in favour of interval polling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove console log

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address PR comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove unused import

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: build and test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* Update EntityMenu.spec.ts

* chore: remove web socket references

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>
Co-authored-by: Séverin Beauvais <severinbeauvais@users.noreply.github.com>

* 18161 Updated in response to UXA notes (#567)

* Updated in response to UXA notes

* package version update after rebasing

* 16733 undefined placeholder for federal (#569)

* For PR. Added Federal keyword

* Restored changes

* For PR. Added federal placeholder

* Updated package.json

* Fixed eslindt errors

* Restored space for separation of function

* 18024 Incremental AGM Extension changes (#568)

- app version = 7.0.3
- removed obsolete dialogs + code
- stopped watching changes to certify data
- indent cleanup
- added initial message box + CSS
- app version = 7.0.2
- added NotEligibleExtension dialog
- removed waiveFees=true from AGM Extension
- removed waiveFees=true from AGM Location Chg
- added some unit test suites
- worked on unit tests
- misc cleanup
- used allowable actions value from Legal API
- show alert on error starting app
- fixed some comments
- added showErrors prop to ExtensionRequest component

* 18272 Add unit test for AboutTheBusiness component (#570)

* Add unit test for AboutTheBusiness

* Update AboutTheBusiness tests

* Incorporate Sev's test for AboutTheBusiness

* Check long string date in test

* 17917 Added placeholder for null values (#572)

Updated Version

* 18024 Incremental AGM Extension changes (#571)

* - app version = 7.0.6

- updated ExtensionRequest validation styling

- misc small fixes
- updated unit tests

- added isEligible to interface
- show dialog if not eligible
- expanded unit tests

* wip

* 18513 Fixed jerky expandable help transition (#576)

- app version = 7.0.7
- imported latest ExpandableHelp component (to fix jerky transition)

* Extension Request Scenario 1 (#577)

* Extension Request Scenario 1

* Lots of updates after rebasing

* package version update after rebasing

* cleanup

* Fixed unit test

* Updated in response to Sev's PR comments

* Removed fallback logic from subtractDates in dateutilities

* lint fix

* 17159 Update fetchNameRequest (#579)

update fetchNameRequest

* 18273 Extension Request Scenario 2 (#580)

* Extension Request Scenario 2

* Fix lint issue

* Fix min expiry date

* Restore comment on isFirstAgm

* Move currentDate to data object

* Fix agm year not clearing on firstAgm change

* Update watcher comment

* Update version to 7.0.10 and fix unit tests

* 18469 Capitalize AGM in output titles (#581)

- app version = 7.0.11
- added missing cases for AGM filings
- added special case to convert "Agm" to "AGM"
- fixed a lint warning

* 18274 Updated To Do List and Recent Filing History (#584)

* - app version = 7.0.12

* - added AGM Extension as a filing in Filing History List
- added AGM Extension as cancellable Todo Item
- added AGM Extension filing component
- fixed wrong enum in Entity Menu
- added AGM Extension to Enum Utilities
- fixed misc type warnings

* - added agmExtension fields to ApiFilingIF
- updated AGM Extension filing JSON per schema

* - fixed unit test

* - added FHL unit tests

* 18369 changed the duration of extension messages in accordance with U… (#582)

* 18369 changed the duration of extension messages in accordance with UX design

* fixed tests for new evaluation messages.

* fixed date getters and added expiry date

* fixed getters and fixed typo

* fixed reactive expiry date

* update package json

* 18204 disable restore based on ff (#583)

* For PR added FF parameters

* Fixed && added test cases for historical

* Updated package version

* chore: update content and images (#586)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18284: digital business card (#552)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: cleanup spelling and handle edge cases

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: failing tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu logic

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18284 Updated CSP (#561)

- added wss://*.gov.bc.ca to connect-src

* refactor: remove websocket support in favour of interval polling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove console log

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address PR comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove unused import

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: build and test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: digital business card (#562)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: cleanup spelling and handle edge cases

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: failing tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu logic

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: remove websocket support in favour of interval polling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove console log

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address PR comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove unused import

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: build and test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* Update EntityMenu.spec.ts

* chore: remove web socket references

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix spacing

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: some cleanup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: credential detailed instructions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: add tags to components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: minor content updates

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update package version

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>
Co-authored-by: Séverin Beauvais <severinbeauvais@users.noreply.github.com>

* fix: DBC feature should be available for historical companies (#587)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18284: digital business card (#552)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: cleanup spelling and handle edge cases

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: failing tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu logic

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18284 Updated CSP (#561)

- added wss://*.gov.bc.ca to connect-src

* refactor: remove websocket support in favour of interval polling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove console log

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address PR comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove unused import

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: build and test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: digital business card (#562)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: returl null if undefined

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: beef up conditional checks

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: spelling error

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: cleanup spelling and handle edge cases

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: failing tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu logic

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: remove websocket support in favour of interval polling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove console log

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address PR comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: remove unused import

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: build and test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* Update EntityMenu.spec.ts

* chore: remove web socket references

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix spacing

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: some cleanup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: credential detailed instructions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: add tags to components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: minor content updates

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update package version

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: DBC feature should be available for historical organization

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: move logic into getter

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: DBC feature should only be available to BCSC user

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update package version

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update package lock file

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>
Co-authored-by: Séverin Beauvais <severinbeauvais@users.noreply.github.com>

* 18273+18558 Extension Request Cleanup and Tests (#585)

* Restore comment on isFirstAgm

* Extension Request Cleanup and Tests

* Update comment

* Use isFirstAgm from data for validity

* Remove debugging code

* Fix initial state on agm extension evaluation

* Fix typo

* Set missing values for EmptyAgmExtEval

* Add better validation for AGM extension request

* Prevent future year for agm year

* Update version to 7.0.17

* Fix some of the unit tests

* Removed impossible test scenario

* Add overflow-auto class

* Update date-picker version to 1.2.38

* Remove optional from agm extension interface

* Remove console.log

* 18024 - Fixed AGM Extensions in TODO List (#591)

* 18273+18558 Update Extension Request component UI (#592)

* Extension Request Cleanup and Tests

* Remove debugging code

* Remove optional from agm extension interface

* Remove console.log

* Update Extension Request component UI

* 18534 Changes to support amalgamation applications (#590)

* - app version = 7.0.20
- updated some shared imports
- added amalgamation as supported filing type
- added amalgamation template to Filing History List
- added amalgamation application to Todo List
- added amalgamation sub-types to enum
- added amalgamation to API Filing interface
- added amalgamation to Task Todo interface
- added an enum mixin method
- added enum utilities methods
- updated filingTypeToName()
- replaced overly complex "currentFilingStatus" with filing id check
- refactored entityStatus to identify the application type (amal/IA/reg)
- updated unit tests

* - applied fix for #18736

* - added displayName to draft app code
- used displayName in TodoList.vue
- used displayName in EntityHeader.vue

* - added check for amalgamation type

* 18024 Finish AGM Extension UI implementation  (#594)

* Fix AGM extension api payload

* Update version to 7.0.21

* Fix unit test

* feat: digital credentials gate (#595)

* feat: gate digital credentials from API

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump package version

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* 18534 Amalg unit tests + small fixes + more typing (#596)

* - app version = 7.0.23
- enabled strict typing
- misc small fixes/cleanup
- fixed filed IA blurb
- added amalgamation allowable action
- added unit tests
- added some typing to unit tests

* wip

* 18782 fix error in wrong agm due date (#598)

fix error in wrong agm due date

* 17869 - Adding CFS account number BUSINESS-FILINGS-UI (#565)

* 17869 - Adding CFS account number BUSINESS-FILINGS-UI

Signed-off-by: AbrahamRostampoor <Mohammadebrahim.Rostampoor@gov.bc.ca>

* cfs Update

* Latest Updates

* Formatting

* Updated package.json and package-lock.json version number

---------

Signed-off-by: AbrahamRostampoor <Mohammadebrahim.Rostampoor@gov.bc.ca>

* 18833 agm ext calc (#599)

* 18833-AGM-extension-calculation

* Updated package.json

* Added getter that takes argument for AGM year. Working test case for getTotalAgmExtension method

* 18805+18979 Amalgamate Button + Moved to amalgamationApplication + Selection Panel (#600)

* Implemented Amalgamate button + changed amalgamation to amalgamationApplication

* Implemented Amalgamation Selection Panel

* Updated package version after rebase

* Added safe value + deleted unnecessary comment

* Updated in response to Sev's comments

* another small update in response to Sev's comment

* missing import

* small updates in response to Sev's comment

* removed unused imports

* changed disabled condition

* Create draft amalgamation + redirect + misc. fixes/updates (#601)

* Create draft amalgamation + redirect + misc. fixes/updates

* Fixed comments

* Fixed in response to Sev's comments + added unit tests

* fixed typos

* Updated Amalgamation Selection in response to UXA notes (#602)

* Updated in response to Yui's observations

* Updated in response to Sev's comments

* 19005 Implemented historical - amalgamation reason text (#604)

- app version = 7.0.30
- updated some code comments
- added AmalgamatedInto interface object
- added enum mixin and utility functions
- added some business store getters
- refactored getReasonText() and added case for amalgamation
- cast some parameters to pre-empt code errors
- added/updated unit tests

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 16967 Admin Freeze should not show on ledger (#603)

* hide admin_freeze filing

* update feature

* fix small

* fix lint issue

* update feature

* update test and app version

* fix lint issue

* update app version

* 16967 Set missing `displayLedger` property for draft apps (#605)

- app version = 7.0.32
- set missing draft app property
- updated some interface comments

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19190 Fixed "return to MBR" issues (#607)

- app version = 7.0.33
- only show "return to MBR" for temp amalgamations
- only show "return to MBR" for temp incorporation applications
- only show "return to MBR" for temp registrations

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19291 Implemented "future effective amalgamation" alert (#608)

* - app version = 7.0.34
- moved some "unknown" from script to template
- added amalgamation alert component
- added optional data object to business warnings interface
- added getter for future effective amalgamation warning
- added alert to dashboard
- fixed some route type errors
- added test suite
- updated unit tests

* - updated [Unknown] -> [unknown]

---------

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* Added amalgamation FF check (#610)

* Added amalgamation FF check

* Fixed unit tests

* typo

* 19209 Pre-populate TING business + error handling (#609)

- app version = 7.0.36
- fixed some getLegalType types
- added generic Technical Error Dialog (per Yui)
- added amalgamation enums
- refactored Legal Service function for better result and error handling
- added dialog to Amalgamation Selection component
- refactored Amalgamation Selection for error handling and to pre-populate TING business
- added test suite for new dialog

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19204 Fixed whitespace between sub-title and body (#612)

- app version = 7.0.37
- removed min-height (which simulated padding when it's a single line)
- added top margin (whitespace whether it's a single or wrapped line)
- added top padding to body for all filings

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* Bump vite from 4.3.9 to 4.5.2 (#613)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.9 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 19085 - enable horizontal and vertical amalgamation launch (#614)

* 19085-enable horizontal and vertical amal

* 19085-update package version

* 19085-fix lint issues

* 19085-add comments

* 19085-updates based on review

* Update .eslintrc.js

- added eslint rule

* 19038 - unit tests for short form amalgamations (#616)

* 19038 - add unit tests for short form

* 19038 - more tests for short form amalgamations

* 19038 - update package version

* 19038 - fix lint issues

* 19038 - more unit tests

* 19038 - fix lint warning

* 19038 - fix unit test

* 19038 - revert fix

* 19038 - updates based on review

* 19038 - add comment

* Added correctNameOption to draft filing. (#617)

* Added correctNameOption to draft filing.

* Added legalName to amalgamationApplication.nameRequest

* Added correct route to short-form and regular amalgamation

* Updated enums to v1.1.7

* 19047 Updated unit tests (#618)

- app version = 7.0.41
- added tests to check alerts
- added test to check historical badge and reason for amalgamation
- fixed involuntary dissolution test
- misc cleanup

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19781 Updated draft amalgamation task/filing display name (#620)

* - app version = 7.0.42
- refactored aboutText into aboutApp and aboutSbc
- added special cases for displaying draft amalgamation task/filing name
- now display aboutApp in console
- updated filingTypeToName()
- updated unit tests

* - deleted local font preload

---------

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19714-ff-put-back-on (#621)

* 19714-ff-put-back-on

* 19714-ff-put-back-on

* Rebased. Fixed indentations, restored unit tests

* Updated allowable actions

* Fixed typo and restored united test menu item

* Restored order for menu items

* Restored whitespaces

* 19823 and 19843 - added support for amalg correction + preset numbered option for reg amalg (#622)

- app version = 7.0.44
- added conditional disable for amalgamation correction
- redirect to Edit UI for amalgamation correction
- cleaned up AmalgamationSelection.vue
- pre-set numbered option for regular amalgamation draft
- updated (but did not fix) unit test

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19823 Revert pre-set numbered option for regular amalgamation (#623)

- app version = 7.0.45
- removed numbered option for non-short-form (ie, regular) amalgamation

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 19921 Update LegalObligation logic (#625)

- app version = 7.0.46
- don't show LegalObligation if business is not Active
- show LegalObligation for new business
- updated unit tests

Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>

* 15600 display correct name for SP/GP (#548)

* 15600 display correct name for SP/GP

* Updated package.json

* Fixed ES lindt errors

* Updated for PR. Removed operatingName object

* Updated to use getEntityName

* Added  operatingName as a new store property

* Updated EntityHeader.spec to pass test.

* Added unit test

* Added changes for PR

* For PR. Removed operatingName property

* Removed trailing spaces

* Updated for PR - Added test cases

* Changed to valid business ID

* 19034 rebase legal name branch (#615)

* 17347 - Move COA and COD corrections for COOPS into the generic correction wo… (#549)

Move COA and COD corrections for COOPS into the generic correction workflow.

* 17347 - Add in isCoop check for resume button. (#550)

* Add in isCoop check for resume button.

* Fix code complexity issues

* Fix code complexity

* 18027 AGM Location change (#551)

* 18027-agm location details 1

* 18027-agm location details 2

* 18027-agm location details 3

* 18027-update package version

* 18027-agm location details 4

* 18027-agm location details 5

* 18027-agm location details 6

* 18027-agm location details 7

* 18027-agm location details 8

* 18027-agm location details 9

* AGM Location Change First PR (#553)

* AGM Location Change First PR

* small adjustment

* small fixes in response to Sev's comments

* Fixed in response to Sev's comments

* AGM Location Change second PR (#554)

* AGM Location Change second PR

* Fixed unit tests

* fixed in response to Sev's comments

* fixed error text

* AGM Location Change Third PR (#555)

* Created + updated unit tests

* Fixed EntityMenu test from ticket part 1

* Fixed lint errors

* Fixes in response to Sev's comments

* fixed lint issues

* Fixed in reponse to Sev's comments

* removed unnecessary test code

* AGM Location Change 4th and final PR (#556)

* AGM Location Change 4th and final PR

* changed method name

* changed comment

* fixed lint error

* removed unnecessary line

* Fix in response to Sev's comment

* Fixed in response to Sev's comment + simplified logic

* Removed staff payment dialog

* update agm location variable

* AGM Location Change 5th PR for styling issues (#559)

* AGM Location Change 5th PR for styling issues

* fixed left spacing of ripple

* fixed small lint issue

* fixed in response to Sev's comments

* Pre-populate the certify block when logged in user is not staff

* Moved user's full name to store to minimize API calls

* Fixed in response to Sev's comments

* Added optional chaining

* 16764 - Fixed end user certify block

* Reverted currentuser interface + fixed accordingly

* Prevent from showing undefined in certified block

* Prevented undefined from showing in certify block in agm location change

* 18024 Incremental AGM extension work (#558)

- app version = 6.9.5
- imported shared DatePicker component
- renamed a base class
- added a base class
- saved user info into store
- added initial AboutTheBusiness sub-component
- added initial AgmExtensionEvaluation sub-component
- added AgmExtensionHelp sub-component
- added initial ExtensionRequest sub-component
- added VcardTemplate
- updated tooltip text
- updated FF
- added AgmExtEval interface
- renamed RootStateIF -> AuthenticationStateIF
- renamed StateIF -> RootStateIF
- added DateMixin function for DatePicker component
- updated fetchUserInfo to return object (not Axios response)
- added missing default FF
- deleted obsolete dialog, transition, buttons, methods, CSS from AGM Extension
- added help section
- added initial sub-components to AGM Extension
- updated intro text
- updated some whitespace
- updated filing code
- removed delay in mounted() in AGM Extension
- updated onHaveChanges() watcher in AGM Extension
- pre-populated CertifiedBy
- deleted obsolete transition, methods, CSS from AGM Extension
- removed delay in mounted() in AGM Location Chg
- updated onHaveChanges() watcher in AGM Location Chg
- updated unit tests
- misc cleanup

* Make Certify block non-editable if non-staff user (AGM Filings) (#564)

Make certify block non-editable if non-staff user

* feat: digital business card (#566)

* refactor: CredentialsLanding component: add heading card

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add supplemental cards

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: add image and word wrapping

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsLanding component: link styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: CredentialsStepper component: deprecate routes

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: CredentialsStepper component: function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: split into sub components

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add web socket component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: re-add credential table

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: DigitalCredentials component: update types and imports

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add revocation dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: DigitalCredentials component: add replacement dialogs

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: devcontainer config

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: bump version number

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: rename route for specificity

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ran linter and fixed linting errors

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: make interface field optional

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert auto-formatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: contain dialogs for DigitalCredentials component

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix code smells

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: revert autoformatting

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: update wording and styling to align with UX

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: feature flag credentials feature with mixin

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add TOU dialog

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: fix test failiures and code comments

* chore: cleaup

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: mixin to access digital credential feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: entity menu styling

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: add loading indicators to digital credential route pages

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: reset dialog and functions

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: ret…
  • Loading branch information
14 people committed Feb 26, 2024
1 parent 46386ca commit fa60b53
Show file tree
Hide file tree
Showing 30 changed files with 1,320 additions and 137 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': ['warn', { code: 120 }],
'vue/attribute-hyphenation': 'off',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'vue/multi-word-component-names': 'off',
'vue/no-deprecated-filter': 'warn',
'vue/no-deprecated-slot-scope-attribute': 'warn',
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<title>BC Business Registry</title>
<link rel="icon" href="dummy-not-used-do-not-remove">
<link rel="icon" href="/favicon.png">
<link rel="preload" href="/fonts/materialdesignicons-webfont.927457ed.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/css/addresscomplete-2.30.min.css">
<script type="text/javascript" src="/js/addresscomplete-2.30.min.js" defer></script>
</head>
Expand Down
27 changes: 13 additions & 14 deletions 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
Expand Up @@ -21,7 +21,7 @@
"@bcrs-shared-components/court-order-poa": "2.1.4",
"@bcrs-shared-components/date-picker": "1.2.39",
"@bcrs-shared-components/document-delivery": "1.2.1",
"@bcrs-shared-components/enums": "1.1.4",
"@bcrs-shared-components/enums": "1.1.7",
"@bcrs-shared-components/expandable-help": "1.0.1",
"@bcrs-shared-components/folio-number-input": "1.1.18",
"@bcrs-shared-components/interfaces": "1.1.2",
Expand Down
13 changes: 10 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ export default {
/** The About text. */
aboutText (): string {
return import.meta.env.ABOUT_TEXT
const aboutApp = import.meta.env.ABOUT_APP
const aboutSbc = import.meta.env.ABOUT_SBC
return `${aboutApp}<br>${aboutSbc}`
},
/** Get banner text. */
Expand Down Expand Up @@ -720,7 +722,9 @@ export default {
const filingName = EnumUtilities.filingTypeToName(header.name, null, data.type)
// save display name for later
filing.displayName = `${description}${dba}${filingName}`
filing.displayName = EnumUtilities.isTypeAmalgamation(header)
? filingName
: `${description}${dba}${filingName}`
// add this as a task item
const taskItem: ApiTaskIF = {
Expand All @@ -746,6 +750,9 @@ export default {
const description = GetCorpFullDescription(data.nameRequest.legalType)
const filingName = EnumUtilities.filingTypeToName(header.name, null, data.type)
const displayName = EnumUtilities.isTypeAmalgamation(header)
? filingName
: `${description} ${filingName}`
// add this as a filing item
const filingItem = {
Expand All @@ -754,7 +761,7 @@ export default {
commentsCount: application.commentsCount,
commentsLink: application.commentsLink,
displayLedger: application.displayLedger,
displayName: `${description} ${filingName}`,
displayName,
documentsLink: application.documentsLink,
effectiveDate: this.apiToUtcString(header.effectiveDate),
filingId: header.filingId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
</div>
</v-expansion-panel-header>

<v-expansion-panel-content class="pt-5">
<v-expansion-panel-content
eager
class="pt-5"
>
<slot name="body">
<!-- is this a generic paid (not yet completed) filing? -->
<div
Expand Down
7 changes: 4 additions & 3 deletions src/components/Dashboard/FilingHistoryList/HeaderActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export default class HeaderActions extends Mixins(AllowableActionsMixin) {
conditions[3] = () => (EnumUtilities.isTypeIncorporationApplication(this.filing) &&
!this.isBenBcCccUlc && !this.isCoop)
conditions[4] = () => (EnumUtilities.isTypeChangeOfRegistration(this.filing) && !this.isFirm)
conditions[5] = () => (EnumUtilities.isTypeCorrection(this.filing) &&
!this.isFirm && !this.isBenBcCccUlc &&
!this.isCoop)
conditions[5] = () => (EnumUtilities.isTypeCorrection(this.filing) && !this.isFirm &&
!this.isBenBcCccUlc && !this.isCoop)
conditions[6] = () => (EnumUtilities.isTypeRegistration(this.filing) && !this.isFirm)
conditions[7] = () => (EnumUtilities.isTypeAmalgamation(this.filing) && !this.isBenBcCccUlc)
// check if any condition is True
return conditions.some(condition => condition())
Expand All @@ -142,6 +142,7 @@ export default class HeaderActions extends Mixins(AllowableActionsMixin) {
// see also TodoList.vue:doResumeFiling()
switch (filing?.name) {
case FilingTypes.ALTERATION:
case FilingTypes.AMALGAMATION_APPLICATION:
case FilingTypes.CHANGE_OF_REGISTRATION:
case FilingTypes.CORRECTION:
case FilingTypes.INCORPORATION_APPLICATION:
Expand Down
13 changes: 10 additions & 3 deletions src/components/Dashboard/LegalObligation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,29 @@
</template>

<script lang="ts">
import { Component, Mixins } from 'vue-property-decorator'
import { Component, Mixins, Watch } from 'vue-property-decorator'
import { Getter } from 'pinia-class'
import ResourceLookupMixin from '@/mixins/resource-lookup-mixin'
import { useRootStore } from '@/stores'
import { useBusinessStore, useRootStore } from '@/stores'
@Component({})
export default class LegalObligation extends Mixins(ResourceLookupMixin) {
@Getter(useBusinessStore) isActive!: boolean
@Getter(useRootStore) isBusinessWithNoMaintenanceFilings!: boolean
readMoreFlag = false
showLegalObligation = true
showLegalObligation = null as boolean
/** Whether this entity is a business (and not a temporary registration). */
get isBusiness (): boolean {
return !!sessionStorage.getItem('BUSINESS_ID')
}
/** Sets initial value of showLegalObligation (and any changes). */
@Watch('isActive', { immediate: true })
onIsActiveChanged () {
this.showLegalObligation = this.isActive
}
}
</script>

Expand Down
3 changes: 2 additions & 1 deletion src/enums/amalgamationEnums.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum AmlRoles {
AMALGAMATING = 'amalgamating',
HOLDING = 'holding'
HOLDING = 'holding',
PRIMARY = 'primary'
}

export enum AmlTypes {
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ async function start () {
const router = getVueRouter()

// start Vue application
console.info('Starting app...') // eslint-disable-line no-console
const aboutApp = import.meta.env.ABOUT_APP
console.info(`Starting ${aboutApp}...`) // eslint-disable-line no-console
new Vue({
vuetify: new Vuetify({
iconfont: 'mdi',
Expand Down
7 changes: 4 additions & 3 deletions src/mixins/allowable-actions-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,17 @@ export default class AllowableActionsMixin extends Vue {

case AllowableActions.LIMITED_RESTORATION_EXTENSION: {
return !!GetFeatureFlag('supported-restoration-entities')?.includes(this.getLegalType) &&
this.isAllowedFiling(FilingTypes.RESTORATION, FilingSubTypes.LIMITED_RESTORATION_EXTENSION)
this.isAllowedFiling(FilingTypes.RESTORATION, FilingSubTypes.LIMITED_RESTORATION_EXTENSION)
}

case AllowableActions.LIMITED_RESTORATION_TO_FULL: {
return !!GetFeatureFlag('supported-restoration-entities')?.includes(this.getLegalType) &&
this.isAllowedFiling(FilingTypes.RESTORATION, FilingSubTypes.LIMITED_RESTORATION_TO_FULL)
this.isAllowedFiling(FilingTypes.RESTORATION, FilingSubTypes.LIMITED_RESTORATION_TO_FULL)
}

case AllowableActions.PUT_BACK_ON: {
return this.isAllowedFiling(FilingTypes.PUT_BACK_ON)
return this.isAllowedFiling(FilingTypes.PUT_BACK_ON) &&
!!GetFeatureFlag('supported-put-back-on-entities')?.includes(this.getLegalType)
}

case AllowableActions.RECORD_CONVERSION: {
Expand Down
6 changes: 3 additions & 3 deletions src/services/enum-utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ export default class EnumUtilities {
case FilingTypes.ALTERATION: return FilingNames.ALTERATION
case FilingTypes.AMALGAMATION_APPLICATION:
if (subType === FilingSubTypes.AMALGAMATION_HORIZONTAL) {
return `${FilingNames.AMALGAMATION_APPLICATION} - Horizontal`
return `${FilingNames.AMALGAMATION_APPLICATION} Short-form (Horizontal)`
}
if (subType === FilingSubTypes.AMALGAMATION_REGULAR) {
return `${FilingNames.AMALGAMATION_APPLICATION} - Regular`
return `${FilingNames.AMALGAMATION_APPLICATION} (Regular)`
}
if (subType === FilingSubTypes.AMALGAMATION_VERTICAL) {
return `${FilingNames.AMALGAMATION_APPLICATION} - Vertical`
return `${FilingNames.AMALGAMATION_APPLICATION} Short-form (Vertical)`
}
return FilingNames.AMALGAMATION_APPLICATION
case FilingTypes.ANNUAL_REPORT: return FilingNames.ANNUAL_REPORT + (agmYear ? ` (${agmYear})` : '')
Expand Down
5 changes: 3 additions & 2 deletions src/stores/rootStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,16 @@ export const useRootStore = defineStore('root', {

/**
* This is used to show Legal Obligations only for a new business
* that has no tasks and hasn't filed anything yet (except their IA).
* that has no tasks and hasn't filed anything yet (except their application).
**/
isBusinessWithNoMaintenanceFilings (state: RootStateIF): boolean {
const filingHistoryListStore = useFilingHistoryListStore()
return (
// no todo items
(state.tasks.length === 0) &&
// only the IA or Registraion filing history item
// only the Amalgamation or IA or Registration filing history item
(filingHistoryListStore.getFilings.length === 1) && (
EnumUtilities.isTypeAmalgamation(filingHistoryListStore.getFilings[0]) ||
EnumUtilities.isTypeIncorporationApplication(filingHistoryListStore.getFilings[0]) ||
EnumUtilities.isTypeRegistration(filingHistoryListStore.getFilings[0])
)
Expand Down
1 change: 1 addition & 0 deletions src/utils/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const defaultFlagSet: LDFlagSet = {
'supported-consent-continuation-out-entities': [],
'supported-agm-extension-entities': [],
'supported-agm-location-chg-entities': [],
'supported-put-back-on-entities': [],
'supported-restoration-entities': []
}

Expand Down
Loading

0 comments on commit fa60b53

Please sign in to comment.