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

Adding timer feature #93

Closed
wants to merge 4 commits into from
Closed

Conversation

SENTHILnew
Copy link

@SENTHILnew SENTHILnew commented Feb 4, 2024

📝 Description
This pull request adds a timer feature.
The timer can be enabled or disabled by the moderator. The timer automatically starts on clicking restart. The timer can be disabled anytime. Once the set time is over (only supported time seconds for now) will automatically reveal the voting

🛠️ Changes made
Added new components for showing timer progress and timer toggle button.
Modified gameController component to accommodate the timer toggle and timer progress controls.

🧪 Testing
Added unit tests to ensure the proper toggling of timer control.
Added unit tests for timer end reveal feature.

📸 Screenshots

chrome-capture-2024-1-6

@SENTHILnew SENTHILnew mentioned this pull request Feb 4, 2024
@hellomuthu23
Copy link
Owner

@SENTHILnew - thanks a lot for the PR - are you able to fix this build/lint error - https://github.com/hellomuthu23/planning-poker/actions/runs/7785090685/job/21239197826?pr=93#step:3:48

@SENTHILnew
Copy link
Author

SENTHILnew commented Feb 6, 2024

Updated the PR, @hellomuthu23 can you approve the rebuild

@hellomuthu23
Copy link
Owner

Updated the PR, @hellomuthu23 can you approve the rebuild

Thanks, its passing now. the deploy to firebase failure can be ignored as the workflow can't access service account

<Typography variant='subtitle1' className='GameControllerGameStatus'>
{game.gameStatus}
</Typography>
{isTimerEnabled ? (
Copy link
Owner

Choose a reason for hiding this comment

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

It will be good to show the timer values to all users in the session too, but this requires changes in the data model. Probably could add as added feature in another PR.

onTimerEnd: () => void;
}

export const TimerProgress: React.FC<TimerProgressProps> = ({
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a unit test for this component please?

import TimerIcon from '@material-ui/icons/Timer';
import './Timer.css';

export const TimerController: React.FC<{
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add unit test for this component please?

@aiernt
Copy link

aiernt commented Oct 15, 2024

while this is beneficial, other planning poker apps support the timer to be used independently to keep discussion of the story on track. Not so much to have a countdown timer to reveal the cards. Would be beneficial in this scenario as well as add minutes not just seconds.

@SENTHILnew SENTHILnew closed this Oct 24, 2024
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.

3 participants