> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siftstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reports reference

> Fields, statuses, and settings for Reports in Sift

export const MintTable = ({columns = [], rows = [], columnWidths = []}) => {
  const pushTextWithLineBreaks = (parts, text, keyBase) => {
    const segments = String(text).split(/\\n|\n/);
    segments.forEach((segment, idx) => {
      if (segment) {
        parts.push(<span key={`${keyBase}-text-${idx}`}>{segment}</span>);
      }
      if (idx < segments.length - 1) {
        parts.push(<br key={`${keyBase}-br-${idx}`} />);
      }
    });
  };
  const parseMarkdown = text => {
    if (text === null || text === undefined) return "";
    const str = String(text);
    const parts = [];
    let lastIndex = 0;
    const pattern = /(`[^`]+`|\*\*[^*]+\*\*|\*[^*]+\*|\[([^\]]+)\]\(([^)]+)\))/g;
    let match;
    while (true) {
      match = pattern.exec(str);
      if (match === null) {
        break;
      }
      if (match.index > lastIndex) {
        pushTextWithLineBreaks(parts, str.substring(lastIndex, match.index), `before-${lastIndex}`);
      }
      const fullMatch = match[0];
      if (fullMatch.startsWith("`") && fullMatch.endsWith("`")) {
        parts.push(<code key={match.index}>{fullMatch.slice(1, -1)}</code>);
      } else if (fullMatch.startsWith("**") && fullMatch.endsWith("**")) {
        parts.push(<strong key={match.index}>{fullMatch.slice(2, -2)}</strong>);
      } else if (fullMatch.startsWith("*") && fullMatch.endsWith("*")) {
        parts.push(<em key={match.index}>{fullMatch.slice(1, -1)}</em>);
      } else if (fullMatch.startsWith("[")) {
        const linkText = match[2];
        const linkUrl = match[3];
        parts.push(<a key={match.index} href={linkUrl} className="text-black-600 dark:text-black-400">
            {linkText}
          </a>);
      }
      lastIndex = pattern.lastIndex;
    }
    if (lastIndex < str.length) {
      pushTextWithLineBreaks(parts, str.substring(lastIndex), `tail-${lastIndex}`);
    }
    if (parts.length > 0) {
      return parts;
    }
    const plainParts = [];
    pushTextWithLineBreaks(plainParts, str, "plain");
    return plainParts.length ? plainParts : str;
  };
  const safeColumns = Array.isArray(columns) ? columns : [];
  const safeRows = Array.isArray(rows) ? rows : [];
  const safeColumnWidths = Array.isArray(columnWidths) ? columnWidths : [];
  const hasColumnWidths = safeColumnWidths.some(w => w !== null && w !== undefined && w !== "");
  const toCssWidth = width => typeof width === "number" ? `${width}px` : String(width);
  const getColumnStyle = idx => {
    const rawWidth = safeColumnWidths[idx];
    if (rawWidth === null || rawWidth === undefined || rawWidth === "") {
      return undefined;
    }
    const width = toCssWidth(rawWidth);
    return {
      width,
      minWidth: width
    };
  };
  const containerStyle = hasColumnWidths ? undefined : {
    overflowX: "auto"
  };
  const tableStyle = hasColumnWidths ? {
    tableLayout: "fixed",
    width: "100%"
  } : {
    width: "max-content",
    minWidth: "100%"
  };
  if (!Array.isArray(columns) || !Array.isArray(rows) || !Array.isArray(columnWidths)) {
    console.warn("MintTable received invalid props:", {
      columns,
      rows,
      columnWidths
    });
  }
  if (!safeColumns.length && !safeRows.length) {
    return null;
  }
  return <div className="mint-table-container" style={containerStyle}>
      <table style={tableStyle}>
        {hasColumnWidths && <colgroup>
            {safeColumns.map((_, idx) => {
    const style = getColumnStyle(idx);
    return <col key={idx} style={style} />;
  })}
          </colgroup>}
        <thead>
          <tr>
            {safeColumns.map((col, idx) => <th key={idx} className="text-left" style={getColumnStyle(idx)}>
                <b>{parseMarkdown(col)}</b>
              </th>)}
          </tr>
        </thead>
        <tbody>
          {safeRows.map((row, rIdx) => {
    const safeRow = Array.isArray(row) ? row : [];
    return <tr key={rIdx}>
                {safeRow.map((cell, cIdx) => <td key={cIdx} style={getColumnStyle(cIdx)}>
                    {parseMarkdown(cell)}
                  </td>)}
              </tr>;
  })}
        </tbody>
      </table>
    </div>;
};

A Report evaluates one or more Rules against a specific Run and collects the results in one place. Use a Report when you want to run detection logic against a completed Run and review the flagged issues. To review multiple Runs together, add their Reports to a [Campaign](/documentation/reference/campaigns-reference).

## Report fields

<MintTable
  columns={['Field', 'Description']}
  rows={[
['Name', 'The display name of the Report.'],
['Description', 'An optional description of the Report.'],
['Run', 'The Run this Report evaluates. Set at creation and cannot be changed.'],
['Report Template', 'The template used to populate the Rules list, if any. If no template was used, Rules were selected manually at creation time.'],
['Tags', 'Optional labels for organizing and filtering Reports.'],
['Created by', 'The user who generated the Report.'],
['Created date', 'When the Report was generated.'],
['Modified by', 'The user who last modified the Report.'],
['Modified date', 'When the Report was last modified.'],
['Archived', 'Whether the Report has been archived. Archived Reports are hidden from the default view but are not deleted.'],
]}
/>

## Rule review states

Each Rule in a Report has a review state derived from the state of its Annotations. Select a state button at the top of the Rules list to filter Rules by that state.

<MintTable
  columns={['State', 'Description']}
  rows={[
['Open', 'All Annotations for this Rule are open and unreviewed.'],
['Accepted', 'All Annotations for this Rule have been accepted.'],
['Failed', 'At least one Annotation for this Rule has been marked as failed.'],
['Error', 'Sift encountered an infrastructure error when evaluating this Rule. No Annotations were produced.'],
]}
/>

## Archiving Reports

Reports can be archived but not deleted. Archiving removes a Report from the default view without destroying its data.

## Related reference topics

* [Rule settings](/documentation/reference/rule-settings)
* [Annotations reference](/documentation/reference/annotations-reference)
* [Campaigns reference](/documentation/reference/campaigns-reference)
* [Report chart display options](/documentation/reference/report-chart-display-options)

## Related workflows

* [Detect and review issues in a Run](/documentation/review/detect-and-review-issues-in-a-run)
* [Set up a repeatable review checklist](/documentation/review/set-up-a-repeatable-review-checklist)
* [Track a multi-Run review campaign](/documentation/review/track-a-multi-run-review-campaign)
