feat(pilot): InlineNoTemplateDialog — chat-region placement wrapper

Slide-up wrapper around the existing NoTemplateDialog for rendering
in the chat region above the composer (parallel to ProposalBanner).
The chat region's width lets grid-cols-3 finally work as intended.

No change to NoTemplateDialog itself; decision callbacks and card
copy stay identical.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-24 02:56:35 -04:00
parent 04fbfe3b8f
commit 5bcb7aa7c3

View File

@@ -0,0 +1,22 @@
/**
* InlineNoTemplateDialog — chat-region placement wrapper for
* NoTemplateDialog. Renders above the composer (slide-up animation
* matching ProposalBanner), using the full chat-region width so the
* three decision cards fit side-by-side.
*/
import { NoTemplateDialog } from '@/components/pilot/script/NoTemplateDialog'
import type { ComponentProps } from 'react'
type Props = ComponentProps<typeof NoTemplateDialog>
export function InlineNoTemplateDialog(props: Props) {
return (
<div className="border-t border-default bg-bg-page animate-slide-up">
<div className="px-5 py-3">
<NoTemplateDialog {...props} />
</div>
</div>
)
}
export default InlineNoTemplateDialog