dosubot[bot] commented on issue #8686: URL: https://github.com/apache/incubator-devlake/issues/8686#issuecomment-3748958515
<!-- Answer --> To show the official GitHub Copilot logo in Config-UI, first make sure the plugin identifier is renamed to gh-copilot everywhere (backend and UI) so the registry can map the icon correctly. Add the Copilot SVG asset under config-ui/src/plugins/register/gh-copilot/assets/icon.svg, then import it in your plugin config with ?react (see how GitHub or Jira plugins do this). Register the config in config-ui/src/plugins/register/index.ts with the plugin key gh-copilot. All plugin icon renderers (cards, dropdowns, headers) will use this icon as long as the plugin is registered and the icon property is set in the config. For the logo asset, use an officially sourced Copilot SVG and check GitHub’s brand guidelines for any trademark or attribution requirements. If you can’t include the official logo due to licensing, use a custom, non-trademarked icon that’s clearly distinct. There’s no Copilot icon or branding guidance in the repo yet, so you’ll need to source and review the asset for compliance yourself. Once registered, verify that all plugin icon views show the new logo instead of the placeholder. If the icon doesn’t appear, double-check the plugin key and registry wiring match gh-copilot. [Reference: plugin icon pattern](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/register/github/config.tsx#L24-L31) [Reference: plugin registry wiring](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/register/index.ts#L19-L56) [Reference: naming convention discussion](https://github.com/apache/incubator-devlake/issues/8664#issuecomment-3703874251) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1e80a022-d22f-47f3-9552-00d8d8936e40?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github) [](https://cursor.com/link/prompt?text=To%20show%20the%20official%20GitHub%20Copilot%20logo%20in%20Config-UI%2C%20first%20make%20sure%20the%20plugin%20identifier%20is%20renamed%20to%20gh-copilot%20everywhere%20%28backend%20and%20UI%29%20so%20the%20registry%20can%20map%20the%20icon%20correctly.%20Add%20the%20Copilot%20SVG%20asset%20under%20config-ui/src/plugins/register/gh-copilot/assets/icon.svg%2C%20then%20import%20it%20in%20your%20plugin%20config%20with%20%3Freact%20%28see%20how%20GitHub%20or%20Jira%20plugins%20do%20this%29.%20Register%20the%20config%20in%20config-ui/src/plugins/register/index.ts%20with%20the%20plugin%20key%20gh-copilot.%20All%20plugin%20icon%20renderers%20%28cards%2C%20dropdowns%2C%20headers%29%20will%20use%20this%20icon%20as%20long%20as%20the%20plugin%20is%20registe red%20and%20the%20icon%20property%20is%20set%20in%20the%20config.%0A%0AFor%20the%20logo%20asset%2C%20use%20an%20officially%20sourced%20Copilot%20SVG%20and%20check%20GitHub%E2%80%99s%20brand%20guidelines%20for%20any%20trademark%20or%20attribution%20requirements.%20If%20you%20can%E2%80%99t%20include%20the%20official%20logo%20due%20to%20licensing%2C%20use%20a%20custom%2C%20non-trademarked%20icon%20that%E2%80%99s%20clearly%20distinct.%20There%E2%80%99s%20no%20Copilot%20icon%20or%20branding%20guidance%20in%20the%20repo%20yet%2C%20so%20you%E2%80%99ll%20need%20to%20source%20and%20review%20the%20asset%20for%20compliance%20yourself.%20%0A%0AOnce%20registered%2C%20verify%20that%20all%20plugin%20icon%20views%20show%20the%20new%20logo%20instead%20of%20the%20placeholder.%20If%20the%20icon%20doesn%E2%80%99t%20appear%2C%20double-check%20the%20plugin%20key%20and%20registry%20wiring%20match%20gh-copilot.%20%20%0A%5BReference%3A%20plugin%20icon%20pattern%5D%28https%3A//github.com/apache/incubator-dev lake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/register/github/config.tsx%23L24-L31%29%20%20%0A%5BReference%3A%20plugin%20registry%20wiring%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/register/index.ts%23L19-L56%29%20%20%0A%5BReference%3A%20naming%20convention%20discussion%5D%28https%3A//github.com/apache/incubator-devlake/issues/8664%23issuecomment-3703874251%29) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8686) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
