Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
564 changes: 0 additions & 564 deletions log-viewer/src/features/timeline/__tests__/batching.test.ts

This file was deleted.

699 changes: 0 additions & 699 deletions log-viewer/src/features/timeline/__tests__/markers.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('SearchHighlightRenderer', () => {
fill: jest.SpiedFunction<PIXI.Graphics['fill']>;
};

// Create a mock LogEvent for testing (following batching.test.ts pattern)
// Create a mock LogEvent for testing
const createMockEvent = (timestamp: number, duration: number): LogEvent => {
const event = {
timestamp,
Expand Down
144 changes: 0 additions & 144 deletions log-viewer/src/features/timeline/optimised/EventBatchRenderer.ts

This file was deleted.

154 changes: 0 additions & 154 deletions log-viewer/src/features/timeline/optimised/SpritePool.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
layoutMarkerRects,
noDataSpanAt,
markerDuration,
sortMarkersByTimeAndSeverity,
type MarkerLayoutItem,
} from '../markers/MarkerProcessor.js';

Expand Down Expand Up @@ -95,6 +96,17 @@ describe('layoutMarkerRects', () => {
});
});

describe('sortMarkersByTimeAndSeverity', () => {
it('orders by startTime, higher severity first on a tie', () => {
const sorted = sortMarkersByTimeAndSeverity([
{ id: 'late', type: 'error', startTime: 300_000, summary: 'Late' },
{ id: 'skip', type: 'skip', startTime: 100_000, summary: 'Skip' },
{ id: 'exception', type: 'exception', startTime: 100_000, summary: 'Exception' },
]);
expect(sorted.map((m) => m.id)).toEqual(['exception', 'skip', 'late']);
});
});

describe('noDataSpanAt', () => {
const spans = [
{ startTime: 100, endTime: 500, summary: 'Skipped-Lines' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* MarkerHitTest
*
* Shared utility for hit testing timeline markers.
* Used by TimelineMarkerRenderer and MeshMarkerRenderer.
* Used by MeshMarkerRenderer.
*/

import type { TimelineMarker } from '../../types/flamechart.types.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Shared utilities for processing timeline markers (truncation regions).
* Consolidates pre-blended color computation and marker processing logic
* used by both MeshMarkerRenderer and TimelineMarkerRenderer.
* used by the marker, metric-strip, minimap and selection renderers.
*/

import type { NoDataSpan, TimelineMarker } from '../../types/flamechart.types.js';
Expand Down
Loading
Loading