Skip to content

Commit 453a994

Browse files
d13eamodio
authored andcommitted
Removes duplicate graph components
1 parent 30b7cef commit 453a994

File tree

7 files changed

+8
-1751
lines changed

7 files changed

+8
-1751
lines changed

src/webviews/apps/plus/graph-next/graph-app.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import { customElement, query } from 'lit/decorators.js';
55
import { when } from 'lit/directives/when.js';
66
import type { CustomEventType } from '../../shared/components/element';
77
import { emitTelemetrySentEvent } from '../../shared/telemetry';
8+
import type { GraphMinimapDaySelectedEventDetail } from '../graph/minimap/minimap';
9+
import type { GlGraphMinimapContainer } from '../graph/minimap/minimap-container';
810
import { stateContext } from './context';
911
import type { GLGraphWrapper } from './graph-wrapper/graph-wrapper';
10-
import type { GraphMinimapDaySelectedEventDetail } from './minimap/minimap';
11-
import type { GlGraphMinimapContainer } from './minimap/minimap-container';
1212
import { graphStateContext } from './stateProvider';
13+
import '../graph/minimap/minimap-container';
1314
import './graph-wrapper/graph-wrapper';
14-
import './hover/graphHover';
15-
import './minimap/minimap-container';
1615
import './sidebar/sidebar';
1716
import './graph-header';
1817
import './gate';

src/webviews/apps/plus/graph-next/graph-wrapper/graph-wrapper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ import type { CustomEventType } from '../../../shared/components/element';
3131
import { ipcContext } from '../../../shared/contexts/ipc';
3232
import type { TelemetryContext } from '../../../shared/contexts/telemetry';
3333
import { telemetryContext } from '../../../shared/contexts/telemetry';
34+
import type { GlGraphHover } from '../../graph/hover/graphHover';
3435
import { stateContext } from '../context';
35-
import type { GlGraphHover } from '../hover/graphHover';
3636
import { graphStateContext } from '../stateProvider';
3737
import { GraphWrapperReact } from './graph-wrapper.react';
38-
import '../hover/graphHover';
38+
import '../../graph/hover/graphHover';
3939

4040
const WebGraph = r2wc(GraphWrapperReact, {
4141
props: {
@@ -263,7 +263,7 @@ export class GLGraphWrapper extends SignalWatcher(LitElement) {
263263

264264
private ref?: GraphContainer;
265265

266-
@query('gl-graph-hover-next#commit-hover')
266+
@query('gl-graph-hover#commit-hover')
267267
private readonly graphHover!: GlGraphHover;
268268

269269
resetHover() {
@@ -275,7 +275,7 @@ export class GLGraphWrapper extends SignalWatcher(LitElement) {
275275
}
276276

277277
override render() {
278-
return html`<gl-graph-hover-next id="commit-hover" distance=${0} skidding=${15}></gl-graph-hover-next
278+
return html`<gl-graph-hover id="commit-hover" distance=${0} skidding=${15}></gl-graph-hover
279279
><web-graph
280280
nonce=${ifDefined(this.hostState.nonce)}
281281
activeRow=${ifDefined(this.graphAppState.activeRow)}

src/webviews/apps/plus/graph-next/hover/graphHover.ts

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

0 commit comments

Comments
 (0)