= Changelog =

All notable changes to Nexu Forem Publisher are documented in this file.

= 1.9.33 - 2026-04-14 =

* Improved - Default article prompt: fewer and stricter long-tail SEO phrases (only when grounded in the source, plain prose only). Long-tail clauses must not be used as Markdown link labels; product links use short, natural anchors only.

= 1.9.32 - 2026-04-14 =

* Fixed - Syndicated article bodies: links to the product URL are no longer kept when the anchor text describes WordPress admin screens (tabs, menus, widget panel, and similar). Prompt defaults now state clearly that the product link is for editorial use only, not for admin navigation labels.

= 1.9.31 - 2026-04-14 =

* Improved - **Schedule → Daily batch**: cleaner layout (compact toolbar, two-column pick-order cards on wide screens, archive option in a subtle inset, next-run line with icon). Long multi-network explanation moved into an expandable details block.

= 1.9.30 - 2026-04-14 =

* Improved - **Schedule** tab: **Daily batch** block is stacked vertically (intro text first, then time and options) instead of a wide two-column layout.

= 1.9.29 - 2026-04-14 =

* Added - **Help** button in the settings header opens a full **guide** modal (multi-section documentation) similar to other Nexu admin products.
* Added - **Networks** tab: **How to get API keys** box with steps and official links for Dev.to and Hashnode credentials.

= 1.9.28 - 2026-04-14 =

* Added - **Overview & insights** tab (default): dashboard with setup checklist, KPIs, seven-day success/fail trend bars, AI and automation snapshot, Dev.to vs Hashnode URL counts by content type (with progress vs syndicated totals), recent log lines, latest failure callout, and shortcuts to other sections.
* Changed - Plugins list **Settings** link opens the Overview tab; sidebar label for the detailed log view is **Activity log** (same screen as before).

= 1.9.27 - 2026-04-14 =

* Improved - **Archive continuation** and other repeat runs: the model receives **prior article titles** stored for that WordPress item so the new JSON `title` is instructed to stay clearly distinct (no light rephrases of earlier headlines).

= 1.9.26 - 2026-04-14 =

* Changed - **Schedule** copy for archive continuation: clearer, neutral wording (fresh articles to your networks, same as a normal run).

= 1.9.25 - 2026-04-14 =

* Added - **Schedule**: optional **Continue the daily batch from your archive when the queue is done** (off by default). When nothing is left to syndicate for a content type, the batch can select from that archive again, write a new article each time, and publish to your networks under the same per-type cap and pick order.

= 1.9.24 - 2026-04-14 =

* Fixed - **Prompts & safety** textareas show the **shipped default** copy when nothing custom is saved yet, so new installs are not blank.

= 1.9.23 - 2026-04-14 =

* Added - **Prompts & safety** tab: editable **article system prompt**, **source message template**, **title-suggestion system prompt**, and **distinct second-network addon** (with `{network_label}` / `{prev_label}`). Empty fields use shipped defaults; non-English networks still get the automatic language appendix on system prompts where applicable.
* Added - **Insert plugin default** beside each prompt and **Reset prompts and source limit** (clears custom prompt text and restores the recommended source character cap).
* Changed - Runtime filters `nexu_forem_system_prompt`, `nexu_forem_user_template`, and `nexu_forem_title_suggestion_system_prompt` now receive the **admin-configured** text as their base value (then may replace it).

= 1.9.22 - 2026-04-14 =

* Fixed - If the admin include file is missing or empty on the server, the plugin no longer triggers a fatal error on load; site admins see a dashboard notice to reinstall or re-upload the full plugin.

= 1.9.21 - 2026-04-14 =

* Changed - Settings **header** keeps **Save** and Cross-post controls on the **top row** (end-aligned); removed the **version** chip from the header.

= 1.9.20 - 2026-04-14 =

* Fixed - Settings header **Cross-post** toggle uses calmer styling (matches the green/red status pill instead of a separate accent gradient).

= 1.9.19 - 2026-04-14 =

* Changed - Settings page **layout and header** now follow the same **Nexu FTP Media** admin shell: `nfm-*` structure, gradient header icon, status pill styling, **Save** as gradient primary, **version badge**, Font Awesome rail icons, and matching container/nav/main spacing (Outfit + Font Awesome enqueued like FTP Media).

= 1.9.18 - 2026-04-14 =

* Improved - Settings **header** matches other Nexu admin plugins: banner width/max-width, title and subtitle styling, icon entrance animation, primary **Save** control, action grouping, `#wpcontent` edge alignment, and responsive header layout.

= 1.9.17 - 2026-04-14 =

* Fixed - **Queue** tab: KPI summary cards use the full dashboard width again (removed extra horizontal inset that made the strip look narrowed toward the center).

= 1.9.16 - 2026-04-14 =

* Fixed - Settings screens: **tab content** and **section** headers/bodies now share consistent horizontal and vertical padding using CSS variables, with **logical** (`inline`) spacing so LTR and RTL align the same.
* Fixed - **Queue** tab: surface blocks (**By content type**, **Recent activity**) use one **inset** rhythm (`--nfp-queue-pad-x` / `y`); the activity feed sits in the same inset as other body content; hero and KPI strip match that horizontal line.

= 1.9.15 - 2026-04-14 =

* Improved - **Queue → Recent activity** feed: tighter spacing, smaller type and pills, shorter preview text (two lines), a lower scroll area, and a smaller **Details** control so the block uses less vertical space.

= 1.9.14 - 2026-04-14 =

* Improved - **Queue → Recent activity** is now a **timeline-style feed** (stacked cards with a vertical rail and status dots) instead of a wide data table; **Details** and full metadata behavior are unchanged.

= 1.9.13 - 2026-04-14 =

* Added - **Queue → Recent activity**: a **Details** action on each row opens a dialog with the full message, metadata, and an editor link when the row is tied to a post you can edit.
* Fixed - **Recent activity** table: column widths adjusted for the new actions column; header and body cells use consistent padding so rows align cleanly.

= 1.9.12 - 2026-04-14 =

* Fixed - **Queue → Recent activity** table layout: removed line-clamp from table cells (invalid in many browsers), added `colgroup` + `table-layout: fixed`, solid sticky header, and message text inside `.nfp-activity-msg` with safe multi-line clamp. Empty log status maps to a neutral pill.

= 1.9.11 - 2026-04-14 =

* Removed - **Queue** tab: the **Pending items** table and its client-side filter (counts and type breakdown stay; open posts from the editor as before).

= 1.9.10 - 2026-04-14 =

* Improved - **Queue** tab: modern data tables (no WP `widefat` styling), card sections, sticky blurred headers, type/context chips, primary **Open** buttons, and cleaner activity rows with truncated messages (full text on hover). KPI copy updated for multi-network syndication.

= 1.9.9 - 2026-04-14 =

* Changed - Settings **Connection** split into two sidebar tabs: **AI & model** (provider, key, model, test) and **Networks** (Dev.to / Hashnode accounts). Old `?tab=connection` links still open **AI & model**.

= 1.9.8 - 2026-04-14 =

* Changed - **Enable cross-post** moved to the **settings header** as a switch saved via AJAX; the separate **General** block on Connection was removed. Saving the rest of the form no longer clears cross-post if that field is absent.

= 1.9.7 - 2026-04-14 =

* Added - **Schedule** tab: choose how the daily batch picks pending items — **by publish date (oldest first)** (previous behavior) or **random** each run (within each content type’s daily cap).

= 1.9.6 - 2026-04-10 =

* Improved - AI error messages from **NEXU AI Gateway** now surface whether the failure came from the **gateway** itself or the **upstream AI provider**, so syndication failures no longer look like a Dev.to / Hashnode problem when the rewrite step failed earlier.
* Improved - When the gateway returns **Retry-After** on temporary AI failures, the publisher now respects that delay during its built-in retry loop instead of always using only the short default backoff.

= 1.9.4 - 2026-04-01 =

* Improved - Schedule tab: short note that the **daily batch** sends each processed item to **every enabled network**, with a **separate model run per network** (that network’s language for title and body, different angles, no duplication across destinations).

= 1.9.3 - 2026-04-01 =

* Fixed - **Suggest titles** in the editor now uses the same **content language** as the target network: the AJAX request sends `title_lang` from the first checked “Send to” row (or the single enabled network). The title-suggestion system prompt no longer forces English; a **TITLE LANGUAGE** block matches the article language (e.g. Persian for a fa network). User message includes a **HEADLINE LANGUAGE** line. Filter: `nexu_forem_title_suggestion_system_prompt`.

= 1.9.2 - 2026-04-01 =

* Fixed - **Add network** on Connection: the handler now runs in the **capture** phase and uses **`closest('#nfp-add-network')`** so clicks on the inner Dashicon still count; `stopImmediatePropagation` avoids other scripts eating the event. New cards are inserted with a **template fragment** + **appendChild** and the row **scrolls into view** after add.

= 1.9.1 - 2026-04-01 =

* Fixed - **Add network** in settings now binds with event delegation and keeps card indexes in sync with existing rows, so adding another platform works reliably.
* Fixed - Editor **Add …** (extra network on an already syndicated post): progress and messages attach to the syndication shell so the action works in the block editor too; `data-network-id` / `data-post-id` are read from attributes so the AJAX request always receives the right IDs.

= 1.8.4 - 2026-04-01 =

* Changed - Completely redesigned AI prompts for **much more diverse, SEO-optimized articles**. Instead of always writing "I built a plugin", each run randomly picks one of **12 article angles** (problem/solution, tutorial, technical deep-dive, comparison, case study, SEO insight, developer story, tips, myth-busting, before/after, scaling, workflow). Titles are now keyword-rich and concise (max 10 words). Body text uses subheadings, short paragraphs, and naturally woven long-tail keywords. When both Dev.to and Hashnode publish in one run, each platform gets a **different** angle. Title suggestions in the editor also use broader, more varied formats.

= 1.8.3 - 2026-04-01 =

* Changed - When **both** Dev.to and Hashnode are targeted in one run (first publish, daily batch, or editor **Publish** to both), the plugin runs **two model passes**: one draft for Dev.to and a **separate** title and Markdown for Hashnode so the networks do not get duplicate headlines or bodies. **Add Hashnode** after Dev.to no longer reuses the Dev.to markdown cache without a new pass. New post meta stores the Hashnode headline and body; the daily email lists **Dev.to headline** and **Hashnode headline** plus each link. Developers can hook `nexu_forem_body_markdown_before_hashnode` on the Hashnode-bound Markdown (Dev.to keeps `nexu_forem_body_markdown_before_devto`).

= 1.8.2 - 2026-04-01 =

* Improved - Optional **daily email report**: refreshed HTML layout (summary card, stat tables, clear CTA), subject and copy reference **Dev.to and Hashnode** together, **pending** wording covers syndication generally, and each batch row lists **WordPress title**, **syndicated headline**, **platform URLs** (when present), success or failure, and the status message.

= 1.8.1 - 2026-03-28 =

* Added - Post editor **Send to**: when Dev.to and Hashnode are both configured, choose **Dev.to and Hashnode**, **Dev.to only**, or **Hashnode only** before **Publish** (applies to first publish and repeat runs). Daily batch and other automated runs still send to every configured platform.

= 1.8.0 - 2026-03-28 =

* Changed - **Source message template** (user message) is no longer stored or editable in plugin settings. It always comes from shipped code (`Nexu_Forem_Defaults::user_template()`), so updates apply without restoring prompts. Developers can override via the `nexu_forem_user_template` filter (alongside `nexu_forem_system_prompt` for the system instructions). **Restore recommended defaults** on Prompts & safety now resets only **max characters for source text**.

= 1.7.9 - 2026-03-28 =

* Changed - Default **source message template**: the Product URL line no longer looks like a bare `Product URL: https://…` only (models often mirror that as plain text in the article). It now states the URL must be used only inside Markdown `[label](url)`, and the TASK line repeats that the URL must not appear as bare `https://` text. Custom templates in settings are unchanged until you edit or use **Restore recommended defaults**.

= 1.7.8 - 2026-03-28 =

* Fixed - Plain product URLs in the Markdown body are now rewritten using **WordPress `url_to_postid()`** (with/without trailing slash), then **path** comparison to `get_permalink()`, then **last path segment vs post slug** when the model uses a different domain than the editor (e.g. production URL in text while testing locally). Replaces each matched `https?://…` span with `[anchor](url)` unless it is already after `](`. Filter `nexu_forem_body_after_product_link_conversion` runs on the result.

= 1.7.7 - 2026-03-28 =

* Fixed - After the body is finalized, the plugin now **detects the WordPress product permalink when it is still plain text** in the Markdown (e.g. after “published it here:”) and rewrites it as a proper `[anchor](url)` link using the post title as anchor text (max length capped; characters that break Markdown links are stripped). Variants with/without a trailing slash and `http` vs `https` are handled. Occurrences already inside `](url)` are left unchanged. Optional filter: `nexu_forem_product_link_anchor_text`. Applies to the main syndication path and Hashnode-only flow; stored `META_LAST_BODY` is updated when the conversion runs.

= 1.7.6 - 2026-03-27 =

* Changed - **System prompt** is no longer stored or editable in plugin settings. It always comes from shipped code (`Nexu_Forem_Defaults::system_prompt()`), so updates apply without “restore defaults”. Developers can still override via the `nexu_forem_system_prompt` filter. The **source message template** (user message) remains editable on Prompts & safety.

= 1.7.5 - 2026-03-27 =

* Fixed - Body cleanup no longer drops or mangles a **Markdown link line** when the anchor text is a long SEO phrase on its own line before the first I/We/My paragraph. Those lines were misclassified as “echoed headline” and removed, or the opener scan jumped to the first-person line and cut the link line off entirely, which made the product URL show up only as plain text later (e.g. at the end) in some renders.

= 1.7.4 - 2026-03-27 =

* Changed - Post editor metabox: restored a clear **Nexu-style** look (shell background, linked-status card, white form card, gradient suggest button, green publish button, styled messages and progress). When a post is already linked, a **blue hint** explains that you can publish again with a new title **without** resetting; optional **Last published title** line; **Reset saved links in WordPress** moved to the bottom so it is not confused with the normal repeat flow.

= 1.7.3 - 2026-03-27 =

* Changed - Default system prompt: added a **CRITICAL RULE FOR LINKS** so the model must output the product URL only as Markdown hyperlinks `[text](url)`, never as a bare URL, so links stay clickable on Hashnode and other Markdown renderers. Custom prompts in settings are unchanged until you edit or restore defaults.

= 1.7.2 - 2026-03-27 =

* Changed - Post editor syndication metabox redesigned for a **compact** sidebar: shorter metabox title (Syndication), one-line linked status with inline Dev.to / Hashnode links, optional Add Hashnode as a text action, Clear local state with a short explanation on hover, native small buttons, title field with placeholder only, cover image in a collapsible block, thinner progress bar without a percentage line, and less custom chrome overall.

= 1.7.1 - 2026-03-27 =

* Added - For posts already marked as syndicated but without a Hashnode link, the editor shows **Send to Hashnode only**: publishes to Hashnode using stored Markdown when the last run saved it (no second Dev.to article). If no cached body exists, one AI pass runs for Hashnode only.

= 1.7.0 - 2025-03-27 =

* Added - Multi-platform syndication: after a **single** AI completion, the plugin can publish the same title and Markdown to **Dev.to** and **Hashnode** independently. Hashnode uses the GraphQL `publishPost` mutation with `originalArticleURL` set to the WordPress permalink. New settings: Hashnode Personal Access Token and Hashnode Publication ID. If one platform fails, the other can still succeed; partial errors are stored in the post meta error field. Editor success card lists Dev.to and/or Hashnode when URLs are available.

= 1.6.13 - 2025-03-27 =

* Changed - Post editor: removed the extra “Title, cover & publish…” shortcut and the full-screen modal. Dev.to title, cover URL, and publish now live in a compact inline panel in the sidebar; “Suggest titles” still fills the list and focuses the field.

= 1.6.12 - 2025-03-27 =

* Changed - Default title prompts: headlines emphasize what the tool does and the SEO/technical pain it solves (four structural formats); less “how I built” framing. Custom prompts in settings are unchanged until you edit or restore defaults.

= 1.6.11 - 2025-03-27 =

* Fixed - OpenAI Chat Completions: models that reject `max_tokens` (e.g. o-series, GPT-5 family, GPT-4.1) now send `max_completion_tokens` instead. O-series omit custom `temperature`. Other OpenAI-compatible providers (Grok, Mistral, DeepSeek) unchanged. Unknown models can be forced via the `nexu_forem_openai_uses_max_completion_tokens` filter.

= 1.6.10 - 2025-03-27 =

* Improved - Settings: the Connection test panel explains that a successful test uses a small request, while full Dev.to rewrites are heavier and can still hit temporary provider overload. When an error mentions overload, the message adds the same context.

= 1.6.9 - 2025-03-27 =

* Changed - Default title prompts: headlines must center a typical reader’s widely felt problem and need (best clear title), in addition to the existing engineering-format rules. Custom prompts in settings are unchanged until you edit or restore defaults.

= 1.6.8 - 2025-03-27 =

* Improved - AI requests: automatic **retry with backoff** (up to 3 attempts) for **HTTP 529** (Anthropic overload), **504**, and for **2xx responses** whose JSON body is only a transient error (`overloaded_error`, `rate_limit_exceeded`, `rate_limit_error`). Heavy publisher calls no longer fail on a single overload spike when the gateway “test connection” (lightweight) still succeeds.

= 1.6.7 - 2025-03-27 =

* Fixed - AI error lines: when the HTTP response is **2xx** but the body is a JSON error (e.g. gateway overload), the message no longer ends with **HTTP 200**, which looked like the provider had returned success.

= 1.6.6 - 2025-03-27 =

* Changed - Default AI prompts: Dev.to JSON `title` and “Suggest 10 titles” now enforce engineering-style headlines (no marketing buzzwords, no `!` or `?`, only three allowed patterns, correct “WordPress” spelling). Custom text in plugin settings is unchanged until you edit or restore defaults.

= 1.6.5 - 2025-03-27 =

* Improved - AI requests: failures now show a clear message including HTTP status/reason, API error code (when present), provider message, excerpts of non-JSON bodies, token usage hints when the model returns empty text, and invalid-JSON hints. Developers can adjust the final string via the `nexu_forem_ai_request_error_message` filter.

= 1.6.4 - 2025-03-27 =

* Fixed - NEXU AI: removed automatic second request that switched to the `nexu-ai` model when the gateway returned HTTP 404 for another model. The chosen model (e.g. Opus) is no longer silently replaced; you see the real error so the gateway catalog and provider keys can be fixed.

= 1.6.3 - 2025-03-27 =

* Improved - Post editor: Dev.to title, cover image URL, live cover preview, and publish actions are in one modal; refined button styles and backdrop. Optional shortcut opens the same panel without running title suggestions first; featured image can be applied to the cover field in one click when available.

= 1.6.2 - 2025-03-27 =

* Fixed - NEXU AI model dropdown: the saved model is kept after reload and after “Load models” even when that ID is not in the latest gateway list (extra option labeled as saved). Empty model values on save no longer wipe the previous stored model.

= 1.6.1 - 2025-03-27 =

* Fixed - NEXU AI gateway: legacy Claude 3 and common OpenAI-style model IDs are mapped to current gateway catalog IDs. Gateway error messages from the API are shown when a call fails.

= 1.6.0 - 2025-03-27 =

* Changed - Editor workflow: first run “Suggest 10 Dev.to titles” to get headline ideas; then choose a radio option or type your own title, optionally paste a cover image URL (https), and publish. The article body is generated for that exact title. Automatic first-publish and the daily batch are unchanged (single AI pass, no title picker).

= 1.5.7 - 2025-03-27 =

* Changed - From the editor you can run “Post to Dev.to” multiple times for the same item: each manual run creates a new Dev.to article and updates the saved link. Repeat runs append instructions (plus a variation seed and the last Dev.to title when known) so each article uses a distinct title and angle. Automatic first-publish and the daily batch still skip items already linked so they are not duplicated by automation.

= 1.5.6 - 2025-03-27 =

* Removed - Editor “Post to Dev.to now” no longer shows a technical trace block or copy/reload controls; the page reloads after a successful publish as before.

= 1.5.5 - 2025-03-27 =

* Changed - Schedule tab: redesigned daily batch with a clear automation panel (time + next run) and a card per content type. Turn “Include in daily batch” on and set the per-day cap in one place; types that are off under Content types show a short hint with a link.

= 1.5.4 - 2025-03-27 =

* Fixed - Model replies that use typographic apostrophes in the JSON body (e.g. in “it’s”) no longer get truncated: those characters are normalized to a plain apostrophe before parsing, so the full Markdown reaches Dev.to.

= 1.5.3 - 2025-03-27 =

* Added - After “Post to Dev.to now” from the editor, a technical trace appears under the button (raw model output, each Markdown cleanup step, the exact JSON sent to Dev.to, and the API response). Use “Copy trace” to share it for troubleshooting; reload the page when you are done.

= 1.5.2 - 2025-03-27 =

* Fixed - Body cleanup now strips a repeated headline, lone "#" rows, and per-line tag slugs at the very start of the Markdown using the same title sent to Dev.to, and runs that pass again right before the API request so the published body cannot reintroduce that noise.

= 1.5.1 - 2025-03-27 =

* Added - `finalize_body_markdown_for_devto()` runs after the `nexu_forem_body_markdown_before_devto` filter and again immediately before the Dev.to API request, so third-party filters cannot leave echoed title/hash/tag junk in the payload.
* Added - `tools/run-interpret-test.php` (run with PHP from the plugin folder) exercises the real `interpret_ai_response` path against your WordPress DB for debugging.

= 1.5.0 - 2025-03-27 =

* Fixed - Dev.to title: UTF-8 safe length trimming (no broken multibyte cuts). If the model returns a title that is too short or only one word (e.g. two-word fragments), the plugin falls back to a short title derived from the WordPress post title instead.
* Fixed - Body cleanup no longer relies on a multiline regex that could return the body unchanged when the first line looked like an “article start” (e.g. short echoed titles). A line-by-line scan now skips junk until the first first-person line or a valid opening (sentence starters, markdown heading, list, blockquote), with a regex fallback only when nothing matches.
* Removed - Redundant article-start strip pass that overlapped with the new opener scan.

= 1.4.6 - 2025-03-27 =

* Changed - First-person line cut (multiline pass) runs immediately after line-break normalization, then again at the end, so echoed title/hash/tag blocks are removed even when earlier steps miss edge cases.
* Added - Filter `nexu_forem_body_markdown_before_devto` on the final Markdown body before the Dev.to API request (after all built-in cleanup).
* Fixed - JSON payloads where `body_markdown` is an array of lines are joined with newlines instead of being cast to the string “Array”.

= 1.4.5 - 2025-03-27 =

* Fixed - Body text is normalized before cleanup: HTML line breaks and paragraph tags become real newlines so title/hash/tag blocks are not stuck in a single line that the cleaner could not split.
* Fixed - A final multiline pass finds the first line that starts with I/We/My (optional markdown emphasis) and discards everything above it, even when earlier line-based steps missed the split.

= 1.4.4 - 2025-03-27 =

* Fixed - First-person lines are detected even when the model wraps “I/We/My” in markdown bold or italic, so leading title/tag noise is still stripped and the body can start at the real paragraph.
* Fixed - When the echoed product title sits directly above a first-person line (no hash row in between), the title line is now treated as junk unless the line looks like a normal sentence intro (e.g. “The problem…”).

= 1.4.3 - 2025-03-27 =

* Fixed - Leading junk cleanup now normalizes each line (invisible characters, fullwidth “#”) so lone hash and tag lines are not missed; after that, the body is trimmed from the first line that looks like real prose (first person, sentence starters, heading, or list) so echoed titles and Dev.to-style tag blocks cannot sit above the article.
* Fixed - Trailing one-word fragments such as a lone “Here” at the end of the body are removed when they are clearly placeholders, not real sentences.
* Improved - Default TASK line repeats that body_markdown must not contain title echoes, per-line “#” rows, tag lists, or dangling “Here”.

= 1.4.2 - 2025-03-27 =

* Changed - By default, cross-posts no longer send a canonical URL to Dev.to, so the “Originally published at …” line no longer appears on those articles (developers can opt back in via the plugin filter).
* Fixed - Body cleanup removes a duplicated headline when the first line matches the generated title (including short prefix/suffix variants), and drops a short echoed title line immediately before a first-person paragraph (I/We/My …) when it is not a normal intro such as “The problem …”.

= 1.4.1 - 2025-03-27 =

* Fixed - Stronger stripping of junk at the start of body_markdown: echoed plain-text title lines, lone “#” lines, per-line tag slugs (e.g. wordpress/php/webdev), and similar Dev.to-style noise before the real first sentence.
* Improved - Default TASK line tells the model not to repeat the title or add hashtag lines inside the body.

= 1.4.0 - 2025-03-27 =

* Changed - Default flow: the model returns JSON with a short developer-style title and body_markdown; that title is what Dev.to receives (not the long SEO product title).
* Improved - Typography pass replaces em/en dashes in the body with commas or spaced hyphens when the model still emits them.

= 1.3.1 - 2025-03-27 =

* Fixed - Stricter system prompt and default TASK line: the first word of the model output must be the start of the article body; no title, tags, or date block at the top.
* Improved - Server-side cleanup strips common metadata lines (labels like Title/Date/Tags, hashtag-only lines, optional YAML front matter) from the top of the Markdown before sending to Dev.to.

= 1.3.0 - 2025-03-27 =

* Changed - Default system prompt: strict Show & Tell developer voice, no marketing patterns, no title/tags/date inside the Markdown body, under 400 words, first person.
* Changed - Text sent to the AI is only product title, URL, stripped content, and a short task line (no Dev.to tags or publish dates in that payload).

= 1.2.2 - 2025-03-27 =

* Added - When an item is already linked to Dev.to, the sidebar can clear the saved WordPress state so you can run “Post to Dev.to” again (does not delete the article on Dev.to).

= 1.2.1 - 2025-03-27 =

* Improved - Editor sidebar: when an item is already on Dev.to, the status is shown as a clear success card with title, short description, and a full-width “Open on Dev.to” action (replaces the plain “Published… View” line).

= 1.2.0 - 2025-03-27 =

* Changed - Default AI flow matches the product spec: the model returns raw Markdown only; the plugin sets the Dev.to title (Building: …) and tags from settings. User message defaults to Product Title, Product URL, Original Content.
* Improved - Legacy prompts that still return JSON with title and body_markdown still work. Use “Restore recommended defaults” on Prompts to load the new Markdown-first instructions.

= 1.1.2 - 2025-03-27 =

* Changed - Queue tab redesigned as a dashboard: hero with manual vs daily-batch context, KPI cards, per-type breakdown, filterable pending table with actions, and clearer activity area.
* Changed - Sidebar labels: Schedule focuses on daily batch; Queue is the operational overview (coverage, pending, log).

= 1.1.1 - 2025-03-27 =

* Fixed - Dev.to article tags are normalized to letters and digits only so compound tags (for example with hyphens) no longer trigger API validation errors.
* Improved - AI JSON parsing: curly-quote normalization and a fallback path when the reply is not strict JSON but still contains title and body_markdown.

= 1.1.0 - 2025-03-27 =

* Added - Queues tab: backlog completion %, per-type pending counts, pending list of items, and activity log (moved from Schedule).
* Added - Editor cross-post: progress bar and step labels while the request runs.
* Improved - JSON parsing for AI replies: BOM removal, preamble stripping, fenced code handling, string-aware brace extraction, and a trailing-comma fallback.

= 1.0.9 - 2025-03-27 =

* Added - WooCommerce product edit screen: sidebar metabox with “Post this product to Dev.to now” (published products only; products are included in eligible content types when WooCommerce is active).
* Improved - Editor cross-post button label and capability check for shop roles (uses edit_post on the item).

= 1.0.8 - 2025-03-27 =

* Removed - Bottom sticky save bar (save remains in the header).
* Fixed - NEXU “Load models” control: clearer click handling, JSON AJAX, and error messages from failed requests.

= 1.0.7 - 2025-03-27 =

* Added - AI model field matches NEXU AI Translation: provider-based model list, NEXU gateway optgroups from cache, and “Load models” to refresh from the gateway (shared model cache with the translator when the same key is used).

= 1.0.6 - 2025-03-27 =

* Added - Schedule tab: per content type daily batch limit, pending queue counts, recent activity log, and optional email report after each run (site timezone).
* Improved - Daily backlog applies a separate limit per enabled content type instead of one global cap; log marks duplicate or in-progress items as skipped instead of failed.

= 1.0.5 - 2025-03-27 =

* Changed - AI provider area redesigned to match NEXU AI Translation: hero strip, two-column credentials grid, model row, and gradient connection-test panel.

= 1.0.4 - 2025-03-27 =

* Changed - Settings screen uses a left navigation rail and tabs (Connection, Content types, Schedule, Prompts & safety), matching the Nexu multi-tab admin pattern.
* Added - Sticky save bar and header save action for quicker saves.

= 1.0.3 - 2025-03-27 =

* Added - AI provider, API key, model ID, and timeout fields in this plugin (same provider list as NEXU AI Translation).
* Changed - Removed confusing “Test language model (NEXU AI Translation)” label; use “Test AI connection” on the AI section.
* Changed - If the API key here is empty, translator credentials are still used as a fallback when that plugin is configured.
* Removed - Hard dependency on `nexu-ai-translator` in the plugin header.

= 1.0.2 - 2025-03-27 =

* Changed - Admin UI aligned with Nexu product styling (header banner, tokens, sections, buttons, RTL font pattern).
* Added - Optional local Yekan WOFF2 path for fa/ar admin (same file name as other Nexu plugins: `assets/font/IMedium.woff2`).
* Added - Metabox stylesheet for editor sidebar consistency.

= 1.0.1 - 2025-03-27 =

* Fixed - Safer handling when the translator settings table is unavailable.
* Fixed - System and user prompt fields preserve line breaks and plain text as intended.

= 1.0.0 - 2025-03-27 =

* Added - Initial release: Dev.to cross-post, NEXU AI Translation model settings reuse, daily backlog batch, problem-oriented rewrite defaults, metabox retry.
