diff options
author | matthieu <matthieu.cneude@gmail.com> | 2020-04-24 21:28:08 +0200 |
---|---|---|
committer | matthieu <matthieu.cneude@gmail.com> | 2020-04-24 21:29:15 +0200 |
commit | bd391c5eb43eac7aa68de66652556315f91d635e (patch) | |
tree | 21f663102c94496e296970e8b428859db3ada063 | |
parent | e677e031a82eba83aa8362eb6cd4e2320a085920 (diff) |
Add important TODO to refactor the whole system
-rw-r--r-- | go.sum | 1 | ||||
-rw-r--r-- | internal/project.go | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -230,6 +230,7 @@ github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoH github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= diff --git a/internal/project.go b/internal/project.go index 2524e90..31422cf 100644 --- a/internal/project.go +++ b/internal/project.go @@ -105,12 +105,14 @@ func (p *project) Render(debug bool) { DisplayError(p.tui, err) } + // TODO Separating request to API with display of widget itself + // TODO Better decomposition + possibility to run one goroutine by API request for performance (even if we need to have every results before displaying (?)) for r, row := range p.widgets { for c, col := range row { for _, w := range col { w = p.addDefaultTheme(w) - // Map widget prefix with serice + // Map widget prefix with service switch w.serviceID() { case "display": createWidgets(NewDisplayWidget(), "Display", w, p.tui) |