SOTG Bookings  |  Version 0.1.4  |  By Doorways Into Your Business

About This Plugin

The SOTG Bookings plugin provides a mobile-friendly admin view of Seniors on the Go booking data pulled directly from Coda.io. It is designed for administrative staff who need a quick, at-a-glance overview of upcoming bookings, driver assignments, and booking statuses — without requiring a WordPress login.

Access is controlled via a secure key embedded in a shareable URL, making it easy to give frontline staff visibility into the booking schedule without creating WordPress accounts. The plugin depends on the Driver Bookings plugin and reads Coda credentials directly from its settings — no duplicate configuration needed.


Features

  • [sotg_bookings] shortcode — embed the bookings view on any page or post
  • Key-based access — no WordPress login required; share a secure URL with staff
  • Days-ahead filter — view bookings for today, next 3, 7, 14, or 30 days
  • Two-tab interface: Accepted Bookings and For Review
  • Booking cards showing Booking #, Senior’s Name, Date/Time, and Driver Name
  • Cancelled booking styling — grey background with diagonal “CANCELLED” ribbon
  • Detail view with bold labels and direct “View in CODA” deep links
  • Links open directly to the correct row in the SotG Bookings table view in Coda
  • Mobile-friendly responsive design
  • WordPress admin settings page — access key display, URL copy helper, and key regeneration
  • Dependency check — auto-deactivates if the Driver Bookings plugin is not active
  • Reads Coda credentials from Driver Bookings settings (no duplicate configuration needed)

What’s New in Version 0.1.4

Bug Fixes

  • Fixed CODA deep link format — was using API-style URL, now uses the correct browser deep link format
  • Links now open directly to the correct row in the SotG Bookings table view in Coda

Full Changelog

0.1.4 — Fixed CODA deep link format; corrected to browser deep link so “View in CODA” buttons open directly to the correct row in the SotG Bookings table view.

0.1.3 — Fixed IIFE function hoisting bug; sotgLoadBookings() was called before window.sotgLoadBookings was defined, causing a silent ReferenceError that killed all JS functionality. Moved init block to end of IIFE after all function definitions.

0.1.2 — Fixed REST route to use URL path parameter for key (/bookings/{key}), matching the driver-bookings pattern — resolves broken API calls on sites without pretty permalinks. Removed args declaration from route registration that was causing WordPress to reject requests.

0.1.1 — Fixed REST API endpoint to read query parameters via $request->get_param() instead of raw $_GET, resolving the “Loading bookings…” hang. Registered REST API args (key, days) with proper types, defaults, and sanitization.

0.1.0 — Initial release. Core plugin with dependency check on driver-bookings; REST API endpoint to fetch all bookings from CODA; [sotg_bookings] shortcode with key-based access; frontend bookings page with days-ahead filter, two tabs (Accepted / For Review), booking cards, cancelled booking styling, detail view, and “View in CODA” buttons; WordPress admin settings page with access key display, URL copy, and key regeneration.


About Doorways Into Your Business

Doorways Into Your Business (DIYB) is a digital agency based in Caledonia, Ontario, Canada. We help small businesses and non-profit organizations build and grow their digital presence through WordPress development, custom plugin solutions, API integrations, and business automation.

We specialize in practical, purpose-built tools — like this one — that solve real operational problems for the organizations we work with.


Support

For support or feature requests related to this plugin, please contact Doorways Into Your Business.