function renderInvestigationTooltip()

in src/app/build-status.js [47:82]


function renderInvestigationTooltip(investigation) {
  const fields = [
    {
      name: i18n('Investigator'),
      value: getName(investigation.assignee)
    },
    {
      name: i18n('Assigned by'),
      value: getName(investigation.assignment.user)
    },
    {
      name: i18n('Since'),
      value: toDate(investigation.assignment.timestamp).toLocaleString()
    },
    {
      name: i18n('Resolve'),
      value: investigation.resolution.type === 'manually'
        ? i18n('Manually')
        : i18n('Automatically when fixed')
    },
    {
      name: i18n('Comment'),
      value: investigation.assignment.text
    }
  ];
  return (
    <table>
      <tbody>{fields.filter(it => it.value).map(field => (
        <tr key={field.name} data-test={`investigation-field-${field.name}`}>
          <th data-test="investigation-field-name">{`${field.name}: `}</th>
          <td data-test="investigation-field-value">{field.value}</td>
        </tr>
      ))}</tbody>
    </table>
  );
}