diff --git a/src/appcenter/commands/start.ts b/src/appcenter/commands/start.ts index fd71546..df20d9b 100644 --- a/src/appcenter/commands/start.ts +++ b/src/appcenter/commands/start.ts @@ -212,8 +212,8 @@ export default class Start extends Command { return this.client.account.organizations.list().then((orgList: ListOKResponseItem[]) => { const organizations: ListOKResponseItem[] = orgList; return organizations.sort((a, b): any => { - if (a.name && b.name) { - return a.name < b.name; // sort alphabetically + if (a.displayName && b.displayName) { + return a.displayName > b.displayName; // sort alphabetically } else { return false; } @@ -423,6 +423,13 @@ export default class Start extends Command { projectList = await vstsProvider.GetAllProjects(); }); if (projectList) { + projectList = projectList.sort((a, b): any => { + if (a.name && b.name) { + return a.name > b.name; // sort alphabetically + } else { + return false; + } + }); const options: QuickPickAppItem[] = projectList.map((project: VSTSProject) => { return { label: `${project.name}`, diff --git a/src/commandHandlers/baseCommandHandler.ts b/src/commandHandlers/baseCommandHandler.ts index a73bf24..9b03535 100644 --- a/src/commandHandlers/baseCommandHandler.ts +++ b/src/commandHandlers/baseCommandHandler.ts @@ -5,7 +5,7 @@ import { CommandParams } from "../helpers/interfaces"; import { ConsoleLogger } from "../log/consoleLogger"; import { ILogger } from "../log/logHelper"; -export default class BaseCommandHandler { +export default abstract class BaseCommandHandler { constructor( private manager: ExtensionManager, diff --git a/src/constants.ts b/src/constants.ts index f882a12..75e25e9 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -8,7 +8,7 @@ export class Constants { public static DefaultDistributionGroupTestersName: string = "Beta Testers"; public static DefaultBranchName: string = "master"; public static DefaultLoginEndPoint: string = "https://appcenter.ms/cli-login"; - public static AppCenterCodePushStatusBarColor: string = "#F3F3B2"; + public static AppCenterCodePushStatusBarColor: string = "#ffffff"; public static CodePushStagingDeplymentName: string = "Staging"; public static iOSAppSuffix: string = "-ios"; public static AndroidAppSuffix: string = "-android"; @@ -34,7 +34,7 @@ export class Constants { "branch": { "name": "master" }, - "id": 2, + "id": 1, "trigger": "continuous", "environmentVariables": [], "signed": false,