From 4f59a53af5f01dfbe3fb5c7bab49fa5d72abe1ca Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 3 Jul 2022 13:54:52 +0200 Subject: [PATCH] Add more colors --- .../great_ai/deploy/routes/bootstrap_trace_endpoints.py | 2 +- src/great_ai/great_ai/deploy/routes/dashboard/assets/index.css | 3 --- .../great_ai/deploy/routes/dashboard/create_dash_app.py | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/great_ai/great_ai/deploy/routes/bootstrap_trace_endpoints.py b/src/great_ai/great_ai/deploy/routes/bootstrap_trace_endpoints.py index 7c951a7..e690c75 100644 --- a/src/great_ai/great_ai/deploy/routes/bootstrap_trace_endpoints.py +++ b/src/great_ai/great_ai/deploy/routes/bootstrap_trace_endpoints.py @@ -12,7 +12,7 @@ def bootstrap_trace_endpoints(app: FastAPI) -> None: tags=["traces"], ) - @router.post("/", status_code=status.HTTP_200_OK, response_model=List[Trace]) + @router.post("", status_code=status.HTTP_200_OK, response_model=List[Trace]) def query_traces( query: Query, skip: int = 0, diff --git a/src/great_ai/great_ai/deploy/routes/dashboard/assets/index.css b/src/great_ai/great_ai/deploy/routes/dashboard/assets/index.css index 5f500f9..d463de9 100644 --- a/src/great_ai/great_ai/deploy/routes/dashboard/assets/index.css +++ b/src/great_ai/great_ai/deploy/routes/dashboard/assets/index.css @@ -1,5 +1,4 @@ :root { - --important-color: #a30808; --background-color: #edf5f6; --small-padding: 10px; --medium-padding: 20px; @@ -84,7 +83,6 @@ main { } .environment { - background-color: var(--important-color); color: white; text-align: center; display: flex; @@ -152,7 +150,6 @@ main > header .placeholder { } .configuration-item { - border-left: 2px solid var(--important-color); padding-left: var(--small-padding); margin: var(--medium-padding); } diff --git a/src/great_ai/great_ai/deploy/routes/dashboard/create_dash_app.py b/src/great_ai/great_ai/deploy/routes/dashboard/create_dash_app.py index d7d65d6..85d9a4f 100644 --- a/src/great_ai/great_ai/deploy/routes/dashboard/create_dash_app.py +++ b/src/great_ai/great_ai/deploy/routes/dashboard/create_dash_app.py @@ -38,6 +38,7 @@ def create_dash_app(function_name: str, function_docs: str) -> Flask: html.Div( html.P("PRODUCTION" if get_context().is_production else "DEVELOPMENT"), className="environment", + style={"background": accent_color}, ), html.Header( [ @@ -97,6 +98,7 @@ def create_dash_app(function_name: str, function_docs: str) -> Flask: html.P(str(value)), ], className="configuration-item", + style={"border-left": f"2px solid {accent_color}"}, ) for key, value in config.items() ]