Skip to content

fix(persona): a label that repeats its own value is not drawn twice - #205

Merged
stormer78 merged 1 commit into
mainfrom
fix/label-that-repeats-the-value
Sep 8, 2026
Merged

fix(persona): a label that repeats its own value is not drawn twice#205
stormer78 merged 1 commit into
mainfrom
fix/label-that-repeats-the-value

Conversation

@stormer78

Copy link
Copy Markdown
Contributor

From a live pane: a company attribute labelled Affinidi holding "Affinidi" drew

Affinidi · Affinidi

A label is a note to self — work mobile, the flat — and it earns its place beside the value. When it is the value it earns nothing, and the separator makes one fact read as two.

The comparison

Case- and space-insensitive, because affinidi beside Affinidi is the same stutter with a different shift key. Only a string value is compared: a JSON object rendered beside a label never repeats it, and stringifying one here to find out would be work in aid of a case that cannot arise.

Three tests, and the middle one is the point

  • a label that repeats the value is drawn once;
  • a label that says something the value does not is kept — "work mobile" beside a number is exactly what a label is for, and is why this is a comparison rather than "hide the label";
  • the same word in another case is the same stutter.

A fixture detail worth reading

The stutter fixtures carry sensitivity: "normal". Not incidental: company is unregistered, so without the holder's decision it is masked — and the first test passed for the wrong reason until the fixture had it, because there was no value on the card to be repeated. It is also how the pane this was reported from is set up.

392 extension tests pass (3 new), 578 core; tsc -b and npm run build clean.

From a live pane: a `company` attribute labelled "Affinidi" holding "Affinidi"
drew **Affinidi · Affinidi**. A label is a note to self — "work mobile", "the
flat" — and it earns its place beside the value; when it *is* the value it earns
nothing, and the separator makes one fact read as two.

Compared case- and space-insensitively, because "affinidi" beside "Affinidi" is
the same stutter with a different shift key. Only a string value is compared: a
JSON object rendered beside a label never repeats it, and stringifying one here
to find out would be work in aid of a case that cannot arise.

Three tests, and the middle one is the reason this is a comparison rather than
"hide the label": "work mobile" beside a number is exactly what a label is for.

The fixtures carry `sensitivity: "normal"`, which is not incidental — `company`
is unregistered and would otherwise be masked, and the first test passed for the
wrong reason until they did: there was no value on the card to be repeated. It
is also how the pane the report came from was set up.

392 extension tests pass (3 new), 578 core; `tsc -b` and `npm run build` clean.

Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
@stormer78
stormer78 merged commit 4cd69d9 into main Sep 8, 2026
3 checks passed
@stormer78
stormer78 deleted the fix/label-that-repeats-the-value branch September 8, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant