-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AI Assistant: Enhance thumbs feedback on AI Assistant and extensions …
…(#40746) * centralize prompt types and translations on AI client * compute humanText only when necessary * change extension implementation away from placeholder * add last action to AI Assistant block * add block type to event * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12517741349 Upstream-Ref: Automattic/jetpack@3464284
- Loading branch information
Showing
25 changed files
with
578 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
export declare const LANGUAGE_MAP: { | ||
en: { | ||
label: string; | ||
}; | ||
es: { | ||
label: string; | ||
}; | ||
fr: { | ||
label: string; | ||
}; | ||
de: { | ||
label: string; | ||
}; | ||
it: { | ||
label: string; | ||
}; | ||
pt: { | ||
label: string; | ||
}; | ||
ru: { | ||
label: string; | ||
}; | ||
zh: { | ||
label: string; | ||
}; | ||
ja: { | ||
label: string; | ||
}; | ||
ar: { | ||
label: string; | ||
}; | ||
hi: { | ||
label: string; | ||
}; | ||
ko: { | ||
label: string; | ||
}; | ||
}; | ||
export declare const PROMPT_TONES_MAP: { | ||
formal: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
informal: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
optimistic: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
humorous: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
serious: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
skeptical: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
empathetic: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
confident: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
passionate: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
provocative: { | ||
label: string; | ||
emoji: string; | ||
}; | ||
}; | ||
export declare const PROMPT_TYPE_SUMMARY_BY_TITLE: "titleSummary"; | ||
export declare const PROMPT_TYPE_CONTINUE: "continue"; | ||
export declare const PROMPT_TYPE_SIMPLIFY: "simplify"; | ||
export declare const PROMPT_TYPE_CORRECT_SPELLING: "correctSpelling"; | ||
export declare const PROMPT_TYPE_GENERATE_TITLE: "generateTitle"; | ||
export declare const PROMPT_TYPE_MAKE_LONGER: "makeLonger"; | ||
export declare const PROMPT_TYPE_MAKE_SHORTER: "makeShorter"; | ||
export declare const PROMPT_TYPE_CHANGE_TONE: "changeTone"; | ||
export declare const PROMPT_TYPE_SUMMARIZE: "summarize"; | ||
export declare const PROMPT_TYPE_CHANGE_LANGUAGE: "changeLanguage"; | ||
export declare const PROMPT_TYPE_USER_PROMPT: "userPrompt"; | ||
export declare const PROMPT_TYPE_JETPACK_FORM_CUSTOM_PROMPT: "jetpackFormCustomPrompt"; | ||
export declare const PROMPT_TYPE_TRANSFORM_LIST_TO_TABLE: "transformListToTable"; | ||
export declare const PROMPT_TYPE_WRITE_POST_FROM_LIST: "writePostFromList"; | ||
export declare const TRANSLATE_LABEL: string; | ||
export declare const TONE_LABEL: string; | ||
export declare const CORRECT_SPELLING_LABEL: string; | ||
export declare const SIMPLIFY_LABEL: string; | ||
export declare const SUMMARIZE_LABEL: string; | ||
export declare const MAKE_SHORTER_LABEL: string; | ||
export declare const MAKE_LONGER_LABEL: string; | ||
export declare const TURN_LIST_INTO_TABLE_LABEL: string; | ||
export declare const WRITE_POST_FROM_LIST_LABEL: string; | ||
export declare const GENERATE_TITLE_LABEL: string; | ||
export declare const SUMMARY_BASED_ON_TITLE_LABEL: string; | ||
export declare const CONTINUE_LABEL: string; |
Oops, something went wrong.