Repository navigation
Description
User Story
As a learner, I want to see at a glance how the subsection assignments and sub-competencies in my course roll up to the competencies on my Progress page, and the status of each, in order to understand how my work in this course inter-relates and where I stand.
Description
Above the competency status cards in the main column of the Progress page, add one sunburst per taxonomy that the course's competency criteria use, with a single legend. A course whose criteria use three or more taxonomies shows no sunbursts for now.
Sunburst:
- The center of the sunburst says "COMPETENCIES DEMONSTRATED", except on a chart too small for the caption to fit.
- The rings correspond to how [FE] Build cards displaying Competency Criteria on the Course Progress page #734 lays out that taxonomy's cards. The innermost ring has one segment per card heading, and each further ring is one nesting depth of the rows inside the cards. Breadcrumb ancestors above a card heading are not drawn.
- The outermost ring is for the subsection assignments, and it is thinner than the competency rings. A competency with no rows beneath it extends its segment outward to meet the subsection ring, so every subsection segment sits in that one outer ring.
- Within each ring, children share their parent's angle equally. Segments run clockwise from 12 o'clock in the order the cards display them, and counterclockwise in a right-to-left language.
Legend:
- Each segment is filled with its status's color.
- Demonstrated has a green checkmark. Competency and subsection segments can be Demonstrated.
- Available has a slate circle with a dashed ring. Competency and subsection segments can be Available.
- Partially Attempted has a blue half-filled circle. Competency and subsection segments can be Partially Attempted.
- Not Demonstrated has a dark red circle with a minus sign. Only subsection segments can be Not Demonstrated, because a competency is never Not Demonstrated.
- The legend always lists all four statuses.
Context
- Corresponds with the UXD Spike [UXD Spike] Document edge case depth and criteria associations and create UX designs for how this will be handled. #769
- Hover and tap behavior (tooltip, highlight, in-segment status icon) is out of scope for this ticket because [FE] Sunburst Tooltips #751 builds it.
- Blocked by [FE] Build cards displaying Competency Criteria on the Course Progress page #734, [FE] Display Subsection Competency Statuses for Learner in Course #739, [FE] Display Competency Statuses for Learner in Course #740
UX Design
- Figma:
- Screenshots:
Acceptance Criteria
These scenarios use #734's terms (card, card heading, breadcrumb, placeholder row), #739's term named row, and #739's and #740's statuses, plus these definitions:
- 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.
- The competency rings are the sunburst's inner bands. The innermost holds one segment per card heading, and each further ring holds the tag rows at the next nesting depth inside the cards. The subsection ring is the outermost band and holds one segment for each subsection the cards count, including each subsection counted in a placeholder row.
- A segment's angle is the share of the circle it spans.
- A segment is drawn as a status when it is filled with that status's color from the legend.
- Unless a scenario says otherwise, the course's criteria use one taxonomy, the learner's statuses and scores have loaded, and no status is masked.
Several scenarios use "the example course", the course from #734's Description. Its taxonomy and criteria are:
- Critical Thinking
- Analysis (criteria in this course)
- Evaluation
- Inference (criteria in this course)
- Communication (criteria in this course)
- Written Communication
- Oral Communication
- Audience Awareness
- Problem Solving
- Problem Definition
- Root Cause Analysis (criteria in this course)
- Strategy Selection
- Solution Testing
#734 shows the example course as three cards: a "Communication" card with Communication's own rules and subsections and no tag rows; a "Critical Thinking" card with "Analysis" and "Inference" as tag rows, and no row for "Evaluation" because it has no criteria in this course; and a "Problem Definition" card with a "Root Cause Analysis" tag row and a "Problem Solving" breadcrumb above the heading.
Scenario: One sunburst and one legend appear above the cards
Given a course whose competency criteria all use tags from "Workplace Skills"
When the learner opens the course's Progress tab
Then one sunburst and one legend appear at the top of the competency criteria panel, above the "Workplace Skills" heading and its cards
And no taxonomy name appears above the sunburst
And no segment carries a text label
Scenario Outline: The center caption is the same whatever the learner's progress
Given a course with competency criteria
And the sunburst is large enough for its center caption to fit
And <progress>
When the learner opens the course's Progress tab
Then the center of the sunburst reads "COMPETENCIES DEMONSTRATED", with no count or percentage
Examples:
| progress |
| the learner hasn't submitted anything in the course |
| the learner has demonstrated every competency in the chart |
Scenario: The center caption is hidden on a chart too small for it
Given a course with competency criteria
When the learner views the Progress tab at a width that makes a sunburst too small for its center caption to fit
Then that sunburst's center is empty
And its rings, segments, and legend are unchanged
Scenario: A course using two taxonomies shows one named sunburst per taxonomy and one shared legend
Given a course with competency criteria on tags from "Workplace Skills" and from "Accounting Standards", and each taxonomy has a top-level tag named "Communication" with criteria in this course
When the learner opens the course's Progress tab
Then two sunbursts appear above all of the cards, one per taxonomy, in the same order as the taxonomy headings below them
And each sunburst has its own taxonomy's name, "Accounting Standards" or "Workplace Skills", above it
And each sunburst draws only its own taxonomy's cards, so each "Communication" tag has a segment only in its own taxonomy's sunburst
And exactly one legend appears for the two sunbursts
And no sunburst or legend appears inside either taxonomy's section of cards
Scenario: A course using three or more taxonomies shows no sunburst
Given a course with competency criteria on tags from three taxonomies
When the learner opens the course's Progress tab
Then no sunburst and no legend appear, and no message or empty space takes their place
And each taxonomy's heading and cards appear as usual
Scenario: The rings follow the cards, starting from the card headings
Given the example course
When the learner opens the course's Progress tab
Then the innermost ring has three segments, one per card heading: "Communication", "Critical Thinking", and "Problem Definition"
And the second ring has "Analysis" and "Inference" beneath "Critical Thinking", and "Root Cause Analysis" beneath "Problem Definition"
And no segment is drawn for "Problem Solving" or for any other breadcrumb entry
And the subsection ring has one segment for each subsection the three cards count, beneath the tag the card lists it under
And the subsection ring is narrower than each competency ring
Scenario: A competency with no tag rows beneath it reaches out to the subsection ring
Given the example course
When the learner opens the course's Progress tab
Then the "Communication" segment extends from the innermost ring across the second ring's position to the subsection ring
And Communication's subsection segments sit in the same outermost ring as every other subsection segment
Scenario: A card below the top of a deep taxonomy draws only the card's own levels
Given a taxonomy six levels deep, with one tag at each level, named "Level 1" at the top through "Level 6" at the bottom
And the course has competency criteria on "Level 6" only, so its card is headed "Level 5" with "Level 1" through "Level 4" as a breadcrumb
When the learner opens the course's Progress tab
Then the sunburst has two competency rings: "Level 5", spanning the whole circle, and "Level 6" beneath it
And no segment is drawn for "Level 1", "Level 2", "Level 3", or "Level 4"
Scenario: A merged card draws its rows for tags without criteria as rings
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 the course has competency criteria on "Strategy Selection" and "Root Cause Analysis" only, so #734 shows one "Problem Solving" card with a "Strategy Selection" row and a "Problem Definition" row, for a tag with no criteria of its own, with "Root Cause Analysis" nested under it
When the learner opens the course's Progress tab
Then the sunburst has three competency rings: "Problem Solving"; then "Strategy Selection" and "Problem Definition"; then "Root Cause Analysis", beneath "Problem Definition"
And the "Strategy Selection" segment extends from the second ring to the subsection ring
Scenario: Six competency rings are all drawn, with no cap
Given "Problem Solving" is a top-level tag whose children include "Strategy Selection" and "Problem Definition"
And below "Problem Definition" is one tag per level, "Level 3", "Level 4", and "Level 5", and "Level 5" has two children, "Level 6 A" and "Level 6 B"
And the course has competency criteria on "Strategy Selection", "Level 6 A", and "Level 6 B" only, so #734 shows one "Problem Solving" card with "Problem Definition", "Level 3", "Level 4", and "Level 5" as nested rows, none of them with criteria of its own
When the learner opens the course's Progress tab
Then the sunburst has six competency rings and the subsection ring
And the first ring is "Problem Solving", spanning the whole circle
And the second ring is "Strategy Selection" and "Problem Definition", each spanning half of the circle
And the "Strategy Selection" segment extends from the second ring to the subsection ring
And in the "Problem Definition" half, the third ring is "Level 3", the fourth is "Level 4", and the fifth is "Level 5", each spanning the whole half
And the sixth ring is "Level 6 A" and "Level 6 B", each spanning a quarter of the circle, beneath "Level 5"
And no ring is left out and no level is combined with another
Scenario: Children share their parent's angle equally in every ring
Given a "Critical Thinking" card with tag rows "Analysis", which has three subsections, and "Inference", which has one
And a "Communication" card with no tag rows and two subsections
When the learner opens the course's Progress tab
Then "Critical Thinking" and "Communication" each span half of the circle
And "Analysis" and "Inference" each span half of Critical Thinking's angle
And each of Analysis's three subsection segments spans a third of Analysis's angle, and Inference's one subsection segment spans all of Inference's angle
And each of Communication's two subsection segments spans half of Communication's angle
Scenario: Every subsection gets its own segment, however many there are
Given a tag with 40 subsections in this course
When the learner opens the course's Progress tab
Then 40 subsection segments appear beneath that tag's segment, each spanning an equal share of its angle
And no subsections are combined into a shared segment
Scenario: Segments run clockwise from 12 o'clock in the order the cards show them
Given a "Communication" card followed by a "Critical Thinking" card, which lists "Analysis" and then "Inference"
And under Analysis's rule line the card lists "Quiz 1", "Quiz 2", and then a placeholder row for one hidden subsection
When the learner opens the course's Progress tab
Then the "Communication" segment starts at 12 o'clock, and "Critical Thinking" follows it clockwise
And within Critical Thinking's angle, "Analysis" comes before "Inference", clockwise
And within Analysis's angle, the segments for "Quiz 1", "Quiz 2", and the hidden subsection follow clockwise in that order
Scenario: Segments run counterclockwise in a right-to-left language
Given the "Communication" card followed by the "Critical Thinking" card from the previous scenario
And the learner's language reads right to left, such as Arabic
When the learner opens the course's Progress tab
Then the "Communication" segment starts at 12 o'clock, and every segment follows counterclockwise, in the same order as the cards
Scenario Outline: Each competency segment is drawn in the status the cards show for it
Given <tag> appears in the cards as <kind>
And the learner's competency status for <tag> is <status>
When the learner opens the course's Progress tab
Then the <tag> segment is drawn as <label>, matching the status the cards show for <tag>
Examples:
| tag | kind | status | label |
| "Critical Thinking" | a card heading | none recorded | Available |
| "Analysis" | a tag row | Partially Attempted | Partially Attempted |
| "Problem Definition" | a tag row for a tag with no criteria of its own | Demonstrated | Demonstrated |
Scenario Outline: Each subsection segment is drawn in the status its row's oval shows
Given "Quiz 1" appears by name under "Analysis", under a rule line reading "AT 80% OR BETTER"
And <result>
When the learner opens the course's Progress tab
Then the "Quiz 1" segment is drawn as <label>, matching Quiz 1's oval in the card
Examples:
| result | label |
| the learner hasn't submitted Quiz 1 | Available |
| the learner's recorded status on Quiz 1 is Partially Attempted | Partially Attempted |
| the learner scored 12 of 20 points on Quiz 1, so their recorded status is Not Demonstrated | Not Demonstrated |
| the learner scored 19 of 20 points on Quiz 1, so their recorded status is Demonstrated | Demonstrated |
| Quiz 1's results are set never to be shown, and the learner's recorded status on it is Demonstrated | Available |
Scenario: A competency is drawn in its own status even when every subsection under it is Not Demonstrated
Given the learner's recorded status is Not Demonstrated on each subsection under "Analysis"
And their competency status for "Analysis" is Partially Attempted
When the learner opens the course's Progress tab
Then each subsection segment beneath "Analysis" is drawn as Not Demonstrated
And the "Analysis" segment is drawn as Partially Attempted
Scenario: A competency the cards mask is drawn as Available
Given "Problem Definition" and "Strategy Selection" are children of "Problem Solving", "Root Cause Analysis" is a child of "Problem Definition", and the course has criteria on "Strategy Selection" and "Root Cause Analysis" only
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, 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 "Final Exam", "Root Cause Analysis", "Problem Definition", and "Problem Solving" segments are drawn as Available, as the cards show them
And the "Strategy Selection" segment is drawn as Demonstrated
And no masked segment is drawn as Demonstrated at any point while the page loads
Scenario: Each subsection hidden from the learner gets its own segment, drawn like an Available one
Given a rule line under "Analysis" lists "Quiz 1", which the learner can see, and a placeholder row reading "3 more subsections that aren't visible to you"
And the learner scored 19 of 20 points on one of the hidden subsections before the author hid it from the course outline, so their recorded status on it is Demonstrated
When the learner opens the course's Progress tab
Then four subsection segments appear beneath "Analysis": Quiz 1's, followed clockwise by one for each hidden subsection
And each hidden subsection's segment looks the same as an Available subsection segment
And the legend still lists exactly four statuses
Scenario: A subsection under two competencies appears under each, with each one's own status
Given "Quiz 3" appears by name under "Analysis", under a rule line reading "AT 80% OR BETTER", and under "Inference", under a rule line reading "AT 90% OR BETTER"
And the learner scored 17 of 20 points on Quiz 3, so their recorded status is Demonstrated for the "Analysis" criterion and Not Demonstrated for the "Inference" criterion
When the learner opens the course's Progress tab
Then a "Quiz 3" segment beneath "Analysis" is drawn as Demonstrated
And a second "Quiz 3" segment beneath "Inference" is drawn as Not Demonstrated
Scenario: The legend always lists all four statuses
Given a course in which no segment is drawn as Partially Attempted or Not Demonstrated
When the learner opens the course's Progress tab
Then the legend lists "Demonstrated", "Available", "Partially Attempted", and "Not Demonstrated", in that order, each with its status icon
And every segment's color is the color of one of those four entries
And the legend's text meets WCAG 2.1 AA contrast against its background
Scenario: The gaps between segments match the background behind the sunburst
Given a site whose theme gives the Progress tab a background other than white
When the learner opens the course's Progress tab
Then the gaps between segments show the same color as the area behind the sunburst, not white
Scenario: Keyboard focus passes over the sunburst
Given a course with competency criteria
When a keyboard user presses Tab to move through the Progress tab
Then focus never stops on a sunburst or on any of its segments
Scenario: The sunburst appears only once the learner's statuses have loaded
Given a course with competency criteria
And the learner's competency statuses and subsection scores finish loading after the cards appear
When the learner opens the course's Progress tab
Then the cards appear first, with no sunburst, legend, loading indicator, or reserved space above them
And once the statuses and scores load, the sunburst and legend appear above the cards all at once, without animating, with every segment in its final status
And the cards move down to make room for them
And no segment changes after the sunburst first appears
Scenario Outline: The sunburst stays hidden when the learner's statuses can't be loaded
Given a course with competency criteria
And the request for <data> fails
When the learner opens the course's Progress tab
Then no sunburst and no legend appear, and no error message appears in their place
And the taxonomy headings and cards appear as #739 and #740 describe for that failure
Examples:
| data |
| the learner's competency statuses |
| the learner's subsection scores |
Scenario Outline: Course staff viewing a learner see the sunburst that matches that page's cards
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
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
And the staff member has no competency statuses of their own
When a member of course staff <view>
Then the "Communication" segment is drawn as Demonstrated
And the "Inference", "Critical Thinking", "Unit 3 Quiz", and "Group B Project" segments are drawn as Available
And every segment whose card heading, tag row, or subsection row shows a status on that page is drawn in that status
Examples:
| view |
| opens that learner's progress page, for example from the instructor dashboard |
| views the Progress tab masquerading as that learner |
Scenario: The sunburst scales with the main column and fits a small screen
Given a course with competency criteria
When the learner narrows the browser window from desktop width to a phone-sized viewport
Then each sunburst shrinks with the main column, staying round and within the column
And the legend's entries wrap onto more lines instead of being cut off
And the page doesn't scroll horizontally at any width
Scenario: A screen reader user hears each sunburst as one image, and the cards carry its information
Given a course with competency criteria
When a screen reader user moves through the top of the competency criteria panel
Then they hear each sunburst once, as an image whose text alternative says it summarizes their competency statuses and that the cards below list every competency and its status
And when there are two sunbursts, each one's text alternative also names its taxonomy, and the taxonomy name shown above each chart is not announced separately
And they hear no individual segment
And they hear the legend's four status names as text, each once, with no separate announcement for the legend's icons
And every competency and subsection the sunburst draws appears in the cards as text, with the same status wherever the card shows oneTechnical 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
A pure function turns each taxonomy section from #734's useCompetencyCards, plus the two masked status maps from #739's useCompetencyStatuses, into a list of sunburst nodes with angles, rings, and statuses. A hand-written SVG component draws one path per node, with no new runtime dependency. CompetencyProgressPanel renders one or two charts and one shared legend above the taxonomy sections, inside their own error boundary. Every segment carries the ids, ancestry, source references, and centroid that #751's tooltips and highlight build on.
Approach
- Node tree.
buildSunburstTree(section, statuses)insrc/data/buildSunburstTree.jstakes one taxonomy section and thestatusesfromuseCompetencyStatuses. It returns the section's nodes in reading order, with angles in radians and rings as indexes. It works only in angles and ring indexes, never pixels or SVG, so a later drill-in or chart library can reuse it.- Each card heading is a tag node in ring 0. Each row, including a row for a tag with no criteria of its own, is a tag node one ring deeper than the row or heading it sits under.
- Each criterion is one subsection node in the outer ring. A subsection under two tags, or in two groups under one tag, therefore gets one node per criterion.
- A tag node's children are its own subsections first, then its child rows, in card order. Its own subsections go group by group and rule box by rule box: the named subsections in outline order, then the criteria for that rule box's hidden subsections. Each child gets an equal share of its parent's angle, and the card headings share the full circle equally.
- Each tag node records the angle span its own subsections cover. The drawing step extends the tag's segment out to the subsection ring over that span. A tag with no rows therefore extends across its whole angle, and a heading with both its own subsections and rows extends only over its own subsections.
- A tag node's status is
statuses.tags.get(tagId), and a subsection node's isstatuses.criteria.get(criterionId).status([FE] Display Subsection Competency Statuses for Learner in Course #739's criteria entries are objects withstatus,percentGraded, andmasked). A missing entry, which covers every criterion for a hidden subsection and any unknown status, is drawn as Available. - For [FE] Sunburst Tooltips #751, every node carries four things:
- an
idnamespaced by kind (tag-12,criterion-12), criteria for hidden subsections included, because tag ids and criterion ids are separate id spaces; ancestorIds;source, a reference to the [FE] Build cards displaying Competency Criteria on the Course Progress page #734 card or row for a tag node, or to the named row or hidden-subsection criterion for a subsection node;entry, the raw [FE] Display Subsection Competency Statuses for Learner in Course #739 map entry for the node (or null when there is none), so [FE] Sunburst Tooltips #751 can tell an unknown or missing status from a real Available one and can read a subsection'spercentGraded.
- an
- Ids for hidden subsections' criteria.
buildCompetencyCardsgives each rule box a count of the criteria whose subsections are hidden from the learner. Have it also carry those criteria's ids, inidorder, beside the count. Each hidden subsection's segment then has an id, and the cards keep rendering the count as they do. - Geometry.
src/sunburstGeometry.jstakes the nodes, the ring count, and a diameter in pixels, and returns each node's path string and centroid.- The ring count is the deepest tag ring plus one. The radii are a center hole, a competency band split equally among the rings, and a thinner subsection ring. Take the ratios from the Sizes and legend frame. A merged card, where a tag that heads one card also appears in another card's breadcrumb so the two cards merge under the shallower tag, can produce up to six competency rings, and six is the hard maximum because a taxonomy is at most six levels deep (
TAXONOMY_MAX_DEPTHis 5 inopenedx_tagging/models/base.py, counting from depth 0). They are drawn thin, with no cap. - A plain segment is two arcs and two lines. A heading with both its own subsections and rows is one path of three arcs and three lines, so no seam is drawn inside one segment.
- A segment that spans the full circle, such as the only card in a taxonomy or a tag with one subsection, must be drawn as two half arcs, because an SVG arc whose start and end points coincide draws nothing. Set the large-arc flag when a span exceeds half the circle.
- The centroid is the segment's angular midpoint, at the mid-radius of the band the segment covers across its whole angle.
- In a right-to-left locale (
isRtl(getLocale())from@edx/frontend-platform/i18n), mirror x. The segments then run counterclockwise, while the node tree keeps reading order.
- The ring count is the deepest tag ring plus one. The radii are a center hole, a competency band split equally among the rings, and a thinner subsection ring. Take the ratios from the Sizes and legend frame. A merged card, where a tag that heads one card also appears in another card's breadcrumb so the two cards merge under the shallower tag, can produce up to six competency rings, and six is the hard maximum because a taxonomy is at most six levels deep (
- Chart.
Sunburstinsrc/Sunburst.jsxrenders one<svg role="img">per section, sized in pixels, inside aposition: relativewrapper that also holds the center caption, so [FE] Sunburst Tooltips #751 can position its anchor and in-segment icon against the wrapper. It builds anodesByIdindex from step 1's list for its own lookups and for [FE] Sunburst Tooltips #751.- The
aria-labelcomes fromsrc/messages.jsand includes the taxonomy name only when there are two charts. - Each segment is a
<path>withdata-segment-id,data-status, anddata-ring. - The fill comes from [FE] Display Subsection Competency Statuses for Learner in Course #739's shared status map as an inline style, so a later Paragon token drops in.
- Each path is stroked 2px in
var(--pgn-color-body-bg), the page background behind the panel, which [FE] Build cards displaying Competency Criteria on the Course Progress page #734 places directly in the main column rather than in a Card. The strokes draw the gaps, so [FE] Sunburst Tooltips #751'sfill-opacityfade leaves the gaps unchanged. - The center caption is an
aria-hiddenHTML element over the hole, so it wraps in long translations and can take Paragon'stext-uppercase. Hide it when the diameter is under 320px, the threshold from the Sizes and legend frame. Before fixing that number, confirm the caption fits the hole at 320px in the final font and ring ratios; if it doesn't, raise the threshold rather than shrink the text.
- The
- Layout and legend.
CompetencySunburstsinsrc/CompetencySunbursts.jsxmeasures its own width with aResizeObserver. It renders nothing for three or more sections.- One section: the diameter follows the column, from 240 to 420px.
- Two sections: the charts sit side by side at (width minus 40px) / 2, up to 420px each, when that gives each chart at least 280px. Otherwise they stack, up to 320px each. Each chart has its taxonomy name above it as plain text, not a heading, so heading navigation still lands only on [FE] Build cards displaying Competency Criteria on the Course Progress page #734's taxonomy headings. The name is
aria-hidden, because the chart's text alternative already names the taxonomy, so a screen reader hears it once. - A chart is never wider than the column, so nothing scrolls sideways.
SunburstLegendinsrc/SunburstLegend.jsxis one list placed after all the charts, which puts it centered under side-by-side charts and under the last of stacked ones. It has four entries in the Description's order: icons from the status map markedaria-hidden, labels as text, wrapping with Bootstrap's flex utilities.
- Mounting and states.
CompetencyProgressPanelrendersCompetencySunburstsabove the taxonomy sections and passes it the sections andstatusesit already has, so there is no new request, hook, or slot.CompetencySunburstsis only theErrorBoundaryfrom@edx/frontend-platform/react, with an empty fragment asfallbackComponent, as [FE] Build Display of Recommended Next Action #755 does, around an innerCompetencySunburstsContentin the same file.- The inner component does all the work in step 5 and builds the trees: measuring the width, laying out the charts, and rendering the legend. Keeping all of it inside the boundary is what makes a throw anywhere in the chart hide only the chart and never the cards.
- It renders nothing while
isPendingis true orstatusesis null.
- Tests beyond the AC. These cover cases the Acceptance Criteria leave out or that QA can't set up by hand.
- Pure tests for
buildSunburstTree:- the order of a tag's own subsections: group by group, rule box by rule box, the named subsections in outline order, then the criteria for that rule box's hidden subsections;
- ids on the nodes for hidden subsections;
- a status the page doesn't recognize, returned by the platform for "Analysis" (a tag row) or for "Quiz 1" (a subsection): the segment is drawn as Available and the legend still lists four statuses. QA can't produce an unrecognized status without mocking the response, so this is a test rather than an Acceptance Criteria scenario;
- a card heading with criteria of its own and rows beneath it. This layout can exist only where a taxonomy re-import moved tags after criteria were created. [Follow-up - BE] Block dominance conflicts on taxonomy re-import #902 rejects that on re-import, and only a Django admin edit can still produce it, so QA can't stage it and it is tested here rather than as an Acceptance Criteria scenario. With "Problem Solving" and its grandchild "Root Cause Analysis" (through "Problem Definition") both holding criteria: Problem Solving spans the whole circle and has three equal children, its two own subsections and then the "Problem Definition" row; over the first two thirds, the Problem Solving segment extends out to the subsection ring and its two own subsections sit there; over the last third, ring 2 is "Problem Definition", ring 3 is "Root Cause Analysis", and Root Cause Analysis's subsections sit in the subsection ring.
- Geometry tests: a full-circle segment, a span over half the circle, and a centroid.
- A throw inside the chart, for example from data of a shape the chart doesn't expect:
CompetencySunburstsrenders nothing, the cards still render, and the mockedlogErroris called.ErrorBoundarydoes the logging itself incomponentDidCatch, so no logging code is needed in the chart. - Render tests count each ring's segments by
data-ringand check each segment'sdata-status. Don't snapshot path strings. - jsdom has no
ResizeObserver, so mock it.
- Pure tests for
- 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 panel without the sunbursts.
Out of scope:
- hover, tap, tooltips, the highlight, and the in-segment status icon ([FE] Sunburst Tooltips #751);
- a layout for three or more taxonomies;
- a distinct style or legend entry for hidden subsections;
- a minimum ring width for deep merges.
Files to create and modify
Paths are relative to the root of the plugin repository from #810.
| File | Change |
|---|---|
src/data/buildSunburstTree.js |
new |
src/data/buildCompetencyCards.js |
modified: ids of the hidden subsections' criteria on each rule box |
src/sunburstGeometry.js |
new |
src/Sunburst.jsx |
new |
src/SunburstLegend.jsx |
new |
src/CompetencySunbursts.jsx |
new |
src/CompetencyProgressPanel.jsx |
modified: renders CompetencySunbursts above the taxonomy sections |
src/messages.js |
modified: center caption, text alternatives, legend labels |
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
- Design decisions: the designer's wrap-up of the #769 spike records every decision above in one place.
- Design references: the five Figma frames linked under UX Design, plus a row with no criteria of its own. The Sunburst Explorer prototype opens on this ticket's static mode.
- The colors and icons are [UXD Spike] Confirm what the Competency Status values should be, how they will be determined, and what iconography or other accessible means will be used with their display. #768's Option G. The Available fill (
#CBD5E1) is 1.48:1 against the white gaps and page, below WCAG 1.4.11's 3:1 for graphics. For comparison, Demonstrated is 3.14:1, Partially Attempted 6.03:1, Not Demonstrated 11.27:1, and the Available icon's dashed ring 6.69:1. This is accepted for MVP because the cards below give every status as text. - [Release Docs] Docs for static sunburst functionality #748 should document:
- what the rings follow;
- the status colors and the Available contrast;
- masking that makes tags read Available;
- statuses that span courses;
- the missing segment labels and tooltips until [FE] Sunburst Tooltips #751;
- the rule for three or more taxonomies;
- card headings that read Available until [BE] Roll up a learner's competency status from criterion to competency after a grade is recorded #643 ships.
- More than two competency rings come from [FE] Build cards displaying Competency Criteria on the Course Progress page #734's merged cards, where a tag that heads one card also appears in another card's breadcrumb, which [BE] Add Competency hierarchy dominance validation to Competency Criteria Creation #666 allows. [BE] GET Competency Criteria for Course #733's response order sets the card order that the segments follow.
Open Questions
-
(@arbrandes) Hand-rolled SVG or TanStack Charts for the sunburst? This ticket and [FE] Sunburst Tooltips #751 are written for hand-rolled SVG, with Paragon
Overlayfor [FE] Sunburst Tooltips #751's tooltip, while the designer's Sunburst Explorer prototype uses TanStack Charts 1.1. Adolfo, please confirm you are fine with hand-rolled SVG, or say if you would rather take the dependency.Option For Against Hand-rolled SVG (planned) No new dependency. Paragon tokens and the shared status colors apply directly. A static chart is a few arcs per segment, and [FE] Sunburst Tooltips #751's hit-testing is pointer events on the paths. Tooltip positioning is ours, through Paragon Overlay. Keyboard navigation of segments, if ever wanted, would be hand-built.TanStack Charts 1.1 A sunburst mark with rootIdandvisibleDepthcovers a later drill-in without a rewrite. Keyboard navigation (arrow keys, Enter) and a tooltip slot are built in, and hit-testing and positioning come with it.A young library (version 1.1, MIT) as a new dependency. In the designer's prototype, hover state inside the chart definition made the tooltip flicker, there is no built-in tooltip delay, a custom tooltip body loses the default card styling, and the thinner subsection ring needs a second mark.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsFinal Axim Review
Activity
[-][Placeholder - FE] Build static sunburst frontend that displays the learner's competency criteria results[/-][+][FE] Static Competency Status Sunburst[/+]mgwozdz-unicon commentedon Nov 12, 2026
Prototype here: https://d3v8e8hqzoulm1.cloudfront.net/axim/sunburst-explorer/
arbrandes commentedon Nov 17, 2026
We should go with hand-rolled SVG, most definitely. Same for #751.
TanStack Charts would give us drill-in, keyboard navigation, and a tooltip. Drill-in is out of scope, both tickets rule out keyboard focus on segments, and #751's tooltip behavior is exactly what @illiphilli's notes say the library doesn't do on its own. In other words: we'd take the dependency and then work around most of it.
And it's not a cheap one: 1.0.0 only shipped on 2026-10-03, it's already at 1.5.0, and it pulls 14 pinned
d3-*packages into a plugin that #810 set up with no regular dependencies. Meanwhile, the Progress tab already draws its completion donut and grade bar as plain SVG.thelmick-unicon commentedon Nov 20, 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 or @arbrandes This is ready for your final review. Thanks!