# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Streak A 'day' is a calendar date in the injected timezone (default UTC). Completing at least one full lockout on a date increments the streak if the previous date also completed, otherwise the streak becomes 1. A cancel or a missed date sets it to 0 the next completed day starts at 1. ## Screenshot tolerance 8 levels, 98% of pixels. Clock text must also match the injected time. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | Look up for a minute | Shown on the home card. | | `minutes` | Default lockout, minutes | 20 | From 5 to 120. | | `streak` | Keep a streak | on | A day-count if a lockout is honoured. Stored locally. | | `sound` | A chime when time is up | off | Tests may mock audio. | | `mode` | Mode | timer | timer is a countdown you can dismiss. lockout hides a listed set of paths until the countdown ends. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `design.md` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/lock-paths.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/timer.png` | Fourteen minutes thirty-two seconds left of a twenty-minute look-up, streak of six. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. Timer, lockout, and streak logic are tested with a fake clock. Lockout hides documented paths until the countdown ends. Checks do not try to prove that anyone went outside, and they use no camera and no network.