feat: unify creation entry templates

This commit is contained in:
2026-06-03 10:24:03 +08:00
parent b0865cfa19
commit 3f742fbaca
25 changed files with 820 additions and 346 deletions

View File

@@ -26,6 +26,7 @@ type SquareHoleAgentWorkspaceProps = {
onBack: () => void;
onSubmitMessage: (payload: SendSquareHoleMessageRequest) => void;
onExecuteAction: (payload: ExecuteSquareHoleActionRequest) => void;
showBackButton?: boolean;
};
const SQUARE_HOLE_AGENT_THEME: CreationAgentTheme = {
@@ -108,6 +109,7 @@ export function SquareHoleAgentWorkspace({
onBack,
onSubmitMessage,
onExecuteAction,
showBackButton = true,
}: SquareHoleAgentWorkspaceProps) {
return (
<CreationAgentWorkspace
@@ -121,6 +123,7 @@ export function SquareHoleAgentWorkspace({
isBusy={isBusy}
error={error}
quickActions={SQUARE_HOLE_QUICK_ACTIONS}
showBackButton={showBackButton}
onBack={onBack}
onSubmitText={(text) => {
onSubmitMessage(buildSquareHoleChatPayload({ text }));