Skip to content

Commit ca52834

Browse files
Fabien83560claude
andcommitted
fix: release markers order in chart + bump version to 1.0.2
Reverse the two most recent releases before placing markers so the oldest appears on the left (45%) and the newest on the right (80%), matching the chart's left-to-right chronological axis. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 38f9026 commit ca52834

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apiforgepy/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@
748748
const globalCalls = chartData?.calls || Array(fallbackPts).fill(0);
749749
const xLabelsFinal = xLabels.length > 0 ? xLabels : Array.from({length:globalP90.length}, (_,i) => `${i}`);
750750
751-
const releaseMarkers = (RELEASES || []).slice(0,2).map((r, i) => ({
751+
const releaseMarkers = [...(RELEASES || [])].slice(0,2).reverse().map((r, i) => ({
752752
idx: Math.min(Math.floor(globalP90.length * (0.45 + i * 0.35)), globalP90.length - 1),
753753
label: r.tag,
754754
color: i === 0 ? '#b91c1c' : '#15803d',

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "apiforgepy"
7-
version = "1.0.1"
7+
version = "1.0.2"
88
description = "API observability & intelligence for FastAPI/Starlette — local-first, privacy-first"
99
readme = "README.md"
1010
license = { text = "MIT" }

0 commit comments

Comments
 (0)