Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function CustomDatePicker({ onChange, onCancel, search }: CustomOptionProps) {
)

return (
<div className="w-full space-y-4">
<div className="w-[300px] space-y-4">
<Calendar
initialFocus
mode="range"
Expand Down
1 change: 1 addition & 0 deletions apps/docs/public/humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Supabase is 100% remote.

Aaron Byrne
Alaister Young
Alan De Los Santos
Aleksi Immonen
Alexander Korotkov
Amy Q
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import { DatePickerValue } from './Logs.DatePickers'
import { FILTER_OPTIONS, LOG_ROUTES_WITH_REPLICA_SUPPORT, LogsTableName } from './Logs.constants'
import type { Filters, LogSearchCallback, LogTemplate } from './Logs.types'

function isBooleanMap(v: unknown): v is Record<string, boolean> {
return typeof v === 'object' && v !== null && !Array.isArray(v)
}

function CustomDateRangePicker({ onChange, onCancel }: CustomOptionProps) {
const [dateRange, setDateRange] = useState<any | undefined>()

Expand Down Expand Up @@ -277,7 +281,12 @@ const PreviewFilterPanelWithUniversal = ({
return
}

;(newFilters[propertyName] as Record<string, boolean>)[condition.value] = true
if (typeof condition.value === 'string') {
const current = newFilters[propertyName]
const next = isBooleanMap(current) ? { ...current } : {}
next[condition.value] = true
newFilters[propertyName] = next
}
}
})

Expand Down
1 change: 1 addition & 0 deletions apps/www/public/.well-known/mcp-registry-auth
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v=MCPv1; k=ed25519; p=NoXlL5xtpMAM/AUDNnBJRRg11eWyAOZaeY8gCD1QKwU=
1 change: 1 addition & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"devDependencies": {
"@types/lodash": "4.17.5",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@vitest/coverage-v8": "^3.0.9",
Expand Down
44 changes: 44 additions & 0 deletions packages/ui-patterns/src/FilterBar/DefaultCommandList.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React from 'react'
import {
Command_Shadcn_,
CommandEmpty_Shadcn_,
CommandGroup_Shadcn_,
CommandItem_Shadcn_,
CommandList_Shadcn_,
} from 'ui'
import { MenuItem } from './menuItems'

type DefaultCommandListProps = {
items: MenuItem[]
highlightedIndex: number
onSelect: (item: MenuItem) => void
includeIcon?: boolean
}

export function DefaultCommandList({
items,
highlightedIndex,
onSelect,
includeIcon = true,
}: DefaultCommandListProps) {
return (
<Command_Shadcn_>
<CommandList_Shadcn_>
<CommandEmpty_Shadcn_>No results found.</CommandEmpty_Shadcn_>
<CommandGroup_Shadcn_>
{items.map((item, idx) => (
<CommandItem_Shadcn_
key={`${item.value}-${item.label}`}
value={item.value}
onSelect={() => onSelect(item)}
className={`text-xs ${idx === highlightedIndex ? 'bg-surface-400' : ''}`}
>
{includeIcon && item.icon}
{item.label}
</CommandItem_Shadcn_>
))}
</CommandGroup_Shadcn_>
</CommandList_Shadcn_>
</Command_Shadcn_>
)
}
Loading
Loading