Plugin Directory

Changeset 3846006


Ignore:
Timestamp:
12/05/2026 10:14:13 AM (less than one hour ago)
Author:
arminhsa11
Message:

DeepFA AI 2.3.0

Location:
deepfa-ai/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • deepfa-ai/trunk/assets/admin.css

    r3845997 r3846006  
    181181.deepfa-ai-assistant-field { margin: 8px 0; }
    182182.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; }
    184184.deepfa-ai-assistant-before { background: #fcf0f1; color: #50575e; margin-bottom: 4px; }
    185185.deepfa-ai-assistant-after { background: #edfaef; color: #1d2327; }
  • deepfa-ai/trunk/includes/class-assistant.php

    r3845997 r3846006  
    417417    }
    418418
     419    /** Text to compare: headings, paragraphs and list items each on a line of their own (shown with white-space: pre-line). */
    419420    private static function preview(string $html): string
    420421    {
    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 !== '')));
    422427
    423428        return mb_strlen($text) > 3000 ? mb_substr($text, 0, 3000) . '…' : $text;
  • deepfa-ai/trunk/includes/class-guide.php

    r3726104 r3846006  
    3434                    sprintf(__('Enter the key in %s → Connection, save, and press “Check the key”.', 'deepfa-ai'), $settings),
    3535                    __('Buy API credit for the plugin: the same money gets more credit than a prepaid pack.', 'deepfa-ai'),
    36                     __('Leave the models on Automatic: the 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'),
    3737                ],
    3838                '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',
    3952            ],
    4053            [
  • deepfa-ai/trunk/languages/deepfa-ai.pot

    r3845997 r3846006  
    946946msgstr ""
    947947
    948 msgid "Leave the models on Automatic: the least expensive suitable model is used. Each model’s price is shown beside it."
     948msgid "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."
     949msgstr ""
     950
     951msgid "The assistant"
     952msgstr ""
     953
     954msgid "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."
     955msgstr ""
     956
     957msgid "DeepFA AI → Assistant: write what you want - for example “write meta descriptions for the posts that have none” - or pick one of the examples."
     958msgstr ""
     959
     960msgid "It shows what it looked at, then a card for each suggestion with the text before and after."
     961msgstr ""
     962
     963msgid "Apply saves the change: the post keeps a revision, and Undo puts back what was there. Dismiss drops a suggestion."
     964msgstr ""
     965
     966msgid "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."
     967msgstr ""
     968
     969msgid "Each answer is paid at the price of the text model in Settings. New conversation starts again."
    949970msgstr ""
    950971
Note: See TracChangeset for help on using the changeset viewer.