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)
Sun, Jun 29, 11:32 PM
Unknown Object (File)
Fri, Jun 27, 7:34 AM
Unknown Object (File)
Jun 17 2025, 5:19 AM
Unknown Object (File)
Jun 16 2025, 5:50 PM
Unknown Object (File)
Jun 5 2025, 4:45 PM
Unknown Object (File)
May 26 2025, 11:03 AM
Unknown Object (File)
May 13 2025, 10:39 PM
Unknown Object (File)
May 7 2025, 11:49 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.