Skip to content

Commit 85e937d

Browse files
committed
Updates to latest graph component
1 parent 4d68cff commit 85e937d

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21891,7 +21891,7 @@
2189121891
"vscode:prepublish": "pnpm run bundle"
2189221892
},
2189321893
"dependencies": {
21894-
"@gitkraken/gitkraken-components": "13.0.0-vnext.3",
21894+
"@gitkraken/gitkraken-components": "13.0.0-vnext.4",
2189521895
"@gitkraken/provider-apis": "0.28.5",
2189621896
"@gitkraken/shared-web-components": "0.1.1-rc.15",
2189721897
"@gk-nzaytsev/fast-string-truncated-width": "1.1.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/webviews/apps/plus/graph/graph-wrapper/graph-wrapper.react.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
CommitType,
33
ExcludeRefsById,
4+
ExternalIconKeys,
45
GetExternalIcon,
56
GraphColumnMode,
67
GraphColumnSetting,
@@ -90,9 +91,10 @@ const getGraphDateFormatter = (config: GraphComponentConfig): OnFormatCommitDate
9091
formatCommitDateTime(commitDateTime, config.dateStyle, config.dateFormat, source);
9192
};
9293

93-
const createIconElements = () => {
94+
const createIconElements = (): Record<ExternalIconKeys | 'undefined-icon', ReactElement> => {
9495
const iconList = [
9596
'head',
97+
'filter',
9698
'remote',
9799
'remote-github',
98100
'remote-githubEnterprise',
@@ -153,7 +155,7 @@ const createIconElements = () => {
153155

154156
const iconElementLibrary = createIconElements();
155157

156-
const getIconElementLibrary: GetExternalIcon = (iconKey: string) => {
158+
const getIconElementLibrary: GetExternalIcon = (iconKey: ExternalIconKeys) => {
157159
const icon = iconKey in iconElementLibrary ? iconKey : 'undefined-icon';
158160
return iconElementLibrary[icon];
159161
};

src/webviews/apps/plus/graph/graph.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ button:not([disabled]),
888888
}
889889
}
890890

891+
&--filter,
891892
&--undefined-icon {
892893
&::before {
893894
font-family: codicon;

0 commit comments

Comments
 (0)