Skip to content

Commit

Permalink
Adds info button to Home view header
Browse files Browse the repository at this point in the history
  • Loading branch information
axosoft-ramint committed Dec 18, 2024
1 parent a66c356 commit f3eb886
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
19 changes: 16 additions & 3 deletions contributions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6896,7 +6896,7 @@
{
"when": "view == gitlens.views.home && config.gitlens.home.preview.enabled",
"group": "navigation",
"order": 98
"order": 97
}
]
}
Expand All @@ -6922,7 +6922,7 @@
{
"when": "view == gitlens.views.home && !config.gitlens.home.preview.enabled",
"group": "navigation",
"order": 98
"order": 97
}
]
}
Expand All @@ -6940,6 +6940,19 @@
]
}
},
"gitlens.views.home.info": {
"label": "Learn about Home View",
"icon": "$(question)",
"menus": {
"view/title": [
{
"when": "view == gitlens.views.home",
"group": "navigation",
"order": 98
}
]
}
},
"gitlens.views.home.issues": {
"label": "GitHub Issues",
"icon": "$(feedback)",
Expand All @@ -6961,7 +6974,7 @@
{
"when": "view == gitlens.views.home",
"group": "navigation",
"order": 97
"order": 96
}
]
}
Expand Down
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8152,6 +8152,11 @@
"title": "Help Center",
"icon": "$(question)"
},
{
"command": "gitlens.views.home.info",
"title": "Learn about Home View",
"icon": "$(question)"
},
{
"command": "gitlens.views.home.issues",
"title": "GitHub Issues",
Expand Down Expand Up @@ -11730,6 +11735,10 @@
"command": "gitlens.views.home.help",
"when": "false"
},
{
"command": "gitlens.views.home.info",
"when": "false"
},
{
"command": "gitlens.views.home.issues",
"when": "false"
Expand Down Expand Up @@ -17268,16 +17277,21 @@
{
"command": "gitlens.views.home.previewFeedback",
"when": "view == gitlens.views.home",
"group": "navigation@97"
"group": "navigation@96"
},
{
"command": "gitlens.views.home.disablePreview",
"when": "view == gitlens.views.home && config.gitlens.home.preview.enabled",
"group": "navigation@98"
"group": "navigation@97"
},
{
"command": "gitlens.views.home.enablePreview",
"when": "view == gitlens.views.home && !config.gitlens.home.preview.enabled",
"group": "navigation@97"
},
{
"command": "gitlens.views.home.info",
"when": "view == gitlens.views.home",
"group": "navigation@98"
},
{
Expand Down
1 change: 1 addition & 0 deletions src/constants.commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ type HomeWebviewViewCommands = `home.${
| 'previewFeedback'
| 'whatsNew'
| 'help'
| 'info'
| 'issues'
| 'discussions'
| 'account.resync'}`;
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export const urls = Object.freeze({
githubIssues: `https://github.com/gitkraken/vscode-gitlens/issues/?${utm}`,
githubDiscussions: `https://github.com/gitkraken/vscode-gitlens/discussions/?${utm}`,
helpCenter: `https://help.gitkraken.com/gitlens/gitlens-start-here/?${utm}`,
helpCenterHome: `https://help.gitkraken.com/gitlens/home-view/?${utm}`,
releaseNotes: `https://help.gitkraken.com/gitlens/gitlens-release-notes-current/?${utm}`,

acceleratePrReviews: `https://help.gitkraken.com/gitlens/gitlens-start-here/?${utm}#accelerate-pr-reviews`,
Expand Down
1 change: 1 addition & 0 deletions src/webviews/home/homeWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
registerCommand(`${this.host.id}.whatsNew`, () => openUrl(urls.releaseNotes), this),
registerCommand(`${this.host.id}.help`, () => openUrl(urls.helpCenter), this),
registerCommand(`${this.host.id}.issues`, () => openUrl(urls.githubIssues), this),
registerCommand(`${this.host.id}.info`, () => openUrl(urls.helpCenterHome), this),
registerCommand(`${this.host.id}.discussions`, () => openUrl(urls.githubDiscussions), this),
registerCommand(
`${this.host.id}.account.resync`,
Expand Down

0 comments on commit f3eb886

Please sign in to comment.