[Bug] Competency Management page: long competency names and Competency ID badges overflow the tree and the course panel
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Environment: Master Sandbox, https://apps.master.openedx.io/
Steps to reproduce
- Download the taxonomy export file QA758 Closed Taxonomy 13.10 (1).csv.
- In Studio, go to Taxonomies and import the file as a new taxonomy with a Competency taxonomy type.
- Open the Competency Management page of the imported taxonomy (
/authoring/taxonomy/<id>/competencies). - Select the first competency.
Actual result
Competency tree (left column):
- The underscore-joined name does not wrap. Its row extends past the left column, across the course panel, to the edge of the page, and its Competency ID badge is pushed out of view.
- The hyphen-joined name wraps correctly inside the row, but its Competency ID badge stays on one line and spills out of the left column over the course list.
Course panel (right column), with the first competency selected:
- The "Demonstrate Mastery For" heading shows the competency name and its ID badge on single lines that run past the right edge of the panel.
- The selected tree row from item 1 lies on top of the panel's empty-state message, so the line "Make content selections to create competency criteria associations." is covered and cannot be read.
The other tags in the file come from other test scenarios. The two names that start with 255 A characters overflow the same way, but they contain no separator at all, which is not a realistic case.
Expected result
Every competency name and every Competency ID badge stays inside its own column, in both the tree and the course panel. A long value does not overlap neighboring elements and does not cause horizontal page scrolling.
Why this matters for real data
Since #758, a competency that has no institution-assigned ID receives an ID generated from its name, up to 255 characters long. Real competency frameworks contain long competency statements: the EDL Durable Skills Framework on Master Sandbox has 5 competencies longer than 100 characters, the longest being 226 characters. A competency like that, added without its own ID, gets a Competency ID badge as long as its statement. Real statements contain spaces and wrap correctly as names. Whether a long badge whose ID contains spaces wraps has not been checked. The badge in item 2 has no spaces.
Open question for design
Should a long Competency ID badge wrap onto several lines, or be truncated with the full value available on hover or focus?
Technical notes
- The row is rendered in
src/taxonomy/competency-management/CompetencyTreeItem.tsx:.competency-rowcontains the label<span className="competency-row__label">and<Badge className="competency-row__badge ml-auto">. CompetencyTree.scssalready setsoverflow-wrap: anywhereon.competency-row__badge, but the badge text still does not break. A likely cause is that the label and the badge are flex items, and a flex item defaults tomin-width: auto, so it cannot shrink below the width of its longest unbreakable word. This cause has not been confirmed in code. The course panel heading probably needs the same treatment.- The page was introduced in #680. The tag list on the taxonomy page (
/authoring/taxonomy/<id>) has a similar wrapping issue that is tracked separately in #.
- 主要言語
- Python
- スター
- 10
- フォーク
- 33
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openedx/openedx-core のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
openedx/openedx-core#831 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
openedx/openedx-core#827 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
openedx/openedx-core#869 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] The pagination buttons on the Competency Management page sit directly on the top border対応中かも @AShatsila が 6 日前に担当しました。 オープン
openedx/openedx-core#859 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Tag import: parent_id isn't re-validated when it matches the pre-import parent対応中かも @ufedaseyeuconsultant が 6 日前に担当しました。 オープン
openedx/openedx-core#858 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
openedx/openedx-core の issue をすべて見る
似ている issue
-
documentation good first issue
難易度 2/5 半日 初心者へのやさしさ 72/100
sujithputta02/Esapay#13 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
gke-labs/kube-agents#3277 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jbacalso24/mimry#291 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1時間未満 初心者へのやさしさ 82/100
eli-alvarado/us-watchlist-alerts#14 ·
メンテナーはふだん 1 日以内に返信