From 1c2e6b4a91cdc07207671ff48153af1ffddc95b8 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sun, 1 Mar 2026 05:35:16 +0800 Subject: [PATCH] fix: correct casing for site adapter display names This adds a display name mapping to the SiteAdapters component to show proper capitalization (e.g., 'GitHub' instead of 'github') while preserving internal config keys. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/popup/sections/SiteAdapters.jsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/popup/sections/SiteAdapters.jsx b/src/popup/sections/SiteAdapters.jsx index c4ac25a20..b565c893c 100644 --- a/src/popup/sections/SiteAdapters.jsx +++ b/src/popup/sections/SiteAdapters.jsx @@ -1,5 +1,20 @@ import PropTypes from 'prop-types' +const siteDisplayNames = { + bilibili: 'Bilibili', + github: 'GitHub', + gitlab: 'GitLab', + quora: 'Quora', + reddit: 'Reddit', + youtube: 'YouTube', + zhihu: 'Zhihu', + stackoverflow: 'Stack Overflow', + juejin: 'Juejin', + 'mp.weixin.qq': 'WeChat MP', + followin: 'Followin', + arxiv: 'arXiv', +} + SiteAdapters.propTypes = { config: PropTypes.object.isRequired, updateConfig: PropTypes.func.isRequired, @@ -20,7 +35,7 @@ export function SiteAdapters({ config, updateConfig }) { updateConfig({ activeSiteAdapters }) }} /> - {key} + {siteDisplayNames[key] || key} ))}