Skip to content

feat(ui): add FactList and DateChip, release 0.7.0 - #8

Merged
mindsers merged 1 commit into
mainfrom
feat/ui-fact-list
Nov 9, 2026
Merged

mindsers merged 1 commit into
mainfrom
feat/ui-fact-list

Conversation

@mindsers

@mindsers mindsers commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Two pieces for the publisher record in Unitae, released as 0.7.0.

FactList

Facts about one thing as label / value pairs, in a <dl>: a person's contact details, the group they belong to and who leads it.

  • Layout: labels in a column of their own width, values taking the rest and wrapping anywhere, so addresses and e-mails never overflow.
  • Hint: an optional quiet line under a value, for an age or a relative date.
  • Missing values: a fact without a value is left out. With emptyLabel, it shows those words instead, in the faint colour. The library still carries no copy.
  • Nothing left: the list draws nothing when no fact remains.

DateChip

The month-over-day tile shown beside dated rows. The app has one in two places today and needs a third on the record. It's decorative (aria-hidden), because the row beside it says the full date. The month comes in already formatted, so the library stays free of locales.

Tests

5 new cases: the term and definition pairing with the hint, a missing value left out, emptyLabel, an empty list, and the chip's order and decorative role. 40 passing.

FactList pairs labels with values in a description list, leaving out a fact
without a value unless it is given the words for a missing one. DateChip is
the month-over-day tile shown beside dated rows.
@mindsers
mindsers merged commit 9b3ed8c into main Nov 9, 2026
1 check passed
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