Skip to content

✨ feat: add Openference icon and provider mapping - #375

Open
AnhLead wants to merge 3 commits into
lobehub:masterfrom
AnhLead:feat/add-openference-icon
Open

✨ feat: add Openference icon and provider mapping#375
AnhLead wants to merge 3 commits into
lobehub:masterfrom
AnhLead:feat/add-openference-icon

Conversation

@AnhLead

@AnhLead AnhLead commented Aug 1, 2026

Copy link
Copy Markdown

Summary

  • Add full Openference brand icon set (Mono, Color, Text, Combine, Avatar) sourced from official github/glm brand assets
  • Register openference provider mapping in web + React Native packages so ProviderIcon provider="openference" resolves
  • Regenerate src/toc.json for docs site

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change
Add the brand icon for Openference — a unified OpenAI-compatible LLM gateway that routes requests across curated open-source models (GLM, DeepSeek, Qwen, Kimi, and more).

  • src/Openference/ with Mono, Color, Text, Combine, and Avatar components
  • Mark sourced from official github/glm brand assets (src/dashboard/public/brand/favicon.svg + logo.svg): evenodd eye cutouts, antenna circle, COLOR_PRIMARY: '#6366f1'
  • Combine type="color" sets icon + wordmark both purple (#6366f1), matching the official lockup
  • Registered in src/icons.ts and regenerated src/toc.json via bun scripts/tocWorkflow/index.ts
  • category: Application, COLOR_PRIMARY: #6366f1
  • Provider mapping: Openference = 'openference' in ModelProvider / RNModelProvider plus providerMappings entries in both packages
  • React Native package: packages/react-native/src/icons/Openference/ exported from packages/react-native/src/index.ts
  • Official brand assets: github/glm/src/dashboard/public/brand/favicon.svg (mark), logo.svg (wordmark: Geist Bold, lowercase openference)

📝 补充信息 | Additional Information

  • tsc --noEmit passes in the main and react-native packages; ESLint and Prettier pass on all touched files
  • npm run ci and npm run build pass locally
  • Visual review and combine color lockup verified

Test plan

  • npm run ci (lint + type-check)
  • npm run build
  • cd packages/react-native && npm run type-check
  • Visual compare vs glm favicon.svg / logo.svg (eyes + combine color)
  • ProviderIcon provider="openference" resolves via providerMappings

💻 变更类型 | Change Type
- [x] ✨ feat
- [x] 🐛 fix
- [x] ♻️ refactor
- [x] 💄 style
- [x] 🔨 chore
- [x] 📝 docs

🔀 变更说明 | Description of Change
Add the brand icon for Openference — a unified OpenAI-compatible LLM gateway that routes requests across curated open-source models (GLM, DeepSeek, Qwen, Kimi, and more).

- `src/Openference/` with Mono, Color, Text, Combine, and Avatar components
- Mark sourced from official github/glm brand assets (`src/dashboard/public/brand/favicon.svg` + `logo.svg`): evenodd eye cutouts, antenna circle, COLOR_PRIMARY: '#6366f1'
- `Combine type="color"` sets icon + wordmark both purple (#6366f1), matching the official lockup
- Registered in `src/icons.ts` and regenerated `src/toc.json` via `bun scripts/tocWorkflow/index.ts`
- category: Application, COLOR_PRIMARY: #6366f1
- Provider mapping: Openference = 'openference' in ModelProvider / RNModelProvider plus providerMappings entries in both packages, so ProviderIcon provider="openference" resolves
- React Native package: `packages/react-native/src/icons/Openference/` (Mono, Color, Text, Combine, Avatar), exported from `packages/react-native/src/index.ts`
- Official brand assets: github/glm/src/dashboard/public/brand/favicon.svg (mark), logo.svg (wordmark typography: Geist Bold, lowercase openference)

📝 补充信息 | Additional Information
- `tsc --noEmit` passes in the main and react-native packages; ESLint and Prettier pass on all touched files
- `npm run ci` and `npm run build` pass locally
- Visual review vs official glm mark: eyes (evenodd cutouts) and combine color lockup verified
@AnhLead
AnhLead force-pushed the feat/add-openference-icon branch from 88d5b7e to 7bb64fb Compare August 1, 2026 15:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 88d5b7ebb9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Openference/components/Text.tsx Outdated
Replace the Geist-dependent <text> element with outlined path glyphs so the wordmark renders consistently in static exports and third-party consumers without a bundled font, matching the RN Text component and other web text logos in this repo.
@AnhLead

AnhLead commented Aug 1, 2026

Copy link
Copy Markdown
Author

@canisminor1990 @arvinxx Hi — Openference icon PR is ready for review when you have a moment.
Brand assets from openference.com provider mapping for openference, conflicts resolved, Codex wordmark feedback addressed.

@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 1.74216% with 282 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.75%. Comparing base (e39bdc2) to head (98e10b8).
⚠️ Report is 1039 commits behind head on master.

Files with missing lines Patch % Lines
...t-native/src/icons/Openference/components/Text.tsx 0.00% 58 Missing and 1 partial ⚠️
src/Openference/components/Text.tsx 3.03% 32 Missing ⚠️
src/Openference/components/Color.tsx 4.54% 21 Missing ⚠️
src/Openference/components/Mono.tsx 4.54% 21 Missing ⚠️
...ative/src/icons/Openference/components/Combine.tsx 0.00% 19 Missing and 1 partial ⚠️
src/Openference/components/Combine.tsx 4.76% 20 Missing ⚠️
...native/src/icons/Openference/components/Avatar.tsx 0.00% 15 Missing and 1 partial ⚠️
src/Openference/components/Avatar.tsx 5.88% 16 Missing ⚠️
...-native/src/icons/Openference/components/Color.tsx 0.00% 13 Missing and 1 partial ⚠️
...ckages/react-native/src/icons/Openference/index.ts 0.00% 13 Missing and 1 partial ⚠️
... and 10 more
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #375      +/-   ##
=========================================
+ Coverage    0.00%   1.75%   +1.75%     
=========================================
  Files         520    4489    +3969     
  Lines       13448   89829   +76381     
  Branches      520    4489    +3969     
=========================================
+ Hits            0    1578    +1578     
- Misses      12928   85340   +72412     
- Partials      520    2911    +2391     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Aug 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@lobehub/icons@375

commit: 98e10b8

@AnhLead

AnhLead commented Aug 7, 2026

Copy link
Copy Markdown
Author

@canisminor1990 @arvinxx approved?

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