Home New: Project Usage (#38339)

* new home top

* advisors

* add project usage section

* fix ts

* postgres

* add advisor section

* Nit

* Nit

* Attempt to fix ui library build issue

* Revert changes to Row/index.tsx

* Fix icon positioning

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
This commit is contained in:
Saxon Fletcher
2025-09-12 09:34:28 +10:00
committed by GitHub
parent 262d05cca3
commit 3bea8f5bf0
6 changed files with 621 additions and 11 deletions

View File

@@ -26,11 +26,13 @@ export const LogsBarChart = ({
onBarClick,
EmptyState,
DateTimeFormat = 'MMM D, YYYY, hh:mma',
height = '80px',
}: {
data: LogsBarChartDatum[]
onBarClick?: (datum: LogsBarChartDatum, tooltipData?: CategoricalChartState) => void
EmptyState?: ReactNode
DateTimeFormat?: string
height?: string
}) => {
const [focusDataIndex, setFocusDataIndex] = useState<number | null>(null)
@@ -58,7 +60,7 @@ export const LogsBarChart = ({
},
} satisfies ChartConfig
}
className="h-[80px]"
style={{ height }}
>
<RechartBarChart
data={data}

View File

@@ -1,13 +1,13 @@
'use client'
import { ChevronLeft, ChevronRight } from 'lucide-react'
import type React from 'react'
import type { ReactNode } from 'react'
import { forwardRef, useEffect, useMemo, useRef, useState } from 'react'
import { Button, cn } from 'ui'
import type { ReactNode } from 'react'
import { ChevronLeft, ChevronRight } from 'lucide-react'
interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
// columns can be a fixed number or an array [lg, md, sm]
/** columns can be a fixed number or an array [lg, md, sm] */
columns: number | [number, number, number]
children: ReactNode
className?: string
@@ -145,9 +145,8 @@ export const Row = forwardRef<HTMLDivElement, RowProps>(function Row(
onClick={scrollLeft}
className="absolute w-8 h-8 left-0 top-1/2 -translate-y-1/2 z-10 rounded-full p-2"
aria-label="Scroll left"
>
<ChevronLeft className="w-4 h-4" />
</Button>
icon={<ChevronLeft className="w-4 h-4" />}
/>
)}
{showArrows && canScrollRight && (
@@ -156,9 +155,8 @@ export const Row = forwardRef<HTMLDivElement, RowProps>(function Row(
onClick={scrollRight}
className="absolute w-8 h-8 right-0 top-1/2 -translate-y-1/2 z-10 rounded-full p-2"
aria-label="Scroll right"
>
<ChevronRight className="w-4 h-4" />
</Button>
icon={<ChevronRight className="w-4 h-4" />}
/>
)}
<div