Repository navigation
Description
User Story
As a learner, I need to know my mastery status for each competency in my course in order to understand what I need to work on improving and how I can speak about my skills.
Description
This ticket implements the oval status indicator display for each competency in the CBE progress cards on the Course Progress page.
This implementation reads the competency statuses from the endpoint built in #738. The status shown is the learner's overall status for the competency across all courses, not only this course.
For each competency tag serving as a card title (a card heading, at any depth), if the learner's status is:
- Not yet recorded (no status row), then display the "Available" oval in slate with the dashed-ring icon.
- PartiallyAttempted, then display the "Partially Attempted" oval in blue with the corresponding icon.
- Demonstrated, then display the "Demonstrated" oval in green with the checkmark icon.
For each competency tag serving as a card subtitle (a tag row inside a card), with the row's pill tinted by status as in the design, if the learner's status is:
- Not yet recorded (no status row), then display "Available" after the pipe next to the tag name.
- PartiallyAttempted, then display "Partially Attempted" after the pipe next to the tag name.
- Demonstrated, then display "Demonstrated" after the pipe next to the tag name.
A tag row that appears only because a descendant has criteria shows its status just like all other subtitle tags.
Breadcrumb entries above a card heading show no status.
If any subsection under a competency tag in this course shows "Available" because its score is hidden (see #739), that tag and every ancestor tag above it display "Available" too, so a competency status never reveals a hidden result.
Context
- [BE] GET Competency Statuses for Learner in Course #738 is the backend counterpart to this ticket.
- Blocked by [FE] Build cards displaying Competency Criteria on the Course Progress page #734 and [FE] Display Subsection Competency Statuses for Learner in Course #739.
UX Design
- Figma Link
- Screenshots:
Acceptance Criteria
These scenarios use #734's terms (card heading, breadcrumb, placeholder row) and these:
- A tag row is a row inside a card for a tag other than the card heading, shown with the target icon before its name. A tag row for a tag with criteria in this course has its groups and subsections under it; a tag row for a tag with no criteria of its own in this course has nothing beneath it.
- A learner's competency status for a tag is the overall status the platform has recorded for that learner and that competency, across all courses: Partially Attempted, Demonstrated, or none recorded (shows as available).
- A card heading's status pill sits at the right end of the card header and shows a status icon and a status label.
- A tag row's status is the label that follows the pipe after the tag's name, inside the row's outlined pill.
- A subsection hides its score when the course hides that subsection's result from the learner on the Progress tab. On a named row, [FE] Display Subsection Competency Statuses for Learner in Course #739 shows this as an "Available" oval.
- Each status's colors are the ones in the attached design.
- Unless a scenario says otherwise, every subsection in the course shows its score to the learner, so no status is masked.
Scenario Outline: A card heading shows the learner's status for its competency
Given "Communication", a top-level tag with criteria of its own in this course, heads its own card
And the learner's competency status for "Communication" is <status>
When the learner opens the course's Progress tab
Then the "Communication" card header shows a "<label>" status pill at its right end, with the <icon> icon, in the design's colors for <label>
Examples:
| status | label | icon |
| none recorded | Available | dashed-ring circle |
| Partially Attempted | Partially Attempted | half-filled circle |
| Demonstrated | Demonstrated | circle with a check |
Scenario Outline: A tag row shows the learner's status after its name
Given "Analysis", a tag with criteria in this course, appears as a tag row in the "Critical Thinking" card
And the learner's competency status for "Analysis" is <status>
When the learner opens the course's Progress tab
Then the "Analysis" tag row shows the target icon, "Analysis", a pipe, and "<label>", inside one outlined pill tinted in the design's color for <label>
Examples:
| status | label |
| none recorded | Available |
| Partially Attempted | Partially Attempted |
| Demonstrated | Demonstrated |
Scenario: A card heading with no criteria of its own shows its competency's own status, even when its rows differ
Given "Analysis", "Evaluation", and "Inference" are children of "Critical Thinking", a top-level tag
And this course has criteria on "Analysis" and "Inference", and none on "Critical Thinking" or "Evaluation"
And the learner's competency status is Demonstrated for "Analysis" and "Inference", and Partially Attempted for "Critical Thinking", because "Evaluation", which has criteria only in another course, is not yet demonstrated
When the learner opens the course's Progress tab
Then the "Critical Thinking" card heading shows "Partially Attempted"
And the "Analysis" and "Inference" tag rows each show "Demonstrated"
Scenario: A tag row for a tag with no criteria of its own shows its status like any other tag row
Given "Root Cause Analysis" is a child of "Problem Definition", which is a child of "Problem Solving", a top-level tag
And this course has criteria on "Problem Solving" and "Root Cause Analysis", and none on "Problem Definition", so one "Problem Solving" card contains a "Problem Definition" row with "Root Cause Analysis" nested under it
And the learner's competency status is Demonstrated for "Root Cause Analysis" and Partially Attempted for "Problem Definition" and "Problem Solving"
When the learner opens the course's Progress tab
Then the "Problem Solving" card heading shows "Partially Attempted"
And the "Problem Definition" tag row shows "Partially Attempted"
And the "Root Cause Analysis" tag row shows "Demonstrated"
Scenario: A card heading below the top level shows its status, and its breadcrumb shows none
Given "Root Cause Analysis" is a child of "Problem Definition", which is a child of "Problem Solving", a top-level tag
And this course has criteria on "Root Cause Analysis"
And the learner's competency status is Demonstrated for "Problem Solving", because the learner met "Problem Solving"'s own requirements in another course, and Partially Attempted for "Problem Definition"
When the learner opens the course's Progress tab
Then the "Problem Definition" card heading shows "Partially Attempted"
And no breadcrumb entry above it, including "Problem Solving", shows a status
Scenario Outline: A hidden score masks its competency and every ancestor, wherever each appears
Given "Problem Definition" and "Strategy Selection" are children of "Problem Solving", a top-level tag, and "Root Cause Analysis" is a child of "Problem Definition"
And this course has criteria on "Strategy Selection" and "Root Cause Analysis", so one "Problem Solving" card contains a "Strategy Selection" tag row and a "Problem Definition" tag row, for a tag with no criteria of its own, with "Root Cause Analysis" nested under it
And the learner's competency status is Demonstrated for all four tags
And "Final Exam", a subsection under "Root Cause Analysis" that the learner has not submitted, <hiding>
When the learner opens the course's Progress tab
Then the "Root Cause Analysis" tag row shows "Available"
And the "Problem Definition" tag row shows "Available"
And the "Problem Solving" card heading shows "Available"
And the "Strategy Selection" tag row still shows "Demonstrated"
And none of the masked tags shows "Demonstrated" at any point while the page loads
Examples:
| hiding |
| is set to show assessment results only once it is past due, and its due date hasn't passed |
| is set to never show individual assessment results, but show overall assessment results after the due date |
Scenario Outline: A subsection with no result to hide never masks a competency
Given "Inference" is a tag row in the "Critical Thinking" card
And one of the subsections under "Inference" <reason>
And the learner's competency status is Demonstrated for "Inference" and Partially Attempted for "Critical Thinking"
When the learner opens the course's Progress tab
Then the "Inference" tag row shows "Demonstrated"
And the "Critical Thinking" card heading shows "Partially Attempted"
Examples:
| reason |
| is visible only to staff, so the learner sees it as a placeholder row |
| isn't released yet, so the learner sees it by name with an "Available" oval |
Scenario: A subsection hidden from the course outline still masks its competency while its results are hidden
Given "Bonus Case Study", a subsection under "Analysis" in the "Critical Thinking" card, is hidden from the course outline, so the learner sees it as a placeholder row
And the learner reached it through a direct link and scored 19 of 20 points on it, so their competency status for "Analysis" is Demonstrated
And "Bonus Case Study" is set to show assessment results only once it is past due, and its due date hasn't passed
When the learner opens the course's Progress tab
Then the "Analysis" tag row and the "Critical Thinking" card heading show "Available"
Scenario: A competency demonstrated in another course shows as Demonstrated and names that course
Given the learner demonstrated "Communication" in the course "Foundations of Critical Thinking"
And the learner has not demonstrated "Communication" through this course's criteria
When the learner opens this course's Progress tab
Then the "Communication" card heading shows "Demonstrated"
And the card reads "Demonstrated in Foundations of Critical Thinking. You can still complete these assignments, but they aren't required."
And "Foundations of Critical Thinking" is a link to that course that opens in a new tab
Scenario: Tags with the same name in two taxonomies each show their own status
Given two taxonomies, "Workplace Skills" and "Accounting Standards", each have a top-level tag named "Communication", and this course has criteria on both tags
And the learner's competency status is Demonstrated for the "Communication" tag in the "Workplace Skills" taxonomy, and none recorded for the "Communication" tag in the "Accounting Standards" taxonomy
When the learner opens the course's Progress tab
Then the "Communication" card under the "Workplace Skills" taxonomy heading shows "Demonstrated"
And the "Communication" card under the "Accounting Standards" taxonomy heading shows "Available"
Scenario: No competency shows a status when the learner's statuses can't be loaded
Given a course with competency criteria
And the request for the learner's competency statuses fails, for example because the site's LMS doesn't provide #738's endpoint
When the learner opens the course's Progress tab
Then the cards appear with their headings and tag rows
And no card heading shows a status pill, and no tag row shows a pipe or a status, not even "Available"
And no error message appears in their place
Scenario Outline: A staff member viewing a learner's progress sees the same statuses the learner sees on their own Progress tab
Given a learner in content group A, whose competency status is Demonstrated for "Communication" and for "Inference", a tag row in the "Critical Thinking" card
And "Group B Project", a subsection under "Communication", is restricted to content group B, so the learner's own Progress tab shows it as a placeholder row, which has no score of the learner's to hide and masks nothing, and "Communication" as "Demonstrated"
And "Unit 3 Quiz", a subsection under "Inference", is set to show assessment results only once it is past due, and its due date hasn't passed, so the learner's own Progress tab shows "Inference" and "Critical Thinking" as "Available"
And the staff member has no competency statuses of their own
When a member of course staff <view>
Then "Group B Project" appears <appearance>
And the "Communication" card heading shows "Demonstrated", as on the learner's own Progress tab
And the "Inference" tag row and the "Critical Thinking" card heading show "Available", as on the learner's own Progress tab
Examples:
| view | appearance |
| opens that learner's progress page, for example from the instructor dashboard | by name, because #734 shows staff every subsection there |
| views the Progress tab masquerading as that learner | as a placeholder row, as on the learner's own Progress tab |
Scenario: A screen reader user hears each competency's name with its status
Given the "Critical Thinking" card heading's status is Partially Attempted
And its tag rows are "Analysis", whose status is Demonstrated, and "Inference", which has no recorded status
When a screen reader user moves through the card, including by jumping between headings
Then they hear "Critical Thinking" with "Partially Attempted", "Analysis" with "Demonstrated", and "Inference" with "Available"
And they hear each status once, with nothing announced for the pipe and no second announcement from a status icon
Scenario: Status labels are legible against their background
Given card headings and tag rows showing each of "Available", "Partially Attempted", and "Demonstrated"
When a reviewer measures each status label's contrast against the background behind it
Then every status label meets WCAG 2.1 AA contrast for its text size
Scenario: Statuses stay readable beside long names on a small screen
Given a card whose heading and a tag row inside it both have names long enough to fill a phone-width card
When the learner opens the course's Progress tab at a phone-sized viewport
Then the heading's name is cut short with an ellipsis, with its full name in a tooltip on hover and on keyboard focus, and its status pill stays whole beside it on one line
And the tag row's pill wraps onto more lines, keeping the name, the pipe, and the status inside it
And no tag row name or status is cut off, overlaps another, or extends past the card's edgeTechnical Details
This is a suggested approach, not the source of truth. The User Story, Description, and Acceptance Criteria define what must be true when the work is done.
Summary
Each card heading shows the learner's status for its tag in #739's StatusOval, which reads "Demonstrated" instead of a score when given none. Each tag row shows its status in a new TagStatusPill. #739's buildCompetencyStatuses supplies these statuses, and sets every tag above a masked subsection to "Available".
Approach
-
Tag statuses. Add
tagsto [FE] Display Subsection Competency Statuses for Learner in Course #739'sbuildCompetencyStatusesresult, beside [FE] Display Subsection Competency Statuses for Learner in Course #739'scriteria: aMapfrom tagidto a display status. Criterion ids and tag ids are different id spaces, so the two stay in separate maps. Consumers read both through [FE] Display Subsection Competency Statuses for Learner in Course #739'suseCompetencyStatuses, whose shape is unchanged, so [FE] Right Side Course Competency Progress #743 and [EPIC-SP] Competency Status Sunburst #745 get the same masked result. Cover everyidin thelineageof every tag in [BE] GET Competency Criteria for Course #733'stags; that includes card headings with no criteria of their own. A tag shows itsstudent_competency_statusesentry, or "Available" when it has none. A tag whose status is unknown is left out of the map, so it gets no pill and no pipe ([FE] Display Subsection Competency Statuses for Learner in Course #739 already logs the value). -
Propagation. For each criterion that [FE] Display Subsection Competency Statuses for Learner in Course #739 marks
masked, take its tag, which is thetag_idof its group's root asbuildCompetencyCardsresolves it. Mark everyidin that tag'slineage, which runs from the top of the taxonomy down to the tag itself. A masked tag shows "Available" whatever its stored status, including an unknown one. Because the map is keyed by tag id, a masked tag reads "Available" everywhere it appears, including as the heading of a different card. Unreleased subsections are nevermasked, so they never mask the tags above them.- Placeholder rows: [FE] Display Subsection Competency Statuses for Learner in Course #739's
criteriacovers named rows only, so check each placeholder criterion here. A placeholder criterion masks its tag's lineage when itsobject_idis in the learner'ssection_scoresindex withshow_gradesfalse. A learner can reach a subsection hidden from the outline (hide_from_toc) through a direct link and submit it, so a hidden result can sit behind its recorded status. Other placeholder rows, such as staff-only or other-group subsections, aren't in the learner'ssection_scores, so they never mask.
- Placeholder rows: [FE] Display Subsection Competency Statuses for Learner in Course #739's
-
Staff route. On the staff route, [FE] Build cards displaying Competency Criteria on the Course Progress page #734's outline is the staff member's, so a subsection the learner can't see is a named row there. For example, take "Group A Project" and "Group B Project", alternative paths joined by OR under "Communication", each restricted to its content group, for a Group A learner whose "Communication" status is Demonstrated:
- On the learner's own page, "Group B Project" isn't in the learner's outline, so it is a placeholder row. Because it belongs to another group, the learner can't open it, and it isn't in the learner's
section_scores. So, unlike a hidden-from-outline subsection with hidden results (step 2), its placeholder row doesn't mask the tags above it, and "Communication" reads "Demonstrated". - On the staff route, "Group B Project" is a named row. The Progress API leaves it out of the learner's
section_scores, and [FE] Display Subsection Competency Statuses for Learner in Course #739's rule masks a named row that is missing fromsection_scores. That mask would spread to the tags above it, so "Communication" would read "Available".
So when
targetUserIdis set,buildCompetencyStatusesleavesmaskedfalse for a named row that is missing fromsection_scores. Its oval still reads "Available", as [FE] Display Subsection Competency Statuses for Learner in Course #739 specifies. A row whoseshow_gradesis false still masks, because the Progress API computesshow_gradesfor the learner. Erring toward showing staff more is safe: masking exists so that some learners don't see results before others, and course staff can already see grades in the Gradebook. Masquerade needs nothing, because [FE] Build cards displaying Competency Criteria on the Course Progress page #734's outline is already the masqueraded learner's andtargetUserIdis unset. - On the learner's own page, "Group B Project" isn't in the learner's outline, so it is a placeholder row. Because it belongs to another group, the learner can't open it, and it isn't in the learner's
-
Headings.
CompetencyCardlooks up the card's heading tagid([FE] Build cards displaying Competency Criteria on the Course Progress page #734) and renders [FE] Display Subsection Competency Statuses for Learner in Course #739'sStatusOvalwithoutpercentGraded, so a Demonstrated heading reads "Demonstrated" rather than a score, inside the heading element at the right end of the header. That way a screen reader moving by heading hears the status together with the name. The name renders through [FE] Build cards displaying Competency Criteria on the Course Progress page #734'sTruncatedNameas the heading'sflex-grow-1item, with the pill as aflex-shrink-0sibling, so a long name ends in an ellipsis with its full name in the tooltip and the pill stays whole beside it. Breadcrumb entries show nothing. -
Tag rows.
TagStatusPillrenders the target icon, the name, anaria-hiddenpipe, and the status label as visible text, all inside one outlined pill tinted by status. Paragon has no component for this.Chipis the closest: withoutonClickit renders as a non-interactivediv, and it supportsiconBefore, but it has no tinted variants and its label never wraps (.pgn__chip__labelsetswhite-space: nowrapwith an ellipsis). BuildTagStatusPillonChip: per status, override its border and background custom properties and--pgn-color-chip-label-base, which also colors the icon, so the status text meets the contrast scenario; set--pgn-size-chip-border-radiustovar(--pgn-size-badge-border-radius-pill), becauseChip's default radius (0.375rem) is much squarer than the design's fully rounded pill; and let the label wrap. WithoutonClick,Chip'siconBeforerenders a plainIconwith no text alternative, so give the target icon its text alternative in ansr-onlysibling, as [FE] Build cards displaying Competency Criteria on the Course Progress page #734 requires. Call out the Paragon gap in the PR description so it can be raised upstream. -
Failure. When [FE] Display Subsection Competency Statuses for Learner in Course #739's hook returns null
statuses, headings get no pill and rows get no pipe or status. That includes a Progress API failure while [BE] GET Competency Statuses for Learner in Course #738 succeeds: without the Progress API the mask can't be computed, and showing [BE] GET Competency Statuses for Learner in Course #738's statuses unmasked could reveal a hidden result. -
Test cases beyond the AC:
- When the Progress API fails while [BE] GET Competency Statuses for Learner in Course #738 succeeds, no tag status appears.
- An unknown status shows no status on a heading or on a tag row.
- A masked tag whose stored status is unknown shows "Available".
- On the staff route, a named row missing from
section_scoresdoesn't mask its tags, and a row whoseshow_gradesis false still does. - A placeholder criterion whose subsection is in
section_scoreswithshow_gradesfalse masks its tags. One whose subsection is missing fromsection_scores, such as a staff-only or other-group subsection, doesn't.
-
tutor-mfe pin. Once a package release includes this ticket, open a pull request to
overhangio/tutor-mfethat moves the pinned package version [FE] Bundle the CBE Student Progress widgets with tutor-mfe #828 adds to that release, and verify it on a Learning MFE image rebuilt from that branch. Until a tutor-mfe release includes that pull request, Tutor sites show the card headings and tag rows without statuses.
Out of scope:
- Subsection ovals and the per-subsection mask ([FE] Display Subsection Competency Statuses for Learner in Course #739).
- The Focus Areas sidebar ([FE] Right Side Course Competency Progress #743).
Files to create and modify
Paths are relative to the root of the plugin repository from #810.
| File | Change |
|---|---|
src/data/buildCompetencyStatuses.js |
modified: tag statuses, propagation, and the staff-route mask rule |
src/CompetencyCard.jsx |
modified: heading pill and tag row pills |
src/TagStatusPill.jsx |
new |
src/messages.js |
modified |
tutormfe/plugin.py in overhangio/tutor-mfe |
modified: wherever #828 declares the package's pinned version, most likely this file, otherwise tutormfe/templates/mfe/build/mfe/Dockerfile |
Additional context
- Known limitations:
- A heading's status rolls up child tags the card doesn't show, so "Partially Attempted" can sit above rows that all read "Demonstrated".
- Masking covers only this course's criteria, so a competency can read "Available" here and "Demonstrated" on another course's Progress tab.
- A subsection whose results are hidden until its due date makes its competency and every ancestor read "Available" until that date passes. When its results are never shown, they read "Available" for the whole run. This applies even to competencies demonstrated in another course.
- On the staff route, a subsection set to never show individual results (
never_but_include_grade) doesn't mask its tags, because the Progress API leaves it out ofsection_scoresthe same way it leaves out subsections the learner can't see. Staff can therefore see a tag status that the learner sees as "Available". Masquerade matches the learner's page exactly.
- Statuses for tags with no criteria of their own, such as most card headings, come from [BE] Roll up a learner's competency status from criterion to competency after a grade is recorded #643's roll-up through
Tag.parent. Until [BE] Roll up a learner's competency status from criterion to competency after a grade is recorded #643 ships, those headings read "Available". - A distinct "results not released yet" state, instead of "Available" for a masked tag, is a possible UX follow-up with @illiphilli.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsFinal Axim Review
Activity
[-][Placeholder - FE] Build a display of Competency Status for each Competency/Sub-competency in the table on the Course Progress page[/-][+][FE] Display Competency Statuses for Learner in Course[/+]thelmick-unicon commentedon Oct 27, 2026
The discussion period for this ticket is now complete, and we appreciate all the feedback. We'll be moving forward with development based on the current ticket pending final Axim sign-off. That said, the conversation doesn't have to stop. If you still have feedback, please continue to add to this ticket. We'll review anything new and determine whether it fits within the current timeline or makes more sense as its own ticket for future work. Thanks again for helping make this better!
@jmakowski1123 This is ready for your final review. Thank you!