• Type: Sub-task
    • Resolution: Done
    • Priority: High
    • None
    • Affects Version/s: None
    • None
    • AMRIT Sprint 42, AMRIT Sprint 43
    • ECD
    • All

      1. Add Role Selection in Question Configuration Panel

      • Integrate a dynamic dropdown populated from the Roles API (Associate, ANM, MO).
      • Allow user to select a role/category while creating or editing audit questions.
      • Send the selected role as part of the request body when saving the question.
      • Display the selected role clearly on the question detail view for clarity.

      2. Render Role/Category Column in Question List View

      • Update the audit question list table to include a new column showing the assigned role/category.
      • Ensure the role is displayed in a human-readable format (e.g., "Associate", "ANM", "MO").
      • Apply appropriate column width and responsive design considerations.

      3. Confirmation & Validation for Question Actions

      • Show toast/snackbar notifications for successful Add, Edit, or Delete actions.
      • Add validation to ensure a role is selected before submitting a new or updated question.
      • Display user-friendly error messages for validation failures.

      4. Pass User Role to Audit Question Fetching

      • During the audit flow, retrieve the role/category of the target agent (the person being audited).
      • Pass this role in the API request to fetch relevant questions tailored to the selected role.
      • Ensure the UI renders only the questions applicable to that role/category.

            Assignee:
            Amoghavarsh Desai
            Reporter:
            Amoghavarsh Desai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified