Industries drawn as coloured badges with an icon #856

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

A company's industries as coloured badges, each with a Lucide icon.

What exists today

  • templates/jobs/company_detail.html:37-46: plain rounded bg-ink-100 links to ?industry=; not the badge class.
  • Industry has name, slug, code (a NACE division, jobs/models.py:57-74, #671). No colour or icon. badge with data-tone has seven tones (app.css:46-50).

What would change

  • An icon and a tone per NACE section (21 sections), drawn for every industry in that section; one fallback for an industry with no code.
  • The badges on the company page, the table's column and the filter chips.

Decisions

  • Per section, not per industry. Recommended: 21 sections map to icons and tones once; an industry inherits its section's, so a person adding Translation agencies gets a sensible badge with nothing to pick.
  • Seven tones for 21 sections: colour is then a hint, never the only difference (SC 1.4.1); the icon and the name carry it.

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

A company's industries as coloured badges, each with a Lucide icon. ## What exists today - `templates/jobs/company_detail.html:37-46`: plain `rounded bg-ink-100` links to `?industry=`; not the `badge` class. - `Industry` has `name`, `slug`, `code` (a NACE division, `jobs/models.py:57-74`, #671). No colour or icon. `badge` with `data-tone` has seven tones (`app.css:46-50`). ## What would change - An icon and a tone per NACE section (21 sections), drawn for every industry in that section; one fallback for an industry with no code. - The badges on the company page, the table's column and the filter chips. ## Decisions - **Per section, not per industry.** Recommended: 21 sections map to icons and tones once; an industry inherits its section's, so a person adding *Translation agencies* gets a sensible badge with nothing to pick. - **Seven tones for 21 sections**: colour is then a hint, never the only difference (SC 1.4.1); the icon and the name carry it. 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 bd1a825ce on main.

Fixed in bd1a825ce 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#856
No description provided.