Refactor the React OpenAPI admin framework to support fully customizable field rendering and UI composition. #11

Merged
aetos merged 15 commits from common-fields into main 2026-06-07 12:35:53 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit a263d5632f - Show all commits

View File

@@ -6,13 +6,12 @@ export interface EnumOption {
} }
export interface FieldOverride { export interface FieldOverride {
displayField?: string | string[]; displayFormat?: string;
display?: boolean; display?: boolean;
formatter?: (value: any) => string; formatter?: (value: any) => string;
filterType?: "autocomplete" | "multiselect" | "number-range" | "date-range"; filterType?: "autocomplete" | "multiselect" | "number-range" | "date-range";
enumLabels?: Record<string, string>; enumLabels?: Record<string, string>;
// New optional properties to support custom config extensions // New optional properties to support custom config extensions
displayFormat?: string;
path?: string; path?: string;
refers?: string; refers?: string;
} }

View File

@@ -1,4 +1,4 @@
import { ResourceOverride } from "../react-openapi/types/overrides"; import { ResourceOverride } from "../react-openapi";
export const configuration: Record<string, ResourceOverride> = { export const configuration: Record<string, ResourceOverride> = {
expenses: { expenses: {