openflighthpc / carbon-leaderboard

A tool to compare environmental impact data from different systems
0 stars 0 forks source link

Leaderboard Initial Implementation & Several Minor Changes #2

Closed Cena-Studio closed 2 months ago

Cena-Studio commented 2 months ago

Overview

This PR mainly implements the default leaderboard. It also made some adjustments to previous styles

Major Changes

Front End

Back End

Minor Changes

Testing

  1. Pull this branch and start the server with the command rails s.
  2. This PR is shipped with a feasible approach to populate instance reports:
    • Uncomment line 2 to line 20 in app/javascript/report/index.js.
    • Refresh the webpage localhost:3000/leaderboards. A new record should be added to the leaderboard each time the webpage is refreshed until the uncommented lines are disabled again.
  3. Once there are enough records. Visit localhost:3000/leaderboards to see the result.
Cena-Studio commented 2 months ago

Fixed the issue that the ranking bar is not rendered with correct length.

Womblue commented 2 months ago

I've just made a commit with some backend changes. They're quite minor, but I'll summarise them here and you can check the commit for the exact lines changed.