Skip to content

Add preferred emoji skin tone setting - #340

Merged
ospfranco merged 5 commits into
ospfranco:mainfrom
vexlin:feat/emoji-skin-tone
Oct 21, 2026
Merged

ospfranco merged 5 commits into
ospfranco:mainfrom
vexlin:feat/emoji-skin-tone

Conversation

@vexlin

@vexlin vexlin commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Dependency and review scope

Prerequisites #338 (catalog refresh) and #339 (macOS emoji compatibility) are now merged.
This PR adds the preferred skin-tone setting.

Behavior

  • Add a persisted preferred skin tone: default yellow plus the five Unicode tones.
  • Configure the preference in Settings → General → Emoji Skin Tone.
  • Apply the preference consistently to browsing, search, favorites, and insertion.
  • Keep favorite identities and saved usage counts under the original default emoji, so changing tones does not reset history or create duplicate favorites.
  • Leave emoji without a matching tone variant unchanged.
  • Fall back to the supported default emoji when the preferred variant requires a newer macOS version.

Review feedback addressed

Removed the six skin-tone launcher search actions and their window-display handling, as requested.
The preference remains in Settings only; the normal Emoji Picker launcher entry is unchanged.
Updated the Settings helper text and README to remove the launcher instructions.

Unicode and compatibility

Use the fully-qualified uniform-tone variants in Unicode Emoji 17.0: 330 emoji families and 1,650 tone variants.
Store one exact light-tone sequence per family, then substitute its modifier at the Unicode-defined positions.
This handles variation selectors, ZWJ sequences, and same-tone multi-person emoji without blindly appending a modifier.
The Unicode source and redistribution notice accompany the data.

Variant compatibility is independent of the default emoji's age.
For example, bunny-ear and wrestling emoji existed earlier, but their new tone variants require macOS 26.4.
The existing numeric minimum-version comparison also accepts future macOS releases automatically.
No new runtime dependency, network request, or macOS deployment-target change.
Mixed tones for individual people and one-off overrides are outside this global-preference feature.

Verification

After the review changes

  • bun test src/lib/emojiCompatibility.test.js src/lib/emojiSkinTones.test.js: 23 passed, 0 failed.
  • Refreshed the live debug app from Metro and verified that searching emoji skin tone returns no skin-tone actions, while searching emoji still includes Emoji Picker.
  • Captured and inspected the native General settings screen: the skin-tone dropdown remains, with the updated helper text.
  • Exercised the live preference setter and emoji search: Medium produces 🫶🏽, with canonical identity 🫶; restored the original preference afterward.

Original feature verification (before the review changes)

  • Exhaustive source audit: all 1,650 generated variants exactly match the pinned Unicode 17 fully-qualified sequences and their expected macOS thresholds.
  • Isolated real-store smoke scenarios with simulated macOS 14.0, 14.4, 26.3, 26.4, and 99.0 passed: search, browsing, favorite insertion, changing tones, canonical persisted counts, hidden-history retention, padding, and reload.
  • Live debug app on macOS 26.6.2: observed the native picker and General setting, and inserted 🫶🏽 into TextEdit through Sol's native insertion API.
  • Restarted the app and verified that the preferred tone and original-emoji usage count survived.
  • Restored the smoke test's preference and history changes afterward.
  • bun run typecheck reported four pre-existing diagnostics: two URL.host errors in Favicon.tsx and two LegendList className errors in the emoji/settings item lists; no additional diagnostics.
    Typecheck was not rerun for the review-only removal.

Limitation: older macOS releases were not available for native font/rendering or end-to-end insertion testing.
Compatibility boundaries were exercised programmatically, not on older hardware.

@ospfranco

Copy link
Copy Markdown
Owner

Get rid of the search item, leave it in the settings, keep it simple

@vexlin vexlin changed the title Add keyboard-accessible preferred emoji skin tone Add preferred emoji skin tone setting Oct 14, 2026
@vexlin

vexlin commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

Done in bde928f: removed the skin-tone launcher search actions and their window-display handling. The preference now lives only in Settings → General → Emoji Skin Tone. Updated the helper text, README, and PR description. All 23 emoji tests pass; verified the removed search actions and retained setting in the refreshed debug app.

@vexlin
vexlin marked this pull request as ready for review October 20, 2026 03:02
@vexlin

vexlin commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Marking this ready for review now that #338 and #339 are merged and the requested settings-only change is addressed. Thanks for reviewing!

@ospfranco
ospfranco merged commit 12f4e11 into ospfranco:main Oct 21, 2026
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.

2 participants