Giter Site home page Giter Site logo

futurice / feedback-presentation-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 7.68 MB

The purpose of this project is to visualize feedback data gathered from customers. The actual data is stored in google docs and queried via proxy server.

License: BSD 3-Clause "New" or "Revised" License

JavaScript 55.27% CSS 8.58% Gosu 36.15%

feedback-presentation-app's Introduction

Feeback Presentation App

About

The purpose of this project is to visualize feedback data gathered from customers. The actual data is stored in google docs and queried via proxy server.

The application has two main screens: Averages by topic view and project list view. User can navigate between the views from the sidebar menu.

Averages by topic

Project list

User can also apply filters to data in the sidebar menu. Filters are applied immediatly and the filtered results presented after the filter calculation has ended.

Development

Requirements:

Setting up

$ git clone https://github.com/futurice-oss/feedback-presentation-app.git 
#...
$ npm install
$ bower install

To run the proxy server you need to type node web.js. This will start the server at localhost:8001.

To store data we have used google sheets and a google script to access the data and serve it via JSON interface. An example sheet and script file are included in the repository. Run the app on your google drive with similiar sheet layout, correct sheet id and password configured in the web.js server script file.

The data received from the proxy server is in raw spreadsheet array data and has to be manipulated to the correct format. This data manipulation is done in seed-element-master/elements/x-project-service.html.

function(e) {
            //backend serves data from spreadsheets so a little bit of moving it around is in order
            var data = e.detail.response;
            var question_topics = _.chain(_.rest(_.zip.apply(_, data), 8))
                                   .map(function(elem){
                                     return _.first(elem, 2); 
                                     })
                                   .value();

            var projects = _.chain(data)
                            .rest(3)
                            .map(function(project) {
                              return { 
                                questions: _.chain(project)
                                            .rest(8)
                                            .zip(question_topics)
                                            .map(function(elem) { return { topic: elem[1][0], question: elem[1][1], answer: elem[0] } ; })
                                            .filter(function(elem) { return elem.answer !== "";})
                                            .value(),
                                project_name: project[0],
                                project_manager: project[1],
                                date: Date.parse(project[2]),
                                customer_company: project[3],
                                customer_contact: project[4],
                                npa_score: project[5],
                                comment: project[6],
                                tribe: project[7]
                              }; 
                            })
                            .sortBy(function(elem) { return elem.date; })
                            .reverse()
                            .map(function(p){ return {'key': p.project_name, 'value': p};})
                            .value();
          //in correct data format now
          element.projects = projects;
          }

If you are not using the same backend configuration as we did just ignore the code above and provide your data in the correct format from your backend API. The compatible data format for the app is shown below.

var data_in_compatible_format = [{
  key: "Intl. Multifoods Android app",
  value: {
    comment: "",
    customer_company: "Intl. Multifoods",
    customer_contact: "Yolande Juliano  ",
    date: 1407937555515,
    npa_score: 4,
    project_manager: "Harriette Wendt  ",
    project_name: "Intl. Multifoods Android app",
    questions: [
      0: {
        answer: 1
        question: "How easy was it to cooperate with the project team?"
        topic: "Team Work"
      },
      1: {
        answer: 3
        question: "How do high do you value our design work?"
        topic: "Design"
      }]
    }
  },
  ...]

License

BSD 3-Clause

feedback-presentation-app's People

Contributors

osaario avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.