@kud/gh-ink 0.42.1 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +18 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -665,8 +665,24 @@ var healthDisplay = {
665
665
  pending: { glyph: "*", color: colors.warning },
666
666
  approved: { glyph: "\u2713", color: colors.success },
667
667
  waiting: { glyph: "\xB7", color: colors.muted },
668
- merged: { glyph: "\xBB", color: colors.muted },
669
- closed: { glyph: "\xD7", color: colors.muted }
668
+ // The one glyph here that MEANS its state rather than merely differing from
669
+ // the others. `✓` and `✗` you never have to think about; `»` you did — it was
670
+ // chosen to suggest "moved through", which is a stretch nobody reads at a
671
+ // glance. This is Nerd Font's git-merge icon, written as an escape because raw
672
+ // PUA bytes get mangled by editors and diffs.
673
+ //
674
+ // The cost, stated rather than discovered: a terminal without a Nerd Font
675
+ // draws a box here where it used to draw a chevron. That is a trade this
676
+ // package has already made once — the inbox hardcodes the comment glyph at
677
+ // \u{f086} — and one state degrading to tofu is cheaper than ten states none
678
+ // of which say what they mean.
679
+ merged: { glyph: "\uE727", color: colors.muted },
680
+ // Nerd Font's closed-pull-request icon, for the same reason as `merged` above
681
+ // and with the same caveat about a font that lacks it. `×` had a second problem
682
+ // beyond being arbitrary: it is one stroke away from `✗` (ci failing) two rows
683
+ // up in this very map, and the shape-distinctness this file turns on is a
684
+ // silhouette test, not a codepoint one.
685
+ closed: { glyph: "\uEBDA", color: colors.muted }
670
686
  };
671
687
  var healthGlyph = (h) => healthDisplay[h].glyph;
672
688
  var healthColor = (h) => healthDisplay[h].color;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.42.1",
3
+ "version": "0.43.0",
4
4
  "description": "Ink components for rendering GitHub PR review comments and health — controlled, presentation-only, built on @kud/ink-ui and fed by @kud/gh.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@kud/gh": "0.9.0",
52
- "@kud/ink-ui": "0.19.0",
52
+ "@kud/ink-ui": "0.20.0",
53
53
  "zx": "8.8.5"
54
54
  },
55
55
  "devDependencies": {