mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
- move navigation components to `apps/studio/components/layouts/Navigation` - add [FloatingMobileToolbar](https://github.com/supabase/supabase/pull/43444/changes#diff-3dffe47fd51ca851d612d8728e03b2dc344ec213d4f3a46a824d3fa32a7cc851) as quick access to tools such as search, assistant, inline editor, etc - behind feature flag and feature preview (true by default as it's a bit annoying to have to enable it all the time as previews are stored in local-storage) - fix sidebar panels closing on viewport resizing (regression from previous pr) https://github.com/user-attachments/assets/d6881e3b-5128-4306-bb82-3ca39c755dba <img width="986" height="697" alt="Screenshot 2026-03-12 at 12 40 11" src="https://github.com/user-attachments/assets/da8511e2-7d01-4237-b814-596031c747c5" />
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import type { SupportFormUrlKeys } from 'components/interfaces/Support/SupportForm.utils'
|
|
import { cn } from 'ui'
|
|
|
|
import { HelpOptionsList } from './HelpOptionsList'
|
|
import type { HelpOptionId } from './HelpPanel.constants'
|
|
|
|
type HelpSectionProps = {
|
|
excludeIds?: HelpOptionId[]
|
|
isPlatform: boolean
|
|
projectRef: string | undefined
|
|
supportLinkQueryParams: Partial<SupportFormUrlKeys> | undefined
|
|
onAssistantClick?: () => void
|
|
onSupportClick?: () => void
|
|
className?: string
|
|
}
|
|
|
|
export const HelpSection = ({
|
|
excludeIds = [],
|
|
isPlatform,
|
|
projectRef,
|
|
supportLinkQueryParams,
|
|
onAssistantClick,
|
|
onSupportClick,
|
|
className,
|
|
}: HelpSectionProps) => {
|
|
const description = projectRef
|
|
? 'Start with our Assistant, docs, or community.'
|
|
: 'Start with our docs or community.'
|
|
|
|
return (
|
|
<div className={cn('flex flex-col gap-4', className)}>
|
|
<div className="flex flex-col gap-0.5">
|
|
<h5 className="text-foreground">Need help with your project?</h5>
|
|
<p className="text-xs text-foreground-lighter text-balance">{description}</p>
|
|
</div>
|
|
<HelpOptionsList
|
|
excludeIds={excludeIds}
|
|
isPlatform={isPlatform}
|
|
projectRef={projectRef}
|
|
supportLinkQueryParams={supportLinkQueryParams}
|
|
onAssistantClick={onAssistantClick}
|
|
onSupportClick={onSupportClick}
|
|
size="tiny"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|