-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added feedback popup for DAO test users #2521
Conversation
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 DAOCan 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.
Questions, or other issues? Discuss with Bisq users and contributors on the forum:
|
String testingPopupKey = "daoTestingFeedbackPopup"; | ||
if (DontShowAgainLookup.showAgain(testingPopupKey)) { | ||
UserThread.runAfter(() -> { | ||
if (sortedList.size() > 0 && sortedList.stream().map(proposalsListItem -> proposalsListItem.getProposal().getTxId()) |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 > |
There was a problem hiding this comment.
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 > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove the >
@ManfredKarrer I fixed according to your comments, hopefully, should be good this time :) |
There was a problem hiding this 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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
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.