=== EDSA GlowTrack Connector ===
Contributors: edsadev
Tags: salon booking, spa booking, beauty booking, appointment scheduling, client portal
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress sites to EDSA GlowTrack for public booking, service menus, provider listings, intake/contact forms, and client portal entry points.

== Description ==

EDSA GlowTrack Connector is a lightweight WordPress plugin for salons, barber shops, nail salons, massage studios, spa salons, beauty studios, and related beauty and wellness operators using EDSA GlowTrack.

The plugin does not duplicate GlowTrack inside WordPress. WordPress remains the public website layer, while GlowTrack remains the system of record for services, providers, appointments, clients, forms, checkout, and reporting.

Before connecting the plugin, the business needs access to EDSA CORE with the GlowTrack module enabled. Create or access a CORE account at:

https://www.edsa.dev/core/login/?module=glowtrack#sign-up

After signing in, open GlowTrack > Setup in CORE to copy the GlowTrack site key and generate the WordPress connector token:

https://www.edsa.dev/core/glowtrack/setup/

MVP features:

* GlowTrack connection settings.
* GlowTrack site key and server-side connector token setup.
* Booking widget shortcode and block.
* Service menu shortcode and block.
* Provider listing shortcode and block.
* Intake/contact form shortcode and block.
* Client portal button shortcode and block.
* Basic styling controls for accent color, button text color, radius, and card style.

== External Services ==

This plugin connects to EDSA GlowTrack services operated by EDSA.

By default, the configured service URL is:

https://www.edsa.dev/

The plugin may send server-side requests from WordPress to these GlowTrack public API paths:

* `/core/api/public/glowtrack/status/`
* `/core/api/public/glowtrack/services/`
* `/core/api/public/glowtrack/providers/`
* `/core/api/public/glowtrack/booking/request/`
* `/core/api/public/glowtrack/forms/submit/`

Requests may include the configured GlowTrack site key, optional tenant ID, and a server-side connector token in the `X-EDSA-GlowTrack-Key` header. Public visitors submitting a booking or intake/contact form may provide name, email, phone, preferred service, preferred provider, preferred date/time, notes, message, and source URL. That information is forwarded to GlowTrack so the business can manage appointment and client workflows in CORE.

EDSA policies:

* Privacy Policy: https://www.edsa.dev/privacy-policy/
* Terms of Use: https://www.edsa.dev/terms-of-use/
* Documentation Center: https://www.edsa.dev/documentation-center/

== Installation ==

1. Upload the `edsa-glowtrack-connector` folder to `/wp-content/plugins/`.
2. Activate the plugin through the WordPress Plugins screen.
3. Go to Settings > EDSA GlowTrack.
4. If the business does not already have GlowTrack access, sign up or sign in to EDSA CORE at `https://www.edsa.dev/core/login/?module=glowtrack#sign-up`.
5. In CORE, go to GlowTrack > Setup and generate a WordPress connector token.
6. Enter the GlowTrack site key, connector token, service URL, and optional tenant ID.
7. Add shortcodes or GlowTrack blocks to WordPress pages.

== Shortcodes ==

`[glowtrack_booking]`

Renders a public appointment request widget.

`[glowtrack_services]`

Renders the public GlowTrack service menu.

`[glowtrack_providers]`

Renders provider/staff profiles.

`[glowtrack_form form_id="contact"]`

Renders a lightweight intake/contact form and forwards submissions to GlowTrack.

`[glowtrack_client_portal]`

Renders a client portal button.

== Frequently Asked Questions ==

= Does this plugin include RAS? =

No. This plugin is only for GlowTrack website connection features. It does not load RAS pixels, analytics, tracking, abandonment recovery, session replay, or marketing automation.

= Does WordPress store appointments? =

No. WordPress displays the public interface and forwards requests to GlowTrack. Appointment records should live inside GlowTrack/CORE.

= Is the connector token visible to visitors? =

No. The connector token is stored in WordPress options and used only in server-side WordPress HTTP requests.

= Can I use blocks instead of shortcodes? =

Yes. The MVP includes blocks for booking, services, providers, intake form, and client portal button.

== Screenshots ==

1. EDSA GlowTrack settings page.
2. GlowTrack booking widget.
3. GlowTrack services and provider blocks.

== Changelog ==

= 0.1.0 =
* Initial private MVP connector.
* Added connection settings and styling controls.
* Added booking, services, providers, intake/contact form, and client portal shortcodes.
* Added matching WordPress block editor blocks.
* Added server-side API forwarding for booking and form submissions.

== Upgrade Notice ==

= 0.1.0 =
Initial private MVP connector for GlowTrack WordPress website integration.
