@@ -23,6 +23,7 @@ import { DatePickerValue, LogsDatePicker } from '../Settings/Logs/Logs.DatePicke
2323import { REPORTS_DATEPICKER_HELPERS } from './Reports.constants'
2424import type { ReportFilterItem } from './Reports.types'
2525import { Popover , PopoverContent , PopoverTrigger } from '@ui/components/shadcn/ui/popover'
26+ import { Network } from 'lucide-react'
2627
2728interface ReportFilterBarProps {
2829 filters : ReportFilterItem [ ]
@@ -46,40 +47,35 @@ const PRODUCT_FILTERS = [
4647 key : 'rest' ,
4748 filterKey : 'request.path' ,
4849 filterValue : '/rest' ,
49- label : 'REST' ,
50- description : 'Requests made to PostgREST' ,
50+ label : 'Data API (PostgREST)' ,
5151 icon : Database ,
5252 } ,
5353 {
5454 key : 'auth' ,
5555 filterKey : 'request.path' ,
5656 filterValue : '/auth' ,
5757 label : 'Auth' ,
58- description : 'Auth and authorization requests' ,
5958 icon : Auth ,
6059 } ,
6160 {
6261 key : 'storage' ,
6362 filterKey : 'request.path' ,
6463 filterValue : '/storage' ,
6564 label : 'Storage' ,
66- description : 'Storage asset requests' ,
6765 icon : Storage ,
6866 } ,
6967 {
7068 key : 'realtime' ,
7169 filterKey : 'request.path' ,
7270 filterValue : '/realtime' ,
7371 label : 'Realtime' ,
74- description : 'Realtime connection requests' ,
7572 icon : Realtime ,
7673 } ,
7774 {
7875 key : 'graphql' ,
7976 filterKey : 'request.path' ,
8077 filterValue : '/graphql' ,
81- label : 'GraphQL' ,
82- description : 'Requests made to pg_graphql' ,
78+ label : 'GraphQL (pg_graphql)' ,
8379 icon : null ,
8480 } ,
8581]
@@ -210,7 +206,8 @@ const ReportFilterBar = ({
210206 </ DropdownMenuTrigger >
211207 < DropdownMenuContent side = "bottom" align = "start" >
212208 < DropdownMenuItem onClick = { ( ) => handleProductFilterChange ( null ) } >
213- < p > All Requests</ p >
209+ < Network size = { 14 } strokeWidth = { 1.5 } className = "mr-2" />
210+ All Requests
214211 </ DropdownMenuItem >
215212 < DropdownMenuSeparator />
216213 { PRODUCT_FILTERS . map ( ( productFilter ) => {
@@ -226,13 +223,13 @@ const ReportFilterBar = ({
226223 { productFilter . key === 'graphql' ? (
227224 < SVG
228225 src = { `${ BASE_PATH } /img/graphql.svg` }
229- className = "w-[20px ] h-[20px ] mr-2"
226+ className = "w-[14px ] h-[14px ] mr-2"
230227 preProcessor = { ( code ) =>
231228 code . replace ( / s v g / , 'svg class="m-auto text-color-inherit"' )
232229 }
233230 />
234231 ) : Icon !== null ? (
235- < Icon size = { 20 } strokeWidth = { 1.5 } className = "mr-2" />
232+ < Icon size = { 14 } strokeWidth = { 1.5 } className = "mr-2" />
236233 ) : null }
237234 < div className = "flex flex-col" >
238235 < p
@@ -243,9 +240,6 @@ const ReportFilterBar = ({
243240 >
244241 { productFilter . label }
245242 </ p >
246- < p className = " text-left text-foreground-light inline-block w-[180px]" >
247- { productFilter . description }
248- </ p >
249243 </ div >
250244 </ DropdownMenuItem >
251245 )
0 commit comments