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
F15502124: D20949.diff
Sun, Apr 13, 10:45 PM
F15482386: D20949.id.diff
Wed, Apr 9, 5:08 AM
F15480837: D20949.diff
Tue, Apr 8, 4:54 PM
F15437422: D20949.id49927.diff
Tue, Mar 25, 7:20 PM
F15429502: D20949.id49912.diff
Mar 24 2025, 2:43 AM
F15413482: D20949.id.diff
Mar 19 2025, 7:05 PM
F15381344: D20949.id49927.diff
Mar 14 2025, 7:09 AM
Unknown Object (File)
Feb 22 2025, 10:54 AM
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
Branch
author4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23738
Build 32643: Run Core Tests
Build 32642: arc lint + arc unit

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.