Add plugin UI panel framework, surfaced in the Labs tab#43
Merged
Conversation
Phase 1 of the pacing rework: a standalone, unit-tested lib module porting the DovesLapTimer issue #29 design to the web tool. Not yet wired into the app — this lands the core math so it can be reviewed in isolation. - resampleByDistance(): canonical arc-length grid (one point per N meters), independent of GPS rate and lap duration — fixes the legacy distance method's cumulative-noise drift and gives uniform spatial resolution for the coach. - computePositionDelta(): projects each native current fix onto the nearest reference segment (interpolating the closest point so the gap doesn't snap), with a monotonic windowed search to defeat hairpins/self-crossings, an EMA (issue #29 convention) + optional zero-lag forward-backward smoother, and a sanity guard. Exposes matchIndex/matchFrac as a cross-lap alignment map. - 10 tests: grid uniformity, GPS-rate independence, zero gap vs self, growing gap for slower laps, segment interpolation, sanity guard, smoothing. https://claude.ai/code/session_01QF56Xjp5ZMgXrqfTWD14Le
Coverage SummaryLines: 14.18% (1423/10029) · Statements: 13.51% · Functions: 9.79% · Branches: 10.37% Per-file coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First concrete extension point for the plugin system: plugins contribute
self-contained React panels to a named slot, and the host mounts them.
Built so future personal/third-party plugins plug in the same way.
getPanelsForSlot. PluginPanelProps is a curated, read-only session snapshot
so plugins never depend on the host's internal session context.
a per-panel error boundary so a buggy plugin can't crash the tab.
a plugin contributes a labs panel, even with the experimental setting off.
https://claude.ai/code/session_01QF56Xjp5ZMgXrqfTWD14Le