(props: {readonly metricsId?: Id} & StoreProp)
| 760 | ); |
| 761 | |
| 762 | const MetricsView = (props: {readonly metricsId?: Id} & StoreProp) => { |
| 763 | const metrics = useMetrics(props.metricsId); |
| 764 | const metricIds = useMetricIds(metrics); |
| 765 | return ( |
| 766 | <> |
| 767 | {isUndefined(metrics()) ? ( |
| 768 | EMPTY_STRING |
| 769 | ) : ( |
| 770 | <Details |
| 771 | uniqueId={getUniqueId('m', props.metricsId)} |
| 772 | title={'Metrics: ' + (props.metricsId ?? DEFAULT)} |
| 773 | s={props.s} |
| 774 | > |
| 775 | {arrayIsEmpty(metricIds()) ? ( |
| 776 | 'No metrics defined' |
| 777 | ) : ( |
| 778 | <table> |
| 779 | <thead> |
| 780 | <tr> |
| 781 | <th>Metric Id</th> |
| 782 | <th>Table Id</th> |
| 783 | <th>Metric</th> |
| 784 | </tr> |
| 785 | </thead> |
| 786 | <tbody> |
| 787 | {arrayMap(metricIds(), (metricId) => ( |
| 788 | <MetricRow metrics={metrics()} metricId={metricId} /> |
| 789 | ))} |
| 790 | </tbody> |
| 791 | </table> |
| 792 | )} |
| 793 | </Details> |
| 794 | )} |
| 795 | </> |
| 796 | ); |
| 797 | }; |
| 798 | |
| 799 | const SliceView = ( |
| 800 | props: { |
nothing calls this directly
no test coverage detected
searching dependent graphs…