ui build fix

This commit is contained in:
ValueOn AG 2026-04-21 23:56:19 +02:00
parent 1c2a196192
commit 208f7b63df
6 changed files with 15 additions and 15 deletions

View file

@ -26,7 +26,8 @@ export interface NodeTypeParameter {
export interface PortField {
name: string;
type: string;
description: Record<string, string>;
/** Plain string or per-language map from the API catalog. */
description: string | Record<string, string>;
required: boolean;
}

View file

@ -128,6 +128,7 @@ export const NodeConfigPanel: React.FC<NodeConfigPanelProps> = ({ node,
schemaNames={def?.accepts ?? []}
catalog={portTypeCatalog}
emptyLabel={t('keine Felder')}
language={language}
/>
))}
</div>
@ -144,6 +145,7 @@ export const NodeConfigPanel: React.FC<NodeConfigPanelProps> = ({ node,
schemaNames={def?.schema ? [def.schema] : []}
catalog={portTypeCatalog}
emptyLabel={t('keine Felder')}
language={language}
/>
))}
</div>
@ -175,9 +177,10 @@ interface _PortFieldListProps {
schemaNames: string[];
catalog: Record<string, PortSchema>;
emptyLabel: string;
language: string;
}
const _PortFieldList: React.FC<_PortFieldListProps> = ({ portIndex, schemaNames, catalog, emptyLabel }) => {
const _PortFieldList: React.FC<_PortFieldListProps> = ({ portIndex, schemaNames, catalog, emptyLabel, language }) => {
if (!schemaNames.length) return null;
return (
<div style={{ marginLeft: 4, marginBottom: 4 }}>
@ -209,7 +212,9 @@ const _PortFieldList: React.FC<_PortFieldListProps> = ({ portIndex, schemaNames,
<span style={{ color: '#999' }}>{`: ${f.type}`}</span>
{!f.required && <span style={{ color: '#bbb' }}>{' (optional)'}</span>}
{f.description && (
<div style={{ color: '#888', marginLeft: 4 }}>{f.description}</div>
<div style={{ color: '#888', marginLeft: 4 }}>
{getLabel(f.description, language)}
</div>
)}
</li>
))}

View file

@ -43,14 +43,14 @@ export interface ResolvedActions {
drag: FileAction[];
}
const _IDENTITY: BuiltinCallbacks['t'] = (s) => s;
const _IDENTITY: NonNullable<BuiltinCallbacks['t']> = (s) => s;
/** Built-in-Definitionen, die aus den heute hartcodierten Callbacks abgeleitet werden.
* Diese erscheinen NUR in den neuen Kanälen (Menu, Sheet, Shortcut) die Inline-Icons
* werden weiterhin direkt vom FolderTree-Renderer gezeichnet, damit die bestehende
* "Stable-Trio + dynamische Aktionen"-Logik unangetastet bleibt. */
function _buildBuiltins(cb: BuiltinCallbacks): FileAction[] {
const t = cb.t ?? _IDENTITY;
const t: NonNullable<BuiltinCallbacks['t']> = cb.t ?? _IDENTITY;
const list: FileAction[] = [];
if (cb.onSendToChat) {

View file

@ -102,6 +102,8 @@ export const PromptsPage: React.FC = () => {
maxWidth: 250,
fkSource: '/api/users/',
fkDisplayField: 'username',
frontendFormat: undefined,
frontendFormatLabels: undefined,
});
return cols;

View file

@ -36,7 +36,6 @@ import {
Forest,
FlatRow,
ORPHAN_ROOT_ID,
TreeNode,
buildForest,
collectAllIds,
flattenForest,
@ -313,14 +312,6 @@ export const RedmineBrowserView: React.FC = () => {
});
}, []);
const _toggleAssignee = useCallback((id: number) => {
setSelectedAssigneeIds(prev => {
const next = new Set(prev);
if (next.has(id)) next.delete(id); else next.add(id);
return next;
});
}, []);
const _toggleRelType = useCallback((rt: string) => {
setSelectedRelTypes(prev => {
const next = new Set(prev);

View file

@ -8,7 +8,8 @@ export type AttributeType =
| 'select'
| 'multiselect'
| 'multilingual'
| 'integer'
| 'integer'
| 'int'
| 'float'
| 'number'
| 'timestamp'