Skip to content

Commit 30fc1a5

Browse files
d13eamodio
authored andcommitted
Removes account view
1 parent 43288a1 commit 30fc1a5

File tree

11 files changed

+3
-714
lines changed

11 files changed

+3
-714
lines changed

src/container.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import { EnrichmentService } from './plus/launchpad/enrichmentService';
3333
import { LaunchpadIndicator } from './plus/launchpad/launchpadIndicator';
3434
import { LaunchpadProvider } from './plus/launchpad/launchpadProvider';
3535
import { RepositoryIdentityService } from './plus/repos/repositoryIdentityService';
36-
import { registerAccountWebviewView } from './plus/webviews/account/registration';
3736
import type { GraphWebviewShowingArgs } from './plus/webviews/graph/registration';
3837
import {
3938
registerGraphWebviewCommands,
@@ -293,7 +292,6 @@ export class Container {
293292
this._disposables.push((this._workspacesView = new WorkspacesView(this)));
294293

295294
this._disposables.push((this._homeView = registerHomeWebviewView(this._webviews)));
296-
this._disposables.push((this._accountView = registerAccountWebviewView(this._webviews)));
297295

298296
if (configuration.get('launchpad.indicator.enabled')) {
299297
this._disposables.push((this._launchpadIndicator = new LaunchpadIndicator(this, this._launchpadProvider)));
@@ -388,11 +386,6 @@ export class Container {
388386
return this._accountAuthentication;
389387
}
390388

391-
private readonly _accountView: WebviewViewProxy<[]>;
392-
get accountView() {
393-
return this._accountView;
394-
}
395-
396389
private readonly _actionRunners: ActionRunners;
397390
get actionRunners() {
398391
return this._actionRunners;

src/plus/gk/account/subscriptionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ export class SubscriptionService implements Disposable {
640640
async showAccountView(silent: boolean = false): Promise<void> {
641641
if (silent && !configuration.get('plusFeatures.enabled', undefined, true)) return;
642642

643-
if (!this.container.accountView.visible) {
643+
if (!this.container.homeView.visible) {
644644
await executeCommand(Commands.ShowAccountView);
645645
}
646646
}

src/plus/webviews/account/accountWebview.ts

Lines changed: 0 additions & 130 deletions
This file was deleted.

src/plus/webviews/account/protocol.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/plus/webviews/account/registration.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/webviews/apps/home/components/feature-nav.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { consume } from '@lit/context';
22
import { css, html } from 'lit';
33
import { customElement, property, state } from 'lit/decorators.js';
44
import { when } from 'lit/directives/when.js';
5+
import type { Source } from '../../../../constants.telemetry';
56
import type { State } from '../../../home/protocol';
67
import { GlElement } from '../../shared/components/element';
78
import { linkBase } from '../../shared/components/styles/lit/base.css';
@@ -13,7 +14,7 @@ export class GlFeatureNav extends GlElement {
1314
static override styles = [linkBase, homeBaseStyles, navListStyles, css``];
1415

1516
@property({ type: Object })
16-
private badgeSource = { source: 'home', detail: 'badge' };
17+
private badgeSource: Source = { source: 'home', detail: 'badge' };
1718

1819
@consume<State>({ context: stateContext, subscribe: true })
1920
@state()

src/webviews/apps/plus/account/account.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/webviews/apps/plus/account/account.scss

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)