Registry Mirror
Skip to content

Conversation

@saphid

@saphid saphid commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Problem

An automatic project monogram can drop the consonant after a Tai Tham sakot, so the icon shows a dangling mark instead of the full stacked initial.

Deterministic repro on origin/main (7b7ca65f9a02b63df912168cea04c5a5f4d055c1): Create or rename a project with no favicon or icon override to ᨠ᩠ᨠ Alpha ("\u1A20\u1A60\u1A20 Alpha"), then open one of its threads. The web sidebar row passes the project name through ProjectFavicon → deriveProjectIdentity → projectMonogram and renders the result directly as SVG text; mobile passes the same result to the favicon fallback's one-line text. To reproduce at the source, run vp test run packages/shared/src/projectMonogram.test.ts -t 'Tai Tham' with the regression test applied and the implementation still on base.

  • Observed: "\u1A20\u1A60A" (ᨠ᩠A).
  • Expected: "\u1A20\u1A60\u1A20A" (ᨠ᩠ᨠA).

Change

Keep sakot-linked Tai Tham consonants together in the shared generator, including the normalized tone-mark-plus-ZWJ fixture. The web picker and server save command use the same Tai Tham-aware count without raising the two-grapheme limit, so the generated text can also be saved on Node 22.16.0; web, desktop, and mobile already consume the shared generator for automatic icons.

Scope

Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.

Verification

  • On base, the shared regression and real web sidebar SVG assertion both received ᨠ᩠A instead of ᨠ᩠ᨠA. On patched source, all 21 focused tests and the same isolated web scenario passed.
  • On Node 22.16.0, base rejected the intact prefill at project.meta.update. Patched source accepted and preserved it, and still rejected a third grapheme.
  • vp run check:changed exited 0: 23 affected tests passed, plus format, lint, knip, GraphQL, typecheck, and the React Compiler check.
  • Before/after transcript, reproducible scenario, and sidebar PNG crops (PNG crops are base64-encoded in the gist).
  • Not shown: Native one-line fitting, the Electron shell, or an end-to-end picker click on a Node 22 server; the picker validator and actual Node 22 save command were checked separately.

Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).

Not shown

  • apps/web/src/components/ProjectMonogram.tsx:41 still uses raw Intl.Segmenter for the 1-vs-2-glyph SVG textLength check, so a lone Tai Tham stacked cluster on a pre-ICU-76 browser renders with textLength=12 instead of 6 (modern Chromium/Electron ICU 76+ already counts it as 1 grapheme).

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Dec 3, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — This preserves Tai Tham stacks in monograms and aligns web/server character counting. It also changes automatic fallback icons for affected project names, requiring human confirmation of the revised default appearance.

Notes:

  • All code in this push has already been reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The shared monogram module now recognizes Tai Tham consonant stacks and provides a grapheme-count helper. Web and server validation use the helper while keeping the existing two-grapheme limit.

Changes: Tai Tham monogram handling

Layer / File(s) Summary
Tai Tham recognition and counting
packages/shared/src/projectMonogram.ts, packages/shared/src/projectMonogram.test.ts
Monogram extraction now recognizes Tai Tham consonant stacks. The shared helper replaces stack sequences with their initial consonant before counting segments. Tests cover Tai Tham sequences and combining-mark ordering.
Monogram validation
apps/web/src/projectIconOptions.ts, apps/web/src/projectIconOptions.test.ts, apps/server/src/orchestration-v2/ProjectCommands.ts, scripts/scenarios/project-monogram-keeps-tai-tham-stack.e2e.ts
Web and server validation now use the shared grapheme-count helper. The two-grapheme limit remains unchanged. Web tests cover valid and invalid Unicode inputs, and the browser test checks a Tai Tham monogram.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 79443

Automatic project monograms now keep Tai Tham stacked initials intact, and saving them works with the same two-grapheme limit. No actionable merge risk remains; the only known gap is a minor sizing difference on older browsers.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the primary change: keeping Tai Tham stacked conjuncts intact in automatic project monograms, in the shared generator. It matches the changeset, which updates projectMonogram grapheme …
Description check Passed The description follows the template's sections: Problem, Change, Scope, and Verification. The Problem section gives a reproduction and expected and observed output. The Change section explains the sh…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the primary change: keeping Tai Tham stacked conjuncts intact in automatic project monograms, in the shared generator. It matches the changeset, which updates projectMonogram grapheme patterns and adds countProjectMonogramGraphemes. The title follows a conventional commit format and is specific. It is a single sentence of 82 characters.

Full details: Description check

Explanation

The description follows the template's sections: Problem, Change, Scope, and Verification. The Problem section gives a reproduction and expected and observed output. The Change section explains the shared generator fix and why the web picker and server save command need the same count. The Scope section states the fix is small and needs no issue. The Verification section lists focused tests, a Node 22.16.0 check, and a check run with results, and it states what was not shown. The description does not include before/after screenshots inline. It links a gist for the screenshots, which the template permits. The description also notes a known gap in ProjectMonogram.tsx:41. The template asks for an agent model and harness at the end, and the description includes this as a closing line. The description is thorough and mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 004c283 and 79443ec.

Files selected for processing: 1

  • scripts/scenarios/project-monogram-keeps-tai-tham-stack.e2e.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 3, 2026
juliusmarminge and others added 4 commits December 3, 2026 16:31
… test

Keep the regressions at the shared layer, drop the server test that repeated
the counter at a call site, and note why the grapheme counter exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Dec 3, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Scenario: An automatic project monogram keeps a Tai Tham stacked initial intact

Proven: the scenario fails on base bf0694e4c4 and passes on head 79443ec5e9.

Base bf0694e4c4 Head 79443ec5e9
Result ❌ failed
ASSERTION_FAILED: expected ᨠ᩠A to be ᨠ᩠ᨠA
✅ passed
project monogram Base project monogram Head project monogram
failure Base assertion failure

Scenario source: project-monogram-keeps-tai-tham-stack.e2e.ts

Not shown:

  • The manual monogram picker validation and server-side save validation paths changed in the PR but were not exercised by this scenario.
  • The VM lacks a Tai Tham font, so the glyphs render as tofu in screenshots; the exact text difference is captured by the real DOM assertion and its base failure message.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Dec 3, 2026
@juliusmarminge
juliusmarminge merged commit 068ec69 into pingdotgg:main Dec 3, 2026
60 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants