conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
142 stars 46 forks source link

[BUG] - new UI is gray when running in standalone mode #651

Closed nkaretnikov closed 10 months ago

nkaretnikov commented 10 months ago

Describe the bug

The home page doesn't have green UI elements, like when running in Docker.

To repro:

# server
python -m conda_store_server.server --standalone --config config.py

# ui
yarn run start 

config.py:

# This MUST start with `/`
c.CondaStoreServer.url_prefix = "/conda-store"

Expected behavior

Green elements are shown, like with Docker.

How to Reproduce the problem?

See above.

Output

No response

Versions and dependencies used.

server: 0760fa2b386bc207936df89f52b4df83f61e8af8 ui: cf6a34f8b9a44f6c10c9466ac423852373d52168, base: b4a5b46732f3441084fff4ff5537d494f0f3f09e

Anything else?

No response

nkaretnikov commented 10 months ago
Screen Shot 2023-11-03 at 18 31 53

The Log out button and the logo at the bottom should be green.

nkaretnikov commented 10 months ago

It's possible I'm just starting the UI incorrectly (due to not setting up some config properly). I filed an issue so I don't forget about this. In any case, it seems like it should pick up the themed green UI by default.

steff456 commented 10 months ago

Hi!!

Currently the UI supports two themes, grayscale and green. You are able to change it by setting this environment variable,

REACT_APP_STYLE_TYPE=grayscale #gray UI
REACT_APP_STYLE_TYPE=green-accent #green UI
nkaretnikov commented 10 months ago

Fixed in https://github.com/conda-incubator/conda-store-ui/pull/327.