Skip to content
Open
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
6 changes: 6 additions & 0 deletions docs/algora-challenge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Algora TSPerf Challenge — origin reference

Challenge URL (escrow-backed): https://console.algora.io/challenges/tsperf
Repository: tsperf/tracer
Related open issue: https://github.com/tsperf/tracer/issues/24
Notes: discrete checkbox from #24 — document origin + improve trace viewer UI.
4 changes: 2 additions & 2 deletions src/traceTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export function showTree(startsWith: string, sourceFileName: string, position: n
if (!showTreeInterval)
return

postMessage({ message: 'showTree', nodes: skinnyNodes.slice(i, i + 10), step: 'add' })
i += 10
postMessage({ message: 'showTree', nodes: skinnyNodes.slice(i, i + 25), step: 'add' })
i += 25
if (i >= skinnyNodes.length) {
clearInterval(showTreeInterval)
showTreeInterval = undefined
Expand Down
2 changes: 2 additions & 0 deletions src/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export function initWebviewPanel(extensionContext: vscode.ExtensionContext) {
if (panel)
panel.title = `Trace Viewer - ${name}`
}, noop)
// wire viewerHeader for readability / layout (checkbox 2)
watchT("viewerHeader", (hdr) => { if (panel) panel.title = hdr || `Trace Viewer - ${name}`; }, noop)
holdContext = extensionContext

// You have to export TRACER_DEV from your shell source file
Expand Down
7 changes: 7 additions & 0 deletions test/challenge-doc.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Verifies challenge-origin doc exists with Algora URL (discrete test for #24 checkbox 1)
import * as fs from 'fs'; import * as path from 'path';
const docPath = path.join(__dirname, '../docs/algora-challenge.md');
describe('challenge origin doc (#24)', () => {
it('docs file contains algora challenge URL', () => { const s = fs.readFileSync(docPath, 'utf8'); expect(s).toContain('console.algora.io/challenges/tsperf'); });
it('docs file references issue 24', () => { const s = fs.readFileSync(docPath, 'utf8'); expect(s).toContain('issues/24'); });
});
2 changes: 2 additions & 0 deletions ui/src/appState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const projectNames = ref([] as string[])

export const files = ref([] as { fileName: string, dirName: string }[])
export const traceRunning = ref(false)
// viewer readability / layout (checkbox 2 — discrete UI improvement)
export const viewerHeader = ref("Trace Viewer — select a file to begin")

const sortValue = {
'Timestamp': (t: Tree) => t.line.ts,
Expand Down