diff --git a/.github/workflows/ci-tinybird.yaml b/.github/workflows/ci-tinybird.yaml deleted file mode 100644 index caa8d02f3..000000000 --- a/.github/workflows/ci-tinybird.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: CI Tinybird -on: - push: - branches: - - feature/reimplement-tinybird - - main - paths: - - 'package.json' - - 'packages/twenty-tinybird/**' - - pull_request: - paths: - - 'package.json' - - 'packages/twenty-tinybird/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -env: - TINYBIRD_HOST: https://api.eu-central-1.aws.tinybird.co - TINYBIRD_TOKEN: ${{ secrets.TB_ADMIN_TOKEN }} - -jobs: - changed-files-check: - uses: ./.github/workflows/changed-files.yaml - with: - files: packages/twenty-tinybird/** - ci: - runs-on: ubuntu-latest - needs: changed-files-check - if: needs.changed-files-check.outputs.any_changed == 'true' - timeout-minutes: 10 - defaults: - run: - working-directory: './packages/twenty-tinybird' - services: - tinybird: - image: tinybirdco/tinybird-local:beta - ports: - - 7181:7181 - steps: - - uses: actions/checkout@master - with: - fetch-depth: 1 - ref: ${{ github.event.pull_request.head.sha }} - - name: Install Tinybird CLI - run: curl https://tinybird.co | sh - - name: Build project - run: tb build - - name: Test project - run: tb test run - diff --git a/packages/twenty-front/src/modules/analytics/components/AnalyticsActivityGraph.tsx b/packages/twenty-front/src/modules/analytics/components/AnalyticsActivityGraph.tsx deleted file mode 100644 index cf58a78ae..000000000 --- a/packages/twenty-front/src/modules/analytics/components/AnalyticsActivityGraph.tsx +++ /dev/null @@ -1,179 +0,0 @@ -import { WebhookAnalyticsTooltip } from '@/analytics/components/WebhookAnalyticsTooltip'; -import { ANALYTICS_GRAPH_DESCRIPTION_MAP } from '@/analytics/constants/AnalyticsGraphDescriptionMap'; -import { ANALYTICS_GRAPH_TITLE_MAP } from '@/analytics/constants/AnalyticsGraphTitleMap'; -import { useGraphData } from '@/analytics/hooks/useGraphData'; -import { analyticsGraphDataComponentState } from '@/analytics/states/analyticsGraphDataComponentState'; -import { AnalyticsComponentProps as AnalyticsActivityGraphProps } from '@/analytics/types/AnalyticsComponentProps'; -import { computeAnalyticsGraphDataFunction } from '@/analytics/utils/computeAnalyticsGraphDataFunction'; -import { Select } from '@/ui/input/components/Select'; -import { useRecoilComponentStateV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentStateV2'; -import { useTheme } from '@emotion/react'; -import styled from '@emotion/styled'; -import { ResponsiveLine } from '@nivo/line'; -import { Section } from '@react-email/components'; -import { useId, useState } from 'react'; -import { H2Title } from 'twenty-ui'; - -const StyledGraphContainer = styled.div` - background-color: ${({ theme }) => theme.background.secondary}; - border: 1px solid ${({ theme }) => theme.border.color.medium}; - border-radius: ${({ theme }) => theme.border.radius.md}; - height: 199px; - - padding: ${({ theme }) => theme.spacing(4, 2, 2, 2)}; - width: 496px; -`; -const StyledTitleContainer = styled.div` - align-items: flex-start; - display: flex; - justify-content: space-between; -`; - -export const AnalyticsActivityGraph = ({ - recordId, - endpointName, -}: AnalyticsActivityGraphProps) => { - const [analyticsGraphData, setAnalyticsGraphData] = useRecoilComponentStateV2( - analyticsGraphDataComponentState, - ); - const theme = useTheme(); - - const [windowLengthGraphOption, setWindowLengthGraphOption] = useState< - '7D' | '1D' | '12H' | '4H' - >('7D'); - - const { fetchGraphData } = useGraphData({ - recordId, - endpointName, - }); - - const transformDataFunction = computeAnalyticsGraphDataFunction(endpointName); - - const dropdownId = useId(); - return ( - <> - {analyticsGraphData.length ? ( -
- - -