Skip to content

feat: proactive chat teaser - #202

Merged
HardeepAsrani merged 36 commits into
developmentfrom
feat/issue-185
Jul 21, 2026
Merged

feat: proactive chat teaser#202
HardeepAsrani merged 36 commits into
developmentfrom
feat/issue-185

Conversation

@HardeepAsrani

@HardeepAsrani HardeepAsrani commented Jul 10, 2026

Copy link
Copy Markdown
Member

Base implementation of the proactive chat teaser for Codeinwp/hyve#185.

All details and the Manual QA checklist are in the pro PR: Codeinwp/hyve#264

# Conflicts:
#	tests/e2e/specs/dashboard.spec.js
Show a configurable invite bubble next to the closed launcher when a
trigger fires: time on page, exit intent (desktop only), or scroll
depth. The teaser is UI only, so no thread or API call happens until
the visitor sends a message. It shows at most once per session, never
returns after dismissal, and is suppressed for open windows, active
conversations, inline placements, and the admin preview. It follows
the assistant background color with is-dark contrast, plays the chat
sound where autoplay allows, and announces itself via role=status
without moving focus.

The Chat Behavior screen gets a pro-gated Proactive message card:
trigger select (Disabled by default), per-trigger setting, and an
invite message field with a preview button that drives the floating
admin preview widget through the new previewTeaser method.
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

Plugin build for 9b06986 is ready 🛎️!

@HardeepAsrani
HardeepAsrani changed the base branch from development to feat/new-ui July 10, 2026 23:09
@HardeepAsrani HardeepAsrani changed the title feat: proactive chat messages feat: proactive chat teaser Jul 10, 2026
@HardeepAsrani
HardeepAsrani requested review from Copilot and removed request for Copilot July 10, 2026 23:10
# Conflicts:
#	src/backend/screens/Integrations.js
@HardeepAsrani
HardeepAsrani changed the base branch from feat/new-ui to development July 21, 2026 08:34
@HardeepAsrani

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

# Conflicts:
#	src/backend/screens/ChatBehavior.js
#	tests/e2e/specs/settings.spec.js

Co-authored-by: HardeepAsrani <2649903+HardeepAsrani@users.noreply.github.com>

Copilot AI commented Jul 21, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in commit 9b06986. Both conflicted files (src/backend/screens/ChatBehavior.js and tests/e2e/specs/settings.spec.js) kept the ProactiveCard additions from this branch.

@pirate-bot

Copy link
Copy Markdown
Contributor

🌍 i18n String Review Report

📊 Summary

Category Count
➕ Added 18
➖ Removed 0
🔄 Changed 0
Total 18
➕ Added Strings (18) - Click to expand
String Location Words Suggested Match
Hi there! Have any questions? I can help. src/backend/screens/ChatBeh... 8 Hello! How can I help you today?
What the bubble says to the visitor. Visitors ... src/backend/screens/ChatBeh... 19 A floating chat bubble that opens the chat window when clicked.
Time on page src/backend/screens/ChatBeh... 3 No close match
Exit intent src/backend/screens/ChatBeh... 2 No close match
Scroll depth src/backend/screens/ChatBeh... 2 No close match
Pick a trigger to show a small bubble next to t... src/backend/screens/ChatBeh... 21 No close match
The invite appears after the visitor has been o... src/backend/screens/ChatBeh... 14 No close match
The invite appears when the pointer leaves towa... src/backend/screens/ChatBeh... 22 No close match
The invite appears once the visitor has scrolle... src/backend/screens/ChatBeh... 13 No close match
Proactive message src/backend/screens/ChatBeh... 2 No close match
Show it when src/backend/screens/ChatBeh... 3 No close match
Trigger src/backend/screens/ChatBeh... 1 No close match
Seconds on page src/backend/screens/ChatBeh... 3 No close match
Scroll percentage src/backend/screens/ChatBeh... 2 No close match
Invite message src/backend/screens/ChatBeh... 2 No close match
Preview invite src/backend/screens/ChatBeh... 2 No close match
Start conversations before visitors do src/backend/screens/ChatBeh... 5 No close match
Proactive messages are part of Hyve Pro. src/backend/screens/ChatBeh... 7 No close match
Total 131

@HardeepAsrani
HardeepAsrani merged commit c8e7417 into development Jul 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants