From ea6d38f079e611091786b9cae9678a74d244aab2 Mon Sep 17 00:00:00 2001 From: sepehr-safari Date: Thu, 9 Jul 2026 00:51:38 +0300 Subject: [PATCH] fix(web): point npm links to toolkit package + inspector nav link npm links in README.md and landing page footer pointed to the npm organization page instead of the actual toolkit package page. - README.md: badge link + links section -> /package/@ocpp-debugkit/toolkit - apps/web/src/app/page.tsx: footer npm link -> same - apps/web/README.md: stale references to old packages (core, scenarios, reporter) -> @ocpp-debugkit/toolkit Also add a nav link from the inspector header to the root page, matching the docs layout pattern (link with 'OCPP DebugKit' + section label). - apps/web/src/app/inspector/page.tsx: wrap title in - Update E2E tests to match new header structure --- README.md | 4 ++-- apps/web/README.md | 3 +-- apps/web/src/app/inspector/page.tsx | 13 ++++++++++--- apps/web/src/app/page.tsx | 2 +- apps/web/tests/inspector.spec.ts | 3 ++- apps/web/tests/landing.spec.ts | 3 ++- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a3ab986..3bdd832 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![CI](https://github.com/ocpp-debugkit/ocpp-debugkit/actions/workflows/ci.yml/badge.svg)](https://github.com/ocpp-debugkit/ocpp-debugkit/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/ocpp-debugkit/ocpp-debugkit/blob/main/LICENSE) -[![npm](https://img.shields.io/badge/npm-%40ocpp--debugkit-blue.svg)](https://www.npmjs.com/org/ocpp-debugkit) +[![npm](https://img.shields.io/badge/npm-%40ocpp--debugkit-blue.svg)](https://www.npmjs.com/package/@ocpp-debugkit/toolkit) OCPP DebugKit is a developer toolkit for inspecting, analyzing, and debugging OCPP (Open Charge Point Protocol) charging session traces. It helps EV charging @@ -119,7 +119,7 @@ load a trace directly in your browser — no installation required. - [Documentation](https://ocppdebugkit.com/docs) - [GitHub](https://github.com/ocpp-debugkit/ocpp-debugkit) -- [npm](https://www.npmjs.com/org/ocpp-debugkit) +- [npm](https://www.npmjs.com/package/@ocpp-debugkit/toolkit) - [Roadmap](./ROADMAP.md) - [Contributing](./CONTRIBUTING.md) diff --git a/apps/web/README.md b/apps/web/README.md index d8aaa92..7209cd9 100644 --- a/apps/web/README.md +++ b/apps/web/README.md @@ -19,8 +19,7 @@ and documentation. All trace processing happens client-side in the browser — no trace data is uploaded to a server. The app uses workspace dependencies on -`@ocpp-debugkit/core`, `@ocpp-debugkit/scenarios`, and -`@ocpp-debugkit/reporter` for parsing, analysis, and report generation. +`@ocpp-debugkit/toolkit` for parsing, analysis, and report generation. ## Development diff --git a/apps/web/src/app/inspector/page.tsx b/apps/web/src/app/inspector/page.tsx index 8f34575..233b0ae 100644 --- a/apps/web/src/app/inspector/page.tsx +++ b/apps/web/src/app/inspector/page.tsx @@ -1,5 +1,6 @@ 'use client'; +import Link from 'next/link'; import { useState, useCallback, useMemo, useRef } from 'react'; import { parseTrace, @@ -257,9 +258,15 @@ export default function InspectorPage() { {/* Header */}
-

- OCPP Inspector -

+
+ + OCPP DebugKit + + Inspector +
{analysis && analysis.events.length > 0 && (