mirror of
https://github.com/Canner/WrenAI.git
synced 2026-09-24 23:29:49 +08:00
fix(wren-ui): prompt result add wrapper after rebasing (#916)
This commit is contained in:
@@ -859,8 +859,8 @@ export enum ResultCandidateType {
|
||||
export type ResultQuestion = {
|
||||
__typename?: 'ResultQuestion';
|
||||
category: Scalars['String'];
|
||||
explanation: Scalars['String'];
|
||||
question: Scalars['String'];
|
||||
sql: Scalars['String'];
|
||||
};
|
||||
|
||||
export type SampleDatasetInput = {
|
||||
|
||||
@@ -108,7 +108,7 @@ export type InstantRecommendedQuestionsQueryVariables = Types.Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type InstantRecommendedQuestionsQuery = { __typename?: 'Query', instantRecommendedQuestions: { __typename?: 'RecommendedQuestionsTask', status: Types.RecommendedQuestionsTaskStatus, questions: Array<{ __typename?: 'ResultQuestion', question: string, category: string, explanation: string }>, error?: { __typename?: 'Error', code?: string | null, shortMessage?: string | null, message?: string | null, stacktrace?: Array<string | null> | null } | null } };
|
||||
export type InstantRecommendedQuestionsQuery = { __typename?: 'Query', instantRecommendedQuestions: { __typename?: 'RecommendedQuestionsTask', status: Types.RecommendedQuestionsTaskStatus, questions: Array<{ __typename?: 'ResultQuestion', question: string, category: string, sql: string }>, error?: { __typename?: 'Error', code?: string | null, shortMessage?: string | null, message?: string | null, stacktrace?: Array<string | null> | null } | null } };
|
||||
|
||||
export const CommonErrorFragmentDoc = gql`
|
||||
fragment CommonError on Error {
|
||||
@@ -652,7 +652,7 @@ export const InstantRecommendedQuestionsDocument = gql`
|
||||
questions {
|
||||
question
|
||||
category
|
||||
explanation
|
||||
sql
|
||||
}
|
||||
error {
|
||||
...CommonError
|
||||
|
||||
@@ -195,7 +195,7 @@ export const INSTANT_RECOMMENDED_QUESTIONS = gql`
|
||||
questions {
|
||||
question
|
||||
category
|
||||
explanation
|
||||
sql
|
||||
}
|
||||
error {
|
||||
...CommonError
|
||||
|
||||
@@ -201,7 +201,7 @@ const GeneralAnswer = (props: Props) => {
|
||||
getRecommendedQuestionProps(recommendedQuestions);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Wrapper>
|
||||
<div className="d-flex justify-space-between">
|
||||
<div className="d-flex align-start">
|
||||
<MessageOutlined className="mr-2 mt-1 geekblue-6" />
|
||||
@@ -239,7 +239,7 @@ const GeneralAnswer = (props: Props) => {
|
||||
onSelect={onSelectQuestion}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Wrapper>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user