Skip to content

Commit aceb075

Browse files
Merge branch 'master' into SAN-6186
* master: (33 commits) 5.20.1 SAN-6094 Code review comment 5.20.0 use shortnames add ; Fixed left-nav issues with compose parents already existing and clobbering each other. SAN-6097 Code review change 5.19.18 SAN-6097 Code review change Typo fix 5.19.17 Updated navigation logic for branch syncing. add events for all settings tabs add events for all settings buttons fix button width in safari fix PR bot button alignment add event for private registry "back" button add events for accounts popover buttons add events for settings modal tabs update adding private registry event ...
2 parents 42c1bc8 + 93a6cc5 commit aceb075

24 files changed

Lines changed: 227 additions & 42 deletions

client/assets/styles/scss/modals/modals-empty.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464

6565
// submit buttons (like for api token)
6666
.green {
67-
display: table;
6867
margin-left: auto;
6968
margin-right: auto;
7069
}

client/directives/accountsSelect/popoverAccountMenu/viewPopoverAccountMenu.jade

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
)
2424
li.list-item.popover-list-item.small.disabled {{data.currentOrg.github.oauthName()}} Settings
2525
li.list-item.popover-list-item(
26-
ng-if = "data.currentOrg.isBillingVisible()"
26+
data-event-name = "Clicked to Open Billing Settings"
2727
ng-click = "actions.openSettingsModal('billing')"
28+
ng-if = "data.currentOrg.isBillingVisible()"
2829
)
2930
svg.iconnables
3031
use(
@@ -37,6 +38,7 @@
3738
)
3839
| {{data.currentOrg.poppa.trialDaysRemaining() + ' days left'}}
3940
li.list-item.popover-list-item(
41+
data-event-name = "Clicked to Open PR Bot Settings"
4042
ng-click = "actions.openSettingsModal('githubIntegration')"
4143
)
4244
svg.iconnables
@@ -45,6 +47,7 @@
4547
)
4648
| PR Bot
4749
li.list-item.popover-list-item(
50+
data-event-name = "Clicked to Open Private Registry Settings"
4851
ng-click = "actions.openSettingsModal('privateRegistry')"
4952
ng-if = "$root.featureFlags.privateRegistry"
5053
)
@@ -54,6 +57,7 @@
5457
)
5558
| Private Registry
5659
li.list-item.popover-list-item(
60+
data-event-name = "Clicked to Open Slack Integration Settings"
5761
ng-click = "actions.openSettingsModal('slackIntegration')"
5862
)
5963
img.iconnables(
@@ -63,6 +67,7 @@
6367
)
6468
| Slack Integration
6569
li.list-item.popover-list-item(
70+
data-event-name = "Clicked to Open SSH Keys Settings"
6671
ng-click = "actions.openSettingsModal('SSHKeys')"
6772
ng-if = "$root.featureFlags.composeSSHKeys"
6873
)
@@ -72,6 +77,7 @@
7277
)
7378
| SSH Keys
7479
li.list-item.popover-list-item(
80+
data-event-name = "Clicked to Open Teammates Settings"
7581
ng-click = "actions.openSettingsModal('teamManagement')"
7682
)
7783
svg.iconnables

client/directives/components/lists/branchTestList/branchTestListController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function BranchTestListController(
2424

2525
fetchInstanceTestHistory(BTLC.instance.attrs.id)
2626
.then(function(tests) {
27-
return calculateHistoricalTestResult(tests);
27+
return calculateHistoricalTestResult.addResults(tests);
2828
})
2929
.then(function(tests) {
3030
var testHash = {};

client/directives/components/lists/branchTestSelector/branchTestSelectorController.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ function BranchTestSelectorController(
1010
keypather,
1111
loading,
1212
fetchCommitData,
13-
updateInstanceWithNewAcvData
13+
updateInstanceWithNewAcvData,
14+
calculateHistoricalTestResult
1415
) {
1516
var BTSC = this;
1617
BTSC.appCodeVersion = BTSC.instance.contextVersion.getMainAppCodeVersion();
@@ -37,7 +38,11 @@ function BranchTestSelectorController(
3738

3839
BTSC.selectCommit = function (commit) {
3940
BTSC.commit = commit;
40-
BTSC.updateInstance();
41+
42+
if (!calculateHistoricalTestResult.isValidState(BTSC.commit.test)) {
43+
BTSC.updateInstance();
44+
}
45+
4146
$scope.$emit('test-commit::selected', commit);
4247
$rootScope.$broadcast('close-popovers');
4348
};
@@ -58,6 +63,7 @@ function BranchTestSelectorController(
5863
};
5964

6065
BTSC.hasTest = function(commit) {
61-
return commit.test === 'passed' || commit.test === 'failed';
66+
return calculateHistoricalTestResult.isPassed(commit.test) ||
67+
calculateHistoricalTestResult.isFailed(commit.test);
6268
};
6369
}

client/directives/components/mirrorDockerfile/addDockerfileDirective.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ require('app')
44
.directive('addDockerfile', addDockerfile);
55

66
function addDockerfile(
7-
$q,
8-
$timeout,
97
fetchRepoDockerfile,
108
doesDockerfileExist
119
) {
@@ -20,6 +18,8 @@ function addDockerfile(
2018
fileType: '@'
2119
},
2220
link: function ($scope, elem, attrs, MDC) {
21+
$scope.MDC = MDC;
22+
2323
var COMPOSE_DEFAULT = 'docker-compose.yml';
2424
var COMPOSE_TEST_DEFAULT = 'docker-compose.test.yml';
2525
var DOCKER_DEFAULT = 'Dockerfile';

client/directives/components/mirrorDockerfile/addDockerfileView.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ form(
1515
dockerfile-exists-validator = "{{fileType}}"
1616
full-repo = "fullRepo"
1717
id = "add-dockerfile-input"
18-
ng-disabled = "state.dockerFileAdded || $root.featureFlags.composeEditing"
18+
ng-disabled = "state.dockerFileAdded || $root.featureFlags.composeEditing || MDC.isSaving()"
1919
ng-model = "newDockerfile"
2020
ng-model-options = "{ debounce: { 'default': 100, 'blur': 0 } }"
2121
placeholder = "{{ fileName }}"

client/directives/components/mirrorDockerfile/composeFilePath.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ function composeFilePath(
2121
fullRepo: '='
2222
},
2323
link: function ($scope, elem, attr, MDC) {
24+
$scope.MDC = MDC;
25+
2426
MDC.state.configurationMethod = 'dockerComposeFile';
2527
$scope.dockerComposeState = MDC.state;
2628
$scope.dockerfile = {};

client/directives/components/mirrorDockerfile/mirrorDockerfileController.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ require('app')
66
function MirrorDockerfileController(
77
$q,
88
$rootScope,
9-
$timeout,
109
errs,
1110
doesDockerfileExist,
1211
fetchRepoDockerfile,
@@ -74,5 +73,9 @@ function MirrorDockerfileController(
7473
}
7574
});
7675
};
76+
77+
MDC.isSaving = function () {
78+
return $rootScope.isLoading.newContainerSingleRepo || $rootScope.isLoading.creatingDockerCompose;
79+
};
7780
}
7881

client/directives/components/newContainer/forms/compose/composeFilePathView.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
ng-disabled = "$root.featureFlags.composeEditing"
77
ng-model = "pathEnabled"
88
type = "checkbox"
9+
ng-disabled = "MDC.isSaving()"
910
)
1011
.toggle-group.toggle-sm
1112

@@ -41,7 +42,7 @@
4142
- Copy: "Select a Container"
4243
fancy-select.btn-md.white(
4344
disabled
44-
ng-disabled = "loadingFile || !dockerComposeTestServices.length"
45+
ng-disabled = "loadingFile || !dockerComposeTestServices.length || MDC.isSaving()"
4546
ng-required = "true"
4647
spinner-flag = "loadingFile"
4748
value = "dockerComposeState.testReporter"

client/directives/components/newContainer/forms/configureNewServiceView.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ footer.modal-footer.clearfix
101101
)
102102
span(
103103
ng-if = "$root.featureFlags.composeNewService && NCC.state.repo"
104-
) {{$root.featureFlags.composeEditing ? 'Save Changes' : 'NCC.getNextStepText()'}}
104+
) {{$root.featureFlags.composeEditing ? 'Save Changes' : NCC.getNextStepText()}}
105105
span(
106106
ng-if = "NCC.state.templateSource"
107107
) Add Service

0 commit comments

Comments
 (0)