Changeset 3846006
- Timestamp:
- 12/05/2026 10:14:13 AM (less than one hour ago)
- Location:
- deepfa-ai/trunk
- Files:
-
- 2 added
- 4 edited
-
assets/admin.css (modified) (1 diff)
-
assets/guide/assistant-en.webp (added)
-
assets/guide/assistant-fa.webp (added)
-
includes/class-assistant.php (modified) (1 diff)
-
includes/class-guide.php (modified) (1 diff)
-
languages/deepfa-ai.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
deepfa-ai/trunk/assets/admin.css
r3845997 r3846006 181 181 .deepfa-ai-assistant-field { margin: 8px 0; } 182 182 .deepfa-ai-assistant-field-label { font-weight: 600; font-size: 12px; color: #50575e; margin-bottom: 4px; } 183 .deepfa-ai-assistant-before, .deepfa-ai-assistant-after { padding: 6px 10px; border-radius: 6px; line-height: 1.7; overflow-wrap: anywhere; }183 .deepfa-ai-assistant-before, .deepfa-ai-assistant-after { padding: 6px 10px; border-radius: 6px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; } 184 184 .deepfa-ai-assistant-before { background: #fcf0f1; color: #50575e; margin-bottom: 4px; } 185 185 .deepfa-ai-assistant-after { background: #edfaef; color: #1d2327; } -
deepfa-ai/trunk/includes/class-assistant.php
r3845997 r3846006 417 417 } 418 418 419 /** Text to compare: headings, paragraphs and list items each on a line of their own (shown with white-space: pre-line). */ 419 420 private static function preview(string $html): string 420 421 { 421 $text = trim(preg_replace('/\s+/u', ' ', wp_strip_all_tags(preg_replace('/<!--.*?-->/s', '', $html)))); 422 $html = preg_replace('/<!--.*?-->/s', '', $html); 423 $html = preg_replace('/<li\b[^>]*>/i', "\n• ", $html); 424 $html = preg_replace('#<br\s*/?>|</(p|h[1-6]|li|div|blockquote|tr|ul|ol|figcaption|pre)>#i', "\n", $html); 425 $lines = array_map(fn ($line) => trim(preg_replace('/[ \t\x{00A0}]+/u', ' ', $line)), explode("\n", wp_strip_all_tags($html, false))); 426 $text = trim(implode("\n", array_filter($lines, fn ($line) => $line !== ''))); 422 427 423 428 return mb_strlen($text) > 3000 ? mb_substr($text, 0, 3000) . '…' : $text; -
deepfa-ai/trunk/includes/class-guide.php
r3726104 r3846006 34 34 sprintf(__('Enter the key in %s → Connection, save, and press “Check the key”.', 'deepfa-ai'), $settings), 35 35 __('Buy API credit for the plugin: the same money gets more credit than a prepaid pack.', 'deepfa-ai'), 36 __('Leave the models on Automatic: t he least expensive suitable model is used. Each model’s price is shown beside it.', 'deepfa-ai'),36 __('Leave the models on Automatic: text jobs use the model DeepFA recommends for the plugin, the others a suitable model. Each model’s price is shown beside it.', 'deepfa-ai'), 37 37 ], 38 38 'image' => 'settings', 39 ], 40 [ 41 'id' => 'assistant', 42 'title' => __('The assistant', 'deepfa-ai'), 43 'intro' => __('Ask for a change in plain words: the assistant finds what to change, reads it and suggests the edit. Nothing changes until you press Apply.', 'deepfa-ai'), 44 'steps' => [ 45 __('DeepFA AI → Assistant: write what you want - for example “write meta descriptions for the posts that have none” - or pick one of the examples.', 'deepfa-ai'), 46 __('It shows what it looked at, then a card for each suggestion with the text before and after.', 'deepfa-ai'), 47 __('Apply saves the change: the post keeps a revision, and Undo puts back what was there. Dismiss drops a suggestion.', 'deepfa-ai'), 48 __('With WooCommerce, ask for price changes - a percentage, an amount or a set price, rounded as you say: the plugin works out each price and shows the old and new ones in a table.', 'deepfa-ai'), 49 __('Each answer is paid at the price of the text model in Settings. New conversation starts again.', 'deepfa-ai'), 50 ], 51 'image' => 'assistant', 39 52 ], 40 53 [ -
deepfa-ai/trunk/languages/deepfa-ai.pot
r3845997 r3846006 946 946 msgstr "" 947 947 948 msgid "Leave the models on Automatic: the least expensive suitable model is used. Each model’s price is shown beside it." 948 msgid "Leave the models on Automatic: text jobs use the model DeepFA recommends for the plugin, the others a suitable model. Each model’s price is shown beside it." 949 msgstr "" 950 951 msgid "The assistant" 952 msgstr "" 953 954 msgid "Ask for a change in plain words: the assistant finds what to change, reads it and suggests the edit. Nothing changes until you press Apply." 955 msgstr "" 956 957 msgid "DeepFA AI → Assistant: write what you want - for example “write meta descriptions for the posts that have none” - or pick one of the examples." 958 msgstr "" 959 960 msgid "It shows what it looked at, then a card for each suggestion with the text before and after." 961 msgstr "" 962 963 msgid "Apply saves the change: the post keeps a revision, and Undo puts back what was there. Dismiss drops a suggestion." 964 msgstr "" 965 966 msgid "With WooCommerce, ask for price changes - a percentage, an amount or a set price, rounded as you say: the plugin works out each price and shows the old and new ones in a table." 967 msgstr "" 968 969 msgid "Each answer is paid at the price of the text model in Settings. New conversation starts again." 949 970 msgstr "" 950 971
Note:
See TracChangeset
for help on using the changeset viewer.