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

I 134 ui should go nuts when a user completes a task #231

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

Conversation

4xdk
Copy link
Collaborator

@4xdk 4xdk commented Jul 28, 2018

Totally not sure if this is the right way (local component state) but seems to me like dispatching actions for this would overcomplicate things(?).

this.setState({
'triggerToast': false
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@4xdk Is this needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Assumed so... Turns out not :)

@@ -51,6 +77,7 @@ class TaskStatus extends Component {
const { status } = this.props;
return (
<div className={"task-status-ctn task-status-" + status + " hide-small"}>
<Confetti active={ this.state.triggerToast } config={ config }/>
Copy link
Contributor

Choose a reason for hiding this comment

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

@4xdk {NoSpaces} around the { braces }, please

@@ -18,8 +18,34 @@ const STATUS_IMAGES = {
'WorkingOn': true,
}

const config = {
Copy link
Contributor

Choose a reason for hiding this comment

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

@4xdk How about calling this confettiConfig instead?

@4xdk
Copy link
Collaborator Author

4xdk commented Jul 28, 2018

The only slight issue is that when sidebar is open, BOTH TaskStatus elements show confetti. This is actually not visible (unless you hack the dom/css with dev tools to move the sidebar), just FYI.

@elimisteve
Copy link
Contributor

@4xdk Are you saying that half the confetti is thrown behind the right panel, so to speak?

@4xdk
Copy link
Collaborator Author

4xdk commented Jul 30, 2018

@elimisteve Yeah. There's double the amount to begin with, so end visual effect is the same.

There could be some additional wizardry we could do to prevent showing on both (like checking if sidebar is open maybe ?) Just not sure if it's worth it, since we can't really see the problem.

@elimisteve
Copy link
Contributor

elimisteve commented Jul 30, 2018 via email

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.

None yet

2 participants