solex2006 / SELIProject

SELI Project
9 stars 17 forks source link

FEAT [COMMENT'S BADGE] #211

Open beldier opened 4 years ago

beldier commented 4 years ago

INDEX

1 REQUIREMENT

1.1 USER STORIES

1.2 WORKFLOW

1.3 REQUIREMENTS (DETAILS)

1.4 WIREFRAMES

2 RESOURCES

2.1 TOOLS

2.2 SUGGESTED IMPLEMENTATION

2.3 REFERENCES

3 GLOSSARY

REQUIREMENT

USER STORIES

As a tutor is required to award a badge based on best comment in forum activiy

WORKFLOW

flowComments

REQUIREMENT DETAILS

tutor - > Published courses - > Classroom management -> See course -> Actitivy(forum) It is required to supply a way to award a badge based on the best comment of the activity .

WIREFRAMES

First we need to implement the 3-dots button in comments to display a menu with badge generation Frame 8

Second will be to show the component to create badge , currently is nested into quizForm.js code, so extract the code into a component and use it in forum activity Frame 9

Last will be to display some sort of insignia in the comment, to distinguish that it already has a badge Frame 7

RESOURCES

SUGGESTED IMPLEMENTATION

The place to store the badge is critical, since it should work with data already in the platform The next document it is activities collection (db.activities.find().pretty())

{
    "_id" : "LjTok7ybL3QGcpcmz",
    "activity" : {
        "data" : [
            {
                "id" : 0.31611039798347473,
                "userId" : "nXjoZYCaKfqCmv32m",
                "date" : ISODate("2020-09-04T16:37:17.575Z"),
                "label" : "Hello 1st comment",
                "media" : [ ]
                              //"badge":"Badge Object".      Probably best place to store each comment badge, up to discussion

            },
            {
                "id" : 0.9680622785060196,
                "userId" : "nXjoZYCaKfqCmv32m",
                "date" : ISODate("2020-09-04T16:37:24.389Z"),
                "label" : "Hello 2nd comment",
                "media" : [ ]
                              //"badge":"Badge Object".      Probably best place to store each comment badge, up to discussion

            },
            {
                "id" : 0.8890996896046655,
                "userId" : "A5ZezmMc7s6KdyHpg",
                "date" : ISODate("2020-09-04T16:39:01.875Z"),
                "label" : "my first comment",
                "media" : [ ]
                              //"badge":"Badge Object".      Probably best place to store each comment badge, up to discussion

            },
            {
                "id" : 0.6891948494688911,
                "userId" : "nXjoZYCaKfqCmv32m",
                "date" : ISODate("2020-09-04T16:39:57.013Z"),
                "label" : "3rd comment",
                "media" : [ ]
                              //"badge":"Badge Object".      Probably best place to store each comment badge, up to discussion
            }
        ],
        "type" : "forum",
        "public" : false,
        "date" : ISODate("2020-09-04T16:03:52.065Z"),
        "user" : "dcAnko74fnwbFfTLN",
        "course" : "q3Nvrda3ZMWxfk4Mg"
    }
}

SUGGESTED TOOLS

REFERENCES


GLOSSARY

ecureuill commented 4 years ago

Hello @beldier this feature is going to be developed in current release or this need to be discussed yet?

beldier commented 4 years ago

yes @ecureuill, sorry forgot that label , is currently in development

github-actions[bot] commented 4 years ago

This Feature Request was accepted and is ready for specfication.

github-actions[bot] commented 4 years ago

This Feature is ready to be implemented.

github-actions[bot] commented 4 years ago

This Feature is ready to be implemented.