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

Added feedback popup for DAO test users #2521

Merged
merged 3 commits into from
Mar 11, 2019

Conversation

ben-kaufman
Copy link
Contributor

@ben-kaufman ben-kaufman commented Mar 10, 2019

Fix #2485

I was still unable to properly test the activation of the popup as I'm still setting up my local environment.
This should launch the popup if the user voted or submitted a proposal in the last cycle.

Screen Shot 2019-03-10 at 21 47 31

@m52go
Copy link
Contributor

m52go commented Mar 10, 2019

This is great...thanks Ben, glad to have this in the next release.

I find the proposed text a little wordy, and also think we should mention the BSQ bounty for doing the feedback survey. The text should be as concise as possible to maximize survey clicks.

Here is what I suggest.


Thank you for testing the Bisq DAO

Can you spare 3 minutes to do a quick survey? We're offering 20 BSQ for completed surveys.

Your feedback is crucial to ensuring a smooth launch on mainnet.

Do survey >

Questions, or other issues? Discuss with Bisq users and contributors on the forum:

Visit forum >

@ManfredKarrer ManfredKarrer requested review from m52go and removed request for ripcurlx March 11, 2019 00:57
String testingPopupKey = "daoTestingFeedbackPopup";
if (DontShowAgainLookup.showAgain(testingPopupKey)) {
UserThread.runAfter(() -> {
if (sortedList.size() > 0 && sortedList.stream().map(proposalsListItem -> proposalsListItem.getProposal().getTxId())
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to use myProposalListService.getList()' - this gives you your own proposals and test with periodService.isTxInCorrectCycle(tx.getBlockHeight(), daoStateService.getChainHeight())` if it the proposal is in the current cycle.

@@ -203,6 +209,8 @@ protected void activate() {

sortedList.comparatorProperty().bind(tableView.comparatorProperty());

maybeShowDAOTestingFeedbackWindow();
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems that would show the popup after the user has made a proposal. We want to show the popup only after the voting phase in case the user has created a proposal or if he has voted. Sorry that I have not been more clear in the GH issue....

if (DontShowAgainLookup.showAgain(testingPopupKey)) {
UserThread.runAfter(() -> {
if (sortedCycleListItemList.size() > 0 && (sortedCycleListItemList.get(0).getResultsOfCycle().getEvaluatedProposals().stream().map(EvaluatedProposal::getProposalTxId)
.flatMap(key -> bsqWalletService.getWalletTransactions().stream().map(Transaction::getHashAsString)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer here also to use the DAO domain instead the BTC domain to avoid too much dependency to the wallet.
MyBlindVoteListService holds your own blind votes and with a check for the cycle you see if it is a current vote.

daoTestingFeedbackWindow.title=Thank you for testing the Bisq DAO
daoTestingFeedbackWindow.msg.part1=Can you spare 3 minutes to do a quick survey? We're offering 20 BSQ for completed surveys.\
\nYour feedback is crucial to ensuring a smooth launch on mainnet.
daoTestingFeedbackWindow.surveyLinkLabel=Do survey >
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe remove the >

\nYour feedback is crucial to ensuring a smooth launch on mainnet.
daoTestingFeedbackWindow.surveyLinkLabel=Do survey >
daoTestingFeedbackWindow.msg.part2=Questions, or other issues? Discuss with Bisq users and contributors on the forum:
daoTestingFeedbackWindow.forumLinkLabel=Visit forum >
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe remove the >

@ben-kaufman
Copy link
Contributor Author

@ManfredKarrer I fixed according to your comments, hopefully, should be good this time :)

Copy link
Contributor

@m52go m52go left a comment

Choose a reason for hiding this comment

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

For the record, this approval is just for the text (haven't tested the actual pop-up).

Copy link
Contributor

@ManfredKarrer ManfredKarrer left a comment

Choose a reason for hiding this comment

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

utACK

@ManfredKarrer ManfredKarrer merged commit cdce61c into bisq-network:master Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants