From 0d53935b814a342e8b0fef87436e03f84a345d5c Mon Sep 17 00:00:00 2001 From: Austin Wang Date: Fri, 14 Aug 2020 10:33:59 -0700 Subject: [PATCH] Add papercuts link to star rating popup Summary: Added papercuts link to the thanks message after user submits a rating within the star rating popup. Also increased the timeout after submitting ratings from 1500 to 5000, due to the longer thanks message. Also added a dismiss option. Reviewed By: jknoxville Differential Revision: D23115320 fbshipit-source-id: 78de3481e5a085949ddbfbdd51ff499b8b567959 --- desktop/app/src/chrome/RatingButton.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/desktop/app/src/chrome/RatingButton.tsx b/desktop/app/src/chrome/RatingButton.tsx index 6ec6fda7f..fca374ee4 100644 --- a/desktop/app/src/chrome/RatingButton.tsx +++ b/desktop/app/src/chrome/RatingButton.tsx @@ -16,6 +16,7 @@ import { Checkbox, styled, Input, + Link, } from 'flipper'; import Popover from '../ui/components/Popover2'; import GK from '../fb-stubs/GK'; @@ -143,7 +144,7 @@ class FeedbackComponent extends Component< this.setState({rating: newRating, nextAction: nextAction}); this.props.submitRating(newRating); if (nextAction === 'finished') { - setTimeout(this.props.close, 1500); + setTimeout(this.props.close, 5000); } } onCommentSubmitted(comment: string) { @@ -261,7 +262,15 @@ class FeedbackComponent extends Component< ]; break; case 'finished': - body = [Thanks!]; + body = [ + + Thanks for the feedback! You can now help + + prioritize bugs and features for Flipper in Papercuts + + , + dismissRow(this.props.dismiss), + ]; break; default: { console.error('Illegal state: nextAction: ' + this.state.nextAction);