Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feature): TPI (sectors, companies) controllers, chart API & views #57

Merged
merged 56 commits into from Sep 30, 2019

Conversation

kowal
Copy link
Contributor

@kowal kowal commented Sep 13, 2019

Summary

Used https://chartkick.com/#highcharts with highcharts.

Pages

Sectors index

  • Management Quality: All sectors (pie chart)
    • Market Cap (bubble chart) 🤕 not in this PR
  • Carbon Performance: All sectors (stacked chart)

Sector Details page

  • Management Quality: Sector (pie chart)
    • Levels (NOT chart, just flexbox)
  • Carbon Performance: Sector (line chart)

Company Details page

  • Management Quality: Company (gauge?) not in this PR
  • Management Quality: Company (line chart) not in this PR
  • Company question/answers list
  • Carbon Performance: Company (line chart)
  • Company Info

TODO:

  • fix issues with assessment date
  • use real data for Carbon Performance: All sectors chart (@agwozdowski)
  • add controllers or integration specs

Go to http://localhost:3000/tpi/sectors
Zrzut ekranu 2019-09-14 o 08 33 14

@kowal kowal changed the title [TPI frontend] Sectors dashboard PoC [WIP] (feature): TPI frontend PoC Sep 13, 2019
@kowal kowal force-pushed the feature/tpi-controllers branch 3 times, most recently from d8df9f5 to 975c76b Compare September 17, 2019 14:49
@kowal kowal force-pushed the feature/tpi-controllers branch 2 times, most recently from ffb5eb5 to 5f93d1f Compare September 19, 2019 10:34
@kowal kowal changed the title [WIP] (feature): TPI frontend PoC [WIP] (feature): TPI (sectors, companies) controllers, chart API & views Sep 20, 2019
@kowal kowal changed the title [WIP] (feature): TPI (sectors, companies) controllers, chart API & views (feature): TPI (sectors, companies) controllers, chart API & views Sep 20, 2019
@kowal kowal marked this pull request as ready for review September 20, 2019 07:16
Copy link
Contributor

@agwozdowski agwozdowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lack of unit tests ;)

app/helpers/chart_helper.rb Show resolved Hide resolved
app/services/api/charts/company.rb Outdated Show resolved Hide resolved
app/services/api/charts/company.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@simaob simaob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really great start and nice PR! =)

The code structure seems good to me, and is a great step forward in this frontend. I left a couple of small comments, but nothing too big. Thanks!

app/controllers/sectors_controller.rb Outdated Show resolved Hide resolved
app/services/api/charts/company.rb Outdated Show resolved Hide resolved
app/services/api/charts/company.rb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
Copy link
Collaborator

@tsubik tsubik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

Couple comments about chart data and making sure to take the last assessment.

app/assets/stylesheets/tpi.scss Show resolved Hide resolved
app/services/api/charts/company.rb Outdated Show resolved Hide resolved
app/services/api/charts/company.rb Show resolved Hide resolved
app/services/api/charts/sector.rb Outdated Show resolved Hide resolved
config/routes.rb Show resolved Hide resolved
app/services/api/charts/sector.rb Outdated Show resolved Hide resolved
app/services/api/charts/sector.rb Outdated Show resolved Hide resolved
* extract Sector#latest_released_benchmarks and Company#latest_sector_* helpers

* improve docs

* fast return

* udpate comment
@kowal kowal merged commit 8d3094f into develop Sep 30, 2019
@kowal kowal deleted the feature/tpi-controllers branch September 30, 2019 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants