Skip to content

Commit d60688d

Browse files
authored
Merge pull request #109 from openimis/23.10
23.10
2 parents efed17d + 9a20d98 commit d60688d

File tree

6 files changed

+67
-27
lines changed

6 files changed

+67
-27
lines changed

.github/workflows/docker-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
registry: ghcr.io
1717
username: ${{ github.actor }}
1818
password: ${{ secrets.GITHUB_TOKEN }}
19-
- name: Build the openimis backend Docker image
19+
- name: Build the openimis frontend Docker image
2020
run: |
2121
docker build . --tag ghcr.io/openimis/openimis-fe:${{ github.event.inputs.tag }}
2222
docker push ghcr.io/openimis/openimis-fe:${{ github.event.inputs.tag }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ Note: This image only provides the openimis frontend server. The full openIMIS d
254254
export default {"es":"es-ES", "es-ES": "es-ES","en":"en-GB","en-GB":"en-GB","fr":"fr-FR","fr-FR":"fr-FR"}
255255
```
256256
- type `yarn build` and if success - type `yarn start` and you should see this translation in your app (go to 'users' page, select user, change language into the newly provided, refresh page and you should see texts in changed language)
257+
- if you encounter any problems by that point, run `yarn load-config` in the main module
257258
- there is also possibility to overwrite particular language for example 'English' into 'Gambian English' (without changes on database level). In your new translation module in index.js (for example new module called `openimis-fe-language_en_gm_js`):
258259
```js
259260
import messages_en from "./translations/en.json";

openimis.json

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,93 +18,113 @@
1818
}
1919
],
2020
"modules": [
21-
{
21+
{
2222
"name": "CoreModule",
23-
"npm": "@openimis/fe-core@>=1.5.1"
23+
"npm": "@openimis/fe-core@>=1.6.0"
2424
},
2525
{
2626
"name": "HomeModule",
27-
"npm": "@openimis/fe-home@>=1.5.1"
27+
"npm": "@openimis/fe-home@>=1.5.2"
2828
},
2929
{
3030
"name": "LocationModule",
31-
"npm": "@openimis/fe-location@>=1.4.1"
31+
"npm": "@openimis/fe-location@>=1.5.0"
3232
},
3333
{
3434
"name": "InsureeModule",
35-
"npm": "@openimis/fe-insuree@>=1.5.1"
35+
"npm": "@openimis/fe-insuree@>=1.6.0"
3636
},
3737
{
3838
"name": "MedicalModule",
39-
"npm": "@openimis/fe-medical@>=1.5.1"
39+
"npm": "@openimis/fe-medical@>=1.6.0"
4040
},
4141
{
4242
"name": "MedicalPriceListModule",
43-
"npm": "@openimis/fe-medical_pricelist@>=1.5.1"
43+
"npm": "@openimis/fe-medical_pricelist@>=1.5.2"
4444
},
4545
{
4646
"name": "ProductModule",
47-
"npm": "@openimis/fe-product@>=1.5.1"
47+
"npm": "@openimis/fe-product@>=1.6.0"
4848
},
4949
{
5050
"name": "PolicyModule",
51-
"npm": "@openimis/fe-policy@>=1.5.1"
51+
"npm": "@openimis/fe-policy@>=1.6.0"
5252
},
5353
{
5454
"name": "PayerModule",
55-
"npm": "@openimis/fe-payer@>=1.4.2"
55+
"npm": "@openimis/fe-payer@>=1.4.3"
5656
},
5757
{
5858
"name": "ContributionModule",
59-
"npm": "@openimis/fe-contribution@>=1.4.2"
59+
"npm": "@openimis/fe-contribution@>=1.5.0"
6060
},
6161
{
6262
"name": "PaymentModule",
63-
"npm": "@openimis/fe-payment@>=1.4.2"
63+
"npm": "@openimis/fe-payment@>=1.4.3"
6464
},
6565
{
6666
"name": "ClaimModule",
67-
"npm": "@openimis/fe-claim@>=1.4.3"
67+
"npm": "@openimis/fe-claim@>=1.5.0"
6868
},
6969
{
7070
"name": "ClaimBatchModule",
71-
"npm": "@openimis/fe-claim_batch@>=1.4.2"
71+
"npm": "@openimis/fe-claim_batch@>=1.4.3"
7272
},
7373
{
7474
"name": "AdminModule",
75-
"npm": "@openimis/fe-admin@>=1.5.1"
75+
"npm": "@openimis/fe-admin@>=1.6.0"
7676
},
7777
{
7878
"name": "ToolsModule",
79-
"npm": "@openimis/fe-tools@>=1.5.2"
79+
"npm": "@openimis/fe-tools@>=1.5.3"
8080
},
8181
{
8282
"name": "ProfileModule",
83-
"npm": "@openimis/fe-profile@>=1.5.1"
83+
"npm": "@openimis/fe-profile@>=1.6.0"
8484
},
8585
{
8686
"name": "LanguageFrModule",
87-
"npm": "@openimis/fe-language_fr@>=1.5.2"
87+
"npm": "@openimis/fe-language_fr@>=1.6.0"
8888
},
8989
{
9090
"name": "CalculationModule",
91-
"npm": "@openimis/fe-calculation@>=1.4.2"
91+
"npm": "@openimis/fe-calculation@>=1.5.0"
9292
},
9393
{
9494
"name": "PolicyHolderModule",
95-
"npm": "@openimis/fe-policyholder@>=1.4.2"
95+
"npm": "@openimis/fe-policyholder@>=1.5.0"
9696
},
9797
{
9898
"name": "ContributionPlanModule",
99-
"npm": "@openimis/fe-contribution_plan@>=1.5.1"
99+
"npm": "@openimis/fe-contribution_plan@>=1.6.0"
100100
},
101101
{
102102
"name": "ContractModule",
103-
"npm": "@openimis/fe-contract@>=1.4.2"
103+
"npm": "@openimis/fe-contract@>=1.5.0"
104104
},
105105
{
106106
"name": "InvoiceModule",
107-
"npm": "@openimis/fe-invoice@>=1.4.2"
107+
"npm": "@openimis/fe-invoice@>=1.5.0"
108+
},
109+
{
110+
"name": "SocialProtectionModule",
111+
"npm": "@openimis/fe-social_protection@>=1.0.0"
112+
},
113+
{
114+
"name": "TasksManagementModule",
115+
"npm": "@openimis/fe-tasks_management@>=1.0.0"
116+
},
117+
{
118+
"name": "OpenSearchReportsModule",
119+
"npm": "@openimis/fe-opensearch_reports@>=1.0.0"
120+
},
121+
{
122+
"name": "GrievanceModule",
123+
"npm": "@openimis/fe-grievance@>=1.0.0"
124+
},
125+
{
126+
"name": "PayrollModule",
127+
"npm": "@openimis/fe-payroll@>=1.0.0"
108128
}
109129
]
110130
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openimis/fe",
3-
"version": "23.04",
3+
"version": "23.10",
44
"license": "AGPL-3.0-only",
55
"proxy": "http://localhost:8000",
66
"homepage": "http://localhost:3000/front",

src/helpers/theme.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const theme = createTheme({
5454
drawer: {
5555
width: 300,
5656
fontSize: 16,
57+
backgroundColor:"#006273"
5758
},
5859
appBar: {
5960
fontSize: 16,
@@ -130,6 +131,10 @@ const theme = createTheme({
130131
fontWeight: 500,
131132
align: "center",
132133
},
134+
secondaryHighlightedRow: {
135+
backgroundColor: "#cbedf2",
136+
},
137+
secondaryHighlightedCell: {},
133138
highlightedAltRow: {},
134139
highlightedAltCell: {
135140
fontStyle: "italic",
@@ -182,6 +187,18 @@ const theme = createTheme({
182187
},
183188
secondaryButton: {},
184189
},
190+
tooltipContainer: {
191+
position: 'fixed',
192+
bottom: 15,
193+
right: 8,
194+
zIndex: 2000,
195+
display: 'flex',
196+
flexDirection: 'column',
197+
alignItems: 'flex-end',
198+
},
199+
flexTooltip: {
200+
marginBottom: 5,
201+
},
185202
fab: {
186203
position: "fixed",
187204
bottom: 20,

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ const loadConfiguration = async () => {
2727
throw response;
2828
} else {
2929
const { data } = await response.json();
30-
return data.moduleConfigurations.reduce((acc, c) => {
30+
data.moduleConfigurations.unshift({});
31+
const out = data.moduleConfigurations.reduce((acc, c) => {
3132
try {
3233
acc[c.module] = { controls: c.controls, ...JSON.parse(c.config) };
3334
} catch (error) {
3435
console.error(`Failed to parse module ${c.module} config`, error);
3536
}
3637
return acc;
37-
}, []);
38+
});
39+
return out;
3840
}
3941
};
4042

0 commit comments

Comments
 (0)