<commit_before>import { FC } from "react"
import { createFragmentContainer, graphql } from "react-relay"
import { Column, GridColumns, Text } from "@artsy/palette"
import { ArtistInsightAchievements_artist } from "v2/__generated__/ArtistInsightAchievements_artist.graphql"
import { RouterLink } from "v2/System/Router/RouterLink"

interface ArtistInsightAchievementsProps {
  artist: ArtistInsightAchievements_artist
}

interface ArtistAchievementProps {
  type: string
  description?: string
}

export const ArtistAchievement: FC<ArtistAchievementProps> = ({
  type,
  description,
}) => {
  return <h1>Artist Achievement</h1>
}

export const ArtistInsightAchievements: FC<ArtistInsightAchievementsProps> = ({
  artist,
}) => {
  if (!artist.achievements) {
    return null
  }

  return (
    <>
      <Text variant="lg">Career Highlights</Text>
      <GridColumns gridColumnGap={[2, 4]} gridColumn={[1, 2]}>
        <Column>Column</Column>
        <Column>Column</Column>
      </GridColumns>
      <RouterLink to={`${artist.slug}/cv`}>
        See all past shows and fair booths
      </RouterLink>
    </>
  )
}

export const ArtistInsightAchievementsFragmentContainer = createFragmentContainer(
  ArtistInsightAchievements,
  {
    artist: graphql`
      fragment ArtistInsightAchievements_artist on Artist {
        slug
        achievements: insights(
          kind: [SOLO_SHOW, GROUP_SHOW, COLLECTED, REVIEWED, BIENNIAL]
        ) {
          type
          label
          entities
        }
        auctionResultsConnection(
          recordsTrusted: true
          first: 1
          sort: PRICE_AND_DATE_DESC
        ) {
          edges {
            node {
              price_realized: priceRealized {
                display(format: "0.0a")
              }
              organization
              sale_date: saleDate(format: "YYYY")
            }
          }
        }
        artistHighlights: highlights {
          partnersConnection(first: 1, partnerCategory: ["blue-chip"]) {
            edges {
              node {
                categories {
                  slug
                }
              }
            }
          }<commit_msg>update insights query for ArtistInsightAchievements<commit_after>import { FC } from "react"
import { createFragmentContainer, graphql } from "react-relay"
import { Column, GridColumns, Text } from "@artsy/palette"
import { ArtistInsightAchievements_artist } from "v2/__generated__/ArtistInsightAchievements_artist.graphql"
import { RouterLink } from "v2/System/Router/RouterLink"

interface ArtistInsightAchievementsProps {
  artist: ArtistInsightAchievements_artist
}

interface ArtistAchievementProps {
  type: string
  description?: string
}

export const ArtistAchievement: FC<ArtistAchievementProps> = ({
  type,
  description,
}) => {
  return <h1>Artist Achievement</h1>
}

export const ArtistInsightAchievements: FC<ArtistInsightAchievementsProps> = ({
  artist,
}) => {
  if (!artist.achievements) {
    return null
  }

  return (
    <>
      <Text variant="lg">Career Highlights</Text>
      <GridColumns gridColumnGap={[2, 4]} gridColumn={[1, 2]}>
        <Column>Column</Column>
        <Column>Column</Column>
      </GridColumns>
      <RouterLink to={`${artist.slug}/cv`}>
        See all past shows and fair booths
      </RouterLink>
    </>
  )
}

export const ArtistInsightAchievementsFragmentContainer = createFragmentContainer(
  ArtistInsightAchievements,
  {
    artist: graphql`
      fragment ArtistInsightAchievements_artist on Artist {
        slug
        achievements: insights(
          kind: [SOLO_SHOW, GROUP_SHOW, COLLECTED, REVIEWED, BIENNIAL]
        ) {
          type
          label
          entities
          kind
          description
        }
        auctionResultsConnection(
          recordsTrusted: true
          first: 1
          sort: PRICE_AND_DATE_DESC
        ) {
          edges {
            node {
              price_realized: priceRealized {
                display(format: "0.0a")
              }
              organization
              sale_date: saleDate(format: "YYYY")
            }
          }
        }
        artistHighlights: highlights {
          partnersConnection(first: 1, partnerCategory: ["blue-chip"]) {
            edges {
              node {
                categories {
                  slug
                }
              }
            }
          }
{'fraction_non_alphanumeric': 0.0922517609634174, 'fraction_numerical': 0.0054533060668029995, 'mean_word_length': 2.18293564714389, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2771841', 'n_tokens_mistral': 1303, 'n_tokens_neox': 1293, 'n_words': 252}