Open
Description
After meeting with severin we determined it would make sense to update the edit UI for a view only version of the page. Competent Authority's will only be opening 'alterations', but several other change filings share the same components so we will need to verify them / make sure our logic is not too specific to just 'alteration'.
Discussed using the 'allowable actions' which will depend on how we do #22030, to inform the below logic
Entity UI logic that needs to be updated for the change buttons shown in the 'alteration':
- business name: https://github.com/bcgov/business-edit-ui/blob/main/src/components/common/YourCompany/EntityName.vue#L150
- business type: https://github.com/bcgov/business-edit-ui/blob/main/src/components/common/YourCompany/ChangeBusinessType.vue#L380
- name translation: https://github.com/bcgov/business-edit-ui/blob/main/src/components/common/YourCompany/NameTranslations/NameTranslation.vue#L289
- recognition date: no changes
- office addresses: no changes (all change functionality is for other filing types)
- business contact info: https://github.com/bcgov/business-edit-ui/blob/main/src/components/common/YourCompany/BusinessContactInfo.vue#L7 has disableActions prop
- folio number: https://github.com/bcgov/business-edit-ui/blob/main/src/components/common/YourCompany/FolioInformation.vue#L8 has hideActions prop
- current directors: no changes
- share structure: https://github.com/bcgov/business-edit-ui/blob/main/src/views/Alteration.vue#L33 has isEditMode prop
- articles: https://github.com/bcgov/business-edit-ui/blob/main/src/components/Alteration/Articles/CompanyProvisions.vue#L36
Business Dashboard UI:
- alter logic for 'view and change business information' button in the business-dash to follow the same logic
Reacted by Séverin Beauvais
Activity
mstanton1 commentedon Jun 3, 2025
Pending discussion on when View Company Info page is upgraded to Nuxt. Can we put on hold please.
severinbeauvais commentedon Jun 3, 2025
Since this ticket was created, an architecture for "authorized actions" has been implemented in Edit UI. In a nutshell, all conditionals checking "is user staff?" have been replaced with "is user authorized to do this action?", where the list of authorized actions is selected according to the user's login (Keycloak) role.
Ref: 27921
Current role-permission mapping spreadsheet: link
The requirements in this ticket might be achievable by adding conditionals to components mapped to new authorized actions, as needed.
mstanton1 commentedon Jun 3, 2025
Great info, Sev. Thank you. We will hold on this, but when revisiting we can get the latest status and ensure the approach considers what is already in place.
[-]EDIT UI - View only business info[/-][+]Business Dashboard / Company Info Page - View only business info[/+]