Skip to content

Conversation

@tariknz
Copy link
Owner

@tariknz tariknz commented Aug 2, 2025

This will show a warning when you've overrotated the wheel in cases where you're not sure if you're centred or overrotated it by 360 degrees left or right. It will show an indicator to what direction to move it back to.

Screen.Recording.2025-08-02.133353.mp4
Screen.Recording.2025-08-02.at.1.38.25.PM.mov
Screenshot 2025-08-02 133604

Copilot AI review requested due to automatic review settings August 2, 2025 01:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a rotation warning indicator to the steering wheel widget that alerts users when they've over-rotated the wheel beyond 270 degrees in either direction. The warning helps users identify when they might be confused about their wheel position (centered vs 360° rotated) and shows directional guidance to return to center.

  • Added a new rotation indicator component with pulsing animation and directional arrows
  • Improved steering wheel performance by using CSS custom properties for smooth rotation updates
  • Added comprehensive test coverage for rotation tracking and indicator display
  • Cleaned up unused TypeScript interfaces in settings types

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/frontend/theme.css Adds pulse animation keyframes for the rotation warning indicator
src/frontend/components/Settings/types.ts Removes unused 'round' wheel style and AdvancedSettings interface
src/frontend/components/Input/InputSteer/hooks/useWheelRotation.tsx Creates hook for tracking wheel rotation state and detecting over-rotation
src/frontend/components/Input/InputSteer/hooks/useWheelRotation.spec.tsx Comprehensive test suite for rotation tracking functionality
src/frontend/components/Input/InputSteer/hooks/index.ts Exports the new rotation hook and types
src/frontend/components/Input/InputSteer/RotationIndicator.tsx Main indicator component that shows warning when wheel is over-rotated
src/frontend/components/Input/InputSteer/RotationIndicator.stories.tsx Storybook stories for testing different rotation scenarios
src/frontend/components/Input/InputSteer/RotationIndicator.spec.tsx Tests for rotation indicator visibility and display logic
src/frontend/components/Input/InputSteer/InputSteer.tsx Integrates rotation indicator and optimizes wheel rotation performance
src/frontend/components/Input/InputSteer/InputSteer.stories.tsx Updates story controls to support full 360° rotation range

@tariknz tariknz merged commit e8d379e into main Aug 2, 2025
1 check passed
@tariknz tariknz deleted the feat/overrotate-indicator branch August 2, 2025 02:06
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