Skip to content

40bits/teamwall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teamwall

The developer's dashboard.

This is the early stages Teamwall project.

The idea grew over some years to display live stats from our code, live servers and so on. So here it is ;-)

##Basic idea##

Teamwall is a simple dashboard for a team. Run this on a monitor in the team room and make it visible to everybody. Show the developer the information he needs to know how the code is doing.

##What can it be ?##

Code Coverage, Live stats from servers, Incoming bugs etc.

It looks like this:

Demo Screen

##Changes##

Checkout the Changes file.

##GUI##

Clicking on the Gear in the lower left corner will bring up a management gui which allows some basic operations to manage the dashboard (work in progress) and you can move the instruments around. This all works also in tablets.

Feedback

Drop me a line on twitter.

Get started

Put everything in a directory served by a web server. You can also run npm update and node server.js which will start a server on port 8888. Find below a list of instruments which can be used to visualize critical information.

What you need to do is to create a teamwall.json file and put it into the root directory of teamwall. This file contains the description of the instruments to be shown (and how they are updated). Every 15 seconds the values are updated. It is totally up to you where and when to get the data from, Teamwall simply reads the urls and displays it's json data.

If you want to serve multiple dashboards from one host you can add the parameter dashboard to the url, e.g.

http://localhost:8888/?dashboard=mydashboard.json

This will show the definitions from the mydashboard.json file. If no file is specified the standard teamwall.json file will be loaded.

You need a browser with a working HTML 5 canvas to use this.

For a very quick example checkout the demo directory.

Example

Create a teamwall.json file looking like this:

{
    "layouts": [
        {
            "id": "codecoverage",
            "top": 0,
            "left": 0,
            "width": 300,
            "height": 300
        }
    ],
    "instruments": [
        {
            "id":"codecoverage",
            "instrument":"percent",
            "title":"Code Coverage",
            "url":"data/codecoverage.json",
            "threshold_value":80,
            "higher_is_better":true
        }
    ]
}

This will render a percentage instrument at 0,0 (top left corner) with a width and height of 300 pixel.

Now create a data/codecoverage.json file (data directory needs to be created) with the following content:

{"value":"81.8", "trend":"1"}

Hurray! You got your first Teamwall dashboard. Now go and change the value and switch back to the browser.

Instruments

Attributes of all Instruments

Instruments are defined the the instruments section of the configuration file.

Attribute Definition
instrument Name of the instrument to use, can be any of the instrument names below
id Id of the instrument
url Url to get updated data

All data from the data urls need to be in json format.

Percent Instrument

Instrument name : percent

Attribute Definition
title Title of the instrument
threshold_value If the value from the data url is below the threshold the display will be rendered as failure
higher_is_better If set to true, the higher the value the 'greener' the result is, otherwise the more it gets to zero the better it is

####100 is good####

Example:

{
	"instrument":"percent",
    "id":"codecoverage",
    "title":"Code Coverage",
    "url":"data/codecoverage.json",
    "threshold_value":80.
    "higher_is_better": true
}

####0 is good####

If your target is 0 percent you can set higher_is_better to false. In this case a value below the threshold will be displayed as warning. A value above the threshold will be displayed as failure.

Example:

{
    "instrument":"percent",
    "id":"xs",
    "title":"XS",
    "url":"data/xs.json",
    "threshold_value":5,
    "higher_is_better":false
}

0 percent is good - failure 0 percent is good - warning

Data Format

Attribute Definition
value The value to be displayed
trend The trend of the value
threshold_value The new threshold value (optional)

Where trend is defined as this:

Trend Value Definition
1 Better value than previous
0 Same value as previous
-1 Worse value than previous

The meaning of better and worse is depending on the attribute higher_is_better.

Example:

{"value":"82.2", "trend":"1", "threshold_value":"90"}

Examples

Green Red

Buildchain Instrument

Instrument name : buildchain

This instrument is used to monitor a build chain / development pipeline. The complete chain is displayed. Broken steps are displayed in red.

Attribute Definition
title Title of the instrument

Example:

{
    "instrument":"buildchain",
    "id":"buildchain",
    "title":"Webshop Buildchain",
    "url":"data/buildchain.json"
}

Data Format

The format consists of a list of build steps.

Attribute Definition
name Name of the build step
status FAILURE or SUCCESS or RUNNING

There can be as many build steps as needed.

Example:

[ 
	{ "name":"unit tests", "status":"SUCCESS" }, 
	{ "name":"deploy preview", "status":"SUCCESS" },
	{ "name":"selenium preview", "status":"FAILURE" },
	{ "name":"documentation", "status":"SUCCESS" }, 
	{ "name":"deploy integration", "status":"RUNNING" },
	{ "name":"smoke integration", "status":"SUCCESS" } 
]

Example

Red

Build Alert Instrument

Instrument name : buildalert

This instrument monitors broken builds. If everything is good the noAlertText will be displayed on a green background. If some builds are broken this instrument will turn red and displays them. With showCount you can add the count of the broken builds to the title. You can monitor multiple projects as well, see the Data Format section for more details. If needed, it can play sounds if any of the builds turn to failure. This sound will be played at a defined interval. If the build turns to green from red another sound can be played.

Attribute Definition
title Title of the instrument
showCount If true it prints the count of broken build before the title. If count is zero, a No is printed.
noAlertText Text to be displayed, if all builds are successful, overrides default text
sounds.failureSound Sound to be played when one of the status fields is FAILURE
sounds.failureInterval Interval in seconds at which the sound should be play if the build is still red
sounds.successSound Sound to be played if status changes to all success

Example:

{
    "instrument":"buildalert",
    "id":"buildalert",
    "noAlertText": "We are doing it live.",
    "sounds": {
        "failureSound": "/sounds/tos-redalert.mp3",
        "failureInterval": "1800",
        "successSound": "/sounds/smb3_power-up.wav"
    },
    "url":"data/buildalert.json"
}

Data Format

A list of build chains can be defined.

Attribute Definition
name Name of the build chain
chain Definition of the chain
Attribute Definition
name Name of the build step
status FAILURE or SUCCESS or RUNNING

There can be as many buid steps as needed.

Example:

[
{
  "name":"Build1",
  "chain":
          [
            { "name":"unit tests", "status":"SUCCESS" },
            { "name":"deploy preview", "status":"SUCCESS" },
            { "name":"selenium preview", "status":"FAILURE" },
            { "name":"documentation", "status":"SUCCESS" },
            { "name":"deploy integration", "status":"RUNNING" },
            { "name":"smoke integration", "status":"SUCCESS" }
          ]
},
{
  "name":"Build2",
  "chain":
          [
            { "name":"Mega Tests", "status":"SUCCESS" },
            { "name":"prod tests", "status":"FAILURE" },
            { "name":"live tests", "status":"SUCCESS" }
          ]
}

]

Example

Red Green

TODO add new screenshots

Number Instrument

Instrument name : number

Attribute Definition
title Title of the instrument
threshold_value If the value from the data url is below the threshold the display will be rendered as failure
decimal_places How many decimal places should be rendered
higher_is_better The higher number is good and will be rendered as success
unit Which unit should be rendered
show_trend True or false is the trend should be rendered

Example:

{
 "instrument":"number",
 "id":"violations",
 "title":"Code Violations",
 "url":"data/codeviolations.json",
 "threshold_value":"5",
 "decimal_places":"0",
 "higher_is_better":false,
 "unit":"in ms",
 "show_trend": true
}

Data Format

Attribute Definition
value The value to be displayed
trend The trend of the value
threshold_value The new threshold value (optional)

Where trend is defined as this:

Trend Value Definition
1 Bigger value than previous
0 Same value as previous
-1 Smaller value than previous

Example:

{"value":"9", "trend":"0", "threshold_value":"11"}

RedNumber GreenNumber

TextArea

Instrument name : textarea

This instrument will simply show the text given to it. It tries to fill the maximum space and auto computes the best font size so everything fits into the instrument space.

Attribute Definition
fontSize Size of the font
color Color of the text (optional)
text_align e.g. center, left or right
backgroundColor Color of the background (optional)

Data Format

Attribute Definition
value The text to be displayed
backgroundColor Color of the background (optional)

Example:

{"value":"Hello World"}

TextArea

IssueCount

Instrument name : issuecount

This instrument will show the given issue count. Colors can be define with priorityColors. If issue count is zero, it will be displayed with a green background.

This is usually used for displaying things like blocker, critical, major and minor bugs.

Attribute Definition
title Title of the instrument. Total issue count will be prefixed.
priorityColors Should correspond to the length of issueCountsOrderedByPrio. Highest priority color is left.

Example:

{
 "instrument":"issuecount",
 "id":"issuecount",
 "title":"Issues",
 "priorityColors" : [ "#ff0000", "#FF5A36", "#FF7F00", "#FFA812" ],
 "url":"data/issuecount.json"
}

Data Format

Attribute Definition
issueCountsOrderedByPrio Array with issueCounts. Hightest prio issue count is first element

Example:

{
    "issueCountsOrderedByPrio" : [2, 1, 16, 11]
}

IssueCount

ImageArea

Instrument name : imagearea

This instrument will show the image given with the image_url attribute. It will be filled into the area defined in the layout section. All images the browser <img> tag will support can be displayed.

Teamwall will update the image if the linked to image should change (e.g. overwrite image file).

Example (teamwall.json):

{
 "instrument": "imagearea",
 "id": "someimage",
 "url":"data/empty.json",
 "image_url":"data/someImageToDisplay.png"
}

Example (empty.json):

{}

ImageArea

Layout

The layout is defined the layouts section of the configuration file.

The id must match to one of the instruments defined in the instrument section. According to that the instrument will have an width and height and is positioned at top and left.

Attribute Definition
id id of the instrument
width Width of the instrument
height Height of the instrument
top distance from top of the screen
left distance from the left of the screen

Example :

 "layouts": [
    {
        "id": "codecoverage",
        "top": 0,
        "left": 0,
        "width": 300,
        "height": 300
    },
  ]

TODO

  • More Instruments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published