The {%full_tags_list%} data placeholder has been renamed to {%tags_full_list%}

This commit is contained in:
mic 2025-01-02 23:58:45 +01:00
parent e7c0fa5f6f
commit e731df6629
10 changed files with 15 additions and 15 deletions

View file

@ -9,7 +9,7 @@
<ul>
<li><i>[ChatGPT API][Ollama API][OpenAI Comp API]</i> Added a special prompt to apply tag to emails [<a href="https://github.com/micz/ThunderAI/issues/183">#183</a>].</li>
<li>Default prompts text has been translated [<a href="https://github.com/micz/ThunderAI/issues/185">#185</a>].</li>
<li>Data placeholder <i>{%full_tags_list%}</i> for the full available tags list added [<a href="https://github.com/micz/ThunderAI/issues/197">#197</a>].</li>
<li>Data placeholder <i>{%tags_full_list%}</i> for the full available tags list added [<a href="https://github.com/micz/ThunderAI/issues/197">#197</a>].</li>
<li>Data placeholder <i>{%tags_current_email%}</i> for the single mail tags list added [<a href="https://github.com/micz/ThunderAI/issues/198">#198</a>].</li>
<li>User <a href="https://forms.gle/1qK2wcbuhaRzhwyt9">survey link</a> added [<a href="https://github.com/micz/ThunderAI/issues/202">#202</a>].</li>
<li><i>[OpenAI Comp API]</i> Added a button in the options page to manually insert the model [<a href="https://github.com/micz/ThunderAI/issues/205">#205</a>].</li>

View file

@ -767,7 +767,7 @@
"message": "E-Mail-Tags",
"description": ""
},
"placeholder_full_tags_list": {
"placeholder_tags_full_list": {
"message": "Vorhandene Tags",
"description": ""
},

View file

@ -767,7 +767,7 @@
"message": "Mail tags",
"description": ""
},
"placeholder_full_tags_list": {
"placeholder_tags_full_list": {
"message": "Existing tags",
"description": ""
},

View file

@ -767,7 +767,7 @@
"message": "Tags de courriels",
"description": ""
},
"placeholder_full_tags_list": {
"placeholder_tags_full_list": {
"message": "Tags existants",
"description": ""
},

View file

@ -767,7 +767,7 @@
"message": "Tag delle email",
"description": ""
},
"placeholder_full_tags_list": {
"placeholder_tags_full_list": {
"message": "Tag esistenti",
"description": ""
},

View file

@ -767,7 +767,7 @@
"message": "Tagi e-maila",
"description": ""
},
"placeholder_full_tags_list": {
"placeholder_tags_full_list": {
"message": "Istniejące tagi",
"description": ""
},

View file

@ -767,7 +767,7 @@
"message": "Tags do e-mail",
"description": ""
},
"placeholder_full_tags_list": {
"placeholder_tags_full_list": {
"message": "Tags existentes",
"description": ""
},

View file

@ -116,7 +116,7 @@ export class mzta_Menus {
}
let fullPrompt = '';
let full_tags_list = await getTagsList();
let tags_full_list = await getTagsList();
let curr_messages = null;
switch(tabs[0].type){
@ -170,11 +170,11 @@ export class mzta_Menus {
finalSubs['junk_score'] = curr_message.junkScore;
break;
case 'tags_current_email':
let tags_current_email_array = await transformTagsLabels(curr_message.tags, full_tags_list[1]);
let tags_current_email_array = await transformTagsLabels(curr_message.tags, tags_full_list[1]);
finalSubs['tags_current_email'] = tags_current_email_array.join(", ");
break;
case 'full_tags_list':
finalSubs['full_tags_list'] = full_tags_list[0];
case 'tags_full_list':
finalSubs['tags_full_list'] = tags_full_list[0];
break;
default: // TODO Manage custom placeholders https://github.com/micz/ThunderAI/issues/156
break;
@ -235,7 +235,7 @@ export class mzta_Menus {
return {ok:'0'};
}
this.logger.log("tags_current_email: " + tags_current_email);
console.log(">>>>>>>>>>>> full_tags_list: " + JSON.stringify(full_tags_list));
console.log(">>>>>>>>>>>> tags_full_list: " + JSON.stringify(tags_full_list));
browser.tabs.sendMessage(tabs[0].id, {command: "getTags", tags: tags_current_email, messageId: curr_message.id});
return {ok:'1'};
break;

View file

@ -104,8 +104,8 @@ const defaultPlaceholders = [
is_default: "1",
},
{
id: 'full_tags_list',
name: "__MSG_placeholder_full_tags_list__",
id: 'tags_full_list',
name: "__MSG_placeholder_tags_full_list__",
default_value: "",
type: 0,
is_default: "1",

View file

@ -11,7 +11,7 @@
<ul>
<li><i>[ChatGPT API][Ollama API][OpenAI Comp API]</i> Added a special prompt to apply tag to emails [<a href="https://github.com/micz/ThunderAI/issues/183">#183</a>].</li>
<li>Default prompts text has been translated [<a href="https://github.com/micz/ThunderAI/issues/185">#185</a>].</li>
<li>Data placeholder <i>{%full_tags_list%}</i> for the full available tags list added [<a href="https://github.com/micz/ThunderAI/issues/197">#197</a>].</li>
<li>Data placeholder <i>{%tags_full_list%}</i> for the full available tags list added [<a href="https://github.com/micz/ThunderAI/issues/197">#197</a>].</li>
<li>Data placeholder <i>{%tags_current_email%}</i> for the single mail tags list added [<a href="https://github.com/micz/ThunderAI/issues/198">#198</a>].</li>
<li>User <a href="https://forms.gle/1qK2wcbuhaRzhwyt9">survey link</a> added [<a href="https://github.com/micz/ThunderAI/issues/202">#202</a>].</li>
<li>Polish (pl) translation added, thanks to <a href="https://github.com/neexpl">neexpl</a>.</li>