Hi all! I would like to ask the way on customizing...
# ui
b
Hi all! I would like to ask the way on customizing the theme of datahub (eg setting up own logo). I had first building the project using ./gradlew build and then invoke the ./dev.sh command. I did try the following ways for setting up own theme but the changes do not reflect in the localhost. I am very new to Datahub so not sure if I have missed out any steps. Appreciate if someone can give some guidance on this. Many thanks!!
f
Hey @brief-memory-68185, if you just want to customize the logo. The simplest way is updating
REACT_APP_LOGO_URL
and
REACT_APP_FAVICON_URL
variables. That points to your logo URL in datahub-gms config.
b
@famous-florist-7218 Thanks!
How if I want to customize the logo within the login page?
REACT_APP_LOGO_URL
and
REACT_APP_FAVICON_URL
variables only change the logo on the homepage and browser tab.
f
Unfortunately, you should make a PR for this. Here is the code where (DataHub) logoUrl was set by default. https://github.com/datahub-project/datahub/blob/325b959ea696ad19a3a84c0c25c81a9c449e0645/datahub-web-react/src/app/auth/SignUp.tsx#L141 In my case, I’m setting up the Google OIDC Authentication. So the user will login using their organization email.
b
Alright thanks for the info!