Skip to content

Frontend Config UI Adding a new module config

Arun Rajput edited this page Jul 18, 2022 · 1 revision

Frontend UI configuration

https://github.com/shiksha-platform/shiksha-community/discussions/29#discussioncomment-3014954

  1. Create config JSON structure for module similar to attendance schema - https://github.com/shiksha-platform/admin-ui/blob/main/modules/config-ui/src/services/Attendance/attendance-config-schema.json
  2. Stringify json - https://jsonformatter.org/json-stringify-online
  3. Add form to backend using API - https://sandbox.shikshaplatform.io/api/swagger-docs/#/AdminForm/AdminFormController_createAdminForm POST /api/v1/adminForm post body -
    { "moduleId": "module name here...", "formSchema": "stringified json (step-2 above)schema here..." }
  4. In Admin UI application, add navigation menu for new module
  • file - apps/admin-console/src/App.jsx, add new entry children in navLinks array
Screen Shot

Run admin ui application and see the new menu entry visible to edit configuration

Shiksha

Getting Started

Tech Architecture

Telemetry Spec

Config UI for new frontend module

Clone this wiki locally