Page MenuHomePhabricator

In Herald transcript rendering, don't store display labels in keys
ClosedPublic

Authored by epriestley on Jan 23 2020, 7:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 8:27 AM
Unknown Object (File)
Mon, Dec 9, 10:48 PM
Unknown Object (File)
Fri, Dec 6, 4:05 AM
Unknown Object (File)
Tue, Dec 3, 10:04 PM
Unknown Object (File)
Nov 19 2024, 10:08 AM
Unknown Object (File)
Oct 29 2024, 8:35 AM
Unknown Object (File)
Oct 23 2024, 3:31 PM
Unknown Object (File)
Oct 18 2024, 5:30 PM
Subscribers
None

Details

Summary

Ref T13480. Currently, when Herald renders a transcript, it puts display labels into array keys. This is a bad pattern for several reasons, notably that the values must be scalar (so you can't add icons or other markup later) and the values must be unique (which is easily violated because many values are translated).

Instead, keep values as list items.

Test Plan

Viewed Herald transcripts, saw no (meaningful) change in rendering output.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jan 29 2020, 11:11 PM
This revision was automatically updated to reflect the committed changes.