Add Houzez form exports and verified Gitea release updates
All checks were successful
Test and publish WordPress plugin / release (push) Successful in 33s
All checks were successful
Test and publish WordPress plugin / release (push) Successful in 33s
This commit is contained in:
99
README.md
99
README.md
@@ -0,0 +1,99 @@
|
||||
# Jen Home Contact Fields and Exports
|
||||
|
||||
WordPress/Houzez customization for **staging.jenhome.net**.
|
||||
|
||||
Author: **Josh Stevens Sr** · Website: [hostLabs](https://hostlabs.pro/)
|
||||
|
||||
The installed plugin directory remains `jenhome-contact-exports`; the Gitea
|
||||
repository is named `jenhomeforms`.
|
||||
|
||||
## Behavior
|
||||
|
||||
Contact forms collect First Name, optional Middle Name, Last Name and the visitor's
|
||||
answer to “How did you hear about us?”. The existing friend-name question is
|
||||
identified separately from a property address. Original forms, CRM persistence,
|
||||
notifications and existing security checks remain in place.
|
||||
|
||||
Inquiries CSV columns, in order:
|
||||
|
||||
1. Submission Date
|
||||
2. First Name
|
||||
3. Middle Name
|
||||
4. Last Name
|
||||
5. Referral Source
|
||||
6. Referrer Name
|
||||
7. Source Link
|
||||
8. Email
|
||||
9. Mobile
|
||||
|
||||
Submission dates use America/New_York with an explicit UTC offset. Leads exports
|
||||
retain their existing fields. CRM views still show inquiry/property details even
|
||||
though the shorter Inquiries CSV omits them. Historical records are not backfilled
|
||||
or split; relationships use IDs, never email matching.
|
||||
|
||||
The plugin creates a prefixed `jenhome_contact_fields` extension table for middle
|
||||
names and exact submission provenance. Native Houzez tables and vendor files are
|
||||
not modified. Keep this table when rolling back or deactivating the plugin.
|
||||
|
||||
## Releases and WordPress updates
|
||||
|
||||
The owner-created repository is public. WordPress needs no repository credential.
|
||||
The `Update URI` points to this repository, while the plugin website remains
|
||||
hostLabs. An active staging installation checks the latest published stable
|
||||
`vMAJOR.MINOR.PATCH` Gitea release through WordPress's update system.
|
||||
|
||||
Every release must include:
|
||||
|
||||
- `jenhome-contact-exports-VERSION.zip`
|
||||
- `jenhome-contact-exports-VERSION.zip.sha256`
|
||||
|
||||
Only the four runtime files belong in the ZIP, under `jenhome-contact-exports/`.
|
||||
The build script produces that layout. The updater checks the checksum, exact
|
||||
file list, ZIP version and same-host HTTPS download redirects. Drafts, prereleases,
|
||||
incomplete releases and unverified packages are ignored or rejected. A failed
|
||||
check leaves the installed plugin in place. Metadata is cached for one hour;
|
||||
opening WordPress Dashboard → Updates clears this plugin's metadata cache.
|
||||
|
||||
WordPress can install through **Update now** or its native **Enable auto-updates**
|
||||
setting. Automatic updates run on WordPress's cron schedule, not on every Git push.
|
||||
The plugin must remain active for its updater to run.
|
||||
|
||||
## Publishing
|
||||
|
||||
Gitea Actions must have an online Docker-capable runner labeled `ubuntu-latest`.
|
||||
The workflow uses the official PHP 8.4 container and the job's ephemeral repository
|
||||
token. It never needs the WordPress SSH key or a permanent Gitea token.
|
||||
|
||||
1. Edit code and `CHANGELOG.md`; update both the plugin header Version and
|
||||
`Jenhome_Contact_Exports::VERSION`.
|
||||
2. Commit and push to `main`. The workflow lints PHP, runs the standalone updater
|
||||
and CSV tests, and builds the ZIP.
|
||||
3. After checks and staging validation pass, create and push a matching tag:
|
||||
`git tag v1.2.1` then `git push origin v1.2.1`.
|
||||
4. The tag workflow repeats checks, builds the package, uploads both assets to a
|
||||
draft, and publishes the release only after uploads succeed.
|
||||
|
||||
Published versions are not overwritten. If a publishing job stops with a partial
|
||||
draft, review that draft and its assets before retrying, or publish a new version.
|
||||
Do not use Gitea's automatically generated source archive as the WordPress ZIP.
|
||||
|
||||
Local checks (PHP 8.1+ with ZIP support, Python 3):
|
||||
|
||||
```sh
|
||||
php tests/unit.php
|
||||
python3 scripts/build-release.py v1.2.0
|
||||
```
|
||||
|
||||
## Scope and rollback
|
||||
|
||||
The plugin runs only when both the home URL and WordPress directory identify
|
||||
`staging.jenhome.net`. Installing it on production does not enable its behavior or
|
||||
updater. A production rollout requires a separately reviewed scope change.
|
||||
|
||||
Back up the current plugin directory before the first updater installation.
|
||||
Deactivate this plugin to return to native behavior, or reinstall the previous
|
||||
verified plugin ZIP. Preserve the extension table and all contact records.
|
||||
|
||||
The repository contains no credentials, contact records, database dumps or vendor
|
||||
source. Server integration tests use separate private synthetic fixtures with
|
||||
email/webhook suppression and transaction rollback.
|
||||
|
||||
Reference in New Issue
Block a user