Skip to content

Visualise Bloom/pre-infusion and first drip time - #1132

Open
icnagy wants to merge 5 commits into
graphefruit:developfrom
icnagy:feat/brew-event-markers
Open

Visualise Bloom/pre-infusion and first drip time#1132
icnagy wants to merge 5 commits into
graphefruit:developfrom
icnagy:feat/brew-event-markers

Conversation

@icnagy

@icnagy icnagy commented Jun 5, 2026

Copy link
Copy Markdown

Visualise Bloom/pre-infusion and first drip time

1 - settings - vertical lines 2 - settings - background regions 3 - chart - vertical lines 4 - chart - background regions

icnagy and others added 5 commits May 22, 2026 21:53
- Add getEventMarkerShapes() to GraphHelperService with bar-line and
  background-region modes, colour-aware for dark/light mode
- Bake markers into Plotly.newPlot layout for detail and card views;
  update via relayout only on value-change events in the live view
- Add optional brew input to GraphDisplayCardComponent for card markers
- Add settings toggle, mode selector, and colour pickers to settings page
- Add EN i18n strings for all new settings labels
- 13 new tests covering all shape-builder scenarios
…hDisplayCard

- settings-event-markers.spec.ts: plain class tests covering constructor
  defaults and initializeByObject backward-compat migration guards for
  brew_event_markers_enabled, brew_event_markers_mode, bloomMarker and
  firstDripMarker graph color entries (9 tests)

- brew-brewing-graph-event-markers.spec.ts: TestBed unit tests for
  updateEventMarkers() — early-exit guards, stale shape filtering,
  non-marker shape preservation, idempotent update, and Plotly.relayout
  call verification (8 tests)

- graph-display-card-event-markers.spec.ts: TestBed tests for
  initializeFlowChart() verifying getEventMarkerShapes is called only
  when brew is set, marker shapes/annotations are included in the
  Plotly.newPlot layout, and exactly one newPlot call per invocation
  (4 tests)

All 34 event-marker tests (including existing GraphHelperService specs)
pass in Docker (ChromeHeadlessNoSandbox).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jun 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@icnagy
icnagy marked this pull request as ready for review July 28, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants