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

Confetti after order confirmed #823

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Confetti after order confirmed #823

merged 1 commit into from
Jul 3, 2023

Conversation

Restioson
Copy link
Contributor

This is on top of #820 and should wait for that to be merged first. This is intended to add a little hype to the new position and encourage the user to celebrate by sharing on Twitter :)

Right now it is just a little puff of confetti from the tick.

This needs flutter >3.7.2 to work, otherwise it will crash.

Fixes #822.

Base automatically changed from ux-dont-close-app-during-processing to main June 23, 2023 07:57
@klochowicz
Copy link
Contributor

It would be good to document the minimum supported flutter version in readme, and someday perhaps use something like: https://fvm.app/ to manage flutter versions

@klochowicz
Copy link
Contributor

@Restioson any chance for a short recording how it looks like? :)

@holzeis holzeis assigned holzeis and Restioson and unassigned holzeis Jun 26, 2023
@Restioson
Copy link
Contributor Author

Restioson commented Jun 28, 2023 via email

@da-kami
Copy link
Contributor

da-kami commented Jun 29, 2023

Just gave this a try locally - looks great!

Here's a gif that shows it for closing the order (any order filled will trigger it):

2023-06-29 11 04 33

Should I fix the lints and we get it merged?

Copy link
Contributor

@da-kami da-kami left a comment

Choose a reason for hiding this comment

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

Just one question comment - not sure important; from my side this PR is ready to merge if we want to.

Note: I had some local changes that are not part of the PR:

        modified:   mobile/macos/Podfile.lock
        modified:   mobile/pubspec.lock

Note sure this is relevant though; might just be due to me having some outdated versions.

}

class _OrderSubmissionStatusDialog extends State<OrderSubmissionStatusDialog> {
late final ConfettiController _confettiController;
Copy link
Contributor

@da-kami da-kami Jun 29, 2023

Choose a reason for hiding this comment

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

❓Why are we defining the ConfettiController in the OrderSubmissionStatusDialog and the TradeScreen?

My understanding is that the dialog cannot be closed anymore before we reach the orderFilled state; so I think it should be enough to define the confetti on the OrderSubmissionStatusDialog.

I don't think it's wrong to define it on the underlying Tradescreen as well, but I'm not sure it's necessary.

@Restioson
Copy link
Contributor Author

Restioson commented Jun 29, 2023 via email

Copy link
Contributor

@klochowicz klochowicz left a comment

Choose a reason for hiding this comment

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

looks awesome, let's get this in!

@Restioson
Copy link
Contributor Author

Restioson commented Jun 30, 2023 via email

@klochowicz
Copy link
Contributor

I'd be grateful if someone can remove the unused controller first!

awesome, I'll take care of this :)

@klochowicz klochowicz assigned klochowicz and unassigned Restioson Jul 3, 2023
@klochowicz
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 3, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 24cb613 into main Jul 3, 2023
7 checks passed
@bors bors bot deleted the confetti branch July 3, 2023 08:25
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.

Add confetti after order is filled successfully
4 participants