Skip to content

Replace Paragon icon names with an Open edX AuthZ icon set #651

In review

Description

@rodmgwgu

Context

In the schema, categories, permissions, roles, and role extensions all have an optional icon field. Today that field must be a Paragon icon name. Validation checks it against a copy of Paragon's icon list stored in this repo (ADR 0017 §4, ADR 0029). Keeping that list current is what #528 / #537 set out to automate.

The discussion on #537 (@arbrandes) raised two problems:

  • The backend is coupled to a frontend presentation library.
  • No single repo decides which Paragon version a site uses. Paragon is a peer dependency in frontend-base, and each operator's site picks the version. Syncing against frontend-app-admin-console therefore doesn't give a reliable answer.

Proposal

Define a fixed, documented set of icon identifiers that this repo owns and that don't depend on Paragon. The admin console maps each identifier to whatever icon it renders.

openedx-authz

  • Define the allowed icon identifiers as a constant. The identifiers don't need to match Paragon names.
  • Validate icon values against that set. Remove the copied Paragon list, the generator script, and the paragon_icons / paragon_icons_check make targets.
  • Document the icon set as part of the extension API, since extension authors will use it.
  • Write a new ADR that supersedes ADR 0029 and amends ADR 0017 §4. Add an addendum to each older ADR that links to the new one.
  • Update the built-in schema files to use the new identifiers.

frontend-app-admin-console (could be a separate linked issue)

  • Map each identifier to an icon component.
  • If an identifier has no mapping, or the icon it maps to doesn't exist, render a default icon.
  • Document the mapping in the README as a public API.
  • Add unit tests that fail if a mapped Paragon icon is renamed or removed.

Initial icon set

Implement the full list María de los Ángeles proposed in the icon proposal sheet. That includes both the Essential and the Recommended icons.

Open questions

  • What naming convention should identifiers use (for example arrow_back or ArrowBack)?
  • Should unknown icon values fail backend schema validation, or only produce a warning?

Acceptance criteria

  • Schema validation no longer depends on Paragon.
  • Every icon in the proposal sheet is in the icon set.
  • The icon set is documented, and the new ADR has been merged.
  • The built-in schemas pass validation with the new identifiers.
  • The admin console renders every identifier, falls back to a default icon for unknown ones, and has tests for the mapping.

Supersedes

Refs: #537 (discussion), ADR 0017, ADR 0029

Activity

  1. added
    willow
    on Nov 24, 2026
  2. moved this to Ready for Development in RBAC AuthZ Boardon Nov 24, 2026
  3. self-assigned this
    on Nov 30, 2026
  4. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Nov 30, 2026
  5. moved this from In Progress to In Review in RBAC AuthZ Boardon Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions