=== Norm Guides – Interactive Onboarding & Guided Tutorials ===
Contributors: sproilex
Donate link: https://stivenilarraza.com/
Tags: onboarding, guided tour, tutorial, training, walkthrough
Requires at least: 5.5
Tested up to: 7.1
Stable tag: 0.0.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Learn WordPress from inside your own admin with 50 built-in interactive guides, or prepare your own guides for clients and team members with our visual Builder.

== Description ==

**Norm Guides** adds interactive, click-by-click guides directly inside your WordPress admin, so you can learn how to use WordPress without leaving the dashboard or hunting for a tutorial elsewhere.

It ships with 50 guides covering the core WordPress admin: publishing posts, managing media, managing users, installing plugins, and the other things you'll do most often. Open the **Help** panel, pick a guide, and hit play. A highlight and tooltip walk you through each step, right where you need to click.

= Get 50 more guides for free =

Connect your site to a free Norm Guides account (Settings → NormGuides → License) and unlock 50 additional guides covering more advanced parts of WordPress and popular plugins, at no extra cost.

= Build your own guides =

Need something the built-in guides don't cover? Use the visual Steps Builder to click any element in the admin, add a title and description, and save it as a step. The CSS selector is captured automatically; you can edit it by hand if you want more precision.

1. **Build**: click on any element in the admin, add a title and description, and save it as a step.
2. **Organize**: group guides by category, assign tags, and set which admin pages they appear on. Restrict them by user role so the right people see the right guides.
3. **Play**: open the Help panel, find the guide you need, and hit play. A dimmed overlay focuses attention on the highlighted element while a tooltip walks you through each action.
4. **Navigate**: guides survive page navigation. If a guide takes you from the dashboard to the post editor, Norm Guides picks up where it left off on the new page.

= Key Features =

* **50 built-in guides**: ready-to-use guides covering the most common WordPress admin tasks, imported automatically on activation.
* **50 more guides, free**: connect a Norm Guides account to unlock a second set covering more advanced features and popular plugins.
* **Visual Steps Builder**: click any element in the admin to record it as a step. No coding needed.
* **Interactive Player**: guides play back with a highlight, dimmed backdrop, and step-by-step tooltip that walks users through each action.
* **5 Step Types**: Click, Hover, Show (info only), Write (types sample text), and Wait (waits for an element to appear before continuing).
* **Cross-page continuity**: guides that span multiple admin pages resume automatically on the next page load.
* **Guides Library**: a central Help panel listing all guides, grouped by category, launchable with one click.
* **Role-based visibility**: show or hide specific guides based on WordPress user roles.
* **Import / Export**: export guides as portable JSON and import them into any other WordPress site. Domain URLs are automatically replaced with a placeholder so guides travel cleanly between environments.
* **Theme system**: choose from four built-in color themes (light, dark, teal, and graphite) or customize every color from the settings panel.
* **Multilanguage support**: full i18n support with a POT file included. Spanish (es_ES) translation ships out of the box.

All of the above works fully with no account connected. See "For Agencies & Teams" below for what a connected account adds on top.

= Privacy =

Guide content (titles, descriptions, steps, groups, tags) is stored entirely in your own WordPress database and is never sent anywhere. The plugin only transmits data externally if you choose to connect it to the Devs Norm panel: see "External services" below.

== For Agencies & Teams ==

If you build or manage WordPress sites for clients, connecting Norm Guides to a Devs Norm account adds what you need to run onboarding across multiple sites:

* **White-label branding**: set your own brand colors and support link, so clients see your agency's branding, not ours.
* **Builder access control**: decide exactly which roles or individual users can see and use the Steps Builder, keeping authoring tools out of your clients' hands.
* **Managed configuration sync**: publish guides, themes, or builder-visibility settings from your Devs Norm account and push them to every connected site. See "External services" below for what this sync sends.

Everything in "Key Features" above already works without an account; this section is what connecting one adds on top.

== External services ==

This plugin connects to the **Devs Norm panel**, a companion web service operated by the plugin's developer (DevsNorm), to handle license activation, license status checks, and optional managed-configuration sync. It only talks to this service if you choose to connect your site to a Devs Norm account; if you never enter a SiteKey, no data is sent to it.

**License activation**: when you enter a SiteKey and click "Activate" (Settings → NormGuides → License), the plugin sends, once: the SiteKey you entered, your site's domain and URL, the plugin slug, the plugin's config schema version, your WordPress version, PHP version, and the plugin version. This is needed to associate your site with your Devs Norm account and issue an access token.

**License status checks**: after activation, approximately every 12 hours (and whenever you click "Check license" manually), the plugin sends your WordPress version, PHP version, and plugin version to verify your license is still valid and refresh its status.

**Managed configuration sync**: if you publish a configuration update (such as managed guides, themes, or Steps Builder visibility settings) from your Devs Norm account, the panel notifies your site, the plugin fetches that configuration, applies it, and sends back an acknowledgment that it was applied. No guide content, visitor data, or other site content is ever sent to the panel: only the technical/version fields listed above and the identifiers needed to operate the license and publication flow.

This service is provided by DevsNorm. Terms of Service: https://norm-guides.devsnorm.com/panel/terms-of-service/. Privacy Policy: https://norm-guides.devsnorm.com/panel/privacy-policy.

== Installation ==

= From the WordPress Plugin Directory =

1. Go to **Plugins → Add New** in your WordPress admin.
2. Search for **Norm Guides**.
3. Click **Install Now**, then **Activate**.

= Manual Installation =

1. Download the plugin ZIP file.
2. Go to **Plugins → Add New → Upload Plugin** in your WordPress admin.
3. Upload the ZIP file and click **Install Now**, then **Activate**.

= After Activation =

* 50 default guides are imported automatically; head to **Help** in the main admin menu to see them.
* To build your first guide, go to **Help**, click **Add New Guide**, fill in the details, and save. Then use the **Steps Builder** widget (bottom-right corner of any admin page) to record your steps.
* To configure branding and visibility, go to **Settings → NormGuides**.

== Frequently Asked Questions ==

= Do I need to know CSS selectors to build guides? =

No. The visual Steps Builder lets you click directly on any element in the admin to select it. The CSS selector is captured automatically. You can edit it manually if you need more precision, but you'll rarely need to.

= Can guides span multiple admin pages? =

Yes. When a guide step requires the user to navigate to a different page (like clicking a menu item), Norm Guides saves the current progress and automatically resumes the guide on the next page load.

= Can I control who sees the guides? =

Yes, in two ways. First, each guide has a role filter that lets you include or exclude specific WordPress roles. Second, the Steps Builder widget itself has separate visibility controls: you can restrict it to specific roles or even specific individual users.

= Can I move guides from one site to another? =

Yes. Go to **Tools → NormGuides Export**, select the guides you want to export, and download the JSON file. Import it on any other site through the same page. Site URLs in the guides are replaced automatically with a `{{DOMAIN}}` placeholder so they adapt to the new site's domain on import.

= Does this work on the public side of the site (not just wp-admin)? =

Not yet. Currently Norm Guides works exclusively inside the WordPress admin area. Public-facing page support is planned for a future release.

= Will it slow down my site? =

All plugin assets are only loaded inside the WordPress admin. Nothing is added to the public-facing site.

= Is it compatible with multisite? =

Single-site use is the tested configuration. Multisite compatibility has not been verified yet.

= Do I need to connect an account to use this plugin? =

No. The 50 built-in guides, the Steps Builder, guide playback, themes, and import/export all work with no account at all. Connecting a free Norm Guides account unlocks 50 more guides; agencies and teams who connect also get white-label branding, builder access control, and managed configuration sync across their client sites.

== Screenshots ==

1. **Help Panel: Guides Library.** The main Help page accessible from the WordPress admin menu. Shows all available guides organized by group, with a one-click Play button to launch any tutorial.
2. **Guide Player in Action.** The interactive player running a step inside the WP admin. The target element is highlighted, the rest of the screen is dimmed, and a tooltip shows the step title, description, and a Next button.
3. **Steps Builder Widget.** The floating Steps Builder panel that appears on every admin page for authorized users. Shows the current guide's steps list with options to view, edit, repoint, or remove each step, plus a record button to capture the next step by clicking any element on screen.
4. **Guide Edit Form.** The guide creation and editing form. Shows fields for title, description, start URL, activation slugs (which admin pages trigger the guide), group, tags, and role filter.
5. **Settings: Customization.** The theme settings panel with four built-in color presets and a full set of color pickers to create a custom look that matches your agency's brand.
6. **Import / Export Page.** The import/export interface under Tools. Allows selecting individual guides to export as JSON, uploading a JSON file to import, and loading the default guide pack.

== Source Code ==

The full, human-readable source for this plugin is included in the package: the unminified JavaScript lives in the `src/` directory, and the compiled bundles in `admin/js/` are built from it with Vite.

Third-party library included: Tom Select (https://tom-select.js.org/), MIT License.

== Changelog ==

= 0.0.8 =
* Added a "Support the free guides" donation badge to the Settings page header.
* Documented the plugin's use of the Devs Norm panel as an external service, per WordPress.org plugin review feedback.

= 0.0.7 =
* Fixed a privilege-escalation issue where the guide role filter could be bypassed via the builder AJAX context.
* The Help page's guide list and the "ng_" transient prefix were hardened per WordPress.org plugin review feedback.

= 0.0.1 =
* Initial release.

== Upgrade Notice ==

= 0.0.1 =
Initial release of Norm Guides.
