Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mukta sor #1959

Open
wants to merge 97 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
8c7b52b
FIxed build issue by Updating dependency version in package.json
jagankumar-egov Feb 1, 2024
a990445
Added the Build configs for the Microfrontend Apps
jagankumar-egov Feb 5, 2024
dbaf47d
Update build-config.yml
jagankumar-egov Mar 12, 2024
2873b1f
Added PGR code from OSS (Urban) (#431)
jagankumar-egov May 2, 2024
ae27835
ISTE-11: Fixed Redirect logout url, Fixed breadcrumb need to hide (#424)
anilsingha-eGov May 3, 2024
943abb3
fix: resolved AJV-related Jenkins build issue (#783)
jagankumar-egov Jun 5, 2024
863d019
Update README.md
jagankumar-egov Jun 8, 2024
a42bd28
HCM Admin console v0.1 release ui changes (#964)
jagankumar-egov Jun 26, 2024
c29df69
Microplan v1 UI Changes merging to master under health folder along w…
siddhant-nawale-egov Jun 26, 2024
9411473
Trimmed microplan name. Open Saved microplan with navigation for all …
siddhant-nawale-egov Jun 27, 2024
ef3963f
Update build-config.yml for microplan build issue
jagankumar-egov Jun 27, 2024
f5f2f81
adding map height css changes, geojson active inactive status change
siddhant-nawale-egov Jun 27, 2024
aa72dda
Merge pull request #969 from egovernments/master-map-css-change-and-g…
nipunarora-eGov Jun 27, 2024
e6d4a8e
Adding handling of same name sheets (#975)
siddhant-nawale-egov Jun 28, 2024
dbdff07
Microplan handling same sheet name (#979)
siddhant-nawale-egov Jun 28, 2024
d0c3c88
added changes in the master for draft boundary (#1002)
Bhavya-egov Jul 2, 2024
1f02a17
updated docker file
jagankumar-egov Jul 2, 2024
ddecfa9
updated workbench docker
jagankumar-egov Jul 2, 2024
f48f044
updated the workspace
jagankumar-egov Jul 2, 2024
05aa759
Update webpack.config.js
jagankumar-egov Jul 3, 2024
43e2f40
Update buildWorkbenchUI.yml
jagankumar-egov Jul 3, 2024
22ad147
Update package.json
jagankumar-egov Jul 3, 2024
cbf898e
updated the log
jagankumar-egov Jul 3, 2024
0828c3c
Update Dockerfile
jagankumar-egov Jul 3, 2024
4995274
Added Dashboard Icon & Commented harcoded check (#1010)
nabeelmd-eGov Jul 3, 2024
dc7b6d2
Updated the Utilites package updated for Kibana dashboard integratio…
nipunarora-eGov Jul 9, 2024
6c66763
Update package.json (#1023)
nipunarora-eGov Jul 9, 2024
11a65fc
Update package.json (#1025)
nipunarora-eGov Jul 9, 2024
0b95620
Added Environment support to use mdms v1 or v2 based on config and Wo…
aaradhya-egov Jul 10, 2024
b5829d4
changed version of workbench and libraries (#1036)
aaradhya-egov Jul 10, 2024
96e6dce
changed version and fix config issue (#1039)
aaradhya-egov Jul 10, 2024
5ce4b59
Workbench Enahancement to have referenced dropdown as popup where dat…
Swathi-eGov Jul 12, 2024
b21d1d8
added mdmsview changes
Swathi-eGov Jul 12, 2024
76ca6c8
added devops changes
Swathi-eGov Jul 12, 2024
6167c98
Added button logic for rates
Swathi-eGov Jul 15, 2024
0105b58
updated css version
Swathi-eGov Jul 15, 2024
25e0fc6
changed css version
Swathi-eGov Jul 15, 2024
bab6eed
Update package.json
jagankumar-egov Jul 15, 2024
a0dcdc0
updated build config
Swathi-eGov Jul 16, 2024
5d6c806
updated css change
Swathi-eGov Jul 16, 2024
f7b795d
Updated the library version for logo style fix
Tulika-eGov Jul 16, 2024
1744ea6
Updated package json version of workbench and render as commented
Tulika-eGov Jul 16, 2024
511fd7a
Updated the namespace from mukta-workbench to workbench
Tulika-eGov Jul 17, 2024
1d48182
serach fix
Swathi-eGov Jul 17, 2024
cc34385
Merge pull request #1093 from egovernments/serach-fix
Tulika-eGov Jul 17, 2024
fda6e9f
added restricion for ViewAll
Swathi-eGov Jul 18, 2024
1a5dde2
UCEM-591 FIX
Swathi-eGov Jul 18, 2024
ccd0aa0
Merge pull request #1099 from egovernments/UCEM-518
Tulika-eGov Jul 18, 2024
c7d0339
removed actionbutton if actionitems are empty
Swathi-eGov Jul 18, 2024
ecc618a
Merge pull request #1101 from egovernments/UCEM-577
Tulika-eGov Jul 18, 2024
b9415a4
uuid has been changed to Sor Id in Success toast message of sor master
Swathi-eGov Jul 19, 2024
d83305c
Merge pull request #1105 from egovernments/UCEM-596
Tulika-eGov Jul 19, 2024
f6d1771
fixed home breadcrumb redirection
Swathi-eGov Jul 22, 2024
5243be3
Merge pull request #1114 from egovernments/UCEM-576
Tulika-eGov Jul 22, 2024
2e29dcd
UCEM-597 : updated the redirection urls for rate analysis in workbench
Tulika-eGov Jul 23, 2024
b0ffa14
UCEM-597 : updated the rate analysis view page redirection method
Tulika-eGov Jul 24, 2024
c98760e
Added else condition for the role based add button
Tulika-eGov Jul 24, 2024
874f625
added date range validation
Swathi-eGov Jul 24, 2024
540f181
Updated the code for the redirection of view rate analysis screen
Tulika-eGov Jul 24, 2024
fad4e09
Merge pull request #1131 from egovernments/UCEM-520
Tulika-eGov Jul 24, 2024
e997b7f
Added the colon to the error toast messgae
Tulika-eGov Jul 24, 2024
522e555
Updated the module param for view rate analysis redirection
Tulika-eGov Jul 24, 2024
73b17fa
error message fix
Swathi-eGov Jul 24, 2024
b7f6d88
Merge pull request #1144 from egovernments/error-message-fix
Tulika-eGov Jul 24, 2024
f8d4b74
added date range error in update screen
Swathi-eGov Jul 25, 2024
1a38b6b
Merge pull request #1151 from egovernments/UCEM-520-UPDATE
Tulika-eGov Jul 25, 2024
80d1bb8
fixed tenantId
Swathi-eGov Jul 25, 2024
70a8465
Merge pull request #1155 from egovernments/tennatId-fix
Tulika-eGov Jul 25, 2024
8fc54d3
fixed pop search issue
Swathi-eGov Jul 26, 2024
454b275
Merge pull request #1164 from egovernments/UCEM-510-FIX
Tulika-eGov Jul 29, 2024
6586028
UCEM-511 : updated the code for the workbench effectivefrom and effec…
Tulika-eGov Aug 5, 2024
e48e5a8
Removing unwanted debugger and console
Tulika-eGov Aug 5, 2024
3a800ff
Merge pull request #1219 from egovernments/UCEM-511-FIX
Tulika-eGov Aug 5, 2024
289467c
Build fix for workbench babel issue
Tulika-eGov Aug 6, 2024
365d9bb
UCEM-511 : updated the effective from and effective to for compositio…
Tulika-eGov Aug 7, 2024
06a29db
Merge pull request #1240 from egovernments/UCEM-511-FIX-1
Tulika-eGov Aug 7, 2024
8eaaaca
UCEM-511 : Updated the effective from and effective params for compos…
Tulika-eGov Aug 7, 2024
c46cc42
Merge pull request #1241 from egovernments/UCEM-511-FIX-2
Tulika-eGov Aug 7, 2024
c2ff8b9
fixed tooltip css issues (#1343)
Swathi-eGov Aug 28, 2024
8ec78e6
epoch to date,sor format,tooltip issues fix (#1352)
Swathi-eGov Sep 4, 2024
f1e6f9c
fixed key name for rate analysis search screen
Swathi-eGov Sep 4, 2024
05d896e
validTo to end of the day and epoch issue fix (#1379)
Swathi-eGov Sep 10, 2024
d9cb685
sor enum issue fix (#1389)
Swathi-eGov Sep 16, 2024
fe047d3
updated limit for sorid (#1428)
Swathi-eGov Sep 25, 2024
a32bffe
updated epoch conversion (#1430)
Swathi-eGov Sep 25, 2024
9f40c60
Adding condition for mukta odisha for add rate analysis (#1432)
Tulika-eGov Sep 26, 2024
e34ef27
Bread crum fix (#1576)
Tulika-eGov Oct 19, 2024
3738092
UCEM-765 : Updated the corev version and package json and home redire…
Tulika-eGov Oct 22, 2024
01f3f77
added core css (#1616)
Swathi-eGov Oct 22, 2024
f9b9eea
UCEM-765 : added home direction logic (#1619)
Tulika-eGov Oct 22, 2024
6640f6d
UCEM-765 : updated the consoles to check (#1628)
Tulika-eGov Oct 23, 2024
48a667c
UCEM-765 : Updated build issue (#1635)
Tulika-eGov Oct 23, 2024
ebbfab8
updated core version (#1625)
Swathi-eGov Oct 23, 2024
5db8b5f
build issue test (#1638)
Swathi-eGov Oct 23, 2024
341517a
updated core version (#1644)
Swathi-eGov Oct 23, 2024
e3ee56b
UCEM-765 : home redirection fix test (#1658)
Tulika-eGov Oct 24, 2024
14bf16a
UCEM-765 : Updated breadcrumb (#1662)
Tulika-eGov Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 60 additions & 0 deletions .github/workflows/buildWorkbenchUI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Digit Admin Console Build workflow
on:
push:
branches: [ 'develop','campaign' ,'microplan','master']
paths:
- 'health/micro-ui/web/micro-ui-internals/**'
workflow_dispatch:
jobs:
docker_image-build:
outputs:
run_job_digit_ui: ${{ steps.check_files.outputs.run_job_digit_ui }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup Docker
uses: docker/setup-buildx-action@v1
- name: check modified files
id: check_files
run: |
echo "=============== list modified files ==============="
git diff --name-only HEAD^ HEAD

echo "========== check paths of modified files =========="
git diff --name-only HEAD^ HEAD > files.txt
run_job_digit_ui=false
while IFS= read -r file
do
if [[ $file == health/micro-ui/* ]]; then
echo "This modified file is under the 'digit_ui' folder."
run_job_digit_ui=true
fi
done < files.txt

# Set the output based on whether the job should run
echo "::set-output name=run_job_digit_ui::$run_job_digit_ui"
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV




- name: Login to egovio docker Container Registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
# Authenticate with Docker Hub
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

- name: Build and Push Docker image for digit-ui
if: ${{ steps.check_files.outputs.run_job_digit_ui == 'true' }}
run: |
docker build -t workbench-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} -f web/workbench/Dockerfile .
docker tag workbench-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} egovio/workbench-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }}
docker push egovio/workbench-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }}
working-directory: health/micro-ui
13 changes: 9 additions & 4 deletions .github/workflows/publishAllPackages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Node.js Publish UI Packages
name: Node.js Publish Health UI Packages

on:
push:
branches: [ 'develop' ]
branches: [ 'develop','campaign' ,'microplan']
paths:
- 'micro-ui/web/micro-ui-internals/**'
- 'health/micro-ui/web/micro-ui-internals/**'

pull_request:
branches:
- 'dev-hcm'
# Push events to branches matching refs/heads/mona/octocat

jobs:
build:
Expand All @@ -15,6 +20,6 @@ jobs:
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: cd micro-ui/web/micro-ui-internals/ && bash ./publish-workbench.sh
- run: cd health/micro-ui/web/micro-ui-internals/ && bash ./publish-develop.sh
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
77 changes: 77 additions & 0 deletions .github/workflows/publishProjectFactory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: project factory service docker Image CI

on:
push:
branches: [ "campaign" ]
paths:
- 'utilities/project-factory/**'
pull_request:
branches: [ "campaign" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for tags and branches

- name: Set up environment variables
id: env
run: |
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA

- name: Build the service Docker image
id: docker_build
working-directory: ./utilities/project-factory
run: |
IMAGE_TAG=egovio/project-factory:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }}
docker build . \
--file Dockerfile \
--tag $IMAGE_TAG
echo "::set-output name=image_name::$IMAGE_TAG"


- name: Build the db migration Docker image
id: docker_db_build
working-directory: ./utilities/project-factory/migration
run: |
IMAGE_TAG=egovio/project-factory-db:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }}
docker build . \
--file Dockerfile \
--tag $IMAGE_TAG
echo "::set-output name=db_image_name::$IMAGE_TAG"


- name: Login to Docker Hub and Push Docker Image
working-directory: ./utilities/project-factory
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: ${{ steps.docker_build.outputs.image_name }}
run: |
# Authenticate with Docker Hub
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

# Push the image to Docker Hub
docker push $IMAGE_NAME
echo "Docker image pushed: $IMAGE_NAME"

- name: Login to Docker Hub and Push DB Migration Docker Image
working-directory: ./utilities/project-factory/migration
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DB_IMAGE_NAME: ${{ steps.docker_db_build.outputs.db_image_name }}
run: |
# Authenticate with Docker Hub
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

# Push the image to Docker Hub
docker push $DB_IMAGE_NAME
echo "Docker image pushed: $DB_IMAGE_NAME"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
accelerators/frontend/micro-ui-internals/node_modules/*
.idea
index.lock
utilities/
utilities/project-factory/node_modules/*
utilities/egov-bff/node_modules/*
utilities/
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to Remote",
"address": "localhost",
"port": 9229,
"localRoot": "${workspaceFolder}",
"remoteRoot": "/app"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.inlineSuggest.showToolbar": "always"
}
3 changes: 2 additions & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* @egovernments/core-ui-reviewers
- @egovernments/core-ui-reviewers

30 changes: 11 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# workbench ui
# DIGIT UI

A React App built on top of DIGIT UI Core.

Expand All @@ -11,17 +11,14 @@ DIGIT (Digital Infrastructure for Governance, Impact & Transformation) is India'

DIGIT platform is microservices based API platform enabling quick rebundling of services as per specific needs. This is a repo that lays down the core platform on top of which other mission services depend.


# DIGIT UI

# DIGIT UI

This repository contains source code for web implementation of the new Digit UI modules with dependencies and libraries.

Workbench module is used to Manage the master data (MDMS V2 Service) used across the DIGIT Services / Applications

It is also used to manage the Localisation data present in the system (Localisation service)


## Run Locally

Clone the project
Expand All @@ -31,6 +28,7 @@ Clone the project
```

Go to the Sub directory to run UI

```bash
cd into micro-ui/web/micro-ui-internals
```
Expand All @@ -42,6 +40,7 @@ Install dependencies
```

Add .env file

```bash
micro-ui/web/micro-ui-internals/example/.env
```
Expand All @@ -52,26 +51,25 @@ Start the server
yarn start
```


## Environment Variables

To run this project, you will need to add the following environment variables to your .env file

`REACT_APP_PROXY_API` :: `{{server url}}`
`REACT_APP_PROXY_API` :: `{{server url}}`

`REACT_APP_GLOBAL` :: `{{server url}}`
`REACT_APP_GLOBAL` :: `{{server url}}`

`REACT_APP_PROXY_ASSETS` :: `{{server url}}`
`REACT_APP_PROXY_ASSETS` :: `{{server url}}`

`REACT_APP_USER_TYPE` :: `{{EMPLOYEE||CITIZEN}}`
`REACT_APP_USER_TYPE` :: `{{EMPLOYEE||CITIZEN}}`

`SKIP_PREFLIGHT_CHECK` :: `true`

[sample .env file](https://github.com/egovernments/Digit-Core/blob/workbench/frontend/micro-ui/web/micro-ui-internals/example/.env-unifieddev)

## Tech Stack

**Libraries:**
**Libraries:**

[React](https://react.dev/)

Expand All @@ -87,22 +85,18 @@ To run this project, you will need to add the following environment variables to

[MIT](https://choosealicense.com/licenses/mit/)


## Author

- [@jagankumar-egov](https://www.github.com/jagankumar-egov)


## Documentation

[Documentation](https://https://core.digit.org/guides/developer-guide/ui-developer-guide/digit-ui)


## Support

For support, add the issues in https://github.com/egovernments/DIGIT-core/issues.


## Modules

1. Core
Expand All @@ -114,18 +108,18 @@ For support, add the issues in https://github.com/egovernments/DIGIT-core/issues

## Starting with Digit-UI App (Impelmentation Teams) - MICRO-UI


Go to the Sub directory to run UI

```bash
cd into micro-ui/web
```

```bash
yarn install
```

Add .env file

```bash
micro-ui/web/.env
```
Expand All @@ -136,6 +130,4 @@ Start the server
yarn start
```


![Logo](https://s3.ap-south-1.amazonaws.com/works-dev-asset/mseva-white-logo.png)

42 changes: 41 additions & 1 deletion build/build-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,23 @@
config:

# frontend
- name: builds/Digit-Frontend/workbench-ui
- name: builds/Digit-Frontend/workbench-ui-core
build:
- work-dir: micro-ui/
dockerfile: micro-ui/web/workbench/Dockerfile
image-name: workbench-ui

- name: builds/Digit-Frontend/workbench-ui
build:
- work-dir: health/micro-ui/
dockerfile: health/micro-ui/web/workbench/Dockerfile
image-name: workbench-ui

- name: builds/Digit-Frontend/microplan-ui
build:
- work-dir: health/micro-ui/
dockerfile: health/micro-ui/web/microplan/Dockerfile
image-name: microplan-ui

- name: builds/Digit-Frontend/storybook-svg
build:
Expand Down Expand Up @@ -53,3 +65,31 @@ config:
build:
- work-dir: utilities/egov-bff
image-name: egov-bff


#micro frontends
- name: builds/Digit-Frontend/modules/core-digit-ui
build:
- work-dir: micro-ui/
dockerfile: micro-ui/web/docker/Dockerfile
image-name: core-digit-ui

- name: builds/Digit-Frontend/modules/dss-ui
build:
- work-dir: micro-ui/
dockerfile: micro-ui/web/docker/Dockerfile
image-name: dss-ui


- name: builds/Digit-Frontend/modules/workbench-ui
build:
- work-dir: micro-ui/
dockerfile: micro-ui/web/docker/Dockerfile
image-name: workbench-ui


- name: builds/Digit-Frontend/modules/hrms-ui
build:
- work-dir: micro-ui/
dockerfile: micro-ui/web/docker/Dockerfile
image-name: hrms-ui
Loading