From ed545bad72cb4368cf09cf62844b77440c1fdd8e Mon Sep 17 00:00:00 2001 From: Dallon Feldner Date: Tue, 11 Dec 2012 12:56:53 -0700 Subject: [PATCH] Made some usability changes to the initial deployment workflow --- lib/client/deploy.js | 1 + lib/resources/dashboard/deployments.html | 74 +++++++++++------ lib/resources/dashboard/js/deployments.js | 80 ++++++++++--------- .../dashboard/stylesheets/deployments.less | 23 +++++- .../dashboard/stylesheets/layout.less | 7 +- lib/resources/dashboard/stylesheets/style.css | 72 ++++++++--------- .../dashboard/stylesheets/style.less | 8 +- 7 files changed, 158 insertions(+), 107 deletions(-) diff --git a/lib/client/deploy.js b/lib/client/deploy.js index 7117269..d3fcdd8 100644 --- a/lib/client/deploy.js +++ b/lib/client/deploy.js @@ -227,6 +227,7 @@ Deployment.prototype.getCurrentUser = function(fn) { jar: false }, function(err, res, user) { if (err) return fn(err); + if (res.statusCode === 404) return fn(new Error("Could not connect")); if (user) user = JSON.parse(user); if (!user) return fn(new Error("Not authenticated")); fn(null, user); diff --git a/lib/resources/dashboard/deployments.html b/lib/resources/dashboard/deployments.html index da93a3e..32b54c2 100644 --- a/lib/resources/dashboard/deployments.html +++ b/lib/resources/dashboard/deployments.html @@ -1,9 +1,15 @@
-
-

Deployments

-
-

Could not connect to cloud.deployd.com

- Refresh +
@@ -16,36 +22,40 @@
- - -
- -
- -

Create your first Deployment to host your app on cloud.deployd.com:

-
-

+ +
+
-
- - .deploydapp.com +
- -
+
@@ -86,6 +96,20 @@
+
+ + .deploydapp.com + + +
+ + +
+