Skip to content

refactor(motion): replace raw Duration and curves with QueryaMotion tokens in scroll animations #1240

Closed

Description

@ZhuchkaTriplesix

Problem

Per docs/motion-and-high-refresh.md and .cursor/rules/querya-motion.mdc:

  • "Prefer QueryaMotion tokens via context.motionDuration / context.motionCurve."
  • "Do not add bare Duration(milliseconds: …) for UI animation without going through tokens."

Hardcoded durations and raw curves were found in UI scroll animations:

  • lib/features/redis/redis_cli_workspace.dart:314:
    _scrollController.animateTo(
      _scrollController.position.maxScrollExtent,
      duration: const Duration(milliseconds: 150),
      curve: material.Curves.easeOut,
    );
  • lib/features/redis/redis_keys_view.dart:740:
    duration: const Duration(milliseconds: 150),

Scope

  • Replace bare Duration(milliseconds: 150) and Curves.easeOut with context.motionDuration(QueryaMotionDurationToken.fast) / QueryaMotion.fast and corresponding motion curves.
  • Honor user preferences for reduced motion / disableAnimations.

Acceptance

  • Scroll animations in Redis workspaces use QueryaMotion tokens.
  • No regression in CLI console auto-scroll or key list navigation.

Activity

  1. added
    performanceTheme parser epic label: performance
    motionAnimation system, transitions, motion tokens
    uiUser interface components and widgets
    P3Low priority / Polish & Enhancements
    on Oct 9, 2026
  2. added a commit that references this issue on Oct 10, 2026
  3. ZhuchkaTriplesix commented on Oct 11, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Done in #1259 (merged into dev).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority / Polish & EnhancementsmotionAnimation system, transitions, motion tokensperformanceTheme parser epic label: performanceuiUser interface components and widgets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions