crowbar/barclamp-crowbar — pull request #711 by cloudedge (2013-10-03 05:29:45+00:00)
Title: UI Layercake initial pass, various bugs, role.server in UI [1/2]

The System Overview "layercake" the the core item in this pull. It's objective is to
provide a view of the deployment based on the function of the role (instead of name).
It's more of a show/demo screen than utility but hopefully it will make it easier
to understand what's going on at the system level.

This is a WIP - there is more to do. In this pass ALL of the node-roles are shown
without any deployment or snapshot filtering. Clearly that's not going to work long
term, but it's enough for now.

We need to add to the config/layercake.json to add more role->layer mappings.

I also fixed a handful of bugs in this pull including updating the unAvilable icons.

node.server UI is also working

I needed to add a BDD test to cover the Allocated IP API (because I broke that earlier).

BDD/bdd.hrl | 2 +
BDD/bdd_restrat.erl | 18 +++
BDD/bdd_webrat.erl | 4 +
BDD/crowbar.erl | 2 +
BDD/dev.erl | 6 +-
BDD/features/node.feature | 58 ++++++++
BDD/features/scaffolds.feature | 9 ++
BDD/node.erl | 8 ++
BDD/role.erl | 3 +-
.../app/assets/stylesheets/_common.sass | 4 +
.../app/assets/stylesheets/_layercake.sass | 142 ++++++++++++++++++++
.../app/assets/stylesheets/application.sass | 1 +
.../app/controllers/dashboard_controller.rb | 27 ++--
.../app/controllers/scaffolds/docs_controller.rb | 2 +-
.../app/controllers/scaffolds/runs_controller.rb | 19 +++
crowbar_framework/app/models/run.rb | 22 +--
.../app/views/dashboard/_layercake.html.haml | 9 ++
.../app/views/dashboard/layercake.html.haml | 34 +++++
.../app/views/deployments/_buttons.html.haml | 1 -
crowbar_framework/app/views/nodes/_show.html.haml | 12 +-
crowbar_framework/app/views/nodes/index.html.haml | 13 +-
crowbar_framework/app/views/nodes/show.html.haml | 9 +-
crowbar_framework/app/views/roles/_index.html.haml | 1 +
crowbar_framework/app/views/roles/show.html.haml | 35 ++---
crowbar_framework/config/catalog.yml.example | 100 --------------
crowbar_framework/config/layercake.json | 30 +++++
crowbar_framework/config/locales/crowbar/en.yml | 22 +++
crowbar_framework/config/routes.rb | 7 +-
crowbar_framework/db/node_description.yml.example | 39 ------
crowbar_framework/public/images/icons/led/idle.png | Bin 1128 -> 3296 bytes
crowbar_framework/public/images/icons/led/none.png | Bin 222 -> 3214 bytes
.../public/images/icons/led/reserved.png | Bin 0 -> 3654 bytes
.../public/images/icons/led/restricted.png | Bin 1678 -> 0 bytes
doc/devguide/api/node.md | 140 ++-----------------
34 files changed, 459 insertions(+), 320 deletions(-)

Crowbar-Pull-ID: 77f1596106a7b7032466eca59c333bfb4a8e9051

Crowbar-Release: development