let columnDefs:()

in neuron_viewer/src/TransformerDebugger/cards/node_table/NodeTable.tsx [669:697]


    let columnDefs: (ColDef<NodeInfo, any> | ColGroupDef<NodeInfo>)[] = [
      {
        headerName: "Name",
        // Ensure that the column never scrolls out of view when scrolling horizontally.
        pinned: "left",
        sortable: true,
        filter: true,
        field: "name",
        width: 140,
        cellRenderer: (params: any) => {
          const nodeInfo = params.data as NodeInfo;
          return (
            <Link
              target="_blank"
              className={
                nodeInfo.name.startsWith("attn")
                  ? "text-green-500 hover:text-green-700" // attention in green
                  : "text-blue-500 hover:text-blue-700" // everything else in blue
              }
              to={`../${nodeInfo.nodeType}/${nodeInfo.layerIndex}/${
                nodeInfo.activationIndex
              }?promptsOfInterest=${prompts.join(PROMPTS_SEPARATOR)}`}
              relative="path"
            >
              {nodeInfo.name}
            </Link>
          );
        },
      },