mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 17:05:48 +00:00
* fix(focus-mode): preserve flowtime break settings across mode switch Switching the Flowtime break mode (Ratio-based <-> Rule-based) hides the inactive section. Formly resets hidden fields by default, wiping the user's break rules / percentage on a Rule -> Ratio -> Rule round-trip. Set resetOnHide: false at every level of the breakRules repeat (field, fieldArray and each inner input) plus on breakPercentage, so the hidden side keeps its values. Setting it only on the top-level field preserves the rows but strips their values, which is why a heavier cache/restore approach appeared necessary. Adds regression specs that drive the real breakMode control (not the internal model) so they reproduce the dialog's actual behaviour. Part of #7581 * test(focus-mode): real-DOM e2e for flowtime mode-switch preservation Drives the actual mat-select Rule -> Ratio -> Rule round-trip and a real backspace-clear in the running app. Verified to fail without the resetOnHide fix (rule inputs are stripped after the round-trip), so it guards the #7581 regression at the layer where it actually reproduced. |
||
|---|---|---|
| .. | ||
| auto-start-focus-on-play.spec.ts | ||
| bug-5995-break-resume.spec.ts | ||
| flowtime-settings-preserve.spec.ts | ||
| flowtime-timer-bug-5117.spec.ts | ||
| focus-mode-notes-fullscreen-save.spec.ts | ||
| issue-6731-pause-stops-tracking.spec.ts | ||
| pomodoro-break-timing-bug-6044.spec.ts | ||
| pomodoro-timer-sync-bug-5954.spec.ts | ||
| pomodoro-timer-sync-bug-5974.spec.ts | ||