-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sprint-3 Release] : Inji web Spring Release with Code Refactoring (#52)
* [DSD-5029] Updated install scripts Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Updated install scripts Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install scripts Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Updated scripts Signed-off-by: abhishek8shankar <[email protected]> * Updated install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update install.sh Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update values.yaml Signed-off-by: abhishek8shankar <[email protected]> * [DSD-5029] Update copy_cm.sh Signed-off-by: abhishek8shankar <[email protected]> * [INJIWEB-242][INJIWEB-202][INJIWEB-247]: refactor js -> ts conversion, add localization support, remove material ui and add tailwindcss (#35) * [INJIWEB-242][INJIWEB-202][INJIWEB-247]: refactor js -> ts conversion, add localization support, remove material ui and add tailwindcss Signed-off-by: Vijay <[email protected]> * [INJIWEB-247][INJIWEB-289]: add testid's for the components and add additional locale support Signed-off-by: Vijay <[email protected]> * [INJIWEB-247]: update the configuration Signed-off-by: Vijay <[email protected]> --------- Signed-off-by: Vijay <[email protected]> * [INJIWEB-247]: update the URL Configuration Signed-off-by: Vijay <[email protected]> * [INJIWEB-396]: UI Corrections using Tailwindcss (#43) * [INJIWEB-396]: UI Corrections using Tailwindcss Signed-off-by: Vijay <[email protected]> * [INJIWEB-396]: UI Corrections using Tailwindcss Signed-off-by: Vijay <[email protected]> --------- Signed-off-by: Vijay <[email protected]> * [INJIWEB-257]: injiweb theme customization (#44) Signed-off-by: Vijay <[email protected]> * InjiWeb refactoring for PDF Download (#45) * injiweb-refactoring with pdf download Signed-off-by: Vijay <[email protected]> * injiweb-refactoring with pdf download Signed-off-by: Vijay <[email protected]> * injiweb-refactoring with pdf download Signed-off-by: Vijay <[email protected]> * injiweb-refactoring with pdf download Signed-off-by: Vijay <[email protected]> * injiweb-refactoring with optimization Signed-off-by: Vijay <[email protected]> --------- Signed-off-by: Vijay <[email protected]> * Injiweb ts migration with unit testing setup with jest (#48) * Complete TS Conversion Signed-off-by: Vijay <[email protected]> * testing setup with jest Signed-off-by: Vijay <[email protected]> --------- Signed-off-by: Vijay <[email protected]> * add unit testing and update the language selector (#49) Signed-off-by: Vijay <[email protected]> * [INJIWEB-396]: Tailwind Theming Configuration with Font Customization as well (#50) * [INJIWEB-396]: Tailwind Theming Configuration with Font Customization as well Signed-off-by: Vijay <[email protected]> * [INJIWEB-396]: mimoto host url update Signed-off-by: Vijay <[email protected]> * [INJIWEB-396]: add ADR and remove dark theming Signed-off-by: Vijay <[email protected]> * [INJIWEB-396]: add title to navbar and add missed locale text Signed-off-by: Vijay <[email protected]> --------- Signed-off-by: Vijay <[email protected]> * Update credential_issuer for the Authorization Redirection Signed-off-by: Vijay Kumar S <[email protected]> * [INJIWEB-247]: add support for arabic in the application Signed-off-by: Vijay <[email protected]> * [INJIWEB-399]: Updated mimoto host endpoint Signed-off-by: Vijay Kumar S <[email protected]> * [INJIWEB-396]: empty list container changes Signed-off-by: Vijay <[email protected]> * [INJIWEB-257]: theme customization deployment for injiweb (#57) Signed-off-by: Vijay <[email protected]> * [INJIWEB-257]: Theme Deployment Setup Signed-off-by: Vijay Kumar S <[email protected]> * [INJIWEB-257]: Modify the Default Theme Signed-off-by: Vijay Kumar S <[email protected]> * [INJIWEB-257]: Update file name for env.config.js Signed-off-by: Vijay Kumar S <[email protected]> --------- Signed-off-by: abhishek8shankar <[email protected]> Signed-off-by: abhishek8shankar <[email protected]> Signed-off-by: Vijay <[email protected]> Signed-off-by: Vijay Kumar S <[email protected]> Co-authored-by: abhishek8shankar <[email protected]> Co-authored-by: abhishek8shankar <[email protected]> Co-authored-by: Chandra Keshav Mishra <[email protected]>
- Loading branch information
1 parent
64e22f4
commit a2b915e
Showing
127 changed files
with
21,984 additions
and
32,697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
#REACT_APP_MIMOTO_URL=http://localhost:3010 | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Inji Web Design Decisions. | ||
|
||
**Date:** 2024-04-17 | ||
|
||
## 1. Migration from JS To TS | ||
|
||
### context : | ||
Why TS ? | ||
|
||
1. TS gives us more control on data that is passed within the application | ||
2. TypeScript code tends to be more readable compared to JavaScript, primarily due to its static typing feature. | ||
3. Its more developer friendly | ||
|
||
### decision : | ||
We will be moving to TS from JS | ||
|
||
|
||
## 2. Folder Structure Maintenance for Tests | ||
|
||
### context : | ||
Its better we move all the test files outside the src, so that source is more cleaner with the implementation and mocks are packed separately. | ||
|
||
### decision : | ||
We will be maintaining the same folder structure as src folder under __ tests __ folder to package all the test files together. | ||
|
||
## 3. State Management Library | ||
|
||
### context : | ||
Since the application involves intermediary state changes, Its better we decide a state management library to cater our needs. | ||
|
||
### option 1 : Redux | ||
|
||
1. Redux is a light weight js library, which is independent on the language / library we are using. | ||
2. Its very easy to use and main | ||
3. But Its maintains the global state /context | ||
|
||
### option 2 : XState | ||
|
||
1. XState library is very helpful in maintaining /managing the complex states. | ||
2. XState works using finite state machines. | ||
3. plugins / editors are available to create and debug the flows. | ||
4. But Its more dependent on the state machine, and more tied up with the controller / state machine | ||
|
||
### decision | ||
Since INJI Web is a light weight project with small use case, We will go with Redux, and having xstate for INJIWEB will be hard to maintain. | ||
|
||
## 4. UI Management Libraries ( TailwindCSS Over Material UI) | ||
|
||
### context : | ||
Since the application involves UI pages and components, Its better we decide a UI management library to cater our needs. | ||
|
||
### option 1 : Material UI | ||
1. Material UI is a JavaScript framework | ||
2. Material UI Provides Pre Constructed JS Components and little customization to match our wireframe. | ||
3. But Material UI has to load the entire Framework to render the Page, which increase the loadup time of the application. | ||
4. Application will be scalable, but not Customisable. | ||
|
||
### option 2 : Tailwind CSS | ||
1. TailwindCSS is a CSS library that applies the styles and downloads only the styles that is required for the application to load. | ||
2. Tailwind css over more customization to cater our needed, its easy to manage and scale. | ||
3. Tailwind css is easy to maintain and very light weight. | ||
|
||
### Decision : | ||
We will go with TailwindCSS over Material UI for the following reasons | ||
1. Tailwind CSS is light weight | ||
2. It improves the loadup time, as it Downloads only the styles that are needed. | ||
3. Its provides more customisability, where system integrators can use it to cater their needs and design | ||
|
||
## People | ||
Owners: Vijayakumar, S | ||
Reviewers / team: Vijayakumar S , challa, Shiva Kumar, Sasikumar Ganesan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
echo "generating env-config file" | ||
|
||
workingDir=$nginx_dir/html | ||
echo "window._env_ = {" > ${workingDir}/env.config.js | ||
awk -F '=' '{ print $1 ": \"" (ENVIRON[$1] ? ENVIRON[$1] : $2) "\"," }' ${workingDir}/env.env >> ${workingDir}/env.config.js | ||
echo "}" >> ${workingDir}/env.config.js | ||
|
||
echo "generation of env-config file completed!" | ||
|
||
exec "$@" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.