== Changelog ==

= 1.2.8 =
* Fixed: inputs, selects and options of a form lost their `id`, `class`, `style`, `data-` and `aria-` attributes. A label's `for=` led nowhere, field styles and classes were lost, and the Calculation total did not reach its hidden field (0.00 was sent). They are kept now.
* Fixed: in the form editor the lists of fields for the auto-reply e-mail and for the Mailchimp e-mail are filled when the editor opens. Before, they stayed empty until a field was changed, and saving without a change cleared the chosen field.
* Fixed: the success message, custom JS, auto-reply e-mail and webhook headers boxes were escaped twice, so an ampersand became `&amp;` after saving; they now keep what you typed. Webhook headers keep their own lines, and validation patterns keep `<` and `>`.
* Calculation fields work the formula out with a built-in reader instead of running it as code. Totals are the same as before.
* Security: the settings form, the form editor's JSON and a submission are read field by field and cleaned value by value, and saving settings checks the `manage_options` capability next to the nonce. Conditional logic is rebuilt from the operators the form knows.
* The scripts and styles of the admin screens, which were written into the pages, are separate files loaded the WordPress way. The screens look and work the same. The script handles of Google Maps, Yandex Maps and reCAPTCHA v3 carry the `formforge-` prefix.
* The logo in the admin screens is the new mark.
* Without the Fillin Forge Pro add-on the plugin shows nothing about Pro: no AI hero, Pro cards, locks, PRO chips or Analytics menu. The notices about an outdated or silent add-on show only on Fillin Forge screens and the Plugins list. A partly filled form sends a draft only when the add-on answers it, so visitors no longer get a failed request without it.
* The Forge Suite screen lists Cascade Forge and Inclusive Forge as available on WordPress.org.
* When AI credits run out, the message no longer promises a monthly reset and links to the page where you buy credits.

= 1.2.7 =
* Database queries are written out in full, as the wordpress.org review rules ask: every query names its table and says what it reads or changes right where it is sent. What the queries do is unchanged.
* The name is spelled "Fillin Forge" everywhere you read it.
* The Webhook box in the form builder now says what really happens: a webhook is sent once, and a failed delivery is not sent again.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.6 =
* If WP-Cron does not start a Fillin Forge task on time (a retry that adds a booking to your calendar, a row for Google Sheets, a payment check) and the task is more than 15 minutes late, the Fillin Forge screens now tell administrators, and the notice can be hidden for a day. The button "Run them now" starts up to 10 such tasks per press.
* Tasks that Fillin Forge Pro handles are neither run nor removed while Pro is off or too old, and the notice says so.
* On a site with DISABLE_WP_CRON the notice advises a system cron job and links to how to set one up.
* The payment number in e-mails, Slack messages and webhooks is now labelled "Payment ID", as on the submission screen. Before, it said "Payment intent".
* Deactivating Fillin Forge now removes its scheduled retries for calendar events and Google Sheets rows. Before, retries that carried data stayed in the queue.
* The new texts are translated into the 15 languages the plugin ships in.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.5 =
* **If you take bookings into Google Calendar, update Fillin Forge Pro to 1.3.6 as well.** With an older add-on the link below already works, but a booking whose event could not be created is neither marked nor reported.
* Submissions: a booking whose calendar event could not be created (Fillin Forge Pro 1.3.6 marks it) shows its own sentence next to "Time not confirmed", in the list and in the submission window: check your calendar, add the event if it is not there, and confirm the time with the visitor.
* The e-mail "Time not confirmed in the calendar" has its own wording for an event that could not be created: its subject ends with "the event could not be created", and the text says to check the calendar and add the event if it is missing.
* The link in that e-mail now opens the Submissions list on the page that holds the submission and scrolls to its row. Before, it opened the first page of the list, and an older submission could be pages away.
* The new texts are translated into the 15 languages the plugin ships in.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.4 =
* **If you take bookings into Google Calendar, update Fillin Forge Pro to 1.3.5 as well.** With an older add-on the time picker below already works, but a booking whose time could not be confirmed is neither marked nor reported.
* Time picker: on a form that books into Google Calendar (Fillin Forge Pro), when the free times cannot be loaded, the picker now says "Could not load free times. Please try again later." and offers no time, where it used to show every time of the day as free. Without Pro, or after the Pro trial has ended, nothing changes here.
* Time picker: the same message shows when the request for the free times fails altogether or its answer cannot be read. The browser used to offer every time of the day unchecked.
* Time picker: when the date is changed quickly, a late answer for an earlier date no longer replaces the times of the date shown now, and no longer clears the time already picked.
* Submissions: a booking whose time was not put in the calendar shows "Time not confirmed" in the list and in the submission window, with a sentence on what to do. Fillin Forge Pro 1.3.5 sets the mark.
* A short e-mail "Time not confirmed in the calendar" goes to the form's notification address for such a booking. Fillin Forge Pro 1.3.5 asks for it; a form with its admin notification switched off gets none.
* The new texts are translated into the 15 languages the plugin ships in.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.3 =
* **If you take card payments, update Fillin Forge Pro to 1.3.4 as well, and Pro first.** The add-on now confirms every payment with Stripe. With an older Pro a notice asks you to update it, and every paid submission is saved as "Payment not confirmed" until you do (they are checked again by themselves afterwards).
* Payments: a card payment is no longer saved as paid just because a payment id came with the form. Fillin Forge asks Fillin Forge Pro to confirm the payment with Stripe, and the amount saved with the submission is the one Stripe holds, not the one the browser reported.
* Payments: a payment that does not exist, belongs to another form, was not paid or already belongs to another submission is refused, and the visitor is told that the payment could not be verified.
* Payment statuses in words: a submission paid for another amount than its values come to is kept as "Paid amount differs", a payment nobody could confirm yet as "Payment not confirmed", and one Stripe holds no completed payment for as "Not paid". The notification, the list, the submission, the PDF and the export say so, with a sentence on what to check.
* The submission shows a "Check payment in Stripe" button (from Fillin Forge Pro 1.3.4) for a payment that is not confirmed yet.
* Saving a form tells you when a payment amount comes from a calculation the server cannot repeat.
* Payment field: the editor opened an old fixed payment amount in a currency without hundredths (JPY, for example) divided by 100, so 1000 yen showed as 10.00 and was saved as 10. It now shows the amount as it was typed.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.2 =
* **If you take payments in a currency without hundredths (JPY, KRW, VND, CLP, or another one Stripe counts in whole units: BIF, DJF, GNF, KMF, MGA, PYG, RWF, VUV, XAF, XOF, XPF) and got around the old mistake below by typing a price 100 times smaller, put the real price back as soon as Fillin Forge Pro 1.3.3 is installed, because the fix for the charge is in the add-on. After that a price is charged exactly as typed, so the small price would be charged as the small price.**
* Payment amounts: every currency was counted in hundredths, so a price of 1000 JPY in the payment field was charged as 100,000 JPY. Amounts are now counted in the currency's own unit (whole yen for JPY, cents for USD), and the amount saved with a submission is shown the same way, for example JPY 1,000 or USD 10.00. The payment field itself is in Fillin Forge Pro, so if you run the add-on, update it to 1.3.3 as well.
* Rating field: clicking a star now tells conditional logic and calculations, so a field that shows, hides or adds up depending on the rating changes straight away.
* Templates: Market Research and General Survey no longer bring a page break field, which only works with Fillin Forge Pro. Without it, saving turned that field into a text input labelled "(Requires Pro)"; now the form is a single page. In Internship Application the graduation year list starts at the current year, and in Service Appointment the vehicle year goes up to next year, instead of years fixed in advance.
* The rule for which fields of a form hold a value is now kept in one place, so the Google Sheets rows of Fillin Forge Pro keep their columns in the form's order.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.1 =
* Deleting the last Forge plugin or add-on on a site now removes everything Forge stored on the site, on every site of a network: the statistics settings and the install ID, the shared job queue with its scheduled events, and the other settings and caches the Forge plugins share. While another Forge product stays, only this plugin's own share goes.
* A Forge plugin deleted a moment earlier in the same bulk delete is no longer counted as still installed, and a Forge plugin for WooCommerce no longer keeps the shared data on the site for good.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.0 =
* **This release needs Fillin Forge Pro 1.3.0 or newer if you run the add-on.** The licence layer is the add-on's alone now: the free plugin no longer loads any licence code (the wordpress.org package has none at all), and its Settings screen asks the add-on, not a licence key, whether Mailchimp, HubSpot and Google can be connected. An older add-on is kept from starting. A notice, shown only to a user who can update plugins, names the version it needs and links to the downloads page of your Avakode account.
* Fixed: the form editor's preview ended in an error, because the preview request called a check that had been renamed. It now runs the same checks as saving a form.
* Fixed: with an out-of-date Fillin Forge Pro add-on installed, saving a form no longer turns its Pro fields into text or switches its Pro settings off, so the add-on's update finds them as they were. The cards of the form editor that ask for the add-on say to update it, with a link to the download, instead of offering it for sale.
* Wording: the Maps (Address Picker) card no longer says the map field needs Pro, and the integration cards drop the repeated “Requires Pro” sentences. The Mailchimp and HubSpot notes say the key is stored on the Avakode server. The Post Submission and User Registration cards of the form editor show the invitation to Fillin Forge Pro and none of the add-on's inputs when the add-on is not installed.
* With the add-on active, an AI generation error that needs your Avakode account opens the Fillin Forge Pro settings instead of a dashboard screen that this plugin does not have.
* The changed lines are translated in all 15 shipped languages.

= 1.1.0 =
* New: a “Send a test submission” button in the form editor. It sends one sample submission through the saved form by the same code a visitor's submission goes through (validation, the saved record, the notification email), so you can check a form without filling it in. The record is marked Test; the notification email starts with “[Test]” and says it is a test; any email field gets your own address, so the auto-reply comes to you. reCAPTCHA is not asked for, and nothing goes on to webhooks, integrations, post or user actions or analytics.
* When a form cannot be tested, the button says why in plain words: a required file upload, a payment field, a required field whose pattern or length limit no sample value can meet, or an admin page opened at a different address from the site's.
* Test submissions are left out of the counts, the exports and the analytics, and out of the REST submissions list unless it is asked for status=test.
* The Forge Suite dashboard leaves test submissions out of its submissions figure and its recent list.
* A star rating must be a whole number from 1 up to the field's number of stars. A rating of 0 counts as “not rated”: an optional field accepts it and a required field asks for a rating.
* Fixed: every Fillin Forge admin screen raised a PHP warning, and the builder preview linked a stylesheet the free plugin no longer ships. The conversational layout's stylesheet now comes from the Pro add-on.
* The new lines are translated in all 15 shipped languages.

= 1.0.41 =
* Deleting the plugin leaves the job queue the Forge plugins share in place while another Forge plugin or add-on is still on the site. The check used to miss add-ons, and Rank Forge installed from wordpress.org, so the queue could be dropped while a neighbour still had jobs in it.
* Deleting the plugin now also removes the site's Avakode account binding and the hourly statistics event when it is the last Forge plugin on the site. With another Forge plugin or add-on left, both stay for it.
* The dashboard's “Run diagnostics” request to api.avakode.com/health no longer carries your site's address: it identifies itself as ForgeSuite/health-check instead of using WordPress's default User-Agent, which includes the address.
* The Forge Suite screen lists Renew Forge, shows Guard Forge and Velocity Forge as available on wordpress.org, and carries the other products' current plans and taglines.
* The readme's External services section lists every request the plugin can make and what goes with it, and says that an AI request is passed on to OpenAI through Cloudflare AI Gateway, with the licence key held back.

= 1.0.40 =
* Internal clean-up in the documentation of a shared helper; no change in behaviour.

= 1.0.39 =
* **This release needs Fillin Forge Pro 1.2.0 or newer if you run the add-on.** The free plugin no longer checks licences at all: the Pro features — the Stripe payment field, Google Sheets, WhatsApp, HubSpot, conversational forms, analytics and AI generation — now carry their own code and their own licence check inside the add-on. An older add-on is switched off whole rather than left half-working.
* The free plugin no longer loads anything from Google or Stripe on its own screens; those scripts come with the add-on.
* Request input is sanitised where it is read, and admin output is escaped.

= 1.0.38 =
* **This release needs Fillin Forge Pro 1.1.0 or newer if you run the add-on.** An older add-on is switched off whole rather than left running, because beside this core it would be present and wrong rather than absent. Until you update it Post Submission, User Registration, multi-step and conversational forms, payment, repeater and calculation fields, AI form generation and the analytics screens are unavailable. Forms already saved and the submissions already collected are untouched, an admin notice names both versions and what stopped, and installing the current add-on brings all of it back.
* Deleting the last Forge product on a site now clears the job queue the Forge plugins share — its table, its two scheduled events and its version marker. While any other Forge product is still installed, deleting this one leaves the queue exactly as it is, because the pending jobs in those rows are that product's too.
* Fixed: with a Pro licence linked through Avakode, Settings → Google showed the Avakode connection card where Connect Google Account belongs. The card now offers the Google connection and names the step that failed.
* The Conditional Logic section no longer shows a PRO badge — conditional logic is part of the free plugin.
* Admin screens load their scripts and styles through WordPress instead of inline tags, and file writes go through the WordPress filesystem API.
* The Forge Suite dashboard links Guard Forge, Velocity Forge and Flow Forge to their sites: guardforge.app, velocityforge.app and flowforgewp.app.

= 1.0.37 =
* Suite banner: the eleven products and the three-step set discount are up to date.

= 1.0.36 =
* Forge Suite dashboard: results are the first screen — each tool's own results with window and completeness, detected and confirmed apart, a Needs-attention filter and a local CSV export for administrators.
* Set discounts in the Suite banner follow the three-step ladder (2 tools 15%, 3 tools 25%, 4 or more 35%).
* Translations refreshed for all catalogues.

= 1.0.35 =
* Licensing no longer depends on a third-party SDK. The plugin asks avakode.com whether this site is licensed and caches the answer for a day; if the check cannot be completed — a network hiccup, a timeout, our own error — your paid features stay on. Only a clear “this licence is not active” turns them off.
* Deactivating from the Forge Suite dashboard now releases the site slot directly, instead of the three-step fallback the old SDK needed when a licence had been cancelled server-side.
* Smaller package and one less admin surface: the SDK’s own menu, opt-in screen and promotional notices are gone.

= 1.0.34 =
* Forge Suite dashboard: names of the builder-rail tools (Clearway, Profit, Inclusive Forge) no longer truncate next to the “Not installed” badge.

= 1.0.33 =
* The Forge Suite dashboard now shows the whole seven-tool line-up from the product registry — Clearway Forge, Profit Forge and Inclusive Forge join the four WordPress tools — counts active tools against seven, and its cross-sell banner points at the Forge Builder on avakode.com (one checkout, set discount up to 45%) instead of the retired Freemius bundle.

= 1.0.32 =
* The shared inline assets (docs link, feedback widget) are now emitted as a literal nowdoc block instead of being assembled in an output buffer — the same hardening Lang Forge 1.0.31 and Rank Forge 1.1.3 received.
* The Bundle License card no longer shows the Connect result twice; translations synced.

= 1.0.31 =
* Google reCAPTCHA v3 is no longer behind a licence. It runs on your own reCAPTCHA keys and talks directly to Google, so gating it was withholding built-in functionality.
* The address field with map and geocoding is likewise unrestricted — it uses your own Google or Yandex key and never touches our servers.
* The appointment picker now generates its time slots on any install. Overlaying real busy times from a connected Google Calendar still needs the separate Pro add-on, which holds the OAuth application.
* Removed licence checks that could never fail, on conditional logic, file uploads and webhooks. Those have been free for some time, but the code still asked and the admin screens still showed a PRO badge.
* Availability of add-on features is now decided by whether the add-on is installed, not by a licence call.

= 1.0.30 =
* Security hardening: all dynamic output is now escaped late at the output site with the context-appropriate function (esc_html/esc_attr/esc_url, esc_html__ for translated strings used as format strings, and wp_kses for trusted pre-built admin/field markup). No behavioural changes.

= 1.0.29 =
* Pro-only features (Post Submission, User Registration, multi-step forms, conversational mode, repeater and calculation fields) are now provided entirely by the Fillin Forge Pro add-on and are no longer bundled in the free plugin — the free download contains only fully-functional free features.
* Removed the leftover form-count limit scaffolding; the free plugin has always supported unlimited forms.

= 1.0.28 =
* Uninstall cleanup now removes transients only under the plugin's own unambiguous prefix, so unrelated transients belonging to other plugins are never deleted.

= 1.0.24 =
* New: Support menu item that opens the Avakode support dashboard.
* New: Opt-in anonymous usage analytics (OFF by default) — see Third-Party Services.
* New: Contextual, dismissible Pro feature tips on the plugin dashboard (Free users only).


= 1.0.21 =
* Hardened inline admin script output (field-mapping editors).
* WordPress.org compliance and code-quality improvements.

= 1.0.20 =
* Fix: AI form generation now shows a clear reason when it can't run (license/credits needed, or the service is unreachable) instead of a generic "Unknown error".

= 1.0.19 =
* Security: the Google Account connection now starts via a one-time token, so the license key is never placed in a URL.

= 1.0.18 =
* WordPress.org compliance and licensing hardening.
* Pro entitlement is now resolved by the Fillin Forge Pro add-on; the free plugin bundles no licensing SDK.
* The Google integration SDK now loads only when the Pro Google Sheets feature is active.
* readme metadata cleanup.

= 1.0.0 =
* Initial release.
