diff --git a/package.json b/package.json index 6c75d6df..67dd7aaf 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "husky": "^8.0.1", "mini-css-extract-plugin": "^2.7.2", "mkdirp": "^1.0.4", - "prettier": "^2.7.1", + "prettier": "^3.3.3", "pretty-quick": "^3.1.3", "querystring": "^0.2.1", "sass": "^1.52.1", diff --git a/src/pages/ContentScripts/features/developer-networks/react-modal.scss b/src/pages/ContentScripts/features/developer-networks/react-modal.scss index a3e2ed2f..590bde38 100644 --- a/src/pages/ContentScripts/features/developer-networks/react-modal.scss +++ b/src/pages/ContentScripts/features/developer-networks/react-modal.scss @@ -16,7 +16,9 @@ transform: translate(-50%, -50%); padding: 24px; box-sizing: border-box; - box-shadow: rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px; + box-shadow: + rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, + rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px; outline: transparent solid 3px; border-radius: 2px; background: var(--bgColor-default, var(--color-canvas-default)); diff --git a/src/pages/ContentScripts/features/oss-gpt/rcw.scss b/src/pages/ContentScripts/features/oss-gpt/rcw.scss index aeeed719..efff5817 100644 --- a/src/pages/ContentScripts/features/oss-gpt/rcw.scss +++ b/src/pages/ContentScripts/features/oss-gpt/rcw.scss @@ -339,7 +339,11 @@ img.rcw-picker-icon { line-height: 1.15; } .emoji-mart { - font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif; + font-family: + -apple-system, + BlinkMacSystemFont, + Helvetica Neue, + sans-serif; font-size: 16px; display: inline-block; color: #222427; @@ -505,7 +509,13 @@ img.rcw-picker-icon { box-shadow: none; } .emoji-mart-emoji-native { - font-family: Segoe UI Emoji, Segoe UI Symbol, Segoe UI, Apple Color Emoji, Twemoji Mozilla, Noto Color Emoji, + font-family: + Segoe UI Emoji, + Segoe UI Symbol, + Segoe UI, + Apple Color Emoji, + Twemoji Mozilla, + Noto Color Emoji, Android Emoji; } .emoji-mart-no-results { @@ -771,14 +781,18 @@ img.rcw-picker-icon { .rcw-conversation-container.active { opacity: 1; transform: translateY(0); - transition: opacity 0.3s ease, transform 0.3s ease; + transition: + opacity 0.3s ease, + transform 0.3s ease; } .rcw-conversation-container.hidden { z-index: -1; pointer-events: none; opacity: 0; transform: translateY(10px); - transition: opacity 0.3s ease, transform 0.3s ease; + transition: + opacity 0.3s ease, + transform 0.3s ease; } .rcw-conversation-resizer { cursor: col-resize; diff --git a/src/pages/ContentScripts/features/repo-header-labels/view.tsx b/src/pages/ContentScripts/features/repo-header-labels/view.tsx index 7020a32a..48631871 100644 --- a/src/pages/ContentScripts/features/repo-header-labels/view.tsx +++ b/src/pages/ContentScripts/features/repo-header-labels/view.tsx @@ -37,6 +37,28 @@ const View = ({ activity, openrank, participant, contributor, meta }: Props): JS const participantData = generateDataByMonth(participant, meta.updatedAt); const contributorData = generateDataByMonth(contributor, meta.updatedAt); + // define a type to describe the structure of Label + type Label = { + id: string; + name: string; + type: string; + }; + + const labels: Label[] = (meta.labels ?? []) as Label[]; + + const meta_labels = labels.map((label) => ( + + {label.name} + + )); + return (