Hello, I'm new to Flyte, but I was wondering how I...
# ask-the-community
b
Hello, I'm new to Flyte, but I was wondering how I might go about customizing the flyte console. I am considering adding a button to it. The reason would be to add additional links to a logs sink when errors surface. I do understand that there is a specific way to configure logging links via the Helm chart, but I was wondering if I'd be able to modify the UI on my end to achieve that functionality instead. Is that possible, and if so, would someone be able to point me in the right direction with regard to that?
t
Hi Benjamin. I'm a designer for Union, the commercial sponsor for Flyte. I can't help you with your technical question but I am very interested to hear your feedback on the Flyte UI and why you want to add a button?
k
Cc @Frank Flitton
b
@Tim Sheiner, edited my original post above with more details!
t
@Benjamin Chew Thanks! Got the reason, makes sense. Would you mind dropping in a screenshot where you mark where you wish the button could be?
f
Hi Benjamin, this may be possible in the UI via a UI component registry entry - assuming you can build the link to your logs. You can find the UI registry here: https://github.com/flyteorg/flyteconsole/blob/master/packages/console/src/basics/ExternalConfigurationProvider/ExternalConfigurationProvider.tsx Then swap to your custom log component: https://github.com/flyteorg/flyteconsole/blob/master/packages/console/src/components/common/ExpandableMonospaceText.tsx Example of this approach in the nav bar: https://github.com/flyteorg/flyteconsole/blob/master/packages/console/src/components/Navigation/NavBar.tsx Then you can override the monospace log component globally... or contribute the log URL as a feature if its done generically. 🙂
Here's an example of how you would add the registry to the console locally/build your own flavor.
Copy code
import { App as OSSApp } from '@flyteorg/console';
import { CustomNavBar } from './myCustomCode.tsx';


const WrappedApp = () => {
  return (
    <OSSApp
        registry={{
            nav: CustomNavBar,
        }}
    />
  );
};