1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React, { ReactElement, memo } from "react";
6 import { Dispatch } from "redux";
26 } from "@material-ui/core";
27 import { ArvadosTheme } from "common/custom-theme";
28 import { CloseIcon, InputIcon, OutputIcon, MaximizeIcon, UnMaximizeIcon, InfoIcon } from "components/icon/icon";
29 import { MPVPanelProps } from "components/multi-panel-view/multi-panel-view";
31 BooleanCommandInputParameter,
32 CommandInputParameter,
35 DirectoryArrayCommandInputParameter,
36 DirectoryCommandInputParameter,
37 EnumCommandInputParameter,
38 FileArrayCommandInputParameter,
39 FileCommandInputParameter,
40 FloatArrayCommandInputParameter,
41 FloatCommandInputParameter,
42 IntArrayCommandInputParameter,
43 IntCommandInputParameter,
47 StringArrayCommandInputParameter,
48 StringCommandInputParameter,
50 } from "models/workflow";
51 import { CommandOutputParameter } from "cwlts/mappings/v1.0/CommandOutputParameter";
52 import { File } from "models/workflow";
53 import { getInlineFileUrl } from "views-components/context-menu/actions/helpers";
54 import { AuthState } from "store/auth/auth-reducer";
55 import mime from "mime";
56 import { DefaultView } from "components/default-view/default-view";
57 import { getNavUrl } from "routes/routes";
58 import { Link as RouterLink } from "react-router-dom";
59 import { Link as MuiLink } from "@material-ui/core";
60 import { InputCollectionMount } from "store/processes/processes-actions";
61 import { connect } from "react-redux";
62 import { RootState } from "store/store";
63 import { ProcessOutputCollectionFiles } from "./process-output-collection-files";
64 import { Process } from "store/processes/process";
65 import { navigateTo } from "store/navigation/navigation-action";
66 import classNames from "classnames";
67 import { DefaultVirtualCodeSnippet } from "components/default-code-snippet/default-virtual-code-snippet";
68 import { KEEP_URL_REGEX } from "models/resource";
69 import { FixedSizeList } from 'react-window';
70 import AutoSizer from "react-virtualized-auto-sizer";
71 import { LinkProps } from "@material-ui/core/Link";
72 import { ConditionalTabs } from "components/conditional-tabs/conditional-tabs";
83 | "paramTableCellText"
94 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
99 paddingTop: theme.spacing.unit,
103 fontSize: "1.875rem",
104 color: theme.customs.colors.greyL,
107 alignSelf: "flex-start",
108 paddingTop: theme.spacing.unit * 0.5,
112 height: `calc(100% - ${theme.spacing.unit * 6}px)`,
113 padding: theme.spacing.unit * 1.0,
116 paddingBottom: theme.spacing.unit * 1,
122 paddingTop: theme.spacing.unit * 0.5,
123 color: theme.customs.colors.greyD,
124 fontSize: "1.875rem",
126 // Applies to table tab and collection table content
129 maxHeight: `calc(100% - ${theme.spacing.unit * 6}px)`,
131 // Use flexbox to keep scrolling at the virtual list level
133 flexDirection: "column",
134 alignItems: "stretch", // Stretches output collection to full width
138 // Param table virtual list styles
141 flexDirection: "column",
147 padding: "4px 25px 10px",
151 height: "100vh", // Must be constrained by panel maxHeight
153 // Flex header/body rows
154 "& thead tr, & > tbody tr": {
156 // Flex header/body cells
163 // Column width overrides
164 "& th:nth-of-type(1), & td:nth-of-type(1)": {
167 "& th:nth-last-of-type(1), & td:nth-last-of-type(1)": {
176 padding: "2px 25px 2px",
179 flexDirection: "row",
180 alignItems: "center",
181 whiteSpace: "nowrap",
185 // Param value cell typography styles
186 paramTableCellText: {
189 // Every cell contents requires a wrapper for the ellipsis
190 // since adding ellipses to an anchor element parent results in misaligned tooltip
193 textOverflow: "ellipsis",
198 textOverflow: "ellipsis",
204 verticalAlign: "bottom",
205 paddingBottom: "10px",
208 paddingRight: "25px",
213 height: `calc(100% - ${theme.spacing.unit * 6}px)`,
216 color: theme.palette.primary.main,
217 textDecoration: "none",
218 // Overflow wrap for mounts table
219 overflowWrap: "break-word",
222 // Output collection tab link
226 color: theme.palette.primary.main,
227 textDecoration: "none",
228 overflowWrap: "break-word",
236 color: theme.customs.colors.grey700,
240 borderBottom: "none",
242 paddingBottom: "2px",
253 wordWrap: "break-word",
257 export enum ProcessIOCardType {
258 INPUT = "Input Parameters",
259 OUTPUT = "Output Parameters",
261 export interface ProcessIOCardDataProps {
263 label: ProcessIOCardType;
264 params: ProcessIOParameter[] | null;
266 mounts?: InputCollectionMount[];
268 forceShowParams?: boolean;
271 type ProcessIOCardProps = ProcessIOCardDataProps & WithStyles<CssRules> & MPVPanelProps;
273 export const ProcessIOCard = withStyles(styles)(
288 }: ProcessIOCardProps) => {
289 const PanelIcon = label === ProcessIOCardType.INPUT ? InputIcon : OutputIcon;
290 const mainProcess = !(process && process!.containerRequest.requestingContainerUuid);
291 const showParamTable = mainProcess || forceShowParams;
293 const loading = raw === null || raw === undefined || params === null;
295 const hasRaw = !!(raw && Object.keys(raw).length > 0);
296 const hasParams = !!(params && params.length > 0);
297 // isRawLoaded allows subprocess panel to display raw even if it's {}
298 const isRawLoaded = !!(raw && Object.keys(raw).length >= 0);
301 const hasInputMounts = !!(label === ProcessIOCardType.INPUT && mounts && mounts.length);
302 const hasOutputCollecton = !!(label === ProcessIOCardType.OUTPUT && outputUuid);
303 // Subprocess should not show loading if hasOutputCollection or hasInputMounts
304 const subProcessLoading = loading && !hasOutputCollecton && !hasInputMounts;
308 className={classes.card}
309 data-cy="process-io-card"
312 className={classes.header}
314 content: classes.title,
315 avatar: classes.avatar,
317 avatar={<PanelIcon className={classes.iconHeader} />}
329 {doUnMaximizePanel && panelMaximized && (
331 title={`Unmaximize ${panelName || "panel"}`}
334 <IconButton onClick={doUnMaximizePanel}>
339 {doMaximizePanel && !panelMaximized && (
341 title={`Maximize ${panelName || "panel"}`}
344 <IconButton onClick={doMaximizePanel}>
351 title={`Close ${panelName || "panel"}`}
355 disabled={panelMaximized}
356 onClick={doHidePanel}
365 <CardContent className={classes.content}>
368 {/* raw is undefined until params are loaded */}
379 {/* Once loaded, either raw or params may still be empty
380 * Raw when all params are empty
381 * Params when raw is provided by containerRequest properties but workflow mount is absent for preview
383 {!loading && (hasRaw || hasParams) && (
386 className={classes.symmetricTabs}
389 // params will be empty on processes without workflow definitions in mounts, so we only show raw
392 content: <ProcessIOPreview
394 valueLabel={forceShowParams ? "Default value" : "Value"}
398 show: !forceShowParams,
400 content: <ProcessIORaw data={raw} />,
403 show: hasOutputCollecton,
405 content: <ProcessOutputCollection outputUuid={outputUuid} />,
410 {!loading && !hasRaw && !hasParams && (
417 <DefaultView messages={["No parameters found"]} />
424 {subProcessLoading ? (
433 ) : !subProcessLoading && (hasInputMounts || hasOutputCollecton || isRawLoaded) ? (
436 className={classes.symmetricTabs}
439 show: hasInputMounts,
440 label: "Collections",
441 content: <ProcessInputMounts mounts={mounts || []} />,
444 show: hasOutputCollecton,
446 content: <ProcessOutputCollection outputUuid={outputUuid} />,
451 content: <ProcessIORaw data={raw} />,
462 <DefaultView messages={["No data to display"]} />
473 export type ProcessIOValue = {
474 display: ReactElement<any, any>;
476 collection?: ReactElement<any, any>;
480 export type ProcessIOParameter = {
483 value: ProcessIOValue;
486 interface ProcessIOPreviewDataProps {
487 data: ProcessIOParameter[];
492 type ProcessIOPreviewProps = ProcessIOPreviewDataProps & WithStyles<CssRules>;
494 const ProcessIOPreview = memo(
495 withStyles(styles)(({ data, valueLabel, hidden, classes }: ProcessIOPreviewProps) => {
496 const showLabel = data.some((param: ProcessIOParameter) => param.label);
498 const hasMoreValues = (index: number) => (
499 data[index+1] && !isMainRow(data[index+1])
502 const isMainRow = (param: ProcessIOParameter) => (
504 ((param.id || param.label) &&
505 !param.value.secondary)
508 const RenderRow = ({index, style}) => {
509 const param = data[index];
512 [classes.noBorderRow]: hasMoreValues(index),
517 className={classNames(rowClasses)}
518 data-cy={isMainRow(param) ? "process-io-param" : ""}>
520 <Tooltip title={param.id}>
521 <Typography className={classes.paramTableCellText}>
528 {showLabel && <TableCell>
529 <Tooltip title={param.label}>
530 <Typography className={classes.paramTableCellText}>
543 <Typography className={classes.paramTableCellText}>
544 {/** Collection is an anchor so doesn't require wrapper element */}
545 {param.value.collection}
551 return <div className={classes.tableWrapper} hidden={hidden}>
553 className={classes.paramTableRoot}
554 aria-label="Process IO Preview"
558 <TableCell>Name</TableCell>
559 {showLabel && <TableCell>Label</TableCell>}
560 <TableCell>{valueLabel}</TableCell>
561 <TableCell>Collection</TableCell>
566 {({ height, width }) =>
569 itemCount={data.length}
583 interface ProcessValuePreviewProps {
584 value: ProcessIOValue;
587 const ProcessValuePreview = withStyles(styles)(({ value, classes }: ProcessValuePreviewProps & WithStyles<CssRules>) => (
588 <Typography className={classNames(classes.paramTableCellText, value.secondary && classes.secondaryVal)}>
593 interface ProcessIORawDataProps {
594 data: ProcessIOParameter[];
598 const ProcessIORaw = withStyles(styles)(({ data, hidden, classes }: ProcessIORawDataProps & WithStyles<CssRules>) => (
599 <div className={classes.jsonWrapper} hidden={hidden}>
600 <Paper elevation={0} style={{minWidth: "100%", height: "100%"}}>
601 <DefaultVirtualCodeSnippet
602 lines={JSON.stringify(data, null, 2).split('\n')}
610 interface ProcessInputMountsDataProps {
611 mounts: InputCollectionMount[];
615 type ProcessInputMountsProps = ProcessInputMountsDataProps & WithStyles<CssRules>;
617 const ProcessInputMounts = withStyles(styles)(
618 connect((state: RootState) => ({
620 }))(({ mounts, hidden, classes, auth }: ProcessInputMountsProps & { auth: AuthState }) => (
622 className={classes.mountsTableRoot}
623 aria-label="Process Input Mounts"
628 <TableCell>Path</TableCell>
629 <TableCell>Portable Data Hash</TableCell>
633 {mounts.map(mount => (
634 <TableRow key={mount.path}>
636 <pre>{mount.path}</pre>
640 to={getNavUrl(mount.pdh, auth)}
641 className={classes.keepLink}
653 export interface ProcessOutputCollectionActionProps {
654 navigateTo: (uuid: string) => void;
657 const mapNavigateToProps = (dispatch: Dispatch): ProcessOutputCollectionActionProps => ({
658 navigateTo: uuid => dispatch<any>(navigateTo(uuid)),
661 type ProcessOutputCollectionProps = {outputUuid: string | undefined, hidden?: boolean} & ProcessOutputCollectionActionProps & WithStyles<CssRules>;
663 const ProcessOutputCollection = withStyles(styles)(connect(null, mapNavigateToProps)(({ outputUuid, hidden, navigateTo, classes }: ProcessOutputCollectionProps) => (
664 <div className={classes.tableWrapper} hidden={hidden}>
667 <Typography className={classes.collectionLink}>
668 Output Collection:{" "}
670 className={classes.keepLink}
672 navigateTo(outputUuid || "");
679 <ProcessOutputCollectionFiles
681 currentItemUuid={outputUuid}
687 type FileWithSecondaryFiles = {
688 secondaryFiles: File[];
691 export const getIOParamDisplayValue = (auth: AuthState, input: CommandInputParameter | CommandOutputParameter, pdh?: string): ProcessIOValue[] => {
693 case isSecret(input):
694 return [{ display: <SecretValue /> }];
696 case isPrimitiveOfType(input, CWLType.BOOLEAN):
697 const boolValue = (input as BooleanCommandInputParameter).value;
698 return boolValue !== undefined && !(Array.isArray(boolValue) && boolValue.length === 0)
699 ? [{ display: <PrimitiveTooltip data={boolValue}>{renderPrimitiveValue(boolValue, false)}</PrimitiveTooltip> }]
700 : [{ display: <EmptyValue /> }];
702 case isPrimitiveOfType(input, CWLType.INT):
703 case isPrimitiveOfType(input, CWLType.LONG):
704 const intValue = (input as IntCommandInputParameter).value;
705 return intValue !== undefined &&
706 // Missing values are empty array
707 !(Array.isArray(intValue) && intValue.length === 0)
708 ? [{ display: <PrimitiveTooltip data={intValue}>{renderPrimitiveValue(intValue, false)}</PrimitiveTooltip> }]
709 : [{ display: <EmptyValue /> }];
711 case isPrimitiveOfType(input, CWLType.FLOAT):
712 case isPrimitiveOfType(input, CWLType.DOUBLE):
713 const floatValue = (input as FloatCommandInputParameter).value;
714 return floatValue !== undefined && !(Array.isArray(floatValue) && floatValue.length === 0)
715 ? [{ display: <PrimitiveTooltip data={floatValue}>{renderPrimitiveValue(floatValue, false)}</PrimitiveTooltip> }]
716 : [{ display: <EmptyValue /> }];
718 case isPrimitiveOfType(input, CWLType.STRING):
719 const stringValue = (input as StringCommandInputParameter).value || undefined;
720 return stringValue !== undefined && !(Array.isArray(stringValue) && stringValue.length === 0)
721 ? [{ display: <PrimitiveTooltip data={stringValue}>{renderPrimitiveValue(stringValue, false)}</PrimitiveTooltip> }]
722 : [{ display: <EmptyValue /> }];
724 case isPrimitiveOfType(input, CWLType.FILE):
725 const mainFile = (input as FileCommandInputParameter).value;
726 // secondaryFiles: File[] is not part of CommandOutputParameter so we cast to access secondaryFiles
727 const secondaryFiles = (mainFile as unknown as FileWithSecondaryFiles)?.secondaryFiles || [];
728 const files = [...(mainFile && !(Array.isArray(mainFile) && mainFile.length === 0) ? [mainFile] : []), ...secondaryFiles];
729 const mainFilePdhUrl = mainFile ? getResourcePdhUrl(mainFile, pdh) : "";
731 ? files.map((file, i) => fileToProcessIOValue(file, i > 0, auth, pdh, i > 0 ? mainFilePdhUrl : ""))
732 : [{ display: <EmptyValue /> }];
734 case isPrimitiveOfType(input, CWLType.DIRECTORY):
735 const directory = (input as DirectoryCommandInputParameter).value;
736 return directory !== undefined && !(Array.isArray(directory) && directory.length === 0)
737 ? [directoryToProcessIOValue(directory, auth, pdh)]
738 : [{ display: <EmptyValue /> }];
740 case getEnumType(input) !== null:
741 const enumValue = (input as EnumCommandInputParameter).value;
742 return enumValue !== undefined && enumValue ? [{ display: <PrimitiveTooltip data={enumValue}>{enumValue}</PrimitiveTooltip> }] : [{ display: <EmptyValue /> }];
744 case isArrayOfType(input, CWLType.STRING):
745 const strArray = (input as StringArrayCommandInputParameter).value || [];
746 return strArray.length ? [{ display: <PrimitiveArrayTooltip data={strArray}>{strArray.map(val => renderPrimitiveValue(val, true))}</PrimitiveArrayTooltip> }] : [{ display: <EmptyValue /> }];
748 case isArrayOfType(input, CWLType.INT):
749 case isArrayOfType(input, CWLType.LONG):
750 const intArray = (input as IntArrayCommandInputParameter).value || [];
751 return intArray.length ? [{ display: <PrimitiveArrayTooltip data={intArray}>{intArray.map(val => renderPrimitiveValue(val, true))}</PrimitiveArrayTooltip> }] : [{ display: <EmptyValue /> }];
753 case isArrayOfType(input, CWLType.FLOAT):
754 case isArrayOfType(input, CWLType.DOUBLE):
755 const floatArray = (input as FloatArrayCommandInputParameter).value || [];
756 return floatArray.length ? [{ display: <PrimitiveArrayTooltip data={floatArray}>{floatArray.map(val => renderPrimitiveValue(val, true))}</PrimitiveArrayTooltip> }] : [{ display: <EmptyValue /> }];
758 case isArrayOfType(input, CWLType.FILE):
759 const fileArrayMainFiles = (input as FileArrayCommandInputParameter).value || [];
760 const firstMainFilePdh = fileArrayMainFiles.length > 0 && fileArrayMainFiles[0] ? getResourcePdhUrl(fileArrayMainFiles[0], pdh) : "";
762 // Convert each main and secondaryFiles into array of ProcessIOValue preserving ordering
763 let fileArrayValues: ProcessIOValue[] = [];
764 for (let i = 0; i < fileArrayMainFiles.length; i++) {
765 const secondaryFiles = (fileArrayMainFiles[i] as unknown as FileWithSecondaryFiles)?.secondaryFiles || [];
766 fileArrayValues.push(
767 // Pass firstMainFilePdh to secondary files and every main file besides the first to hide pdh if equal
768 ...(fileArrayMainFiles[i] ? [fileToProcessIOValue(fileArrayMainFiles[i], false, auth, pdh, i > 0 ? firstMainFilePdh : "")] : []),
769 ...secondaryFiles.map(file => fileToProcessIOValue(file, true, auth, pdh, firstMainFilePdh))
773 return fileArrayValues.length ? fileArrayValues : [{ display: <EmptyValue /> }];
775 case isArrayOfType(input, CWLType.DIRECTORY):
776 const directories = (input as DirectoryArrayCommandInputParameter).value || [];
777 return directories.length ? directories.map(directory => directoryToProcessIOValue(directory, auth, pdh)) : [{ display: <EmptyValue /> }];
780 return [{ display: <UnsupportedValue /> }];
784 interface PrimitiveTooltipProps {
785 data: boolean | number | string;
788 const PrimitiveTooltip = (props: React.PropsWithChildren<PrimitiveTooltipProps>) => (
789 <Tooltip title={typeof props.data !== 'object' ? String(props.data) : ""}>
790 <pre>{props.children}</pre>
794 interface PrimitiveArrayTooltipProps {
798 const PrimitiveArrayTooltip = (props: React.PropsWithChildren<PrimitiveArrayTooltipProps>) => (
799 <Tooltip title={props.data.join(', ')}>
800 <span>{props.children}</span>
805 const renderPrimitiveValue = (value: any, asChip: boolean) => {
806 const isObject = typeof value === "object";
811 label={String(value)}
812 style={{marginRight: "10px"}}
818 return asChip ? <UnsupportedValueChip /> : <UnsupportedValue />;
823 * @returns keep url without keep: prefix
825 const getKeepUrl = (file: File | Directory, pdh?: string): string => {
826 const isKeepUrl = file.location?.startsWith("keep:") || false;
827 const keepUrl = isKeepUrl ? file.location?.replace("keep:", "") : pdh ? `${pdh}/${file.location}` : file.location;
828 return keepUrl || "";
831 interface KeepUrlProps {
833 res: File | Directory;
837 const getResourcePdhUrl = (res: File | Directory, pdh?: string): string => {
838 const keepUrl = getKeepUrl(res, pdh);
839 return keepUrl ? keepUrl.split("/").slice(0, 1)[0] : "";
842 const KeepUrlBase = withStyles(styles)(({ auth, res, pdh, classes }: KeepUrlProps & WithStyles<CssRules>) => {
843 const pdhUrl = getResourcePdhUrl(res, pdh);
844 // Passing a pdh always returns a relative wb2 collection url
845 const pdhWbPath = getNavUrl(pdhUrl, auth);
846 return pdhUrl && pdhWbPath ? (
847 <Tooltip title={<>View collection in Workbench<br />{pdhUrl}</>}>
850 className={classes.keepLink}
860 const KeepUrlPath = withStyles(styles)(({ auth, res, pdh, classes }: KeepUrlProps & WithStyles<CssRules>) => {
861 const keepUrl = getKeepUrl(res, pdh);
862 const keepUrlParts = keepUrl ? keepUrl.split("/") : [];
863 const keepUrlPath = keepUrlParts.length > 1 ? keepUrlParts.slice(1).join("/") : "";
865 const keepUrlPathNav = getKeepNavUrl(auth, res, pdh);
866 return keepUrlPathNav ? (
867 <Tooltip classes={{tooltip: classes.wrapTooltip}} title={<>View in keep-web<br />{keepUrlPath || "/"}</>}>
869 className={classes.keepLink}
870 href={keepUrlPathNav}
872 rel="noopener noreferrer"
882 const getKeepNavUrl = (auth: AuthState, file: File | Directory, pdh?: string): string => {
883 let keepUrl = getKeepUrl(file, pdh);
884 return getInlineFileUrl(
885 `${auth.config.keepWebServiceUrl}/c=${keepUrl}?api_token=${auth.apiToken}`,
886 auth.config.keepWebServiceUrl,
887 auth.config.keepWebInlineServiceUrl
891 const getImageUrl = (auth: AuthState, file: File, pdh?: string): string => {
892 const keepUrl = getKeepUrl(file, pdh);
893 return getInlineFileUrl(
894 `${auth.config.keepWebServiceUrl}/c=${keepUrl}?api_token=${auth.apiToken}`,
895 auth.config.keepWebServiceUrl,
896 auth.config.keepWebInlineServiceUrl
900 const isFileImage = (basename?: string): boolean => {
901 return basename ? (mime.getType(basename) || "").startsWith("image/") : false;
904 const isFileUrl = (location?: string): boolean =>
905 !!location && !KEEP_URL_REGEX.exec(location) && (location.startsWith("http://") || location.startsWith("https://"));
907 const normalizeDirectoryLocation = (directory: Directory): Directory => {
908 if (!directory.location) {
913 location: (directory.location || "").endsWith("/") ? directory.location : directory.location + "/",
917 const directoryToProcessIOValue = (directory: Directory, auth: AuthState, pdh?: string): ProcessIOValue => {
918 if (isExternalValue(directory)) {
919 return { display: <UnsupportedValue /> };
922 const normalizedDirectory = normalizeDirectoryLocation(directory);
927 res={normalizedDirectory}
934 res={normalizedDirectory}
941 type MuiLinkWithTooltipProps = WithStyles<CssRules> & React.PropsWithChildren<LinkProps>;
943 const MuiLinkWithTooltip = withStyles(styles)((props: MuiLinkWithTooltipProps) => (
944 <Tooltip title={props.title} classes={{tooltip: props.classes.wrapTooltip}}>
951 const fileToProcessIOValue = (file: File, secondary: boolean, auth: AuthState, pdh: string | undefined, mainFilePdh: string): ProcessIOValue => {
952 if (isExternalValue(file)) {
953 return { display: <UnsupportedValue /> };
956 if (isFileUrl(file.location)) {
963 title={file.location}
966 </MuiLinkWithTooltip>
972 const resourcePdh = getResourcePdhUrl(file, pdh);
982 imageUrl: isFileImage(file.basename) ? getImageUrl(auth, file, pdh) : undefined,
984 resourcePdh !== mainFilePdh ? (
996 const isExternalValue = (val: any) => Object.keys(val).includes("$import") || Object.keys(val).includes("$include");
998 export const EmptyValue = withStyles(styles)(({ classes }: WithStyles<CssRules>) => <span className={classes.emptyValue}>No value</span>);
1000 const UnsupportedValue = withStyles(styles)(({ classes }: WithStyles<CssRules>) => <span className={classes.emptyValue}>Cannot display value</span>);
1002 const SecretValue = withStyles(styles)(({ classes }: WithStyles<CssRules>) => <span className={classes.emptyValue}>Cannot display secret</span>);
1004 const UnsupportedValueChip = withStyles(styles)(({ classes }: WithStyles<CssRules>) => (
1007 label={"Cannot display value"}