Skip to content

Commit

Permalink
Feature/replace ui (#43)
Browse files Browse the repository at this point in the history
* ui improvements + storage query error when price_per_month is missing

* Remove unused icons

* Replace images + fix header link
  • Loading branch information
kaplanelad authored Apr 19, 2020
1 parent 56c8567 commit 06bad79
Show file tree
Hide file tree
Showing 38 changed files with 2,143 additions and 1,109 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.7]
- New dashboard. [[PR-43](https://github.com/similarweb/finala/pull/43)]
- Export table to CSV. [[PR-43](https://github.com/similarweb/finala/pull/43)]
- Fix storage query error when table missed `price_per_month` column. [[PR-43](https://github.com/similarweb/finala/pull/43)]

## [0.1.6] - 2020-03-15
### Added
- Detect last activity of IAM user. [[PR-36](https://github.com/similarweb/finala/pull/36)]
- Notify new Finala version release. [[PR-31](https://github.com/similarweb/finala/pull/31)]
- Improve CI process. [[PR-33](https://github.com/similarweb/finala/pull/33)]
- Add AWS ELBV2 detection. [[PR-30](https://github.com/similarweb/finala/pull/30)]
- dockerize the project. [[PR-40](https://github.com/similarweb/finala/pull/40)]
- Dockerize the project. [[PR-40](https://github.com/similarweb/finala/pull/40)]
- Notify when new Finala version release. [[PR-43](https://github.com/similarweb/finala/pull/43)]

## [0.1.5]
### Added
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Finala

[![Build Status](https://travis-ci.org/similarweb/finala.svg?branch=develop)](https://travis-ci.org/similarweb/finala)

A resource cloud scanner that analyzes and reports about wasteful and unused resources to cut unwanted expenses.
The tool is based on yaml definitions (no code), by default configuration OR given yaml file and the report output will be saved in a given storage.

Expand All @@ -19,12 +17,12 @@ More to come...

## Screenshots

### Unused RDS report
![alt Resources](./docs/resource.jpg)
### Dashboard
![alt Summary](./docs/dashboard.png)

### Summary of all resources
![alt Summary](./docs/symmary.jpg)

### Unused RDS report
![alt Resources](./docs/resource.jpg)

### CLI Format
```
Expand Down
Binary file added docs/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/resource.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/symmary.jpg
Binary file not shown.
7 changes: 6 additions & 1 deletion storage/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ func (s *MySQLManager) GetSummary() (*map[string]Summary, error) {
s.db.Table(resource.TableName).Count(&count)
var n NResult

s.db.Table(resource.TableName).Select("SUM(price_per_month) as n").Scan(&n)
if s.db.Dialect().HasColumn(resource.TableName, "price_per_month") {
s.db.Table(resource.TableName).Select("SUM(price_per_month) as n").Scan(&n)
} else {
n.N = 0
}

summary[resource.TableName] = Summary{
ResourceCount: count,
TotalSpent: n.N,
Expand Down
6 changes: 0 additions & 6 deletions ui/build/app.6d24a674aca077aaa8d0.css

This file was deleted.

Empty file.
2 changes: 1 addition & 1 deletion ui/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"><title>Finala</title><link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700&display=swap" rel="stylesheet"><link rel="apple-touch-icon" sizes="57x57" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-180x180.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="Finala-UI"><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#fff"><meta name="application-name" content="Finala-UI"><link rel="icon" type="image/png" sizes="32x32" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/favicon-16x16.png"><link rel="shortcut icon" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/favicon.ico"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-320x460.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-640x920.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-640x1096.png"><link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-750x1294.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1182x2208.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1242x2148.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-748x1024.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-768x1004.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1496x2048.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1536x2008.png"><link href="/static/app.6d24a674aca077aaa8d0.css" rel="stylesheet"></head><body><div id="react-root"></div><script type="text/javascript" src="/static/main.6d24a674aca077aaa8d0.js"></script></body></html>
<!doctype html><html><head><meta charset="utf-8"><title>Finala</title><link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700&display=swap" rel="stylesheet"><link rel="apple-touch-icon" sizes="57x57" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-icon-180x180.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="Finala-UI"><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#fff"><meta name="application-name" content="Finala-UI"><link rel="icon" type="image/png" sizes="32x32" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/favicon-16x16.png"><link rel="shortcut icon" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/favicon.ico"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-320x460.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-640x920.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-640x1096.png"><link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-750x1294.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1182x2208.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1242x2148.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-748x1024.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-768x1004.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1496x2048.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="/static/icons-cce916873f76fcb7e70471d7db131c7b/apple-touch-startup-image-1536x2008.png"><link href="/static/app.b973b01240b14be35c48.css" rel="stylesheet"></head><body><div id="react-root"></div><script type="text/javascript" src="/static/main.b973b01240b14be35c48.js"></script></body></html>
62 changes: 0 additions & 62 deletions ui/build/main.6d24a674aca077aaa8d0.js

This file was deleted.

98 changes: 98 additions & 0 deletions ui/build/main.b973b01240b14be35c48.js

Large diffs are not rendered by default.

Loading

0 comments on commit 06bad79

Please sign in to comment.