M: Improve typification labeling
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
Frontend CI / notify-failure (push) Blocked by required conditions

This commit is contained in:
Ivan 2025-04-22 11:32:58 +03:00
parent 6c75b0af3a
commit 1eadbf5ba5
3 changed files with 9 additions and 4 deletions

View File

@ -105,7 +105,7 @@ export { LuSubscript as IconAlias } from 'react-icons/lu';
export { TbMathFunction as IconFormula } from 'react-icons/tb';
export { BiFontFamily as IconText } from 'react-icons/bi';
export { BiFont as IconTextOff } from 'react-icons/bi';
export { TbCar4Wd as IconTypeGraph } from 'react-icons/tb';
export { TbCircleLetterM as IconTypeGraph } from 'react-icons/tb';
export { RiTreeLine as IconTree } from 'react-icons/ri';
export { FaRegKeyboard as IconControls } from 'react-icons/fa6';
export { RiLockLine as IconImmutable } from 'react-icons/ri';

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,8 @@
import { Handle, Position } from 'reactflow';
import clsx from 'clsx';
import { labelCstTypification } from '@/features/rsform/labels';
import { APP_COLORS } from '@/styling/colors';
import { globalIDs } from '@/utils/constants';
@ -95,5 +97,5 @@ export function TGNode(node: TGNodeInternal) {
// ====== INTERNAL ======
function describeCstNode(cst: IConstituenta) {
return `${cst.alias}: ${cst.term_resolved}</br>Типизация: ${cst.parse.typification}`;
return `${cst.alias}: ${cst.term_resolved}</br>Типизация: ${labelCstTypification(cst)}`;
}