Browse Source

Adds cloud patches to home & welcome

main
Eric Amodio 1 year ago
parent
commit
e8668ef867
3 changed files with 65 additions and 41 deletions
  1. +19
    -18
      src/webviews/apps/home/home.html
  2. +25
    -0
      src/webviews/apps/home/home.scss
  3. +21
    -23
      src/webviews/apps/welcome/welcome.html

+ 19
- 18
src/webviews/apps/home/home.html View File

@ -169,7 +169,7 @@
class="nav-list__access" class="nav-list__access"
title="Requires a trial or paid plan to use this on privately hosted repos" title="Requires a trial or paid plan to use this on privately hosted repos"
aria-label="Requires a trial or paid plan to use this on privately hosted repos" aria-label="Requires a trial or paid plan to use this on privately hosted repos"
>✨</span
><span class="nav-list__access--preview">Preview</span> </span
></a ></a
> >
<a <a
@ -198,6 +198,23 @@
> >
<a <a
class="nav-list__item" class="nav-list__item"
href="command:gitlens.showDraftsView"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
data-requires="repo"
><code-icon class="nav-list__icon" icon="gl-cloud-patch"></code-icon
><span class="nav-list__group"
><span class="nav-list__label">Cloud Patches</span
><span class="nav-list__desc">New!</span></span
><span
class="nav-list__access"
title="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc"
aria-label="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc"
><span class="nav-list__access--preview">Preview</span> ☁️</span
></a
>
<a
class="nav-list__item"
href="command:gitlens.showStashesView" href="command:gitlens.showStashesView"
title="Show Stashes view" title="Show Stashes view"
aria-label="Show Stashes view" aria-label="Show Stashes view"
@ -216,22 +233,6 @@
> >
<a <a
class="nav-list__item" class="nav-list__item"
href="command:gitlens.showDraftsView"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
data-requires="repo"
hidden
><code-icon class="nav-list__icon" icon="gl-cloud-patch"></code-icon
><span class="nav-list__label">Cloud Patches</span
><span
class="nav-list__access"
title="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc"
aria-label="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc"
>☁️</span
></a
>
<a
class="nav-list__item"
href="command:gitlens.showWorkspacesView" href="command:gitlens.showWorkspacesView"
title="Show GitKraken Workspaces view" title="Show GitKraken Workspaces view"
aria-label="Show GitKraken Workspaces view" aria-label="Show GitKraken Workspaces view"
@ -242,7 +243,7 @@
class="nav-list__access" class="nav-list__access"
title="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc" title="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc"
aria-label="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc" aria-label="Requires a GitKraken account and access is based on your plan, e.g. Free, Pro, etc"
>☁️</span
><span class="nav-list__access--preview">Preview</span> ☁️</span
></a ></a
> >
<a <a

+ 25
- 0
src/webviews/apps/home/home.scss View File

@ -376,17 +376,42 @@ gl-button {
width: 100%; width: 100%;
} }
&__desc {
color: var(--color-foreground--65);
font-variant: all-small-caps;
margin-left: 1rem;
}
&__group {
width: 100%;
display: flex;
justify-content: flex-start;
}
&__group &__label {
width: auto;
}
&__access { &__access {
position: relative; position: relative;
left: 1.5rem; left: 1.5rem;
filter: grayscale(1); filter: grayscale(1);
opacity: 0.4; opacity: 0.4;
white-space: nowrap;
&--preview {
font-variant: all-small-caps;
}
} }
&__item:hover &__label { &__item:hover &__label {
text-decoration: underline; text-decoration: underline;
} }
&__item:hover &__desc {
color: var(--color-foreground);
}
&__item:hover &__access { &__item:hover &__access {
filter: none; filter: none;
opacity: 1; opacity: 1;

+ 21
- 23
src/webviews/apps/welcome/welcome.html View File

@ -193,6 +193,13 @@
><code-icon icon="gl-branches-view" size="20"></code-icon>Branches</a ><code-icon icon="gl-branches-view" size="20"></code-icon>Branches</a
> >
<a <a
href="command:gitlens.showDraftsView"
data-requires="repo"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
><code-icon icon="gl-cloud-patch" size="20"></code-icon>Cloud Patches ☁️</a
>
<a
href="command:gitlens.showRemotesView" href="command:gitlens.showRemotesView"
data-requires="repo" data-requires="repo"
title="Show Remotes view" title="Show Remotes view"
@ -231,14 +238,6 @@
><code-icon icon="gl-search-view" size="20"></code-icon>Search &amp; Compare</a ><code-icon icon="gl-search-view" size="20"></code-icon>Search &amp; Compare</a
> >
<a <a
href="command:gitlens.showDraftsView"
data-requires="repo"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
hidden
><code-icon icon="gl-cloud-patch" size="20"></code-icon>Cloud Patches ☁️</a
>
<a
href="command:gitlens.showWorkspacesView" href="command:gitlens.showWorkspacesView"
data-requires="repo" data-requires="repo"
title="Show GitKraken Workspaces view" title="Show GitKraken Workspaces view"
@ -522,25 +521,10 @@
><code-icon icon="graph-scatter"></code-icon><span>Visual File History ✨</span></a ><code-icon icon="graph-scatter"></code-icon><span>Visual File History ✨</span></a
> >
<a <a
href="command:gitlens.showStashesView"
data-requires="repo"
title="Show Stashes view"
aria-label="Show Stashes view"
><code-icon icon="gl-stashes-view"></code-icon>Stashes</a
>
<a
href="command:gitlens.showSearchAndCompareView"
data-requires="repo"
title="Show Search &amp; Compare view"
aria-label="Show Search &amp; Compare view"
><code-icon icon="gl-search-view"></code-icon>Search &amp; Compare</a
>
<a
href="command:gitlens.showDraftsView" href="command:gitlens.showDraftsView"
data-requires="repo" data-requires="repo"
title="Show Cloud Patches view" title="Show Cloud Patches view"
aria-label="Show Cloud Patches view" aria-label="Show Cloud Patches view"
hidden
><code-icon icon="gl-cloud-patch"></code-icon>Cloud Patches ☁️</a ><code-icon icon="gl-cloud-patch"></code-icon>Cloud Patches ☁️</a
> >
<a <a
@ -551,6 +535,20 @@
><code-icon icon="gl-workspaces-view"></code-icon>GitKraken Workspaces ☁️</a ><code-icon icon="gl-workspaces-view"></code-icon>GitKraken Workspaces ☁️</a
> >
<a <a
href="command:gitlens.showStashesView"
data-requires="repo"
title="Show Stashes view"
aria-label="Show Stashes view"
><code-icon icon="gl-stashes-view"></code-icon>Stashes</a
>
<a
href="command:gitlens.showSearchAndCompareView"
data-requires="repo"
title="Show Search &amp; Compare view"
aria-label="Show Search &amp; Compare view"
><code-icon icon="gl-search-view"></code-icon>Search &amp; Compare</a
>
<a
href="command:gitlens.showWorktreesView" href="command:gitlens.showWorktreesView"
data-requires="repo" data-requires="repo"
title="Show Worktrees view" title="Show Worktrees view"

Loading…
Cancel
Save