Closed Bug 2082512 Opened 1 month ago Closed 10 days ago

Add issued-to card

Categories

(Firefox for Android :: Settings, task)

All
Android
task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: lmccracken, Assigned: lmccracken)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][android-activation-trust])

Attachments

(1 external file)

Summary
Add “issued to” card to the certificate details sub-page

Description
The certificate details sub-page needs a card showing who the site’s certificate was issued to. This ticket covers the card UI and how it renders the subject fields: organization, locality and country. It builds on the scaffold from ticket 1, which provides the slot for the card, and consumes the certificate data exposed by the data plumbing ticket.

The card should show:

Organization (subject O)
Locality (subject L)
Country (subject C)

Country should display in a user-readable form (for example, a localized country name rather than a raw ISO code) unless Figma specifies otherwise. The card should follow Figma in light and dark themes and use existing theme attributes and components.

Many certificates, particularly DV certificates, have no organization, locality or country. This ticket should implement the card so it copes with absent fields. The final behaviour for missing fields (hide the row, hide the card, or show a placeholder) depends on the UX decision in the edge-states tickets, so build the card so that behaviour is easy to change.

In scope

Issued-to card UI, including label and value styling per Figma
Rendering organization, locality and country
Country code to display name conversion, using the device locale
Light and dark theme support
Layout behaviour with large fonts, RTL and tablet widths
Long values (for example, long organization names) wrapping or truncating sensibly
Preview or sample data for review

Out of scope

The “Verified by” line (separate ticket)
Fetching or plumbing certificate data (separate ticket)
Final design and implementation of missing-field behaviour (edge-states tickets)
Handling HTTP or invalid and expired certificates
QWAC text and EU trust mark
Pref gating
Focus

Acceptance criteria

The card appears in the sub-page’s issued-to slot and shows organization, locality and country when present.
It matches Figma in light and dark themes (spacing, typography, colours).
Country displays as a localized name, with a sensible fallback to the raw code if it can’t be resolved.
A missing field does not leave a blank label, an empty row or a crash. Interim behaviour is documented in the ticket and linked to the edge-states work.
Long values wrap or truncate without breaking the card layout.
The card does not clip or overlap at large font sizes and mirrors correctly in RTL.
All user-visible strings and labels are in strings.xml.
TalkBack reads each label and value as a logical pair, in a sensible order.
Unit or UI tests cover at least: all fields present, some missing, all missing.

Whiteboard: [fxdroid][android-activation-trust]

Shows the organization, locality and country the certificate was issued to, with
the country as a localized name. Until the missing-field behaviour is decided,
absent fields are hidden, and the card is hidden when all of them are absent.

The card is placed in the sub-page's issued-to slot once D340061 lands, since that
patch changes the sub-page's previews.

Assignee: nobody → lmccracken
Status: NEW → ASSIGNED
Pushed by lmccracken@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6aab67cc11c6 https://hg.mozilla.org/integration/autoland/rev/fa5d0c275a34 Add the issued-to card to the certificate details sub-page. r=android-reviewers,android-l10n-reviewers,parker,tthibaud
Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: