Skip to content

Commit

Permalink
feat(company data): company data section created (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Jun 3, 2024
1 parent b466ade commit 45f5ffd
Show file tree
Hide file tree
Showing 31 changed files with 2,366 additions and 134 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

- Admin Credential
- Credential Request Management Board Improvements
- Company data
- New company data page created
- Connect to the gate api to fetch the records
- Create and Edit address/site feature introduced
- App marketplace
- Add more and collapse button to category view

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div id="app"></div>
<script>
// Do NOT change 'ENV' without changing 'custom_env_vars_anchor' in scripts/inject-dynamic-env.sh as well
const ENV = {REQUIRE_HTTPS_URL_PATTERN:"true",PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth",SSI_CREDENTIAL_URL:"https://ssi-credential-issuer.example.org",BPDM_API_URL:"https://business-partners.example.org/pool/v6",SEMANTICS_URL:"https://semantics.example.org",MANAGED_IDENTITY_WALLETS_NEW_URL:"https://managed-identity-wallets-new.example.org",REALM:"CX-Central",CLIENT_ID:"Cl2-CX-Portal",CLIENT_ID_SEMANTIC:"Cl3-CX-Semantic",CLIENT_ID_MIW:"Cl5-CX-Custodian",CLIENT_ID_SSI_CREDENTIAL:"Cl24-CX-SSI-CredentialIssuer"}
const ENV = {REQUIRE_HTTPS_URL_PATTERN:"true",PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth",SSI_CREDENTIAL_URL:"https://ssi-credential-issuer.example.org",BPDM_POOL_API_URL:"https://business-partners.example.org/pool/v6",BPDM_GATE_API_URL:"https://business-partners.example.org/companies/test-company/v6",SEMANTICS_URL:"https://semantics.example.org",MANAGED_IDENTITY_WALLETS_NEW_URL:"https://managed-identity-wallets-new.example.org",REALM:"CX-Central",CLIENT_ID:"Cl2-CX-Portal",CLIENT_ID_SEMANTIC:"Cl3-CX-Semantic",CLIENT_ID_MIW:"Cl5-CX-Custodian",CLIENT_ID_SSI_CREDENTIAL:"Cl24-CX-SSI-CredentialIssuer"}
</script>
<script type="module" src="/src/index.tsx"></script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions scripts/inject-dynamic-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
###############################################################

# Define custom variable
custom_env_vars='{REQUIRE_HTTPS_URL_PATTERN:"'$REQUIRE_HTTPS_URL_PATTERN'",PORTAL_ASSETS_URL:"'$PORTAL_ASSETS_URL'",PORTAL_BACKEND_URL:"'$PORTAL_BACKEND_URL'",CENTRALIDP_URL:"'$CENTRALIDP_URL'",SSI_CREDENTIAL_URL:"'$SSI_CREDENTIAL_URL'",BPDM_API_URL:"'$BPDM_API_URL'",SEMANTICS_URL:"'$SEMANTICS_URL'",MANAGED_IDENTITY_WALLETS_NEW_URL:"'$MANAGED_IDENTITY_WALLETS_NEW_URL'",REALM:"'$REALM'",CLIENT_ID:"'$CLIENT_ID'",CLIENT_ID_SEMANTIC:"'$CLIENT_ID_SEMANTIC'",CLIENT_ID_MIW:"'$CLIENT_ID_MIW'",CLIENT_ID_SSI_CREDENTIAL:"'$CLIENT_ID_SSI_CREDENTIAL'"}'
custom_env_vars='{REQUIRE_HTTPS_URL_PATTERN:"'$REQUIRE_HTTPS_URL_PATTERN'",PORTAL_ASSETS_URL:"'$PORTAL_ASSETS_URL'",PORTAL_BACKEND_URL:"'$PORTAL_BACKEND_URL'",CENTRALIDP_URL:"'$CENTRALIDP_URL'",SSI_CREDENTIAL_URL:"'$SSI_CREDENTIAL_URL'",BPDM_POOL_API_URL:"'$BPDM_POOL_API_URL'",BPDM_GATE_API_URL:"'$BPDM_GATE_API_URL'",SEMANTICS_URL:"'$SEMANTICS_URL'",MANAGED_IDENTITY_WALLETS_NEW_URL:"'$MANAGED_IDENTITY_WALLETS_NEW_URL'",REALM:"'$REALM'",CLIENT_ID:"'$CLIENT_ID'",CLIENT_ID_SEMANTIC:"'$CLIENT_ID_SEMANTIC'",CLIENT_ID_MIW:"'$CLIENT_ID_MIW'",CLIENT_ID_SSI_CREDENTIAL:"'$CLIENT_ID_SSI_CREDENTIAL'"}'
# Define anchor variable
custom_env_vars_anchor='{REQUIRE_HTTPS_URL_PATTERN:"true",PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth",SSI_CREDENTIAL_URL:"https://ssi-credential-issuer.example.org",BPDM_API_URL:"https://business-partners.example.org/pool/v6",SEMANTICS_URL:"https://semantics.example.org",MANAGED_IDENTITY_WALLETS_NEW_URL:"https://managed-identity-wallets-new.example.org",REALM:"CX-Central",CLIENT_ID:"Cl2-CX-Portal",CLIENT_ID_SEMANTIC:"Cl3-CX-Semantic",CLIENT_ID_MIW:"Cl5-CX-Custodian",CLIENT_ID_SSI_CREDENTIAL:"Cl24-CX-SSI-CredentialIssuer"}'
custom_env_vars_anchor='{REQUIRE_HTTPS_URL_PATTERN:"true",PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth",SSI_CREDENTIAL_URL:"https://ssi-credential-issuer.example.org",BPDM_POOL_API_URL:"https://business-partners.example.org/pool/v6",BPDM_GATE_API_URL:"https://business-partners.example.org/companies/test-company/v6",SEMANTICS_URL:"https://semantics.example.org",MANAGED_IDENTITY_WALLETS_NEW_URL:"https://managed-identity-wallets-new.example.org",REALM:"CX-Central",CLIENT_ID:"Cl2-CX-Portal",CLIENT_ID_SEMANTIC:"Cl3-CX-Semantic",CLIENT_ID_MIW:"Cl5-CX-Custodian",CLIENT_ID_SSI_CREDENTIAL:"Cl24-CX-SSI-CredentialIssuer"}'
# Read content of the reference index.html file into the index_html_reference variable
index_html_reference=`cat /usr/share/nginx/html/index.html.reference`
# Replace the anchor variable with the custom variable in the index.html file
Expand Down
113 changes: 111 additions & 2 deletions src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"companyWallet": "Company Wallet",
"company-subscriptions": "Firmenabonnements",
"mycompany": "My Company",
"mynotifications": "My Notifications"
"mynotifications": "My Notifications",
"company_data": "Company Data"
},
"overlays": {
"invite": "Neuen Geschäftspartner einladen",
Expand Down Expand Up @@ -1987,6 +1988,113 @@
"retryBtn": "Retry Deletion",
"notSupportedTitle": "Company account deletion is not supported. You registration is already submitted/closed. To unsubscribe you need to use the platform off-boarding process.",
"notSupportedDescription": "You can close the screen now or redirect to the portal >> get to the platform"
},
"companyData": {
"label": "Company Data",
"statusInfo": {
"title": "Status Information"
},
"companyInfo": {
"title": "Company Name",
"legalEntityName": "Legal Entity Name",
"legalEntityNumber": "Legal Entity Number",
"legalEntityNameTooltip": "Legal Entity Name",
"legalEntityNumberTooltip": "Legal Entity Number",
"addressTitle": "Address",
"siteTitle": "Site"
},
"table": {
"title": "Sites and addresses",
"buttonSite": "add site",
"buttonAddress": "add address",
"site": "Site Name",
"location": "Location",
"search": "search address / site",
"noRowsMsg": "No Data yet",
"type": "Type"
},
"site": {
"title": "Create new site",
"editTitle": "Edit Site",
"description": "[Description] ... Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est",
"form": {
"site": {
"name": "Site Name",
"hint": "Site Name",
"error": "Please enter valid Site Name"
},
"street": {
"name": "Street with House Number",
"hint": "Street with House Number",
"error": "Please enter valid Street with House Number"
},
"postal": {
"name": "Postal Code",
"hint": "Postal Code",
"error": "Please enter valid Postal Code"
},
"city": {
"name": "City",
"hint": "City",
"error": "Please enter valid City"
},
"countryCode": {
"name": "Country Code",
"hint": "Country Code",
"error": "Please enter valid Country Code"
},
"countryIdentifier": {
"name": "Country Identifier",
"hint": "Country Identifier",
"error": "Please enter valid Country Identifier"
},
"identifierNumber": {
"name": "Identifier Number",
"hint": "Identifier Number",
"error": "Please enter valid Identifier Number"
}
}
},
"address": {
"title": "Create new address",
"editTitle": "Edit Address",
"description": "[Description] ... Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est",
"form": {
"companySite": {
"name": "Select company / site",
"hint": "Select company / site",
"error": "Please enter valid company / site"
},
"addressTitle": {
"name": "Address Title",
"hint": "Address Title",
"error": "Please enter valid Address Title"
},
"street": {
"name": "Street with House Number",
"hint": "Street with House Number",
"error": "Please enter valid Street with House Number"
},
"postal": {
"name": "Postal Code",
"hint": "Postal Code",
"error": "Please enter valid Postal Code"
},
"city": {
"name": "City",
"hint": "City",
"error": "Please enter valid City"
}
}
},
"success": {
"title": "Create {name}",
"description": "The changes have been successfully saved"
},
"error": {
"title": "Create {name}",
"description": "The changes could not be saved. Please try again"
}
}
},
"navigation": {
Expand Down Expand Up @@ -2088,7 +2196,8 @@
"retry": "Retry",
"exit": "exit",
"loading": "Loading...",
"unsubscribe": "Unsubscribe"
"unsubscribe": "Unsubscribe",
"edit": "Edit"
},
"state": {
"enabled": "aktiv",
Expand Down
113 changes: 111 additions & 2 deletions src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"companyWallet": "Company Wallet",
"company-subscriptions": "Company Subscriptions",
"mycompany": "My Company",
"mynotifications": "My Notifications"
"mynotifications": "My Notifications",
"company_data": "Company Data"
},
"overlays": {
"invite": "Invite new Business Partner",
Expand Down Expand Up @@ -1954,6 +1955,113 @@
"retryBtn": "Retry Deletion",
"notSupportedTitle": "Company account deletion is not supported. You registration is already submitted/closed. To unsubscribe you need to use the platform off-boarding process.",
"notSupportedDescription": "You can close the screen now or redirect to the portal >> get to the platform"
},
"companyData": {
"label": "Company Data",
"statusInfo": {
"title": "Status Information"
},
"companyInfo": {
"title": "Company Name",
"legalEntityName": "Legal Entity Name",
"legalEntityNumber": "Legal Entity Number",
"legalEntityNameTooltip": "Legal Entity Name",
"legalEntityNumberTooltip": "Legal Entity Number",
"addressTitle": "Address",
"siteTitle": "Site"
},
"table": {
"title": "Sites and addresses",
"buttonSite": "add site",
"buttonAddress": "add address",
"site": "Site Name",
"location": "Location",
"search": "search address / site",
"noRowsMsg": "No Data yet",
"type": "Type"
},
"site": {
"title": "Create new site",
"editTitle": "Edit Site",
"description": "[Description] ... Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est",
"form": {
"site": {
"name": "Site Name",
"hint": "Site Name",
"error": "Please enter valid Site Name"
},
"street": {
"name": "Street with House Number",
"hint": "Street with House Number",
"error": "Please enter valid Street with House Number"
},
"postal": {
"name": "Postal Code",
"hint": "Postal Code",
"error": "Please enter valid Postal Code"
},
"city": {
"name": "City",
"hint": "City",
"error": "Please enter valid City"
},
"countryCode": {
"name": "Country Code",
"hint": "Country Code",
"error": "Please enter valid Country Code"
},
"countryIdentifier": {
"name": "Country Identifier",
"hint": "Country Identifier",
"error": "Please enter valid Country Identifier"
},
"identifierNumber": {
"name": "Identifier Number",
"hint": "Identifier Number",
"error": "Please enter valid Identifier Number"
}
}
},
"address": {
"title": "Create new address",
"editTitle": "Edit Address",
"description": "[Description] ... Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est",
"form": {
"companySite": {
"name": "Select company / site",
"hint": "Select company / site",
"error": "Please enter valid company / site"
},
"addressTitle": {
"name": "Address Title",
"hint": "Address Title",
"error": "Please enter valid Address Title"
},
"street": {
"name": "Street with House Number",
"hint": "Street with House Number",
"error": "Please enter valid Street with House Number"
},
"postal": {
"name": "Postal Code",
"hint": "Postal Code",
"error": "Please enter valid Postal Code"
},
"city": {
"name": "City",
"hint": "City",
"error": "Please enter valid City"
}
}
},
"success": {
"title": "Create {name}",
"description": "The changes have been successfully saved"
},
"error": {
"title": "Create {name}",
"description": "The changes could not be saved. Please try again"
}
}
},
"navigation": {
Expand Down Expand Up @@ -2056,7 +2164,8 @@
"retry": "Retry",
"exit": "exit",
"loading": "Loading...",
"unsubscribe": "Unsubscribe"
"unsubscribe": "Unsubscribe",
"edit": "Edit"
},
"state": {
"enabled": "enabled",
Expand Down
Loading

0 comments on commit 45f5ffd

Please sign in to comment.