tree: 074794a3a2df1522883d2da89893374d4724012b [path history] [tgz]
  1. .gitignore
  2. autoroll-widget-sk-demo.html
  3. autoroll-widget-sk.html
  4. capacity-stats-sk-demo.html
  5. capacity-stats-sk.html
  6. commit-popup-sk-demo.html
  7. commit-popup-sk.html
  8. commits-canvas-sk-demo.html
  9. commits-canvas-sk.html
  10. commits-data-sk.html
  11. commits-table-d3-sk.html
  12. commits-table-d3.css
  13. commits-table-sk.html
  14. gen_status_sk_data.py
  15. gold-status-sk-demo.html
  16. gold-status-sk.html
  17. Makefile
  18. perf-status-sk.html
  19. README.md
  20. status-menu-section-sk.html
  21. status-popup.html
  22. status-sk-demo.html
  23. status-sk.html
  24. task-popup-sk-demo.html
  25. task-popup-sk.html
  26. taskspec-popup-sk-demo.html
  27. taskspec-popup-sk.html
  28. tree-status-sk.html
status/res/imp/README.md

Status Elements

Before being able to run the demo pages, run the

make web

in the infra/status directory.

To run the demo pages, navigate to this directory and run

make run

This will download the necessary dependencies, download the demo data from Google Storage and set up a local server for debugging on http://localhost:8080.

The general idea for many of these elements is to have a *-data element that fetches the data needed for rendering, parses and formats it, and then makes it available via data bindings. There are then UI elements that takes the data and renders it. The UI elements may have user-operable widgets, the output of which are exposed for databinding as well. This helps break apart the components and makes it easier to, for example, change from using Polymer to using D3 for a component of the visualization.

For performance reasons, the drawing of the main table on status (commits-table-sk) is done with D3. An excellent primer on D3 is Interactive Data Visualization for the Web by Scott Murray.

The elements were previously written in Polymer 0.5. Many of these were deleted after commit 9b8bb9c04.