ui build fix
This commit is contained in:
parent
1c2a196192
commit
208f7b63df
6 changed files with 15 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ export const PromptsPage: React.FC = () => {
|
|||
maxWidth: 250,
|
||||
fkSource: '/api/users/',
|
||||
fkDisplayField: 'username',
|
||||
frontendFormat: undefined,
|
||||
frontendFormatLabels: undefined,
|
||||
});
|
||||
|
||||
return cols;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ export type AttributeType =
|
|||
| 'select'
|
||||
| 'multiselect'
|
||||
| 'multilingual'
|
||||
| 'integer'
|
||||
| 'integer'
|
||||
| 'int'
|
||||
| 'float'
|
||||
| 'number'
|
||||
| 'timestamp'
|
||||
|
|
|
|||
Loading…
Reference in a new issue