egovernments / Digit-Core

DIGIT is an open source modular Micro-services multi-tenant platform for public service delivery.
https://core.digit.org
MIT License
16 stars 51 forks source link

Missing Localization for MDMS Schemas Created via Postman #575

Open jagankumar-egov opened 1 month ago

jagankumar-egov commented 1 month ago

Description: Currently, MDMS schemas are being created through Postman, which bypasses the creation of necessary localization messages. This leads to several issues when users access the MDMS/Workbench UI:

  1. Localization Absence:

    • Users do not create localization when adding data via Postman. As a result, when they visit the MDMS or Workbench UI, they see fields displayed as code since the screen expects localized messages for every field name.
  2. Non-Readable UI:

    • The entire screen displays non-user-readable codes for fields, which impacts usability and clarity. This is because the UI assumes and expects localization messages for each field in the schema.

    Attachment Screenshot 2024-09-25 at 2 46 42 PM

  3. Proposed Approach:

    • We should implement an event-based approach or an alternative mechanism that ensures a localization message is automatically created for every property in a schema when it is created.
    • This default localization message would provide a more user-friendly interface, displaying proper messages when users visit the screen.
  4. Standardization for Localization:

    • To ensure uniqueness and consistency, a prefix should be added to every field's localization key. This prefix should follow the format: {schemaCode}_fieldName. This will help standardize how localization messages are created for each schema field.

Steps to Reproduce:

  1. Create an MDMS schema via Postman without providing localization.
  2. Access the MDMS or Workbench UI.
  3. Observe that the screen displays non-localized codes instead of user-friendly messages.

Expected Behavior:

Additional Notes:

574

jagankumar-egov commented 1 month ago

We previously discussed this issue during the "Localization <> Master Data" meeting held on Wednesday, September 25, from 12:00 PM to 1:00 PM. The attendees were @jagankumar-egov @eGovMan @Rishabh-egov @varunreddy-egov Krishna

@Rishabh-egov , please add the discussion points and proposed approaches from the meeting here.

eGovMan commented 1 month ago

@jagankumar-egov - I thought we are calling it Admin Console and not Workbench. 😀

zeel991 commented 1 month ago

Hello Everone!! I am Zeel Darji , C4GT community Lead and Open source Lead of Development Wing of IIITN . I am organizing an open source event in my college's techfest which higlights the importance of DPGs and DPIs .

I wanted to ask you if participants could contribute to the repos of eGovernments for our Event ? Thank You!