Skip to content

Commit a2f0c48

Browse files
aurelio-aotdivyav-aotdivyav-aotisuru-aotjimin-aot
authored
RSBC Image Printing and Base64 Generation (#455)
* forms-flow-rsbcservices boilerplate initial commit, IndexedDB schema definition, staticDataApi related functions * Updated code with DBService exposed, fixed local run issues * installed formio related packages. * Updated the dbService code with fetchAndSaveStaticData() exposed * added error handling * deleted unnecessary files * updated the README.md * removed unnecesary codes * cleanedup and removed unnecessary codes * formsflow-rsbcservices initial setup and IndexedDB integration (#4) * forms-flow-rsbcservices boilerplate initial commit, IndexedDB schema definition, staticDataApi related functions * Updated code with DBService exposed, fixed local run issues * installed formio related packages. * Updated the dbService code with fetchAndSaveStaticData() exposed * added error handling * deleted unnecessary files * updated the README.md * removed unnecesary codes * cleanedup and removed unnecessary codes --------- Co-authored-by: divyav-aot <divyav-aot@github> * Updated fetchAndSaveStaticData() to only fetch and save data if the table is empty * Updated fetchAndSaveStaticData() to only fetch and save data if the table is empty (#5) * forms-flow-rsbcservices boilerplate initial commit, IndexedDB schema definition, staticDataApi related functions * Updated code with DBService exposed, fixed local run issues * installed formio related packages. * Updated the dbService code with fetchAndSaveStaticData() exposed * added error handling * deleted unnecessary files * updated the README.md * removed unnecesary codes * cleanedup and removed unnecessary codes * Updated fetchAndSaveStaticData() to only fetch and save data if the table is empty --------- Co-authored-by: divyav-aot <divyav-aot@github> * RSBCImage form.io custom component * Remove unneeded library * Updated the fetchAndSaveStaticData as it was not saving some of the static data * settings for rsbc image * Cleanup code * Add description on RSBCImage settings * Testing code to generate settings json * Add fields tracker * sample input output and settings * Update json converter * adding rsbcmapping json * RSBC mapping for VI 24Hr StageTwo * updated test data * added test data * rename sample test data * update test data * Fix code alignment. Add test data. * adding combined file * adding combined mapping with highlighting missing data * Fix bug * Update transformJson() logic * Fix RSBCImage placeholder * reverting package-lock.json in forms-flow-nav * removing hardcoded ips * removing hardcoded ips * reverting package-lock.json in forms-flow-nav * reverting package-lock.json in forms-flow-nav * updating file names * updating README.md * cleanup code * fix diff on package-lock.json * Add rsbc/7.0.0 branch to GitHub Actions and update version * Rename forms-flow-service to forms-flow-rsbcservice in GitHub Actions workflow * change folder structure * FOFR-35_Implementation_of_Keycloak_Token_Handling_in_Offline_Mode NOTE:- This PR has been created for review purposes only by the forms flow product team for inputs regarding this approach and not for any merging to any branch. Includes:- Handling token refresh while offine to avoid any page refresh which will display the "No Internet page" to the customer. * FOFR_35_Keycloak_fix_for_offline_page_refresh This checkin removes some redundant comments on the new code and also the commented earlier code. * FOFR-35_keycloak_offline_issue_fix Removes a comment inside the code * Put div with id on images * put div with id * base64 work * store svg images in this.component * fixing html issue * base64 png images * Refactor code * adding stage as a param to getBase64Images function * fixing RSBC Image Settings default \"\" emtpy quotation issue * updating invalid json error message * Add print button * Initial code on print button function * Print preview is perfect but losing image in main window * Extra page on print preview when 12Hour=true only * Fully working print button * Display Print button only in StageOne images * emit printResponse event * Refactored Printing Functionality * adding print confirmation dialog * Bug fix: images is gone when cancel button of the print confirmation dialog is clicked * Dont allow multiple instances of confirmation dialog box * Cleanup codes * Cleanup codes * Add descriptions on each functions * Update README.md * Optimize getTransformedInputData() function * Address sonarqube issues * Fix sonarqube issues * Fix sonarqube issues * fixing issue 21 - member is never reassigned * fixing fill tag is not allowed issue * updating as -> AS to fix sonar issue * Fix sonarqube issues * Fix sonarqube issues * Address sonarqube issues * Fix sonarqube issues * Add .dockerignore * Fix sonarqube issues * Fix sonarqube issues * Fix sonarqube issues * Restore Dockerfile --------- Co-authored-by: divyav-aot <divyav-aot@github> Co-authored-by: Divya Viswanath <79858022+divyav-aot@users.noreply.github.com> Co-authored-by: isuru <isuru.gunawardana@aot-technologies.com> Co-authored-by: jimin-aot <jimin.byun@aot-technologies.com> Co-authored-by: Isuru AOT <118843449+isuru-aot@users.noreply.github.com> Co-authored-by: sandeep-aot <89100322+sandeep-aot@users.noreply.github.com> Co-authored-by: Jimin Byun <148512774+jimin-aot@users.noreply.github.com> Co-authored-by: isuru <isuru.gnw@gmail.com>
1 parent 70be2e1 commit a2f0c48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+25561
-4
lines changed

.github/workflows/forms-flow-admin-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- develop
88
- release/*
9+
- rsbc/7.0.0
910
paths:
1011
- "forms-flow-admin/**"
1112
- "VERSION"

.github/workflows/forms-flow-component-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- develop
88
- FWF-3440-Design-System-MF
99
- release/*
10+
- rsbc/7.0.0
1011
paths:
1112
- "forms-flow-components/**"
1213
- "VERSION"

.github/workflows/forms-flow-integration-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- develop
88
- release/*
9+
- rsbc/7.0.0
910
paths:
1011
- "forms-flow-integration/**"
1112
- "VERSION"

.github/workflows/forms-flow-nav.cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- develop
88
- release/*
9+
- rsbc/7.0.0
910
paths:
1011
- "forms-flow-nav/**"
1112
- "VERSION"
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: forms-flow-rsbcservice-CD
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- rsbc/7.0.0
7+
paths:
8+
- "forms-flow-rsbcservice/**"
9+
- "VERSION"
10+
defaults:
11+
run:
12+
shell: bash
13+
jobs:
14+
build:
15+
name: Build and push artifacts to s3
16+
runs-on: ubuntu-20.04
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '16.17.0'
22+
- name: Set version
23+
if: ${{ github.ref != 'refs/heads/main' }}
24+
working-directory: .
25+
run: |
26+
VER=$(cat VERSION)
27+
echo "VERSION=$VER" >> $GITHUB_ENV
28+
29+
- name: Set version
30+
if: ${{ github.ref == 'refs/heads/main' }}
31+
working-directory: .
32+
run: |
33+
VER=$(cat VERSION)
34+
VER=${VER/-alpha/''}
35+
echo "VERSION=$VER" >> $GITHUB_ENV
36+
37+
- run: npm ci
38+
working-directory: ./forms-flow-rsbcservice
39+
- run: npm run build:webpack
40+
working-directory: ./forms-flow-rsbcservice
41+
- uses: aws-actions/configure-aws-credentials@v1
42+
with:
43+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
44+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
45+
aws-region: ${{ secrets.REGION }}
46+
- run: npm ci
47+
working-directory: ./scripts
48+
- run: node index forms-flow-rsbcservice
49+
env:
50+
BUCKET: ${{ secrets.BUCKET}}
51+
VERSION: ${{ env.VERSION }}
52+
working-directory: ./scripts

.github/workflows/forms-flow-service.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- develop
88
- release/*
9+
- rsbc/7.0.0
910
paths:
1011
- "forms-flow-service/**"
1112
- "VERSION"

.github/workflows/forms-flow-theme.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- develop
88
- release/*
9+
- rsbc/7.0.0
910
paths:
1011
- "forms-flow-theme/**"
1112
- "VERSION"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v7.0.0
1+
v7.0.0-rsbc
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.git
3+
.env
4+
secrets/
5+
docker-compose.yml

forms-flow-rsbcservice/.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": [
3+
"ts-important-stuff",
4+
"plugin:prettier/recommended"
5+
],
6+
"parser": "@babel/eslint-parser",
7+
"requireConfigFile": false
8+
}

0 commit comments

Comments
 (0)