Skip to content

Fail the shell tests on an animation duration outside Style.duration - #16492

Merged
dhh merged 1 commit into
quattrofrom
motion-duration-lint
Oct 24, 2026
Merged

dhh merged 1 commit into
quattrofrom
motion-duration-lint

Conversation

@dhh

@dhh dhh commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #16490, so animation durations can't drift back to bare numbers.

  • test/shell.d/motion-test.sh (new): fails on any duration: set to a bare number in shell/**/*.qml, listing the offending lines. It only counts a duration: that opens a line or follows { or ;, so the OSD's property int duration: 1200 and JS objects like { icon: …, duration: 0 } don't trip it. ./test/shell picks it up automatically.
  • The last three sites now go through Style.duration(): Button.qml's spinner (900ms) and the dock's launch pulse (500ms ×2). Both loops were already gated on !Style.reduceMotion, so behaviour doesn't change.
  • agents/skills/motion.md names the check and adds that a looping animation also needs the reduceMotion gate, or its zero-length steps spin the CPU.

Verified: the test passes, and with Button.qml's spinner reverted to duration: 900 it fails and names that line. Dock and button-border-stability tests pass.

Not covered: an animation with no duration at all (Qt's 250ms default). None exist today, and a reliable multiline check for that is harder; noted rather than built.

🤖 Generated with Claude Code

Seven animations had drifted to bare numbers before #16490 brought
them back, one of which kept fading after animations were turned off.
motion-test.sh now fails on any `duration:` given a bare number in the
shell's QML. The last three, Button's spinner and the dock's launch
pulse, go through Style.duration too; both loops were already held
still with animations off, and the motion guide says so for loops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds a shell test that reports bare numeric animation durations.

  • Shell animations use reduced-motion timing, and a shell test catches bare duration numbers.

Known limit: dhh explicitly acknowledged that Qt's default duration is not covered and deferred a multiline check.

Reviews (1) · Last reviewed commit: "Fail the shell tests on an animation dur..." · Reviewed by Greptile

@dhh
dhh merged commit 6ddadd4 into quattro Oct 24, 2026
2 checks passed
@dhh
dhh deleted the motion-duration-lint branch October 24, 2026 14:48
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Oct 28, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 3, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 4, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 5, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 11, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 11, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 14, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 19, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 20, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 21, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 21, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 21, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 25, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 26, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 26, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 28, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 28, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Nov 29, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 1, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 1, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 2, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 2, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 2, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 3, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GruperTal added a commit to GruperTal/omarchy that referenced this pull request Dec 3, 2026
Every shell animation now takes its length from Style.duration(ms), which is 0
once `omarchy toggle animations` has turned Hyprland's animations off, and the
motion test fails on a bare number (omacom#16492). The window's progress sweeps and
the pulsing step dot and icon were the last ones with their own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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