@tradejs/app 3.1.18 → 3.1.19-beta.234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradejs/app",
3
- "version": "3.1.18",
3
+ "version": "3.1.19-beta.234",
4
4
  "description": "Installable Next.js UI for the TradeJS TypeScript framework: dashboards, backtests, charts, and runtime data.",
5
5
  "keywords": [
6
6
  "tradejs",
@@ -56,11 +56,11 @@
56
56
  "@chakra-ui/charts": "3.36.1",
57
57
  "@chakra-ui/react": "3.36.1",
58
58
  "@emotion/react": "^11.14.0",
59
- "@tradejs/core": "^3.1.18",
60
- "@tradejs/indicators": "^3.1.18",
61
- "@tradejs/infra": "^3.1.18",
62
- "@tradejs/node": "^3.1.18",
63
- "@tradejs/types": "^3.1.18",
59
+ "@tradejs/core": "^3.1.19-beta.234",
60
+ "@tradejs/indicators": "^3.1.19-beta.234",
61
+ "@tradejs/infra": "^3.1.19-beta.234",
62
+ "@tradejs/node": "^3.1.19-beta.234",
63
+ "@tradejs/types": "^3.1.19-beta.234",
64
64
  "@types/bcryptjs": "2.4.6",
65
65
  "@types/lodash": "4.17.24",
66
66
  "@types/node": "24.13.3",
@@ -241,6 +241,7 @@ export const RuntimeStrategyCard = ({
241
241
 
242
242
  <RuntimeStrategyChart
243
243
  orderLog={strategy.orderLog}
244
+ revisionChanges={strategy.revisionChanges}
244
245
  stat={strategy.stat}
245
246
  startTimestamp={startTimestamp}
246
247
  endTimestamp={endTimestamp}
@@ -13,7 +13,11 @@ import {
13
13
  YAxis,
14
14
  } from 'recharts';
15
15
  import { getFormatted } from '@tradejs/core/backtest';
16
- import type { SimpleOrderLogData, TestStat } from '@tradejs/types';
16
+ import type {
17
+ RuntimeStrategyRevisionChange,
18
+ SimpleOrderLogData,
19
+ TestStat,
20
+ } from '@tradejs/types';
17
21
  import { formatTimeSeriesTooltipTimestamp } from '#app/lib/timeSeriesChart';
18
22
  import { TimeSeriesXAxis } from '#shared/Charts/TimeSeriesXAxis';
19
23
  import {
@@ -23,6 +27,7 @@ import {
23
27
 
24
28
  interface RuntimeStrategyChartProps {
25
29
  orderLog: SimpleOrderLogData;
30
+ revisionChanges?: RuntimeStrategyRevisionChange[];
26
31
  stat: TestStat;
27
32
  startTimestamp: number;
28
33
  endTimestamp: number;
@@ -31,6 +36,7 @@ interface RuntimeStrategyChartProps {
31
36
 
32
37
  export const RuntimeStrategyChart = ({
33
38
  orderLog,
39
+ revisionChanges = [],
34
40
  stat,
35
41
  startTimestamp,
36
42
  endTimestamp,
@@ -97,6 +103,22 @@ export const RuntimeStrategyChart = ({
97
103
  position: 'bottom',
98
104
  }}
99
105
  />
106
+ {revisionChanges.map((change) => (
107
+ <ReferenceLine
108
+ key={`${change.timestamp}:${change.strategyRevision}`}
109
+ x={change.timestamp}
110
+ stroke={chart.color('orange.400')}
111
+ strokeDasharray="4 4"
112
+ label={{
113
+ value: `Revision ${change.strategyRevision
114
+ .replace(/^sr1:/, '')
115
+ .slice(0, 8)}`,
116
+ offset: 8,
117
+ fill: chart.color('orange.300'),
118
+ position: 'insideTopRight',
119
+ }}
120
+ />
121
+ ))}
100
122
  <TimeSeriesXAxis
101
123
  startTimestamp={startTimestamp}
102
124
  endTimestamp={endTimestamp}
@@ -29,7 +29,6 @@ export const RuntimeStrategyConfigDrawer = ({
29
29
  const config = JSON.stringify(strategy.config, null, 2);
30
30
  const serviceInfo = [
31
31
  { label: 'Strategy revision', value: strategy.strategyRevision },
32
- { label: 'Config ID', value: strategy.configId },
33
32
  { label: 'Runtime key', value: strategy.runtimeKey },
34
33
  { label: 'Deployment', value: strategy.deploymentId },
35
34
  {