Skip to content

Commit

Permalink
ts configs for owners section categories
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Dye <[email protected]>
  • Loading branch information
B-T-D committed Aug 28, 2024
1 parent 3d5142c commit fb1762f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ const configDefault: AppConfig = {
maxNestedColumns: 500,
},
numberFormat: null,
ownersSection: {
categories: [],
},
productTour: {},
resourceConfig: {
[ResourceType.dashboard]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
SortCriteria,
} from '../interfaces';

import { OwnerCategory } from '../interfaces/OwnerCategory';
import { Widget } from '../interfaces/Widgets';

/**
Expand Down Expand Up @@ -36,6 +37,7 @@ export interface AppConfig {
navTheme: 'dark' | 'light';
nestedColumns: NestedColumnConfig;
numberFormat: NumberFormatConfig | null;
ownersSection: OwnersSectionConfig;
productTour: ToursConfig;
resourceConfig: ResourceConfig;
searchPagination: SearchPagination;
Expand Down Expand Up @@ -84,6 +86,7 @@ export interface AppConfigCustom {
productTour?: ToursConfig;
searchPagination?: SearchPagination;
homePageWidgets?: HomePageWidgetsConfig;
ownersSection?: OwnersSectionConfig;
}

/**
Expand Down Expand Up @@ -604,3 +607,7 @@ export interface HomePageWidgetsConfig {
*/
widgets: Widget[];
}

export interface OwnersSectionConfig {
categories: OwnerCategory[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
HomePageWidgetsConfig,
TableLineageConfig,
DateFormatConfig,
OwnersSectionConfig,
} from './config-types';

const DEFAULT_DYNAMIC_NOTICES_ENABLED_FLAG = false;
Expand Down Expand Up @@ -646,3 +647,10 @@ export function getUserIdLabel(): string {
export function getDateConfiguration(): DateFormatConfig {
return AppConfig.date;
}

/**
* Returns the resource owners section configuration
*/
export function getOwnersSectionConfig(): OwnersSectionConfig {
return AppConfig.ownersSection;
}

0 comments on commit fb1762f

Please sign in to comment.