diff --git a/README.md b/README.md index 0f4cafd..03f8cc4 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ This repository provides: | Plugin | Description | Version | Status | | ------ | ----------- | ------- | ------ | | [`after-hours`](./after-hours) | Auto-replies with a configurable away/closing message to messages received outside business hours. | 0.1.3 | stable | -| [`chat-flow`](./chat-flow) | Interactive, stateful auto-reply: a trigger word starts a greeting + numbered menu, replies traverse a configurable menu tree, and per-chat state expires after 15 minutes. | 1.0.6 | stable | +| [`chat-flow`](./chat-flow) | Interactive, stateful auto-reply: a trigger word starts a greeting + numbered menu, replies traverse a configurable menu tree, and per-chat state expires after 15 minutes. | 1.0.7 | stable | | [`chatwoot-adapter`](./chatwoot-adapter) | Two-way sync between a WhatsApp session and a Chatwoot inbox: relays WhatsApp messages (1:1 and groups, with media) into Chatwoot as an API-channel inbox, sends agent replies back to WhatsApp, and hands a chat over to a human agent — silencing other OpenWA bots — when an agent takes it in Chatwoot. First consumer of the OpenWA Integration SDK v1; runs sandboxed in the plugin worker. | 0.5.4 | beta | | [`faq-bot`](./faq-bot) | Auto-replies to inbound WhatsApp messages from configurable FAQ keyword/regex rules. | 0.1.7 | stable | | [`group-translate`](./group-translate) | Auto-translates group messages between participants' languages via a LibreTranslate backend. Configure in-chat with /tr commands. Admin-gated; disabled until enabled. | 1.0.6 | stable | diff --git a/chat-flow/CHANGELOG.md b/chat-flow/CHANGELOG.md index e21acbb..04f24b0 100644 --- a/chat-flow/CHANGELOG.md +++ b/chat-flow/CHANGELOG.md @@ -8,6 +8,25 @@ The version here always matches `manifest.json`'s `version`. ## [Unreleased] +## [1.0.7] — 2026-07-22 + +### Fixed + +- **The menu-option rows are usable again.** Each option row rendered with its key field stretched + across the full width, pushing the reply text and the row's own buttons outside the panel, where they + were cut off and unreachable — so a menu could not be edited at all. The row now lays out as intended: + a narrow key, the reply text filling the space, and the Remove and Sub-option buttons visible beside + them. +- **The greeting placeholder no longer suggests typing `\n` for a line break.** It showed + `Hi! Please choose:\n1. Hosting` literally, and a `\n` typed into the greeting is delivered to + WhatsApp exactly as written rather than as a new line. The example is now shown across real lines. + +### Added + +- **The editor follows the dashboard's dark theme.** It was always light, so on a dark dashboard it + appeared as a bright panel in the middle of the dialog. It now uses whichever theme the dashboard + reports (OpenWA 0.10.5+), and falls back to the operating system preference on older versions. + ## [1.0.6] — 2026-07-18 ### Fixed diff --git a/chat-flow/README.md b/chat-flow/README.md index 60aac64..739716a 100644 --- a/chat-flow/README.md +++ b/chat-flow/README.md @@ -13,8 +13,8 @@ | Field | Value | | ----- | ----- | | **Identifier** | `chat-flow` | -| **Version** | 1.0.6 | -| **Released** | 2026-07-18 | +| **Version** | 1.0.7 | +| **Released** | 2026-07-22 | | **Status** | stable | | **Author** | Yudhi Armyndharis | | **License** | MIT | diff --git a/chat-flow/config/index.html b/chat-flow/config/index.html index 1d7dd66..67f99f2 100644 --- a/chat-flow/config/index.html +++ b/chat-flow/config/index.html @@ -5,60 +5,127 @@ Chat Flow Config @@ -123,7 +190,7 @@

Chat Flow Editor

- +
@@ -275,10 +342,21 @@

Chat Flow Editor

feedback.style.display = 'none'; } + // The host resolves 'system' for us, so this is only ever 'light' or 'dark'. Anything else (including + // a host too old to send it) leaves the attribute off, which falls back to the OS preference. Sent once + // with the config handshake — the theme control is behind the modal overlay, so it cannot change while + // this editor is open. + function applyTheme(theme) { + if (theme === 'light' || theme === 'dark') { + document.documentElement.setAttribute('data-theme', theme); + } + } + window.addEventListener('message', function(event) { var data = event.data; if (!data || typeof data.type !== 'string') return; if (data.type === 'config:value') { + applyTheme(data.theme); populateConfig(data.config); } else if (data.type === 'config:saved') { showFeedback('Saved!', true); diff --git a/chat-flow/manifest.json b/chat-flow/manifest.json index 66ee78e..c47ef76 100644 --- a/chat-flow/manifest.json +++ b/chat-flow/manifest.json @@ -1,7 +1,7 @@ { "id": "chat-flow", "name": "Chat Flow", - "version": "1.0.6", + "version": "1.0.7", "type": "extension", "main": "dist/index.js", "description": "Interactive, stateful auto-reply: a trigger word starts a greeting + numbered menu, replies traverse a configurable menu tree, and per-chat state expires after 15 minutes.", diff --git a/plugins.json b/plugins.json index 235bf45..61744e3 100644 --- a/plugins.json +++ b/plugins.json @@ -197,7 +197,7 @@ { "id": "chat-flow", "name": "Chat Flow", - "version": "1.0.6", + "version": "1.0.7", "type": "extension", "status": "stable", "description": "Interactive, stateful auto-reply: a trigger word starts a greeting + numbered menu, replies traverse a configurable menu tree, and per-chat state expires after 15 minutes.", @@ -214,11 +214,11 @@ ], "minOpenWAVersion": "0.7.0", "testedOpenWAVersion": "0.8.1", - "releasedAt": "2026-07-18", + "releasedAt": "2026-07-22", "repoPath": "chat-flow", "repoUrl": "https://github.com/rmyndharis/OpenWA-plugins", "homepage": "https://github.com/rmyndharis/OpenWA-plugins/tree/main/chat-flow", - "download": "https://github.com/rmyndharis/OpenWA-plugins/releases/download/chat-flow-v1.0.6/chat-flow.zip", + "download": "https://github.com/rmyndharis/OpenWA-plugins/releases/download/chat-flow-v1.0.7/chat-flow.zip", "i18n": { "es": { "name": "Flujo de Chat",