Compare commits

...

1 Commits

Author SHA1 Message Date
adeel.tajamul
5f734afbee feat: added recent sort in learners area 2022-11-08 11:15:25 +05:00
3 changed files with 12 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ export const TopicOrdering = {
export const LearnersOrdering = {
BY_FLAG: 'flagged',
BY_LAST_ACTIVITY: 'activity',
BY_RECENCY: 'recency',
};
/**

View File

@@ -103,6 +103,12 @@ function LearnerFilterBar({
selected={currentSorting}
/>
)}
<ActionItem
id="sort-recency"
label={intl.formatMessage(messages.recentActivity)}
value={LearnersOrdering.BY_RECENCY}
selected={currentSorting}
/>
</Form.RadioSet>
</div>
</Form>

View File

@@ -38,6 +38,11 @@ const messages = defineMessages({
defaultMessage: 'Reported activity',
description: 'Text for learners sorting by reported activity',
},
recentActivity: {
id: 'discussions.learner.recentActivity',
defaultMessage: 'Recent activity',
description: 'Text for learners sorting by recent activity',
},
sortFilterStatus: {
id: 'discussions.learner.sortFilterStatus',
defaultMessage: `All learners by {sort, select,