Skip to content

Merge feature-business-layer branch into main - #343

Closed
deetz99 wants to merge 83 commits into
mainfrom
feature-business-layer
Closed

Merge feature-business-layer branch into main#343
deetz99 wants to merge 83 commits into
mainfrom
feature-business-layer

Conversation

@deetz99

@deetz99 deetz99 commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator

Issue #: bcgov/entity#31285

Description of changes:

  • title

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

deetz99 and others added 30 commits August 26, 2025 11:44
* init changesets

* add changeset config, change business layer to be under connect org for now
* minimal change to base and person roles to get new layers working

* add changeset
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add eslint to root of workspace

* remove eslint from nuxt config in person roles
* create shared pw and vitest configs

* add changeset

* fix

* cleanup

* fix lint ignore
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* init base layer CI

* update env.example

* fix

* add changeset

* add paths filter to changesets workflow
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* remove old checkbox group components

* use address component from forms layer

* use address complete from forms layer

* remove unused utils/tests

* update address interface

* switch formfield input elements for connect

* switch to connect form structure els

* update css to use new vars

* switch to formlayout

* switch to button control from forms

* switch to pay widget/store from pay layer

* remove unneeded zod schemas

* cleanup app config

* update legal api definition

* update vaults env names

* add changeset
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* move business types, plugins, composables, tests, etc to business layer

* fix deps

* move business tombstone and filing layout to layer

* cleanup i18n

* update padding on layout

* cleanup error modal

* only fetch fees if business defined

* update error modal

* refactor modals

* add changeset

* fix lint

* revert accidental change in prta directory
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* update layer versions

* refactor to use tombstone from connect base layer

* move auth info fetch to business api composable, define plugin types as they arent being inferred correctly

* add changeset

* add test for filing tombstone composable

* remove auth user state in e2e test

* fix test
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* form validation e2e tests

* add officer tests

* edit person tests

* refactor test helpers for form validation and add officer flows

* refactor edit officer flow

* task guard tests

* task guard tests

* draft filing tests

* page init errors tests

* remove wait for network idle

* update person-roles ci

* update tests to pass for CI

* fix for firefox

* fix flaky tests, exclude mobile

* remove commented line in pw config

* fix env name, add changesets

* bump version

* switch to config.playwright check instead of config.ci in auth middleware

* fix country select handling

* minor fix

* increase timeout in pw setup

* fix unit tests

* fix lint
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add changeset

* use new auth page, cleanup playwright middleware

* fix base layer e2e test

* fix lint
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* refactor officer error modals

* update base layer deps
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add ff check on officers init

* update vault env values

* ignore ff check if e2e tests

* bump version

* try updating node version to fix unit tests in ci
* fix vitest coverage file path

* update base layer readme, rename/organize utils, update/add tests

* add changeset for base

* add changesets usage docs

* update officers with new util name

* bump person roles version

* start docs for business layer

* update head/breadcrumb text
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* remove save button, update tests

* update base layer with business edit config val, remove officer specific i18n labels, add company info page i18n label

* update user redirect after save/submit/cancel/modal actions, either to business dashboard or edit ui

* set correct default breadcrumb and header text, bcreg instead of connect

* remove unnecessary pending task check on init, update/fix e2e tests

* e2e test update

* fix address fill in e2e

* remove comment
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Business layer - filing ledger code

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Update bootstrap flow

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* lint fix and fixes

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* added in tests

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Added in alerts component, some updates to ledger

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Updated for PR comments

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* fix unit test

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Pr comment updates

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* removed unused store function

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* removed unused store function

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* fix ci and changeset

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

---------

Signed-off-by: Kial Jinnah <kialj876@gmail.com>
github-actions Bot and others added 14 commits December 5, 2025 10:46
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… form submit (#325)

* add id property to officer form schema

* update version
* fix duplicate/incorrect modal displaying on filing init errors

* simplify errors

* remove .only from unit test

* e2e test update

* test update

* remove unecessary if statements

* cleanup parties
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* init registry home app

* add root devops.env for registry home

* add CICD

* update app name in CD

* update site name in firebase.json
* Initial code

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Updates

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Updated tests

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Update filing watcher

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Finish updating tests

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* updated changeset

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

* Update to liquidators flow

Signed-off-by: Kial Jinnah <kialj876@gmail.com>

---------

Signed-off-by: Kial Jinnah <kialj876@gmail.com>
* init DOD app

* add missing app config and test setup files
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
* checkpoint

* dod store

* checkpoint

* fix i18n for page description

* unit test schemas

* add missing i18n

* init e2e setup - needs filing name to complete permissions and isAllowed checks

* fix lint

* add dissoultion types

* remove unnecessary nested form for addToLedger component

* dissolution enums, test fixes, breadcrumb value

* remove unnecessary mocks, add fee mock, add submit test

* use DissolutionType enum for filing sub types enum

* create common api calls mock, add to dissolution

* add new test util to receivers and liquidators, cleanup old code

* revert pw config change

* fix unit test

* revert pnpm lock

* add prepare step after pnpm install in e2e ci

* add postinstall to pnpm test command

* fix unit test

* fix unit test

* fix unit test
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Comment on lines +23 to +32
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main
with:
target: ${{ inputs.target }}
app_name: "dissolution"
working_directory: "."
node_version: 24
pnpm_version: 10.0.0
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +16 to +24
uses: pwei1018/bcregistry-sre/.github/workflows/frontend-ci.yaml@rollback-op
with:
app_name: "dissolution"
working_directory: "./web/dissolution"
codecov_flag: "dissolution"
node_version: 24
pnpm_version: 10.0.0

e2e-tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +25 to +68
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: ["dissolution"]
shardIndex: [1, 2, 3, 4 ]
shardTotal: [4]
defaults:
run:
working-directory: ./web/${{ matrix.project }}
env:
CI: true
container:
image: mcr.microsoft.com/playwright:v1.54.0-noble
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Generate Types
run: pnpm postinstall
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Set basic env
run: |
cp .env.example .env
- name: Run Playwright tests
run: HOME=/root pnpm test:e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload blob report to GitHub Actions Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-${{ matrix.shardIndex }}
path: web/${{ matrix.project }}/blob-report
retention-days: 1

merge-reports:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +69 to +99
if: ${{ !cancelled() }}
needs: [e2e-tests]
strategy:
fail-fast: false
matrix:
project: ["dissolution"]
defaults:
run:
working-directory: ./web/${{ matrix.project }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4
with:
path: web/${{ matrix.project }}/all-blob-reports
pattern: blob-report-*
merge-multiple: true

- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: web/${{ matrix.project }}/playwright-report
retention-days: 2 No newline at end of file

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +15 to +42
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: ["base"]
job: ['lint', 'build', 'test:unit'] # ['lint', 'typecheck', 'build', 'test:unit'] # TODO: fix typecheck
defaults:
run:
working-directory: ./packages/layers/${{ matrix.project }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Set basic env
run: |
cp .env.example .env
- name: ${{ matrix.job }}
run: pnpm ${{ matrix.job }}

e2e-tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +67 to +97
merge-reports:
if: ${{ !cancelled() }}
needs: [e2e-tests]
strategy:
fail-fast: false
matrix:
project: ["person-roles"]
defaults:
run:
working-directory: ./web/${{ matrix.project }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4
with:
path: web/${{ matrix.project }}/all-blob-reports
pattern: blob-report-*
merge-multiple: true

- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: web/${{ matrix.project }}/playwright-report

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +23 to +32
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main
with:
target: ${{ inputs.target }}
app_name: "business-registry-home"
working_directory: "."
node_version: 24
pnpm_version: 10.0.0
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +16 to +24
uses: pwei1018/bcregistry-sre/.github/workflows/frontend-ci.yaml@rollback-op
with:
app_name: "registry-home"
working_directory: "./web/registry-home"
codecov_flag: "registryhome"
node_version: 24
pnpm_version: 10.0.0

e2e-tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +25 to +66
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: ["registry-home"]
shardIndex: [1, 2, 3, 4 ]
shardTotal: [4]
defaults:
run:
working-directory: ./web/${{ matrix.project }}
env:
CI: true
container:
image: mcr.microsoft.com/playwright:v1.54.0-noble
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Set basic env
run: |
cp .env.example .env
- name: Run Playwright tests
run: HOME=/root pnpm test:e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload blob report to GitHub Actions Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-${{ matrix.shardIndex }}
path: web/${{ matrix.project }}/blob-report
retention-days: 1

merge-reports:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +67 to +97
if: ${{ !cancelled() }}
needs: [e2e-tests]
strategy:
fail-fast: false
matrix:
project: ["registry-home"]
defaults:
run:
working-directory: ./web/${{ matrix.project }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4
with:
path: web/${{ matrix.project }}/all-blob-reports
pattern: blob-report-*
merge-multiple: true

- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: web/${{ matrix.project }}/playwright-report
retention-days: 2 No newline at end of file

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
@severinbeauvais

Copy link
Copy Markdown
Contributor

I see a code conflict and I'd like to see all the checks passing if possible.

@thorwolpert thorwolpert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice, maybe add an issue with followup for the permission settings.

@deetz99

deetz99 commented Dec 17, 2025

Copy link
Copy Markdown
Collaborator Author

@cameron-eyds @severinbeauvais @thorwolpert

Sorry folks I goofed this PR, please use #344.

Closing.

@deetz99 deetz99 closed this Dec 17, 2025
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.

6 participants