Your details: show an address on the map with a map-pin toggle beside the star and the bin, confirmed in a dialog #923
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#923
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 Your details, whether a postal address is shown on the map becomes a toggle in the address's top line, next to the star and the bin, in place of the tick box under the address. Off by default, it shows Lucide
map-pin-offin grey. On, it showsmap-pinin green. Turning it on first asks for confirmation in a Basecoat dialog.What exists today
templates/partials/postal_addresses.html: after the address lines,{% if row.on_map %}draws a checkbox{{ row.on_map|add_class:"input" }}with its label, and a help paragraph under it ({{ row.on_map.help_text }}). Then comes the status linedata-map-status-line("On the map at …" / Place it by hand / Move it).on_mapis a field only for addresses that are not a company's: the person's own and a contact's. Companies' addresses are always drawn (jobs/views.py::pinned_addresses). Default is off (#702: "a home is somewhere somebody can be found").[data-address-head] > [data-row-actions], at the end of the line that holds Type and Name (#866):<c-primary-choice>then<c-remove-button>.<c-dialog>(#303, used by the bins), drawn after the form because a form cannot hold another.What would change
[data-row-actions], the order becomes: map toggle, star, bin (or another order chosen when building, as long as all three are on that line).on_mapcheckbox, so it posts with Save and works with scripts off. It is visually hidden behind a label drawn as an icon, the way<c-primary-choice>hides its radio behind a star. Unchecked:map-pin-off, ink-500. Checked:map-pin, green-600 (green-400 in dark). The two icons differ in shape, not only in colour.On the map at …, Place it by hand, Move it) stays where it is.remove_at_onceand keeps words, not icons, there ("Primary", "Remove"). Decide whether the toggle is Your details only, as the star and bin are.Accessibility
titleand tooltip carrying the sentence, a 24px target, and a visible focus ring as.primary-choice:has(input:focus-visible)has.<c-dialog>: it traps focus, returns it to the toggle, and says what is shown and to whom. The map is the person's own, and the address never leaves the instance.Notes
Related: #702, #866, #303.
Checked against
mainat56fc9d531.