Company identifiers as badges, with the scheme's brand mark or icon, and a setting for how they read #855

Closed
opened 2026-10-10 16:01:26 +00:00 by tiagoagueda · 1 comment
Owner

Show a company's identifiers as badges: icon + label + identifier. A setting chooses icon + identifier, label + identifier, or all three; with icons only, the label is a tooltip. Where a scheme has a brand mark, it is the icon.

What exists today

  • templates/jobs/company_detail.html:98-126: a <dl data-identifiers>: a dt with an optional {% brand %} and the scheme label, a dd with the value (a link when the scheme has an address).
  • Schemes name a brand mark since a6505c745; only ORCID does (plugins/identifiers/schemes.py:158). Every scheme has a Lucide icon (:157-281), which the page does not draw.
  • Order and visibility are already settings (#672).

What would change

  • A c-identifier-badge (badge + brand or icon + label + value), the setting (both, icon, label), the label sr-only plus a tooltip when hidden.
  • The same badges on the edit view's rows, and the scheme's mark beside its select.

Decisions

  • The value as a link stays inside the badge. Recommended.
  • One setting with the button-labels setting (#852), or its own. Recommended its own: an identifier without its label is a different question.

Checked against main at 8c3d03570. From the maintainer's improvements list of 2026-10-07.

Show a company's identifiers as badges: icon + label + identifier. A setting chooses icon + identifier, label + identifier, or all three; with icons only, the label is a tooltip. Where a scheme has a brand mark, it is the icon. ## What exists today - `templates/jobs/company_detail.html:98-126`: a `<dl data-identifiers>`: a `dt` with an optional `{% brand %}` and the scheme label, a `dd` with the value (a link when the scheme has an address). - Schemes name a brand mark since `a6505c745`; only ORCID does (`plugins/identifiers/schemes.py:158`). Every scheme has a Lucide `icon` (`:157-281`), which the page does **not** draw. - Order and visibility are already settings (#672). ## What would change - A `c-identifier-badge` (`badge` + brand or icon + label + value), the setting (`both`, `icon`, `label`), the label `sr-only` plus a tooltip when hidden. - The same badges on the edit view's rows, and the scheme's mark beside its select. ## Decisions - **The value as a link** stays inside the badge. Recommended. - **One setting with the button-labels setting (#852), or its own.** Recommended its own: an identifier without its label is a different question. Checked against `main` at `8c3d03570`. From the maintainer's improvements list of 2026-10-07.
tiagoagueda added this to the 0.6.0 milestone 2026-10-10 16:01:26 +00:00
Author
Owner

Fixed in 84d468c47 on main.

Fixed in 84d468c47 on main.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo#855
No description provided.