diff --git a/CHANGELOG.md b/CHANGELOG.md index adc7bd9..868fa1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,18 +5,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.4.2] - 2026-02-02 +## [0.4.3] - 2026-02-02 ### Added -- Option to disable early mode in admin settings (Metrics tab) +- Sub-tabs navigation within Metrics tab (Endpoint, Selection, Runtime, Advanced) +- Option to disable early mode in admin settings (Metrics → Advanced) - Support for `WP_PROMETHEUS_DISABLE_EARLY_MODE` environment variable - Early mode status display in settings +### Fixed + +- Early mode setting now saves correctly (moved into form with proper settings group) + ### Changed -- Early mode can now be disabled for users who need the `wp_prometheus_collect_metrics` hook for custom metrics -- Updated translations with new early mode strings (English and German) +- Reorganized Metrics tab into logical sub-sections for better usability +- Early mode can now be disabled for users who need the `wp_prometheus_collect_metrics` hook +- Updated translations with sub-tab and early mode strings (English and German) ## [0.4.1] - 2026-02-02 diff --git a/CLAUDE.md b/CLAUDE.md index 8fadf55..eb24c7f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -291,6 +291,20 @@ add_action( 'wp_prometheus_collect_metrics', function( $collector ) { ## Session History +### 2026-02-02 - Sub-tabs & Early Mode Fix (v0.4.3) + +- Split Metrics tab into sub-tabs for better organization: + - **Endpoint**: Authentication token configuration + - **Selection**: Enable/disable individual metrics + - **Runtime**: Reset runtime metrics data + - **Advanced**: Early mode toggle and status +- Fixed early mode setting not being saved (was outside form element) +- Added CSS styling for horizontal sub-tab navigation +- **Key Learning**: WordPress Settings API form structure + - Settings must be inside `
+- - -
- - -- -
+ + + + + +| + |
-
- - + + - |
- |
|---|---|---|
| - | - - - - - - - - - - + + + |