fix(feedback): improve design on iOS

This commit is contained in:
Jason Dreyzehner 2016-11-15 16:35:30 -05:00
commit dfcd60e1ef
9 changed files with 35 additions and 21 deletions

View file

@ -31,6 +31,10 @@ angular.module('copayApp.controllers').controller('completeController', function
}; };
$scope.$on("$ionicView.beforeEnter", function(event, data) { $scope.$on("$ionicView.beforeEnter", function(event, data) {
if(window.StatusBar){
StatusBar.show();
}
storageService.getFeedbackInfo(function(error, info) { storageService.getFeedbackInfo(function(error, info) {
var feedbackInfo = JSON.parse(info); var feedbackInfo = JSON.parse(info);
feedbackInfo.sent = true; feedbackInfo.sent = true;
@ -78,4 +82,10 @@ angular.module('copayApp.controllers').controller('completeController', function
} }
}, 100); }, 100);
}); });
$scope.$on("$ionicView.afterLeave", function(event, data) {
if(window.StatusBar){
StatusBar.show();
}
});
}); });

View file

@ -57,11 +57,11 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
break; break;
case 5: case 5:
$scope.reaction = gettextCatalog.getString("Thank you!"); $scope.reaction = gettextCatalog.getString("Thank you!");
$scope.comment = gettextCatalog.getString("We're always looking for ways to improve BitPay wallet.") + ' ' + gettextCatalog.getString("Is there anything we could do better?"); $scope.comment = gettextCatalog.getString("We're always looking for ways to improve BitPay.") + ' ' + gettextCatalog.getString("Is there anything we could do better?");
break; break;
default: default:
$scope.reaction = gettextCatalog.getString("Feedback!"); $scope.reaction = gettextCatalog.getString("Feedback!");
$scope.comment = gettextCatalog.getString("We're always looking for ways to improve BitPay wallet. How could we improve your experience?"); $scope.comment = gettextCatalog.getString("We're always looking for ways to improve BitPay. How could we improve your experience?");
break; break;
} }
}); });

View file

@ -20,6 +20,7 @@
.subtitle { .subtitle {
padding: 10px 30px 20px 40px; padding: 10px 30px 20px 40px;
text-align: center; text-align: center;
color: $mid-gray;
} }
.icon-svg > img { .icon-svg > img {
height: 16rem; height: 16rem;

View file

@ -1,7 +1,7 @@
#rate-app { #rate-app {
background-color: #ffffff; background-color: #ffffff;
.skip { .skip {
margin: 10px; margin-top: 15px;
color: #667; color: #667;
} }
.icon-svg > img { .icon-svg > img {
@ -18,6 +18,7 @@
} }
.subtitle { .subtitle {
padding: 10px 30px 20px 40px; padding: 10px 30px 20px 40px;
color: #667;
} }
.buttons { .buttons {
bottom: 0; bottom: 0;

View file

@ -1,13 +1,13 @@
#send-feedback { #send-feedback {
background-color: #ffffff; background-color: #ffffff;
.row { .row {
padding: 20px;
border: none; border: none;
} }
.skip { .skip {
margin: 8px 20px 10px; color: rgba(255, 255, 255, 0.3);
color: #667; }
text-decoration: none; .feedback-heading {
padding-top: 20px
} }
.title { .title {
padding-left: 10px; padding-left: 10px;
@ -20,17 +20,17 @@
padding-right: 15px; padding-right: 15px;
} }
.comment { .comment {
padding: 20px; padding: 0 20px 20px;
font-size: 1rem; font-size: 1rem;
line-height: 1.5em; line-height: 1.5em;
font-weight: 300; font-weight: 300;
color: $dark-gray; color: $dark-gray;
} }
textarea { .user-feedback {
padding: 20px;
border-top: 1px solid $subtle-gray; border-top: 1px solid $subtle-gray;
padding: 20px; padding: 20px;
width: 100%; width: 100%;
height: 6rem;
} }
.send-feedback-star { .send-feedback-star {
height: 1rem; height: 1rem;

View file

@ -5,7 +5,7 @@
</div> </div>
<div ng-show="skipped && isCordova"> <div ng-show="skipped && isCordova">
<div ng-show="score > 3"> <div ng-show="score > 3">
<div class="title" translate>Invite friends to BitPay Wallet!</div> <div class="title" translate>Invite friends to BitPay!</div>
<div class="text-center"> <div class="text-center">
<i class="icon addressbook-icon-svg"> <i class="icon addressbook-icon-svg">
<img src="img/address-book-add.svg"/> <img src="img/address-book-add.svg"/>

View file

@ -10,10 +10,10 @@
</div> </div>
</div> </div>
<div class="subtitle text-center"> <div class="subtitle text-center">
<span translate>5-star ratings help us get BitPay Wallet into more hands, and more users means more resoucers can be committed to the app!</span> <span translate>5-star ratings help us get BitPay into more hands, and more users means more resoucers can be committed to the app!</span>
</div> </div>
<div class="subtitle text-center"> <div class="subtitle text-center">
<span class="text-bold" translate>Would you be willing to rate BitPay Wallet in the app store?</span> <span class="text-bold" translate>Would you be willing to rate BitPay in the app store?</span>
</div> </div>
<div class="buttons"> <div class="buttons">
<button type="submit" class="button button-standard button-primary" ng-click="goAppStore()"> <button type="submit" class="button button-standard button-primary" ng-click="goAppStore()">

View file

@ -1,6 +1,6 @@
<div class="card" id="rate-card" ng-controller="rateCardController"> <div class="card" id="rate-card" ng-controller="rateCardController">
<div class="item item-icon-right item-heading"> <div class="item item-icon-right item-heading">
<span translate>How do you like BitPay Wallet?</span> <span translate>How do you like BitPay?</span>
<a ng-click="hideCard()" ><i class="icon ion-ios-close-empty close-home-tip"></i></a> <a ng-click="hideCard()" ><i class="icon ion-ios-close-empty close-home-tip"></i></a>
</div> </div>
<div class="row item item-sub" ng-class="{'row-margin': isModal}"> <div class="row item item-sub" ng-class="{'row-margin': isModal}">

View file

@ -1,11 +1,15 @@
<ion-view id="send-feedback"> <ion-view id="send-feedback">
<ion-nav-bar class="bar-royal" ng-show="!score"> <ion-nav-bar class="bar-royal">
<ion-nav-back-button> <ion-nav-back-button ng-if="!score">
</ion-nav-back-button> </ion-nav-back-button>
<ion-nav-buttons side="right">
<button class="button button-clear skip" ng-click="sendFeedback(null, true)" translate>
Skip
</button>
</ion-nav-buttons>
</ion-nav-bar> </ion-nav-bar>
<a class="right skip" ng-click="sendFeedback(null,true)" href translate>Skip</a>
<ion-content class="has-header" scroll="false"> <ion-content class="has-header" scroll="false">
<div class="row item item-sub"> <div class="row item item-sub feedback-heading">
<div class="col col-50"> <div class="col col-50">
<div class="title"> <div class="title">
<span>{{reaction}}</span> <span>{{reaction}}</span>
@ -27,9 +31,7 @@
<div class="comment"> <div class="comment">
<span translate>{{comment}}</span> <span translate>{{comment}}</span>
</div> </div>
<div> <textarea class="user-feedback" ng-model="feedback.value" placeholder="Your ideas, feedback, or comments"></textarea>
<textarea ng-model="feedback.value" placeholder="Your ideas, feedback, or comments" row="40"></textarea>
</div>
<button ng-disabled="!feedback.value" type="submit" class="button button-full button-primary" ng-click="sendFeedback(feedback.value, false)" translate> <button ng-disabled="!feedback.value" type="submit" class="button button-full button-primary" ng-click="sendFeedback(feedback.value, false)" translate>
Send Send
</button> </button>