Repository navigation
fix(shared): keep Javanese stacked initials intact in project monograms - #47584
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Preserves Javanese stacked initials in project monograms on web and mobile. The change is confined to generated display text, without changing stored project data or product defaults. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…test Co-Authored-By: Claude Opus 5.5 <[email protected]>
EvidenceSeed a fresh project named Scenario: Project monogram keeps the Javanese pangkon stackProven: the scenario fails on base 9e0de5137b and passes on head a660ae2ed2.
Not shown:
|



Problem
Automatic project monograms drop the subjoined consonant from a leading Javanese stack, leaving a visible pangkon before the next initial.
Deterministic repro on
origin/main(ca36afaeb1d1045806910c549291b2e51b24cc88): Seed an isolated local project namedꦏ꧀ꦱ Alphawith no favicon or icon override. Open/settings/projectsand inspect[data-slot="project-monogram"] textin that project's row. The row callsProjectFavicon, whose automatic fallback sendsderiveProjectIdentity(projectName).monogramtoProjectMonogramas the SVG text.Run from the repository root:
node --input-type=module -e 'import {projectMonogram as p} from "./packages/shared/src/projectMonogram.ts"; const s="ꦏ꧀ꦱ Alpha"; console.log(p(s), [...new Intl.Segmenter().segment(s)][0].segment+"A")'Observed:
ꦏ꧀A. Expected:ꦏ꧀ꦱA.Change
Extend the existing stacked-conjunct matcher to recognize a Javanese pangkon followed by a consonant in
U+A989–U+A98BorU+A98F–U+A9B2, excluding independent vowels. The shared fix applies to web and Electron project icons and mobile's automatic and colored fallback monograms.Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
expected 'ꦏ꧀A' to be 'ꦏ꧀ꦱA'and passed on the patch, including the lone-stack and terminal-pangkon cases.ꦏ꧀ꦄ Alphareturnedꦏ꧀ꦄAwith the original draft range; the narrowed matcher returnsꦏ꧀A. The targeted file passed all 11 tests. In Node, all 47 followers in the old range now agree with ICU segmentation for the same fixture.ꦏ꧀Ain the Projects row on base and assertedꦏ꧀ꦱAon the initial patch.vp run scenarios:proveexited 0; the amended patch retained that output in the unit test and Node.vp run check:changedexited 0 on the amended patch: format, lint, knip, typecheck, and 13 tests across two affected files.web-screenshots.htmlto view both cropped captures.Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).