Skip to content

Conversation

@tariknz
Copy link
Owner

@tariknz tariknz commented Jul 15, 2025

  • Abstracts the component also to test in storybook

Closes #25

Screen.Recording.2025-07-16.at.8.56.21.AM.mov

Copilot AI review requested due to automatic review settings July 15, 2025 20:57
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 hides the FasterCarsFromBehind component during "Lone Qualify" sessions and abstracts the component for better testability in Storybook. The changes improve component separation by creating a display component that can be independently tested and controlled.

  • Adds session type check to hide component during "Lone Qualify" sessions
  • Extracts display logic into a separate FasterCarsFromBehindDisplay component
  • Enhances Storybook configuration with controls for the display component

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
useCarBehind.tsx Refactors hook to return classColor instead of computed background style
FasterCarsFromBehind.tsx Adds session type check and extracts display component for better separation
FasterCarsFromBehind.stories.tsx Updates Storybook to use display component with interactive controls

@tariknz tariknz changed the title Hide FasterCarsFromBehind during Lone Qualify feat: hide FasterCarsFromBehind during Lone Qualify Jul 16, 2025
@tariknz tariknz merged commit 3208bf8 into main Jul 17, 2025
1 check passed
@tariknz tariknz deleted the fix/fastercars-tidy branch July 17, 2025 03:03
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.

[Faster Cars From Behind] Should not display during Lone Qualifying sessions

2 participants