Skip to content

Commit

Permalink
Modifies Home View welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
nzaytsev authored and eamodio committed Dec 19, 2024
1 parent 056a6d0 commit dc38afc
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions src/webviews/apps/home/components/preview-banner.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { consume } from '@lit/context';
import { css, html, LitElement, nothing } from 'lit';
import { customElement, query, state } from 'lit/decorators.js';
import { when } from 'lit/directives/when.js';
import type { State } from '../../../home/protocol';
import { CollapseSectionCommand, TogglePreviewEnabledCommand } from '../../../home/protocol';
import { focusOutline } from '../../shared/components/styles/lit/a11y.css';
Expand All @@ -24,6 +23,10 @@ export class GlPreviewBanner extends LitElement {
static override styles = [
linkBase,
css`
.title {
margin-block-end: 0.4em;
}
.text-button {
padding: 0.4rem 0.8rem;
}
Expand Down Expand Up @@ -95,26 +98,10 @@ export class GlPreviewBanner extends LitElement {

return html`
<gl-card>
<p><strong>Welcome to the ${this.isNewInstall ? 'GitLens ' : 'new '}Home View!</strong></p>
<p>
${this.isNewInstall
? html`This is a hub for your current, future, and recent work. `
: html`We've reimagined GitLens' Home to be a more helpful daily workflow tool. `}We're
continuing to refine this experience and welcome your
<a class="feedback" href="https://github.com/gitkraken/vscode-gitlens/discussions/3721"
><code-icon icon="feedback"></code-icon> feedback</a
>.
</p>
${when(
!this.isNewInstall,
() => html`
<button-container>
<gl-button appearance="secondary" @click=${() => this.togglePreview(true)} full
><code-icon icon="arrow-left"></code-icon> Revert to Old Home View</gl-button
>
</button-container>
`,
)}
<h4 class="title">Welcome to the GitLens Home View</h4>
Streamline your workflow—effortlessly track, manage, and collaborate on your branches and pull
requests—all in one intuitive hub.
<a class="feedback" href="https://help.gitkraken.com/gitlens/home-view/">Learn more</a>.
<gl-button slot="actions" appearance="toolbar" tooltip="Dismiss Welcome" @click=${() => this.onClose()}
><code-icon icon="close"></code-icon
></gl-button>
Expand Down

0 comments on commit dc38afc

Please sign in to comment.