Skip to content

Branch/trend anomaly fixes and refactorings#4

Merged
buggedcom merged 5 commits into
mainfrom
branch/trend-anomaly-fixes-and-refactorings
Apr 10, 2026
Merged

Branch/trend anomaly fixes and refactorings#4
buggedcom merged 5 commits into
mainfrom
branch/trend-anomaly-fixes-and-refactorings

Conversation

@buggedcom

Copy link
Copy Markdown
Owner
  • Anomaly trend override — the trend deviation anomaly method can now use an independent trend algorithm (e.g. LOWESS for anomaly detection while the chart shows linear). A new "Same as display trend" option is the default; it is automatically disabled and falls back to the first available method when trend lines are turned off for the series. Backend Python and WebSocket schema updated to support all five trend methods.

  • inline-select migration — removed the duplicated _renderSelect() helper from all five analysis/anomaly molecules and the chart-display sidebar section. All selects now use the shared <inline-select> atom. SelectOption extended with disabled?: boolean; inline-select renders disabled <option> elements accordingly.

  • Tablet layout fix — at 720–900 px the collapsed sidebar was overflowing behind the chart because .page-sidebar sets min-width: min(380px, 85vw) at that breakpoint and .page-sidebar.collapsed never reset it. Added min-width: 0 to the collapsed rule.

  • Docs split — the README was split into four focused documents (docs/cards.md, docs/recording-datapoints.md, docs/history-and-analysis.md, docs/development.md) with the README reduced to an overview that links to each.

  • Hook fixscripts/prepare-commit-msg now skips messages prefixed with fixup! or squash! so git rebase --autosquash subject matching is not corrupted.

…ocket schema

doc(Agents): Updates agents internationalision instructions,  add bulk-action checklist to AGENTS.md
chore(storybook): Updates storybook package json scripts to sb short form
chore(tests): Adds test:watch and per test project splits
fix(trends): Fixes backend anomaly trends validation
…atom

Replace raw <select> elements and _renderSelect() helpers across all six
analysis molecules (trend, threshold, sample, rate, anomaly, sidebar) with
the <inline-select> atom. Extend SelectOption with disabled? so individual
options can be greyed out.

Also disables "Same as display trend" in the anomaly trend method picker
when show_trend_lines is off, falling back to the first real method so the
select is never left on a disabled option.

Update all unit and Storybook interaction tests to query inline-select and
dispatch dp-select-change instead of the native change event.
At <=900px the .page-sidebar rule sets min-width: min(380px, 85vw) for the
overlay state. The .page-sidebar.collapsed override set width: auto but
never cleared min-width, so the collapsed 52px pill sidebar retained a
~380px minimum width, overflowed its grid column, and disappeared behind
the chart stacking context.

Adding min-width: 0 to the collapsed rule at that breakpoint lets the
sidebar correctly constrain to its 52px grid column.

doc: Removed statistics card reference from README and github templates
Extract the full README into four topic documents:
- docs/cards.md — all six cards, visual editors, panel description, YAML configs
- docs/recording-datapoints.md — record action, fields, automation patterns, examples
- docs/history-and-analysis.md — chart features, all trend methods, anomaly detection
- docs/development.md — setup, build, i18n deep dive, remote HA dev, WebSocket API, CI

README becomes a concise overview with badges, screenshots, why/what summary,
a docs table linking to each topic, translations note, roadmap, installation,
setup, and a quick-start snippet.
@buggedcom buggedcom self-assigned this Apr 10, 2026
@buggedcom buggedcom merged commit 25f0605 into main Apr 10, 2026
15 checks passed
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.

1 participant