chore(studio): drop unrelated changes from pr

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Made-with: Cursor
This commit is contained in:
Jordi EnricandClaude Opus 4.6 committed 2026-04-07 12:37:25 +02:00
1 parent 764fd209e9
commit fcdcb5ee74
3 files changed
+6 -51

No files matched your search

@@ -12,6 +12,7 @@ import type { Sort, SupaColumn, SupaTable } from './types'
import { formatClipboardValue } from './utils/common'
import type { Filter, SavedState, SupaRow } from '@/components/grid/types'
import { Entity, isTableLike } from '@/data/table-editor/table-editor-types'
import { BASE_PATH } from '@/lib/constants'
import { QueuedOperation, QueuedOperationType } from '@/state/table-editor-operation-queue.types'
export function formatSortURLParams(tableName: string, sort?: string[]): Sort[] {
@@ -158,7 +159,7 @@ export function buildTableEditorUrl({
tableId: number
schema?: string
}) {
const url = new URL(`/project/${projectRef}/editor/${tableId}`, location.origin)
const url = new URL(`${BASE_PATH}/project/${projectRef}/editor/${tableId}`, location.origin)
// If the schema is provided, add it to the URL so that the left sidebar is opened to the correct schema
if (schema) {
@@ -172,7 +173,7 @@ export function buildTableEditorUrl({
if (savedState?.filters && savedState.filters.length > 0) {
savedState.filters?.forEach((filter) => url.searchParams.append('filter', filter))
}
return url.pathname + url.search
return url.toString()
}
export function saveTableEditorStateToLocalStorage({
@@ -145,7 +145,9 @@ export const ProjectCard = ({
</div>
</div>
}
footer={<ProjectCardStatus projectStatus={projectStatus} />}
footer={
<ProjectCardStatus projectStatus={projectStatus} resourceWarnings={resourceWarnings} />
}
containerElement={<ProjectIndexPageLink projectRef={projectRef} />}
/>
</li>
@@ -1,48 +0,0 @@
import { useParams } from 'common'
import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
import { Zap } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button, cn } from 'ui'
export const NanoInstanceUpgradeBanner = () => {
const { ref } = useParams()
const router = useRouter()
const { data: org } = useSelectedOrganizationQuery()
const { data: project } = useSelectedProjectQuery()
const isOnNano = project?.infra_compute_size === 'nano'
const isOnPaidPlan = org?.plan?.id !== undefined && org.plan.id !== 'free'
const isOnComputeSettingsPage = router.pathname.endsWith('/settings/compute-and-disk')
if (!isOnNano || !isOnPaidPlan || isOnComputeSettingsPage) {
return null
}
return (
<Alert_Shadcn_
variant="warning"
className={cn(
'flex items-center justify-between',
'border-0 border-r-0 rounded-none [&>svg]:left-6 px-6 [&>svg]:w-[26px] [&>svg]:h-[26px]'
)}
>
<Zap />
<div className="">
<AlertTitle_Shadcn_>Free upgrade to Micro compute available</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_>
Your project is on a Nano instance which has limited resources. This can cause backups to
fail, connection timeouts, and slow performance. Micro compute is included in your plan at
no additional cost.
</AlertDescription_Shadcn_>
</div>
<div className="flex items-center gap-x-2">
<Button asChild type="default">
<Link href={`/project/${ref}/settings/compute-and-disk`}>Upgrade to Micro</Link>
</Button>
</div>
</Alert_Shadcn_>
)
}