Skip to content

feat(icons): resolve tiktok to its own mark in the icon lookup CU-17tkuw61k8d - #2867

Merged
michaelassraf merged 1 commit into
mainfrom
feat/tiktok-social-integration
Oct 29, 2026
Merged

michaelassraf merged 1 commit into
mainfrom
feat/tiktok-social-integration

Conversation

@michaelassraf

@michaelassraf michaelassraf commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

getDynamicIcon('tiktok') / getIconComponent('TiktokIcon') drew the fallback glyph: the icon registry had no TikTok key. It now resolves to the existing TiktokIcon mark, drawn in the text colour (TikTok's brand black would vanish on dark surfaces). Used by the hub's social accounts dashboard and account avatars for the new TikTok integration.

  • icon-registry.ts: tiktok key plus the TiktokIcon / TikTokIcon aliases for social_platforms.icon_name.
  • icon-resolver.test.ts: TikTok in the brand-name set, and a check that it resolves to its own mark (24 tests pass).

Change-Set: feat-tiktok-social-integration
ClickUp task: CU-17tkuw61k8d Add TikTok as a social media integration across the board

🤖 Generated with Claude Code

Change set flamingo-stack/openframe-oss-lib#2867: these pull requests are one change, reviewed together.

Linked work

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

…n lookup

social_platforms.icon_name and the hub's dashboards ask getDynamicIcon /
getIconComponent for 'tiktok'; the registry had no key, so it drew the
fallback glyph. TiktokIcon draws in the text colour (TikTok's brand black
would vanish on dark surfaces).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaelassraf

Copy link
Copy Markdown
Member Author

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

✅ Tests and checks passed on this commit (7 lanes).

✅ No findings on the current head.

Advisory: findings do not block the merge.

Files Lines Languages Tests Checks 🔴 Action required 🟠 Recommended 🔵 Informational
2 +11 / -0 TypeScript (1 npm lane) ✅ 5508 / 5508 green ✅ 6 / 6 passed 0 0 0

✅ What this change does well

  • icon-registry.ts adds a clear comment explaining why TikTok uses a monochrome currentColor mark instead of its brand black, aiding future maintainers.
  • icon-resolver.test.ts adds a targeted regression test ensuring both the kebab and PascalCase TikTok aliases resolve to the same component and not the fallback.
  • icon-registry.ts adds the tiktok mapping and both PascalCase alias spellings (TiktokIcon/TikTokIcon) consistently with the verified TiktokIcon export in brand-logos/index.ts
  • icon-resolver.test.ts adds a targeted regression test ensuring tiktok does not fall back to the generic file icon
  • openframe-frontend-core/src/components/chat/utils/icon-registry.ts: TikTok resolves to the existing TiktokIcon in the text colour, so it stays visible on dark surfaces without a colour override.
1 possible problem checked and ruled out
  • openframe-frontend-core/src/components/chat/utils/icon-registry.ts:40 ICON_REGISTRY is changed and no test references it: Trivial data registry addition for TikTok icon; no test exists for the whole file already, not worth blocking merge for missing test on a data-table entry

🧪 Tests and mutation

Tests per lane

Language Project Command Status Counts Time
TypeScript (npm) openframe-frontend-core npx vitest related --run src/components/chat/utils/__tests__/icon-resolver.test.ts src/components/chat/utils/icon-registry.ts ✅ passed 5508 run, 0 failures 72.7 s

Checks

Check Kind Language Project Status Time
lint lint TypeScript (npm) openframe-frontend-core ✅ passed 2.8 s
lint:config-smoke lint TypeScript (npm) openframe-frontend-core ✅ passed 0.9 s
lint:cycles lint TypeScript (npm) openframe-frontend-core ✅ passed 732.9 s
lint:types lint TypeScript (npm) openframe-frontend-core ✅ passed 51.9 s
type-check typecheck TypeScript (npm) openframe-frontend-core ✅ passed 2.8 s
format format TypeScript (npm) openframe-frontend-core ✅ passed 15.7 s

TypeScript (npm) openframe-frontend-core: vitest passed, as did lint, lint:config-smoke, lint:cycles, lint:types, type-check and format.

No mutation testing runs in this package (no Stryker); the change is two registry entries and two aliases, checked by icon-resolver.test.ts resolving 'tiktok' and 'TiktokIcon' to the same mark and not to the fallback.

1 gap (not tested here):

  • TypeScript (npm) openframe-frontend-core: no mutation testing (no Stryker configured: mutation coverage is a gap to report)

Review again. New commits are not reviewed until you ask:

  • Review the new commits: only what was pushed since this review
  • Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Updated 2026-10-28 21:17 UTC · reviewed from Michael Assraf's machine

@michaelassraf
michaelassraf merged commit 6574a1f into main Oct 29, 2026
28 checks passed
@michaelassraf
michaelassraf deleted the feat/tiktok-social-integration branch October 29, 2026 00:58
oleksandr-blip added a commit that referenced this pull request Oct 29, 2026
…nto feature/directory-connection-customers. CU-17tkuw5z06b
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