Skip to content

Commit

Permalink
Merge pull request #54 from openimis/develop
Browse files Browse the repository at this point in the history
version 1.0.0
  • Loading branch information
delcroip committed Jul 28, 2021
2 parents ceeaa6a + 6f5d62a commit 7312e14
Show file tree
Hide file tree
Showing 39 changed files with 4,753 additions and 175 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install
- run: yarn build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
scope: openimis
- run: yarn install
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: yarn install
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
91 changes: 83 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,57 @@ It is dedicated to be deployed as a module of [openimis-fe_js](https://github.co
None

## Other Contributions
* `core.Router`: registering `policyHolders` routes in openIMIS client-side router
* `core.Router`: registering `policyHolders`, `policyHolders/policyHolder` routes in openIMIS client-side router
* `insuree.MainMenu`:

**Policy Holders** (`menu.policyHolders` translation key)

## Available Contribution Points
None
* `policyHolder.TabPanel.label` ability to extend Policy Holder tab panel with a label
* `policyHolder.TabPanel.panel` ability to extend Policy Holder tab panel with a panel displayed on click on an appropriate label
* `policyHolder.PolicyHolderInsuree.calculation` placeholder for `Calculation` module contributions

## Published Components
* `policyHolder.LegalFormPicker`, picker for legal form (from JSON stored in the module configuration)
* `policyHolder.ActivityCodePicker`, picker for activity code (from JSON stored in the module configuration)
* `policyHolder.ConfigBasedPicker`, generic picker, which can display options from JSON object
* `policyHolder.LegalFormPicker`, picker for Legal Form (from JSON stored in the module configuration)
* `policyHolder.ActivityCodePicker`, picker for Activity Code (from JSON stored in the module configuration)
* `policyHolder.PolicyHolderPicker`, picker for Policy Holder
* `policyHolder.PolicyHolderInsureePicker`, picker for Policy Holder Insuree
* `policyHolder.PolicyHolderContributionPlanBundlePicker`, picker for Policy Holder Contribution Plan Bundle

## Dispatched Redux Actions
* `POLICYHOLDER_POLICYHOLDERS_{REQ|RESP|ERR}`, fetching policy holders (as triggered by the searcher)
* `POLICYHOLDER_POLICYHOLDERS_{REQ|RESP|ERR}`, fetching Policy Holders (as triggered by the searcher)
* `POLICYHOLDER_POLICYHOLDER_{REQ|RESP|ERR}`, fetching Policy Holder
* `POLICYHOLDER_POLICYHOLDERINSUREES_{REQ|RESP|ERR}`, fetching Policy Holder Insurees (as triggered by the searcher)
* `POLICYHOLDER_PICKERPOLICYHOLDERINSUREES_{REQ|RESP|ERR}`, fetching Policy Holder Insurees for Policy Holder Insurees Picker
* `POLICYHOLDER_POLICYHOLDERCONTRIBUTIONPLANBUNDLES_{REQ|RESP|ERR}`, fetching Policy Holder Contribution Plan Bundles (as triggered by the searcher)
* `POLICYHOLDER_PICKERPOLICYHOLDERCONTRIBUTIONPLANBUNDLES_{REQ|RESP|ERR}`, fetching Policy Holder Contribution Plan Bundles for Policy Holder Contribution Plan Bundle Picker
* `POLICYHOLDER_MUTATION_{REQ|ERR}`, sending a mutation
* `POLICYHOLDER_CREATE_POLICYHOLDER_RESP`, receiving a result of create Policy Holder mutation
* `POLICYHOLDER_UPDATE_POLICYHOLDER_RESP`, receiving a result of update Policy Holder mutation
* `POLICYHOLDER_DELETE_POLICYHOLDER_RESP`, receiving a result of delete Policy Holder mutation
* `POLICYHOLDER_CREATE_POLICYHOLDERINSUREE_RESP`, receiving a result of create Policy Holder Insuree mutation
* `POLICYHOLDER_UPDATE_POLICYHOLDERINSUREE_RESP`, receiving a result of update Policy Holder Insuree mutation
* `POLICYHOLDER_DELETE_POLICYHOLDERINSUREE_RESP`, receiving a result of delete Policy Holder Insuree mutation
* `POLICYHOLDER_REPLACE_POLICYHOLDERINSUREE_RESP`, receiving a result of replace Policy Holder Insuree mutation
* `POLICYHOLDER_CREATE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP`, receiving a result of create Policy Holder Contribution Plan Bundle mutation
* `POLICYHOLDER_UPDATE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP`, receiving a result of update Policy Holder Contribution Plan Bundle mutation
* `POLICYHOLDER_DELETE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP`, receiving a result of delete Policy Holder Contribution Plan Bundle mutation
* `POLICYHOLDER_REPLACE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP`, receiving a result of replace Policy Holder Contribution Plan Bundle mutation

## Other Modules Listened Redux Actions
None

## Other Modules Redux State Bindings
* `state.core.user`, to access user info (rights,...)
* `state.insuree`, retrieving Insurees when creating Policy Holder Insuree
* `state.contributionPlan`, retrieving Contribution Plan Bundles when creating Policy Holder Contribution Plan Bundle

## Configurations Options
* `policyHolderFilter.rowsPerPageOptions`: pagination page size options in PolicyHolderSearcher component (Default: `[10, 20, 50, 100]`)
* `policyHolderFilter.defaultPageSize`: pagination pre-selected page size options in PolicyHolderSearcher component (Default: `10`)
* `policyHolderFilter.legalFormOptions`: options for LegalFormPicker component (Default:
* `policyHolderFilter.legalFormOptions`: options for LegalFormPicker component (Default:
```json
[{
"value": "1",
"label": {
Expand Down Expand Up @@ -63,8 +89,11 @@ None
"en": "Union",
"fr":"Syndicat"
}
}])
}]
```
)
* `policyHolderFilter.activityCodeOptions`: options for ActivityCodePicker component (Default:
```json
[{
"value": "1",
"label": {
Expand Down Expand Up @@ -95,4 +124,50 @@ None
"en": "Services",
"fr":"Services"
}
}])
}]
```
)
* `policyHolderForm.phoneValidation`: Phone field validation (regex + error message when regex does not match) (Default:
```json
"phoneValidation": {
"regex": /^[0-9]*$/,
"regexMsg": {
"en": "Invalid phone number",
"fr": "Numéro de téléphone invalide"
}
}
```
)
* `policyHolderForm.faxValidation`: Fax field validation (regex + error message when regex does not match) (Default:
```json
"faxValidation", {
"regex": /^[0-9]{8,9}$/,
"regexMsg": {
"en": "Invalid fax number",
"fr": "Numéro de fax invalide"
}
}
```
)
* `policyHolderForm.paymentReferenceValidation`: PaymentReference field validation (regex + error message when regex does not match) (Default:
```json
"paymentReferenceValidation", {
"regex": /.+/,
"regexMsg": {
"en": "Invalid payment reference",
"fr": "Référence de payement invalide"
}
}
```
)
* `policyHolderForm.accountancyAccountValidation`: AccountancyAccount field validation (regex + error message when regex does not match) (Default:
```json
"accountancyAccountValidation", {
"regex": /.+/,
"regexMsg": {
"en": "Invalid accountancy account",
"fr": "Numéro de compte comptable invalide"
}
}
```
)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openimis/fe-policyholder",
"version": "0.0.1",
"version": "1.0.0",
"license": "AGPL-3.0-only",
"description": "openIMIS Frontend PolicyHolder module",
"repository": "openimis/openimis-fe-policyholder_js",
Expand Down Expand Up @@ -36,4 +36,4 @@
"files": [
"dist"
]
}
}
Loading

0 comments on commit 7312e14

Please sign in to comment.