Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shiksha Saathi Users Tab #62

Open
aakashyadav-kgp opened this issue Oct 17, 2022 · 6 comments
Open

Shiksha Saathi Users Tab #62

aakashyadav-kgp opened this issue Oct 17, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@aakashyadav-kgp
Copy link
Collaborator

aakashyadav-kgp commented Oct 17, 2022

Description

Shiksha saathi user tab is used to manage shiksha saathi platform users. By managing we mean see, create and edit. No delete and download functionality here.

Acceptance Criteria

  1. To access the shiksha saathi users we have a tab on left hand menu by the name "Shiksha Saathi Users". If a user clicks on it they land on the main page of Shiksha Saathi users.
  2. The main screen has following functionalities: Search, Data Table, Edit Entry, Filters, Create.
  3. Data table should have the following columns: Username, Full name, mobile number, Role, District, Block, Cluster.
  4. Search should be based on username with contains functionality. By contains, we mean all entry should be shown that contains the search string anywhere in the search field.
  5. Filter happens on the following fields: Role, District, block, cluster
  6. Editing an entry happens from the edit button on each entry. On edit all field follow data validation rules. Rules are as following:
    Username: Alphanumeric with space and special character and non-editable.
    Full Name: Alpha Numeric with space and special character.
    Mobile Number: Exact 10 digit number
    Designation: Drop down of designation on this tab
    District: Drop Down of all districts. Show if designation is district, cluster, and Block level.
    Cluster: Drop Down of all clusters. Show if designation is cluster, and block level.
    Block: Drop Down of all blocks. Show if designation is block level.
    Level of designation is on this tab
    Change Password: Its a single click button which resets the password of user to himachal12345. On successful rest we show a success notification on screen.
  7. Creating a new entry happen via a button on screeen. Once clicked we land on a new screen with following fields and data validation rules:
    Username: Alpha Numeric with space and special character.
    Full Name: Alpha Numeric with space and special character.
    Mobile Number: Exact 10 digit number
    Designation: Drop down of designation on this tab
    District: Drop Down of all districts. Show if designation is district, cluster, and Block level.
    Cluster: Drop Down of all clusters. Show if designation is cluster, and block level.
    Block: Drop Down of all blocks. Show if designation is block level.
    Level of designation is on this tab
  8. We don't have a delete button on any user anywhere and no click to show on any row.
@aakashyadav-kgp aakashyadav-kgp added the enhancement New feature or request label Oct 17, 2022
@Harshil-Jani
Copy link
Collaborator

@aakashyadav-kgp in 6[Edit] and 7[Create] for UserName and Full Name it seems contradictory to have special character in one and not in other. In case we don't allow special characters in both cases then, Anytime the existing user needs to update the entry then it won't be possible to continue without changing username and full name since many entries currently consists of hypens and underscore. Shall we allow the - and _ ?

@Harshil-Jani
Copy link
Collaborator

Also, There is some confusion regarding Roles and Designation. In the List View of Shiksha Saathi, The Roles column is filled with Designation and when I tried printing out the data for one entry then I was unable to find any key which would correspond to roles into the data.

Eg : The entry is stored as

{
    "data": {
        "accountName": "mand_chachiot-2_beeo",
        "phone": "9816647552",
        "roleData": {
            "block": "CHACHIOT-2",
            "cluster": "GCPS JHUNGI",
            "designation": "BEEO",
            "district": "MANDI",
            "geographic_level": "Block"
        }
    },
    "fullName": "mand_chachiot-2_beeo",
    "id": "7b5b6fd0-a5ad-4f46-8e7b-f92c0ee6218f",
    "insertInstant": 1644582311930,
    "lastLoginInstant": 1657533078890,
    "lastUpdateInstant": 1662713321033,
    "mobilePhone": "9816647552",
    "passwordChangeRequired": false,
    "passwordLastUpdateInstant": 1662980175240,
    "preferredLanguages": [
        "en"
    ],
    "registrations": [
        {
            "data": {
                "roleData": {
                    "block": "CHACHIOT-2",
                    "cluster": "GCPS JHUNGI",
                    "designation": "BEEO",
                    "district": "MANDI",
                    "geographic_level": "Block"
                }
            },
            "id": "00c6e7dc-fcec-4968-86f5-bed4992e9198",
            "insertInstant": 1644582311974,
            "lastLoginInstant": 1657533078890,
            "lastUpdateInstant": 1644582311974,
            "preferredLanguages": [
                "en"
            ],
            "roles": [
                "BEEO"
            ],
            "timezone": "Asia/Kolkata",
            "username": "mand_chachiot-2_beeo",
            "usernameStatus": "ACTIVE",
            "verified": true
        }
    ],
    "tenantId": "a7137ded-6f55-10a8-6f5b-f76dbd79ae60",
    "timezone": "Asia/Kolkata",
    "twoFactor": {},
    "uniqueUsername": "mand_chachiot-2_beeo",
    "username": "mand_chachiot-2_beeo",
    "usernameStatus": "ACTIVE",
    "verified": true
}

So where do you want to target the Role which you have mentioned in Point 7 consisting a dropdown of "Teacher", "School" and "Principle" ? @aakashyadav-kgp

@aakashyadav-kgp
Copy link
Collaborator Author

aakashyadav-kgp commented Oct 22, 2022

@Harshil-Jani
Currently old role is still visible even after selecting new role.
Screenshot 2022-10-22 at 9 40 56 AM

Give option to update district, cluster, block without changing designation. We should have these fields pre-filed on edit screen initially for the old designation.

Screenshot 2022-10-22 at 9 43 08 AM

Will test change password on prod with dummy users.

@Nirali010129
Copy link

  1. The main screen has Export also to download Data - https://prnt.sc/_z6McoRKp2fr
  2. How to check user's password is resetting with a single click to himachal12345
  3. While creating a new entry validation rules: not following in Username & Full Name - https://somup.com/c36u1zvx6m
    This back button does not work - https://prnt.sc/RwlTv526bjK7

@Harshil-Jani
Copy link
Collaborator

Harshil-Jani commented Oct 28, 2022

  • Remove Export Action.
  • Checking user's password reset. [ Needs more clarity from PT ]
  • Validation Rules are working as required. [ Please Re-evaluate the needs]
  • Back button not working.
  • Fix Roles Filtering.

@Nirali010129
Copy link

Mobile no with the alphabet is submitted successfully - https://somup.com/c36w1bv4RF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants