Company page: names in other languages in a popover from a languages icon beside the name, edited under Edit #917
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#917
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On a company's page, the names in other languages are read from a languages icon beside the company's name, which opens a popover listing them. Adding, fetching and removing them moves to the company's edit view.
What exists today
templates/jobs/company_detail.html: the heading is<c-page-title>{{ company.name }}</c-page-title>inside#company-head, beside the logo.data-company-names("Names in other languages", #673) does everything in place. It lists each name (company_names: language, name in<bdi lang>, source) with a Remove button, offers Fetch from Wikidata (jobs:company_wikidata) whenwikidata_offeredand the company has a Wikidata ID, and has an add form (Language select + "Its name in that language"). All of these post tojobs:company_names.templates/jobs/company_form.html(jobs:company_update) has no names section. It is one form, and dialogs that post elsewhere (the logo's, #853) are drawn outside it.popover, used by the account menu and<c-dropdown-menu>), and the Lucide set is listed inassets/icons.txt.What would change
Company page
data-company-namesis removed from the page.languagesicon follows the H1. Pressing it opens a Basecoat popover that lists each name with its language (the language in the interface's words, the name in<bdi lang="…">), read-only.Edit view
company_form.htmlas their own card. They post tojobs:company_namesas now, from forms outside the main form or throughform=attributes (the logo dialog's pattern, #853), and return to the edit view (next).Accessibility
aria-labelorsr-onlytext), hasaria-haspopupandaria-expanded, and opens and closes from the keyboard. Escape closes it and returns focus to the button. A tooltip with the same words is shown on hover and focus.popovertarget, as the account menu does).Notes
Related: #673, #853, #851.
Checked against
mainat56fc9d531.