feat: control chat visibility from the dashboard#189
Merged
Conversation
Replace the single Enable/Disable toggle with visibility rules on the dashboard: show on all pages, only on selected content, everywhere except selected content, or not automatically (block/shortcode only). Selected content is matched by URL path using contains/matches operators. The legacy chat_enabled flag is migrated to the new display_mode setting via the SDK migrator, with a read-time fallback for installs that have not migrated yet.
9c959f0 to
6d95858
Compare
Soare-Robert-Daniel
approved these changes
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds visibility rules for the chat, replacing the single Enable/Disable toggle on the dashboard.
Under Hyve → Dashboard → "Where should Hyve appear?" the admin can pick:
For the two "selected content" modes, content is matched by URL path with a
contains(whole section, e.g./shop/) ormatches(one exact URL) operator. Blocks and shortcodes continue to work for manual placement in every mode.The old
chat_enabledtoggle is migrated to the newdisplay_modesetting automatically (enabled → all pages, disabled → don't show automatically), so existing sites keep their current behavior.Closes: https://github.com/Codeinwp/hyve/issues/189
Screenshot
QA
/with operator matches → chat appears only on the homepage./shop/with operator contains → chat appears on every URL under/shop/(e.g. a product), and nowhere else.[hyve]shortcode still render the chat where placed.