Skip to content

Uiwork: Renamed Files and Deleted Extraneous Icon Pictures #471

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

Closed
wants to merge 18 commits into from

Conversation

trevor-wu
Copy link

renamed main-goals.html to main-recommendations.html
renamed goals.js to recommendations.js
deleted pictures that definitely won't be used

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@shankari shankari left a comment

Choose a reason for hiding this comment

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

Please revert the rename of connectionConfig.zephr.json. This is not just a sample, it is an actual connection config for the zephyr project.

.controller('RecommendationsCtrl', function(CommHelper, $state, $ionicLoading, $scope, $rootScope, $ionicModal, nzTour,
$window, $http, $ionicPopup, $timeout, storage, ReferralHandler, ReferHelper, Logger, $cordovaInAppBrowser, SurveyLaunch) {
$scope.cSF = 1000;
var map = document.getElementById('mapModal');
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not angular style.
Please look at how to do this properly in angular.

@@ -230,8 +230,8 @@ angular.module('emission.splash.startprefs', ['emission.plugin.logger',
return startprefs.getPendingOnboardingState().then(function(result){
if (result == null) {
var temp = ReferralHandler.getReferralNavigation();
if (temp == 'goals') {
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 suggest reverting the changes to this file.
I have a large pending restructure of the file (#470) and you are going to get a merge conflict.

Copy link
Contributor

Choose a reason for hiding this comment

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

And this code is to deal with referrals, which is not really an issue for you right now.

"connectUrl": "http://52.91.65.149:8080",
"android": {
"auth": {
"method": "prompted-auth",
Copy link
Contributor

Choose a reason for hiding this comment

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

finally!

Copy link
Contributor

@shankari shankari left a comment

Choose a reason for hiding this comment

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

I really have four main changes:

  • revert the changes to startprefs
  • revert the zephyr rename
  • remove the icons which are still not removed (see www/img/primarylogo.png)
  • move the css stuff to a css file

Ideally, you would also rewrite the recommedation to be more angular-like, but I am not going to insist on that at this time.

@@ -87,7 +87,7 @@ angular.module('emission.splash.startprefs', ['emission.plugin.logger',
startprefs.isConsented = function() {
logger.log("curr_consented = "+$rootScope.curr_consented+
"isIntroDone = " + startprefs.isIntroDone());
if (startprefs.isIntroDone() &&
Copy link
Contributor

Choose a reason for hiding this comment

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

This file also has a bunch of extraneous changes that are not relevant to any functionality like this one.

@@ -18,7 +18,7 @@
<div ng-class="chartButtonClass()" ng-click="showChart()">Chart</div>
</div>
</div>
<div ng-if="uictrl.showChart" style="width:50%; float:right; padding-top: 10px;">
<div ng-if="uictrl.shxowChart" style="width:50%; float:right; padding-top: 10px;">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intentional?

</button>
</ion-nav-buttons>
<style>
.recommendbox {
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to move into css files instead of being inline. Again, please check the recommendations for angular1

<p>The drinks are ok but the service is kind of slow.
<p><img src="img/small/small_4.png" width="50" /> - Sam, Boston
</div>
</right>
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is the corresponding <right>?

@shankari
Copy link
Contributor

Also, why do I see three pull requests here? Aren't they for the same change?

Copy link
Contributor

@shankari shankari left a comment

Choose a reason for hiding this comment

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

You still have the following pending changes:

  • really revert all changes to startprefs. It should not show up in the list of modified files.
  • revert the change to the zephyr connection config
  • move the CSS out
  • remove the icons which are still not removed (see www/img/regular_0.png, www/img/regular_1.png, www/img/regular_2.png, ....) or justify why they need to remain

@@ -230,8 +230,8 @@ angular.module('emission.splash.startprefs', ['emission.plugin.logger',
return startprefs.getPendingOnboardingState().then(function(result){
if (result == null) {
var temp = ReferralHandler.getReferralNavigation();
if (temp == 'recommendations') {
return 'root.main.recommendations';
if (temp == 'goals') {
Copy link
Contributor

Choose a reason for hiding this comment

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

@trevor-wu This revert is not complete. The file still has the other extraneous changes, and they will cause merge conflicts. Please use git to revert the changes instead of reverting manually. This pull request is now really messy - you may also want to create a new branch, include only the relevant changes and create a new pull request from it.

@shankari
Copy link
Contributor

shankari commented Oct 1, 2018

@trevor-wu can you please add a comment when you are done with all changes and I should re-review? Thanks!

@shankari
Copy link
Contributor

shankari commented Oct 1, 2018

@trevor-wu Also, can you please close either this PR or #468 ?
I am not sure which one I should put my comments in.
Also, I would strongly encourage you to create a new branch, apply a patch of this change to the new branch and submit a new, clean PR rather than this messy PR with a bunch of back and forth changes.

@trevor-wu trevor-wu closed this Oct 2, 2018
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.

3 participants