Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override default Logo and Title #503

Closed
rrindels opened this issue Dec 15, 2022 · 2 comments · Fixed by #504
Closed

Override default Logo and Title #503

rrindels opened this issue Dec 15, 2022 · 2 comments · Fixed by #504

Comments

@rrindels
Copy link

From looking through the code it seems as if the Header component has a hardcoded logo and title. We would like to change these to match our other tools if possible.

I noticed that if you attempt to override setStaticPath on the serverAdapter , it breaks serving other required files from the static path that get chunked into dist.

If there was a control mechanism on the Adapter to set maybe "public" values, then our adapters could publish the routes to serve our custom image static content and we could push a title somehow to the component template.

if there was something like a setPublicPath plugin for the Adapter, it could default to the dist version , but overriding could redirect where only the images were fed from without breaking the other chunked pieces, then the template could use a similar getPublicPath utility like getStaticPath does?

I am not sure how one would set the title in the Header template from an Adapter or utility as I am not a React developer. But it seems like it should be possible.

I could potentially work on a PR for this , but wanted to see if it was something even worth attempting.

felixmosh added a commit that referenced this issue Dec 15, 2022
feat: Allow to change board title
feat: Allow to change board logo

closes #503
@felixmosh
Copy link
Owner

related to #431

@felixmosh
Copy link
Owner

felixmosh commented Dec 15, 2022

You can pass an option object to createBullBoard.

createBullBoard({
    queues: [new BullMQAdapter(exampleBullMq), new BullAdapter(exampleBull)],
    serverAdapter,
    options: {
      uiConfig: {
        boardTitle: 'My Board',
        boardLogo: {
          path: 'https://example.com/myLogo.png',
          width: 200,
          height: 200,
        },
      },
    },
  });

all of the properties are optional, so you can pass some of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants