Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/race-control-chime #188

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

Ellodev
Copy link
Contributor

@Ellodev Ellodev commented Nov 28, 2024

uses settingsStore to store the setting.
compares time of message to local time to determine if message is older than when the user went on the website. gives every message a id so that it isnt played twice.

uses settingsStore to store the setting.
compares time of message to local time to determine if message is older than when the user went on the website.
gives every message a id so that it isnt played twice.
@Ellodev Ellodev requested a review from slowlydev as a code owner November 28, 2024 14:06
Copy link

vercel bot commented Nov 28, 2024

@Ellodev is attempting to deploy a commit to the f1-dash Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
f1-dash ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2024 1:14pm

Copy link
Owner

@slowlydev slowlydev left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the PR 🙏🏻
There's a couple things that u might want to look into.

dash/src/components/RaceControlMessage.tsx Outdated Show resolved Hide resolved
dash/src/components/RaceControlMessage.tsx Outdated Show resolved Hide resolved
dash/src/components/RaceControlMessage.tsx Outdated Show resolved Hide resolved
dash/src/components/RaceControlMessage.tsx Outdated Show resolved Hide resolved
@slowlydev slowlydev changed the title add race control chime: add race control chime Nov 28, 2024
@slowlydev slowlydev changed the title add race control chime feature/race-control-chime Nov 28, 2024
Copy link
Owner

@slowlydev slowlydev left a comment

Choose a reason for hiding this comment

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

Okay so the code is fine for me like this. If u want to you cold add a volume slider in the settings so the users can adjust the volume to their liking. I think that would be a neat addition and fairly straight forward to implement.

@slowlydev slowlydev changed the base branch from main to develop November 29, 2024 19:16
Copy link
Owner

@slowlydev slowlydev left a comment

Choose a reason for hiding this comment

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

Thank you for adding the volume slider, I am starting to like it. Just a few minor adjustments and we are ready to :shipit:

dash/src/components/Input.tsx Outdated Show resolved Hide resolved
setValue: (value: number) => void;
};

export default function Input({ value, setValue }: Props) {
Copy link
Owner

Choose a reason for hiding this comment

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

As this Input has custom code for numbers, maybe it would be a good idea to either call it numeric input or move the numeric logic to where its used, what do you think is best?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm thinking we could maybe call it something like PercentageInput since its defined as a Maximum of 100, and used for Percentages. Do you agree or would you rather that I move the Number logic somewhere else to make it more reusable?

Copy link
Owner

Choose a reason for hiding this comment

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

I think we go for Input for now and move the number logic to the settings page where we update the store

dash/src/components/Slider.tsx Outdated Show resolved Hide resolved
dash/src/components/Slider.tsx Outdated Show resolved Hide resolved
dash/src/components/Slider.tsx Show resolved Hide resolved
dash/src/app/(nav)/settings/page.tsx Outdated Show resolved Hide resolved
dash/src/components/Slider.tsx Outdated Show resolved Hide resolved
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