update studio

This commit is contained in:
2025-11-24 19:54:58 -03:00
parent 698d5bd216
commit 89b92948a6
6 changed files with 13 additions and 16 deletions

View File

@@ -7,7 +7,6 @@ import { MeiliSearchFilterBuilder } from 'meilisearch-helper'
import { DataTable } from '@repo/ui/components/data-table' import { DataTable } from '@repo/ui/components/data-table'
import { Skeleton } from '@repo/ui/components/skeleton' import { Skeleton } from '@repo/ui/components/skeleton'
import { createSearch } from '@repo/util/meili' import { createSearch } from '@repo/util/meili'
import { columns, type Order } from '@repo/ui/routes/orders/columns' import { columns, type Order } from '@repo/ui/routes/orders/columns'
export function meta({}: Route.MetaArgs) { export function meta({}: Route.MetaArgs) {

View File

@@ -12,6 +12,7 @@
"typecheck": "npm run cf-typegen && react-router typegen && tsc --noEmit" "typecheck": "npm run cf-typegen && react-router typegen && tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@repo/util": "*",
"@repo/auth": "*", "@repo/auth": "*",
"@repo/ui": "*", "@repo/ui": "*",
"fuse.js": "^7.1.0", "fuse.js": "^7.1.0",

1
package-lock.json generated
View File

@@ -217,6 +217,7 @@
"dependencies": { "dependencies": {
"@repo/auth": "*", "@repo/auth": "*",
"@repo/ui": "*", "@repo/ui": "*",
"@repo/util": "*",
"fuse.js": "^7.1.0", "fuse.js": "^7.1.0",
"isbot": "^5.1.31", "isbot": "^5.1.31",
"jose": "^6.1.0", "jose": "^6.1.0",

View File

@@ -14,8 +14,8 @@ import {
DropdownMenuGroup, DropdownMenuGroup,
DropdownMenuItem, DropdownMenuItem,
DropdownMenuTrigger DropdownMenuTrigger
} from '@repo/ui/components/ui/dropdown-menu' } from './ui/dropdown-menu'
import { Button } from '@repo/ui/components/ui/button' import { Button } from './ui/button'
export function ExportMenu({ export function ExportMenu({
name, name,

View File

@@ -1,8 +1,8 @@
import { CheckIcon } from 'lucide-react' import { CheckIcon } from 'lucide-react'
import { useState } from 'react' import { useState } from 'react'
import { Badge } from '@repo/ui/components/ui/badge' import { Badge } from './ui/badge'
import { Button } from '@repo/ui/components/ui/button' import { Button } from './ui/button'
import { import {
Command, Command,
CommandEmpty, CommandEmpty,
@@ -11,16 +11,12 @@ import {
CommandItem, CommandItem,
CommandList, CommandList,
CommandSeparator CommandSeparator
} from '@repo/ui/components/ui/command' } from './ui/command'
import { import { Popover, PopoverContent, PopoverTrigger } from './ui/popover'
Popover, import { Separator } from './ui/separator'
PopoverContent,
PopoverTrigger
} from '@repo/ui/components/ui/popover'
import { Separator } from '@repo/ui/components/ui/separator'
import { cn } from '@repo/ui/lib/utils' import { cn } from '@repo/ui/lib/utils'
interface FacetedFilterProps<TData, TValue> { interface FacetedFilterProps {
title?: string title?: string
value?: string[] value?: string[]
icon: React.ComponentType icon: React.ComponentType
@@ -33,14 +29,14 @@ interface FacetedFilterProps<TData, TValue> {
onChange?: (values: string[]) => void onChange?: (values: string[]) => void
} }
export function FacetedFilter<TData, TValue>({ export function FacetedFilter({
value = [], value = [],
icon: Icon, icon: Icon,
title, title,
options, options,
onChange, onChange,
className className
}: FacetedFilterProps<TData, TValue>) { }: FacetedFilterProps) {
const [selectedValues, setSelectedValues] = useState(new Set(value)) const [selectedValues, setSelectedValues] = useState(new Set(value))
return ( return (

View File

@@ -108,7 +108,7 @@ export function NavUser({
</DropdownMenuItem> </DropdownMenuItem>
<DropdownMenuItem asChild> <DropdownMenuItem asChild>
<Link <Link
to="//scorm.eduseg.workers.dev/payments" to="//scorm.eduseg.workers.dev/orders"
className="cursor-pointer" className="cursor-pointer"
> >
<DollarSignIcon /> <DollarSignIcon />