Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
135a5a3b83 | ||
|
|
005aab8139 | ||
|
|
171b193498 |
@@ -8,7 +8,15 @@
|
|||||||
"Bash(node \"C:\\\\Users\\\\mattc\\\\.claude\\\\plugins\\\\cache\\\\impeccable\\\\impeccable\\\\3.1.1\\\\skills\\\\impeccable\\\\scripts\\\\load-context.mjs\")",
|
"Bash(node \"C:\\\\Users\\\\mattc\\\\.claude\\\\plugins\\\\cache\\\\impeccable\\\\impeccable\\\\3.1.1\\\\skills\\\\impeccable\\\\scripts\\\\load-context.mjs\")",
|
||||||
"Bash(cat \"C:\\\\Users\\\\mattc\\\\.claude\\\\plugins\\\\cache\\\\impeccable\\\\impeccable\\\\3.1.1\\\\skills\\\\impeccable\\\\reference\\\\distill.md\" 2>&1 | head -100)",
|
"Bash(cat \"C:\\\\Users\\\\mattc\\\\.claude\\\\plugins\\\\cache\\\\impeccable\\\\impeccable\\\\3.1.1\\\\skills\\\\impeccable\\\\reference\\\\distill.md\" 2>&1 | head -100)",
|
||||||
"Read(//c/Users/mattc/.claude/plugins/cache/impeccable/impeccable/3.1.1/skills/impeccable/reference/**)",
|
"Read(//c/Users/mattc/.claude/plugins/cache/impeccable/impeccable/3.1.1/skills/impeccable/reference/**)",
|
||||||
"Bash(node *)"
|
"Bash(node *)",
|
||||||
|
"WebFetch(domain:sticksandbones.co.nz)",
|
||||||
|
"WebFetch(domain:fetchdogwalking.co.nz)",
|
||||||
|
"Bash(npx --no-install svelte-check --tsconfig ./tsconfig.json --threshold error)",
|
||||||
|
"Bash(python -c \"import ast; ast.parse\\(open\\('main.py',encoding='utf-8'\\).read\\(\\)\\); ast.parse\\(open\\('mail_api/models.py',encoding='utf-8'\\).read\\(\\)\\); print\\('ok'\\)\")",
|
||||||
|
"Bash(python *)",
|
||||||
|
"Bash(npm test *)",
|
||||||
|
"Bash(npx svelte-kit *)",
|
||||||
|
"Bash(npx svelte-check *)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# syntax=docker/dockerfile:1.7
|
||||||
ARG APP_VERSION=4.0.1
|
ARG APP_VERSION=4.0.1
|
||||||
|
|
||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
@@ -5,13 +6,30 @@ ARG APP_VERSION
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json ./
|
# 1. Dependencies — only re-runs when package*.json change.
|
||||||
COPY package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
|
# 2. Image assets in their own layer. Enhanced-img content-hashes its inputs,
|
||||||
|
# so when these files are unchanged the BuildKit cache mount below replays
|
||||||
|
# the previous WebP/AVIF outputs instead of regenerating them.
|
||||||
|
COPY src/lib/images ./src/lib/images
|
||||||
|
COPY static ./static
|
||||||
|
|
||||||
|
# 3. Build config (changes rarely).
|
||||||
|
COPY svelte.config.js vite.config.ts tsconfig.json ./
|
||||||
|
|
||||||
|
# 4. Everything else. Component-only edits invalidate this layer but the vite
|
||||||
|
# transform cache below keeps the expensive image pipeline warm.
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN node --experimental-strip-types --import="file:///app/scripts/sveltekit-resolver.mjs" scripts/export-homepage-content.mjs
|
RUN node --experimental-strip-types --import="file:///app/scripts/sveltekit-resolver.mjs" scripts/export-homepage-content.mjs
|
||||||
RUN npm run build
|
|
||||||
|
# Persist vite's transform cache across builds. Enhanced-img stores its
|
||||||
|
# generated raster variants here keyed by source-image hash, so unchanged
|
||||||
|
# images skip the sharp/resize/encode pass entirely.
|
||||||
|
RUN --mount=type=cache,target=/app/node_modules/.vite,sharing=locked \
|
||||||
|
npm run build
|
||||||
|
|
||||||
FROM node:22-alpine AS runner
|
FROM node:22-alpine AS runner
|
||||||
ARG APP_VERSION
|
ARG APP_VERSION
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ RATE_LIMIT_MAX_PER_EMAIL=3
|
|||||||
RATE_LIMIT_MIN_INTERVAL_SECONDS=20
|
RATE_LIMIT_MIN_INTERVAL_SECONDS=20
|
||||||
EMAIL_SEND_TIMEOUT_SECONDS=20
|
EMAIL_SEND_TIMEOUT_SECONDS=20
|
||||||
|
|
||||||
|
# Shared secret for the post-deploy form smoke tests. The deploy script reads
|
||||||
|
# this from the live remote .env and presents it via X-Deploy-Smoke; the
|
||||||
|
# mail-api short-circuits matching requests before email/db side effects.
|
||||||
|
# Rotate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
||||||
|
DEPLOY_SMOKE_SECRET=ed7261d3d7a5ac0a51e0cfb2bf4e2bd4009503605d2963d3ee766b7e885e76eb
|
||||||
|
|
||||||
# Security hardening — sensible defaults are in mail_api/config.py.
|
# Security hardening — sensible defaults are in mail_api/config.py.
|
||||||
# Override only if the public domains change or you need to allow extra origins.
|
# Override only if the public domains change or you need to allow extra origins.
|
||||||
# CORS_ALLOWED_ORIGINS=https://goodwalk.co.nz,https://www.goodwalk.co.nz,https://clients.goodwalk.co.nz,https://cp.goodwalk.co.nz
|
# CORS_ALLOWED_ORIGINS=https://goodwalk.co.nz,https://www.goodwalk.co.nz,https://clients.goodwalk.co.nz,https://cp.goodwalk.co.nz
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
[switch]$Force,
|
[switch]$Force,
|
||||||
[switch]$SkipSiteCheck,
|
[switch]$SkipSiteCheck,
|
||||||
@@ -8,9 +8,94 @@ param(
|
|||||||
# postgres database, overwriting anything currently in admin_kv. After the
|
# postgres database, overwriting anything currently in admin_kv. After the
|
||||||
# deploy completes the flag is automatically reset to 'auto' for subsequent
|
# deploy completes the flag is automatically reset to 'auto' for subsequent
|
||||||
# boots so we don't keep overwriting live data.
|
# boots so we don't keep overwriting live data.
|
||||||
[switch]$SeedAdminData
|
[switch]$SeedAdminData,
|
||||||
|
# Skip regenerating the legacy-clients-seed.json file. By default every
|
||||||
|
# deploy refreshes it from data/legacy-{clients,onboarding,contracts}.json.
|
||||||
|
# The mail-api merges this on boot, add-only — it never clobbers live data.
|
||||||
|
[switch]$SkipLegacySeed
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# UI helpers — colored output, step headers, timing
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
$script:UseColor = $Host.UI.SupportsVirtualTerminal -or [bool]$env:WT_SESSION -or [bool]$env:TERM_PROGRAM
|
||||||
|
$script:ESC = [char]27
|
||||||
|
|
||||||
|
# Goodwalk brand palette + status colors (24-bit ANSI where supported)
|
||||||
|
$script:CGreen = '38;2;122;170;122' # softened Goodwalk green for legibility on dark terminals
|
||||||
|
$script:CYellow = '38;2;255;209;0' # #FFD100
|
||||||
|
$script:CCyan = '96'
|
||||||
|
$script:CDim = '90'
|
||||||
|
$script:CGrey = '37'
|
||||||
|
$script:COk = '92'
|
||||||
|
$script:CWarn = '93'
|
||||||
|
$script:CErr = '91'
|
||||||
|
|
||||||
|
function Format-Color {
|
||||||
|
param([string]$Text, [string]$Code)
|
||||||
|
if (-not $script:UseColor) { return $Text }
|
||||||
|
return "$script:ESC[${Code}m$Text$script:ESC[0m"
|
||||||
|
}
|
||||||
|
|
||||||
|
function Show-DeployBanner {
|
||||||
|
$border = '──────────────────────────────────────────────────────' # 54 chars
|
||||||
|
$pad22 = ' ' * 22
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host (Format-Color " ╭$border╮" $script:CGreen)
|
||||||
|
Write-Host -NoNewline (Format-Color ' │' $script:CGreen)
|
||||||
|
Write-Host -NoNewline (Format-Color ' GoodWalk' $script:CYellow)
|
||||||
|
Write-Host -NoNewline (Format-Color ' · production deploy' $script:CDim)
|
||||||
|
Write-Host (Format-Color ($pad22 + '│') $script:CGreen)
|
||||||
|
Write-Host (Format-Color " ╰$border╯" $script:CGreen)
|
||||||
|
Write-Host ''
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-Info {
|
||||||
|
param([string]$Text)
|
||||||
|
Write-Host (Format-Color " $Text" $script:CDim)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-Note {
|
||||||
|
param([string]$Text)
|
||||||
|
Write-Host (" " + (Format-Color '·' $script:CYellow) + " " + (Format-Color $Text $script:CGrey))
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-Field {
|
||||||
|
param([string]$Label, [string]$Value)
|
||||||
|
$padded = $Label.PadRight(22)
|
||||||
|
Write-Host -NoNewline (Format-Color " $padded" $script:CDim)
|
||||||
|
Write-Host (Format-Color $Value $script:CGrey)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-Section {
|
||||||
|
param([string]$Text)
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host (Format-Color "── $Text " $script:CCyan)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-StepHeader {
|
||||||
|
param([string]$Text)
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host -NoNewline (Format-Color '▶ ' $script:CCyan)
|
||||||
|
Write-Host (Format-Color $Text $script:CGrey)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-Ok {
|
||||||
|
param([string]$Text, [double]$Sec = -1)
|
||||||
|
$suffix = if ($Sec -ge 0) { Format-Color (' ({0:N1}s)' -f $Sec) $script:CDim } else { '' }
|
||||||
|
Write-Host (" " + (Format-Color '✓' $script:COk) + " " + (Format-Color $Text $script:CGrey) + $suffix)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-Fail {
|
||||||
|
param([string]$Text)
|
||||||
|
Write-Host (" " + (Format-Color '✗' $script:CErr) + " " + (Format-Color $Text $script:CErr))
|
||||||
|
}
|
||||||
|
|
||||||
|
function Write-WarnLine {
|
||||||
|
param([string]$Text)
|
||||||
|
Write-Host (" " + (Format-Color '!' $script:CWarn) + " " + (Format-Color $Text $script:CWarn))
|
||||||
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Goodwalk production deployment settings
|
# Goodwalk production deployment settings
|
||||||
# Update these values before the first real deployment.
|
# Update these values before the first real deployment.
|
||||||
@@ -154,6 +239,32 @@ function Export-HomepageContent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Build-LegacySeed {
|
||||||
|
param(
|
||||||
|
[string]$ProjectPath
|
||||||
|
)
|
||||||
|
|
||||||
|
$scriptPath = Join-Path $ProjectPath 'scripts\build-legacy-seed.mjs'
|
||||||
|
|
||||||
|
if (-not (Test-Path -LiteralPath $scriptPath)) {
|
||||||
|
throw "Legacy seed builder not found: $scriptPath"
|
||||||
|
}
|
||||||
|
|
||||||
|
Push-Location $ProjectPath
|
||||||
|
try {
|
||||||
|
Invoke-External -FilePath 'node' -Arguments @($scriptPath)
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
|
$outputPath = Join-Path $ProjectPath 'mail-api\legacy-clients-seed.json'
|
||||||
|
if (-not (Test-Path -LiteralPath $outputPath)) {
|
||||||
|
throw "Legacy seed builder did not produce expected output: $outputPath"
|
||||||
|
}
|
||||||
|
return $outputPath
|
||||||
|
}
|
||||||
|
|
||||||
function New-UnixScriptCopy {
|
function New-UnixScriptCopy {
|
||||||
param(
|
param(
|
||||||
[string]$SourcePath
|
[string]$SourcePath
|
||||||
@@ -175,13 +286,13 @@ function New-UnixScriptCopy {
|
|||||||
function Invoke-SiteCheck {
|
function Invoke-SiteCheck {
|
||||||
param([string]$Url)
|
param([string]$Url)
|
||||||
|
|
||||||
Write-Host ''
|
Write-StepHeader 'Production site check'
|
||||||
Write-Host "[deploy] Checking production site: $Url"
|
Write-Info $Url
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = Invoke-WebRequest -Uri $Url -MaximumRedirection 5 -TimeoutSec 30
|
$response = Invoke-WebRequest -Uri $Url -MaximumRedirection 5 -TimeoutSec 30
|
||||||
if ($response.StatusCode -ge 200 -and $response.StatusCode -lt 400) {
|
if ($response.StatusCode -ge 200 -and $response.StatusCode -lt 400) {
|
||||||
Write-Host "[deploy] Site responded with HTTP $($response.StatusCode)"
|
Write-Ok "HTTP $($response.StatusCode) from production"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
throw "Unexpected HTTP $($response.StatusCode) from $Url"
|
throw "Unexpected HTTP $($response.StatusCode) from $Url"
|
||||||
@@ -189,13 +300,136 @@ function Invoke-SiteCheck {
|
|||||||
catch {
|
catch {
|
||||||
$message = "Post-deploy site check failed: $($_.Exception.Message). Verify URL: $Url"
|
$message = "Post-deploy site check failed: $($_.Exception.Message). Verify URL: $Url"
|
||||||
if ($SkipSiteCheck) {
|
if ($SkipSiteCheck) {
|
||||||
Write-Warning $message
|
Write-WarnLine $message
|
||||||
} else {
|
} else {
|
||||||
|
Write-Fail $message
|
||||||
throw $message
|
throw $message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-RemoteSmokeSecret {
|
||||||
|
param(
|
||||||
|
[string]$SshTarget,
|
||||||
|
[string[]]$SshArgList,
|
||||||
|
[string]$DeployPath
|
||||||
|
)
|
||||||
|
|
||||||
|
# Pulls DEPLOY_SMOKE_SECRET from the live .env that was just merged by the
|
||||||
|
# deploy. Single source of truth — no need to sync template and live.
|
||||||
|
$remoteCmd = "grep -E '^DEPLOY_SMOKE_SECRET=' '$DeployPath/.env' | tail -n1 | cut -d= -f2-"
|
||||||
|
$output = & ssh @SshArgList $SshTarget $remoteCmd 2>$null
|
||||||
|
if ($LASTEXITCODE -ne 0) { return $null }
|
||||||
|
if ([string]::IsNullOrWhiteSpace($output)) { return $null }
|
||||||
|
return ($output -join '').Trim()
|
||||||
|
}
|
||||||
|
|
||||||
|
function Invoke-FormSmokeTest {
|
||||||
|
param(
|
||||||
|
[string]$Url,
|
||||||
|
[string]$Secret,
|
||||||
|
[hashtable]$Payload,
|
||||||
|
[string]$Label
|
||||||
|
)
|
||||||
|
|
||||||
|
$json = $Payload | ConvertTo-Json -Compress -Depth 6
|
||||||
|
$headers = @{
|
||||||
|
'X-Deploy-Smoke' = $Secret
|
||||||
|
'Content-Type' = 'application/json'
|
||||||
|
'User-Agent' = 'goodwalk-deploy-smoke/1.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$response = Invoke-WebRequest -Uri $Url -Method Post -Headers $headers -Body $json -TimeoutSec 30 -MaximumRedirection 0
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
throw "$Label smoke test failed: $($_.Exception.Message)"
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($response.StatusCode -ne 200) {
|
||||||
|
throw "$Label smoke test returned HTTP $($response.StatusCode) (expected 200)"
|
||||||
|
}
|
||||||
|
|
||||||
|
$body = $null
|
||||||
|
try { $body = $response.Content | ConvertFrom-Json } catch { }
|
||||||
|
if (-not $body -or -not $body.ok -or -not $body.smoke) {
|
||||||
|
throw "$Label smoke test response did not include ok=true,smoke=true. Body: $($response.Content)"
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Ok "$Label OK (request_id=$($body.request_id))"
|
||||||
|
}
|
||||||
|
|
||||||
|
function Invoke-AllFormSmokeTests {
|
||||||
|
param(
|
||||||
|
[string]$SshTarget,
|
||||||
|
[string[]]$SshArgList,
|
||||||
|
[string]$DeployPath
|
||||||
|
)
|
||||||
|
|
||||||
|
Write-StepHeader 'Production form smoke tests'
|
||||||
|
|
||||||
|
$secret = Get-RemoteSmokeSecret -SshTarget $SshTarget -SshArgList $SshArgList -DeployPath $DeployPath
|
||||||
|
if ([string]::IsNullOrWhiteSpace($secret)) {
|
||||||
|
$msg = "DEPLOY_SMOKE_SECRET not found in $DeployPath/.env on the server. Smoke tests cannot run."
|
||||||
|
if ($SkipSiteCheck) {
|
||||||
|
Write-WarnLine $msg
|
||||||
|
return
|
||||||
|
}
|
||||||
|
Write-Fail $msg
|
||||||
|
throw $msg
|
||||||
|
}
|
||||||
|
|
||||||
|
# Payloads carry only the fields each Pydantic model requires. Validation,
|
||||||
|
# rate limiting, honeypot, email send and DB writes are all bypassed by the
|
||||||
|
# mail-api smoke shortcut, but Pydantic still parses the body — so this also
|
||||||
|
# catches schema breakage.
|
||||||
|
$smokeEmail = 'deploy-smoke@goodwalk.co.nz'
|
||||||
|
$bookingPayload = @{
|
||||||
|
fullName = 'Deploy Smoke'
|
||||||
|
email = $smokeEmail
|
||||||
|
phone = '+64-00-000-0000'
|
||||||
|
enquiryType = 'booking'
|
||||||
|
page = '/deploy-smoke'
|
||||||
|
}
|
||||||
|
$onboardingPayload = @{
|
||||||
|
fullName = 'Deploy Smoke'
|
||||||
|
email = $smokeEmail
|
||||||
|
phone = '+64-00-000-0000'
|
||||||
|
address = '1 Smoke St, Auckland'
|
||||||
|
dogName = 'Smoke'
|
||||||
|
dogBreed = 'Test'
|
||||||
|
vetName = 'Dr Smoke'
|
||||||
|
vetPhone = '+64-00-000-0000'
|
||||||
|
emergencyContactName = 'Smoke Contact'
|
||||||
|
emergencyContactPhone = '+64-00-000-0000'
|
||||||
|
signatureDataUrl = 'data:image/png;base64,iVBORw0KGgo='
|
||||||
|
page = '/deploy-smoke'
|
||||||
|
}
|
||||||
|
$contractPayload = @{
|
||||||
|
fullName = 'Deploy Smoke'
|
||||||
|
email = $smokeEmail
|
||||||
|
phone = '+64-00-000-0000'
|
||||||
|
address = '1 Smoke St, Auckland'
|
||||||
|
dogName = 'Smoke'
|
||||||
|
dogBreed = 'Test'
|
||||||
|
serviceType = 'pack-walks'
|
||||||
|
startDate = '2099-01-01'
|
||||||
|
signatureDataUrl = 'data:image/png;base64,iVBORw0KGgo='
|
||||||
|
page = '/deploy-smoke'
|
||||||
|
}
|
||||||
|
|
||||||
|
# Each endpoint is exercised on the subdomain that actually hosts it
|
||||||
|
# in production (see nginx/goodwalk.co.nz.svelte.conf.example):
|
||||||
|
# /api/submit → www.goodwalk.co.nz
|
||||||
|
# /api/onboarding-submit → clients.goodwalk.co.nz
|
||||||
|
# /api/contract-submit → clients.goodwalk.co.nz
|
||||||
|
Invoke-FormSmokeTest -Url 'https://www.goodwalk.co.nz/api/submit' -Secret $secret -Payload $bookingPayload -Label 'booking form (www /api/submit)'
|
||||||
|
Invoke-FormSmokeTest -Url 'https://clients.goodwalk.co.nz/api/onboarding-submit' -Secret $secret -Payload $onboardingPayload -Label 'onboarding form (clients /api/onboarding-submit)'
|
||||||
|
Invoke-FormSmokeTest -Url 'https://clients.goodwalk.co.nz/api/contract-submit' -Secret $secret -Payload $contractPayload -Label 'contract form (clients /api/contract-submit)'
|
||||||
|
}
|
||||||
|
|
||||||
|
Show-DeployBanner
|
||||||
|
|
||||||
Assert-Command ssh
|
Assert-Command ssh
|
||||||
Assert-Command scp
|
Assert-Command scp
|
||||||
Assert-Command tar
|
Assert-Command tar
|
||||||
@@ -243,75 +477,106 @@ $scpArchiveTarget = '{0}:{1}' -f $sshTarget, $RemoteArchivePath
|
|||||||
$scpHelperTarget = '{0}:{1}' -f $sshTarget, $RemoteHelperPath
|
$scpHelperTarget = '{0}:{1}' -f $sshTarget, $RemoteHelperPath
|
||||||
$sshArgs = Get-SshArgumentList
|
$sshArgs = Get-SshArgumentList
|
||||||
|
|
||||||
Write-Host '[deploy] Main Goodwalk website deployment'
|
Write-Section 'Configuration'
|
||||||
Write-Host "[deploy] Local project path: $LocalProjectPath"
|
Write-Field 'Local project' $LocalProjectPath
|
||||||
Write-Host "[deploy] Remote deployment path: $RemoteDeploymentPath"
|
Write-Field 'Remote path' $RemoteDeploymentPath
|
||||||
Write-Host "[deploy] Remote compose file: $ComposeFileName"
|
Write-Field 'Compose file' $ComposeFileName
|
||||||
Write-Host "[deploy] Docker project name: $DockerProjectName"
|
Write-Field 'Docker project' $DockerProjectName
|
||||||
Write-Host "[deploy] Shared nginx config: $NginxConfigTarget"
|
Write-Field 'Shared nginx conf' $NginxConfigTarget
|
||||||
Write-Host "[deploy] Shared nginx compose file: $NginxComposeFile"
|
Write-Field 'Shared nginx compose' $NginxComposeFile
|
||||||
Write-Host "[deploy] Maintenance host dir: $MaintenanceHostDir (must be bind-mounted at /var/www/maintenance:ro)"
|
Write-Field 'Maintenance dir' "$MaintenanceHostDir (mounted at /var/www/maintenance:ro)"
|
||||||
Write-Host "[deploy] Maintenance flag path: $MaintenanceFlagPath"
|
Write-Field 'Maintenance flag' $MaintenanceFlagPath
|
||||||
Write-Host "[deploy] SSH target: $sshTarget"
|
Write-Field 'SSH target' $sshTarget
|
||||||
Write-Host "[deploy] SSH config: $SshConfigPath"
|
Write-Field 'SSH config' $SshConfigPath
|
||||||
if (-not [string]::IsNullOrWhiteSpace($Service)) {
|
if (-not [string]::IsNullOrWhiteSpace($Service)) {
|
||||||
Write-Host "[deploy] Target service: $Service"
|
Write-Field 'Target service' $Service
|
||||||
}
|
}
|
||||||
if ($SeedAdminData) {
|
if ($SeedAdminData) {
|
||||||
Write-Host '[deploy] Admin data: seeding postgres from JSON on next mail-api boot'
|
Write-Field 'Admin data' 'seed postgres from JSON on next mail-api boot'
|
||||||
|
}
|
||||||
|
if ($SkipLegacySeed) {
|
||||||
|
Write-Field 'Legacy clients seed' 'SKIPPED (existing mail-api/legacy-clients-seed.json reused)'
|
||||||
|
} else {
|
||||||
|
Write-Field 'Legacy clients seed' 'rebuild from data/legacy-*.json (add-only merge on boot)'
|
||||||
}
|
}
|
||||||
if ([string]::IsNullOrWhiteSpace($SshKeyPath)) {
|
if ([string]::IsNullOrWhiteSpace($SshKeyPath)) {
|
||||||
Write-Host '[deploy] SSH auth: interactive password prompt'
|
Write-Field 'SSH auth' 'interactive password prompt'
|
||||||
} else {
|
} else {
|
||||||
Write-Host "[deploy] SSH auth: key file $SshKeyPath"
|
Write-Field 'SSH auth' "key file $SshKeyPath"
|
||||||
}
|
}
|
||||||
Write-Host ''
|
|
||||||
Write-Host '[deploy] Safety notes:'
|
Write-Section 'Safety notes'
|
||||||
Write-Host ' - Only the top-level Goodwalk compose project will be updated.'
|
Write-Note 'Only the top-level Goodwalk compose project will be updated.'
|
||||||
Write-Host ' - Legacy WordPress/onboarding compose files are not used.'
|
Write-Note 'Legacy WordPress/onboarding compose files are not used.'
|
||||||
Write-Host ' - Remote .env files are preserved because they are not uploaded.'
|
Write-Note 'Remote .env files are preserved because they are not uploaded.'
|
||||||
Write-Host ' - No global Docker prune/stop/delete commands are used.'
|
Write-Note 'No global Docker prune/stop/delete commands are used.'
|
||||||
Write-Host ' - Shared nginx will be updated and reloaded with the Docker-DNS-based config.'
|
Write-Note 'Shared nginx will be updated and reloaded with the Docker-DNS-based config.'
|
||||||
Write-Host ' - Subdomains served by this stack:'
|
|
||||||
Write-Host ' goodwalk.co.nz / www.goodwalk.co.nz (marketing)'
|
Write-Section 'Subdomains served by this stack'
|
||||||
Write-Host ' clients.goodwalk.co.nz (client onboarding + contracts)'
|
Write-Note 'goodwalk.co.nz / www.goodwalk.co.nz — marketing'
|
||||||
Write-Host ' cp.goodwalk.co.nz (owner admin dashboard)'
|
Write-Note 'clients.goodwalk.co.nz — client onboarding + contracts'
|
||||||
Write-Host ' onboarding/admin remain legacy redirect aliases'
|
Write-Note 'cp.goodwalk.co.nz — owner admin dashboard'
|
||||||
|
Write-Note 'onboarding/admin remain legacy redirect aliases'
|
||||||
if ($SeedAdminData) {
|
if ($SeedAdminData) {
|
||||||
Write-Host ' - Admin data seed: mail-api will OVERWRITE postgres admin_kv from the JSON volume.'
|
Write-Host ''
|
||||||
|
Write-WarnLine 'Admin data seed: mail-api will OVERWRITE postgres admin_kv from the JSON volume.'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not $Force) {
|
if (-not $Force) {
|
||||||
$confirmation = Read-Host "Type DEPLOY to continue with the remote path '$RemoteDeploymentPath'"
|
Write-Host ''
|
||||||
|
Write-Host -NoNewline (" " + (Format-Color '?' $script:CYellow) + " ")
|
||||||
|
Write-Host -NoNewline (Format-Color 'Type ' $script:CGrey)
|
||||||
|
Write-Host -NoNewline (Format-Color 'DEPLOY' $script:CYellow)
|
||||||
|
Write-Host -NoNewline (Format-Color " to continue with remote path '" $script:CGrey)
|
||||||
|
Write-Host -NoNewline (Format-Color $RemoteDeploymentPath $script:CCyan)
|
||||||
|
Write-Host -NoNewline (Format-Color "' " $script:CGrey)
|
||||||
|
$confirmation = Read-Host
|
||||||
if ($confirmation -ne 'DEPLOY') {
|
if ($confirmation -ne 'DEPLOY') {
|
||||||
|
Write-Fail 'Deployment cancelled.'
|
||||||
throw 'Deployment cancelled.'
|
throw 'Deployment cancelled.'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$archivePath = $null
|
$archivePath = $null
|
||||||
$uploadHelperPath = $null
|
$uploadHelperPath = $null
|
||||||
|
$totalWatch = [System.Diagnostics.Stopwatch]::StartNew()
|
||||||
|
$stepWatch = [System.Diagnostics.Stopwatch]::new()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Host ''
|
Write-StepHeader 'Export homepage content for PostgreSQL sync'
|
||||||
Write-Host '[deploy] Exporting current homepage content for PostgreSQL sync'
|
$stepWatch.Restart()
|
||||||
Export-HomepageContent -ProjectPath $LocalProjectPath -OutputPath $GeneratedHomepageContentPath
|
Export-HomepageContent -ProjectPath $LocalProjectPath -OutputPath $GeneratedHomepageContentPath
|
||||||
|
Write-Ok 'Homepage content exported' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
Write-Host ''
|
if (-not $SkipLegacySeed) {
|
||||||
Write-Host '[deploy] Creating deployment archive'
|
Write-StepHeader 'Build legacy clients seed for mail-api image'
|
||||||
|
$stepWatch.Restart()
|
||||||
|
$legacySeedPath = Build-LegacySeed -ProjectPath $LocalProjectPath
|
||||||
|
Write-Info "Seed file: $legacySeedPath"
|
||||||
|
Write-Ok 'Legacy clients seed ready' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
} else {
|
||||||
|
Write-Note 'Legacy clients seed step skipped (-SkipLegacySeed).'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-StepHeader 'Create deployment archive'
|
||||||
|
$stepWatch.Restart()
|
||||||
$archivePath = New-DeployArchive -ProjectPath $LocalProjectPath
|
$archivePath = New-DeployArchive -ProjectPath $LocalProjectPath
|
||||||
Write-Host "[deploy] Archive ready: $archivePath"
|
Write-Info "Archive: $archivePath"
|
||||||
|
Write-Ok 'Archive ready' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
Write-Host ''
|
Write-StepHeader 'Upload remote helper'
|
||||||
Write-Host '[deploy] Uploading remote helper'
|
$stepWatch.Restart()
|
||||||
$uploadHelperPath = New-UnixScriptCopy -SourcePath $LocalRemoteHelperPath
|
$uploadHelperPath = New-UnixScriptCopy -SourcePath $LocalRemoteHelperPath
|
||||||
Invoke-External -FilePath 'scp' -Arguments ($sshArgs + @($uploadHelperPath, $scpHelperTarget))
|
Invoke-External -FilePath 'scp' -Arguments ($sshArgs + @($uploadHelperPath, $scpHelperTarget))
|
||||||
|
Write-Ok 'Helper uploaded' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
Write-Host ''
|
Write-StepHeader 'Upload application archive'
|
||||||
Write-Host '[deploy] Uploading application archive'
|
$stepWatch.Restart()
|
||||||
Invoke-External -FilePath 'scp' -Arguments ($sshArgs + @($archivePath, $scpArchiveTarget))
|
Invoke-External -FilePath 'scp' -Arguments ($sshArgs + @($archivePath, $scpArchiveTarget))
|
||||||
|
Write-Ok 'Archive uploaded' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
Write-Host ''
|
Write-StepHeader 'Run remote deployment'
|
||||||
Write-Host '[deploy] Running remote deployment'
|
$stepWatch.Restart()
|
||||||
Invoke-External -FilePath 'ssh' -Arguments ($sshArgs + @(
|
Invoke-External -FilePath 'ssh' -Arguments ($sshArgs + @(
|
||||||
$sshTarget,
|
$sshTarget,
|
||||||
'bash',
|
'bash',
|
||||||
@@ -338,9 +603,10 @@ try {
|
|||||||
$MaintenanceFlagPath
|
$MaintenanceFlagPath
|
||||||
) + $(if (-not [string]::IsNullOrWhiteSpace($Service)) { @('--service', $Service) } else { @() }) `
|
) + $(if (-not [string]::IsNullOrWhiteSpace($Service)) { @('--service', $Service) } else { @() }) `
|
||||||
+ $(if ($SeedAdminData) { @('--seed-admin-data') } else { @() }))
|
+ $(if ($SeedAdminData) { @('--seed-admin-data') } else { @() }))
|
||||||
|
Write-Ok 'Remote deployment finished' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
Write-Host ''
|
Write-StepHeader 'Clean remote temporary files'
|
||||||
Write-Host '[deploy] Cleaning remote temporary files'
|
$stepWatch.Restart()
|
||||||
Invoke-External -FilePath 'ssh' -Arguments ($sshArgs + @(
|
Invoke-External -FilePath 'ssh' -Arguments ($sshArgs + @(
|
||||||
$sshTarget,
|
$sshTarget,
|
||||||
'rm',
|
'rm',
|
||||||
@@ -348,13 +614,28 @@ try {
|
|||||||
$RemoteArchivePath,
|
$RemoteArchivePath,
|
||||||
$RemoteHelperPath
|
$RemoteHelperPath
|
||||||
))
|
))
|
||||||
|
Write-Ok 'Remote temp files cleaned' $stepWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
if (-not $SkipSiteCheck) {
|
if (-not $SkipSiteCheck) {
|
||||||
Invoke-SiteCheck -Url $VerifyUrl
|
Invoke-SiteCheck -Url $VerifyUrl
|
||||||
|
Invoke-AllFormSmokeTests -SshTarget $sshTarget -SshArgList $sshArgs -DeployPath $RemoteDeploymentPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$totalWatch.Stop()
|
||||||
|
$border = '──────────────────────────────────────────────────────'
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host (Format-Color " ╭$border╮" $script:CGreen)
|
||||||
|
Write-Host -NoNewline (Format-Color ' │' $script:CGreen)
|
||||||
|
Write-Host -NoNewline (Format-Color ' ✓ ' $script:COk)
|
||||||
|
Write-Host -NoNewline (Format-Color 'Deployment complete' $script:CYellow)
|
||||||
|
$elapsedText = (' · {0:N1}s total' -f $totalWatch.Elapsed.TotalSeconds)
|
||||||
|
Write-Host -NoNewline (Format-Color $elapsedText $script:CDim)
|
||||||
|
$visibleLen = (' ✓ Deployment complete' + $elapsedText).Length
|
||||||
|
$padLen = 54 - $visibleLen
|
||||||
|
if ($padLen -lt 1) { $padLen = 1 }
|
||||||
|
Write-Host (Format-Color ((' ' * $padLen) + '│') $script:CGreen)
|
||||||
|
Write-Host (Format-Color " ╰$border╯" $script:CGreen)
|
||||||
Write-Host ''
|
Write-Host ''
|
||||||
Write-Host '[deploy] Deployment completed successfully'
|
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if ($archivePath -and (Test-Path -LiteralPath $archivePath)) {
|
if ($archivePath -and (Test-Path -LiteralPath $archivePath)) {
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ services:
|
|||||||
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-}
|
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-}
|
||||||
TRUSTED_HOSTS: ${TRUSTED_HOSTS:-}
|
TRUSTED_HOSTS: ${TRUSTED_HOSTS:-}
|
||||||
MAX_REQUEST_BODY_BYTES: ${MAX_REQUEST_BODY_BYTES:-}
|
MAX_REQUEST_BODY_BYTES: ${MAX_REQUEST_BODY_BYTES:-}
|
||||||
|
DEPLOY_SMOKE_SECRET: ${DEPLOY_SMOKE_SECRET:-}
|
||||||
PYTHONUNBUFFERED: '1'
|
PYTHONUNBUFFERED: '1'
|
||||||
TZ: ${TZ:-Pacific/Auckland}
|
TZ: ${TZ:-Pacific/Auckland}
|
||||||
expose:
|
expose:
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
-- A/B test event log. One row per exposure / cta_click / conversion.
|
||||||
|
-- Kept narrow on purpose: the goal is "did variant X get more conversions
|
||||||
|
-- than control" — not full session reconstruction.
|
||||||
|
create table if not exists ab_events (
|
||||||
|
id bigserial primary key,
|
||||||
|
experiment text not null,
|
||||||
|
variant text not null,
|
||||||
|
event_type text not null check (event_type in ('exposure', 'cta_click', 'conversion')),
|
||||||
|
anon_id text not null,
|
||||||
|
meta jsonb not null default '{}'::jsonb,
|
||||||
|
created_at timestamptz not null default now()
|
||||||
|
);
|
||||||
|
|
||||||
|
create index if not exists ab_events_experiment_variant_idx
|
||||||
|
on ab_events (experiment, variant, event_type, created_at desc);
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Goodwalk docs
|
||||||
|
|
||||||
|
Reference, audit, and planning documents for the Goodwalk site. Project-level rules live in [`/CLAUDE.md`](../CLAUDE.md); everything else lives here.
|
||||||
|
|
||||||
|
## Product & brand
|
||||||
|
|
||||||
|
- [product.md](product.md) — users, purpose, brand personality, design principles
|
||||||
|
- [marketing-principles.md](marketing-principles.md) — Chris Do / Debbie Millman principles, applied to the rebuild
|
||||||
|
- [marketing-voice.md](marketing-voice.md) — copy/voice style guide (calm, certain, warm, specific)
|
||||||
|
|
||||||
|
## Design
|
||||||
|
|
||||||
|
- [design-language.md](design-language.md) — canonical visual system: colour, typography, spacing, motion, surface, photography direction
|
||||||
|
- [design-audit.md](design-audit.md) — codebase-wide design drift audit + token/refactor changelog
|
||||||
|
- [homepage-flow-audit.md](homepage-flow-audit.md) — section-by-section IA review of the homepage
|
||||||
|
- [mobile-polish.md](mobile-polish.md) — mobile conversion & comfort tracker
|
||||||
|
- [ux-polish.md](ux-polish.md) — conversion audit tracker
|
||||||
|
|
||||||
|
## SEO & growth
|
||||||
|
|
||||||
|
- [competitors.md](competitors.md) — Fetch / Sticks & Bones analysis + what to borrow
|
||||||
|
- [comparison-page-plan.md](comparison-page-plan.md) — brief for the dog-walker-vs-daycare-vs-sitter page
|
||||||
|
- [nz-citations.md](nz-citations.md) — canonical NAP block + directory submission list
|
||||||
|
|
||||||
|
## Ops
|
||||||
|
|
||||||
|
- [deployment.md](deployment.md) — production deploy flow, server layout, nginx cutover
|
||||||
|
- [webp-conversion.md](webp-conversion.md) — one-time WebP setup for hero images
|
||||||
|
- [onboarding.md](onboarding.md) — client onboarding flow, lifecycle status, legacy CSV migration, Postgres target schema
|
||||||
|
|
||||||
|
## Archive
|
||||||
|
|
||||||
|
- [archive/v3-design-audit.md](archive/v3-design-audit.md) — superseded by [design-audit.md](design-audit.md)
|
||||||
|
- [archive/marketing-voice-v2-proposal.md](archive/marketing-voice-v2-proposal.md) — one-shot copy-change proposal against [marketing-voice.md](marketing-voice.md)
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
# Competitor analysis — Auckland dog walking
|
||||||
|
|
||||||
|
A look at what two of our closest competitors do well, and what's worth borrowing for Goodwalk. Captured 2026-05-20.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Fetch Dog Walking — https://fetchdogwalking.co.nz
|
||||||
|
|
||||||
|
### What they do well
|
||||||
|
|
||||||
|
- **Founder-led narrative.** Andy Evans is named on the site and the philosophy ("freedom to explore in nature is an essential investment in our dog's health") is front and centre. Feels like a person, not a faceless service.
|
||||||
|
- **Content depth.** They go beyond "book a walk" and publish:
|
||||||
|
- Auckland **Dog Parks** guide
|
||||||
|
- Basic **Training** tips
|
||||||
|
- **FAQs** page
|
||||||
|
- "Our Dogs" and "Our People" pages
|
||||||
|
- **"Dog's Highlight of the Week"** — a recurring content hook that gives existing clients a reason to keep visiting the site and gives new visitors social proof.
|
||||||
|
- **Diversified offering.** The 100-acre Waitakere Ranges farm-stay / boarding service is a real differentiator — they're not just selling walks, they're selling a destination.
|
||||||
|
- **Positions on authority.** Tagline "Auckland's Leading Dog Walking Company" is bold and clear.
|
||||||
|
- **Strong primary CTA.** Homepage contact form is short (company, dog name, phone, email, suburb, message) — low friction.
|
||||||
|
|
||||||
|
### What we could implement
|
||||||
|
|
||||||
|
| Idea | Effort | Why |
|
||||||
|
|---|---|---|
|
||||||
|
| **Founder bio / "About Matt" page** with photo and philosophy | S | Personality is a moat. Easy SEO win for branded searches. |
|
||||||
|
| **"Dog of the Week" / Instagram-style spotlight on the homepage** | M | Gives the site an "alive" feel; reuses content we likely already post to social. Could pull from the existing client_profiles table. |
|
||||||
|
| **Dog parks of Auckland** content page | M | Pure SEO play — high-intent local search ("best dog parks Auckland"). Drives top-of-funnel traffic. |
|
||||||
|
| **Training tips / FAQ content hub** | M | Same SEO logic. Also reduces support load. |
|
||||||
|
| **"Our pack" page showing all dogs we walk** (with owner consent) | S | Trust + community. We already collect dog photos in onboarding. |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Sticks & Bones — https://sticksandbones.co.nz
|
||||||
|
|
||||||
|
### What they do well
|
||||||
|
|
||||||
|
- **Process is the product.** They sell their *enrollment process* as a trust signal:
|
||||||
|
1. Free Meet & Greet at home
|
||||||
|
2. **Minimum two Assessment Walks** before enrollment
|
||||||
|
3. Handler matching
|
||||||
|
4. App-based booking
|
||||||
|
This makes the service feel professional and screened — they're not taking everyone.
|
||||||
|
- **Real-time walk reports via app.** Clients get photos and a report after every walk. This is the single biggest differentiator and the most-mentioned feature in their testimonials.
|
||||||
|
- **Concrete trust signals.**
|
||||||
|
- Police-checked handlers
|
||||||
|
- Secure key handling process documented
|
||||||
|
- Handlers named individually ("Amanda walks our Cooper")
|
||||||
|
- Maximum 4 dogs per Urban Adventure Walk (explicit cap = safety)
|
||||||
|
- **Personalised client app** for scheduling, history, and reports — clients self-serve.
|
||||||
|
- **In-home dog sitting**, but only for enrolled walking clients (creates retention + upsell).
|
||||||
|
- **Tagline is benefit-led**, not feature-led: "dog walking made easy" + "active dogs behave better."
|
||||||
|
|
||||||
|
### What we could implement
|
||||||
|
|
||||||
|
| Idea | Effort | Why |
|
||||||
|
|---|---|---|
|
||||||
|
| **Post-walk reports** (photo + short note delivered by email or in the client portal) | L | This is the killer feature. Our admin dashboard already touches client_profiles — extending to walk records is a natural next step. Single biggest perceived-value lift available. |
|
||||||
|
| **Document our enrollment process** as a 3-step visual on the homepage (Enquire → Meet & Greet → First Walk) | S | We already do a Meet & Greet — we're just not selling it. Pure copy/design change. |
|
||||||
|
| **Cap group size publicly** (e.g. "max 4 dogs per pack") | S | Free trust signal if it matches reality. |
|
||||||
|
| **Name the team** with photos on About page | S | Sticks & Bones gets specific mentions of handlers by name in reviews — that only happens when you make handlers visible. |
|
||||||
|
| **Police-check / insurance / first-aid badges** in the footer or About page | S | Cheap credibility. |
|
||||||
|
| **Client portal extensions** — walk history, upcoming bookings, ability to reschedule | L | We already have auth + onboarding + admin dashboard. The data model is most of the way there. |
|
||||||
|
| **"Enrolled clients only" services** as a retention hook (e.g. boarding, sitting) | M | Mirrors S&B's sitting model. Existing clients get priority — gives a reason to stay engaged after onboarding. |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Cross-cutting themes
|
||||||
|
|
||||||
|
Both competitors do these things; we should too:
|
||||||
|
|
||||||
|
1. **Named humans on the site.** Founder, team, dogs. The word "we" without faces is worth less.
|
||||||
|
2. **Process as proof.** Both make their intake process visible — it doubles as marketing.
|
||||||
|
3. **Service ladder, not a service.** Walks → assessments → boarding/sitting → premium options. Gives clients somewhere to grow into.
|
||||||
|
4. **Locations as content.** Specific Auckland park / suburb mentions throughout — local SEO and "they know my area" trust.
|
||||||
|
|
||||||
|
## What Goodwalk has that they don't (lean into this)
|
||||||
|
|
||||||
|
- **Multi-step onboarding form** with signature, vet, emergency contacts, behavioural profile — already more thorough than what's visible on either competitor.
|
||||||
|
- **Database-backed client profiles** — foundation for a portal richer than S&B's (their app is the obvious next ceiling; we have data they don't seem to capture).
|
||||||
|
- **Brand-coloured design system** already in place (Goodwalk Green / Yellow) — distinct visual identity vs. the generic blue/green dog-walker templates.
|
||||||
|
|
||||||
|
## Suggested priority order
|
||||||
|
|
||||||
|
1. **Founder/team page + named handlers** (1 day, big trust lift)
|
||||||
|
2. **Visualise the enrollment process on the homepage** (1 day, sells the Meet & Greet we already do)
|
||||||
|
3. **Dog Parks of Auckland content page** (2-3 days, SEO compounding)
|
||||||
|
4. **Post-walk reports** in the client portal (1-2 weeks, table-stakes vs. S&B)
|
||||||
|
5. **Walk history / portal extensions** (2-3 weeks, retention moat)
|
||||||
@@ -6,7 +6,7 @@ The goal is not trend-chasing. The goal is to create a calm, trustworthy, modern
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Core Principles
|
## Core Principles
|
||||||
|
|
||||||
## 1. Warmth over perfection
|
## 1. Warmth over perfection
|
||||||
Goodwalk is a human service business. The experience should feel:
|
Goodwalk is a human service business. The experience should feel:
|
||||||
@@ -84,7 +84,7 @@ Modern premium design in 2026 is increasingly about restraint.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Colour System
|
## Colour System
|
||||||
|
|
||||||
Defined in:
|
Defined in:
|
||||||
`src/lib/styles/variables.css`
|
`src/lib/styles/variables.css`
|
||||||
@@ -104,7 +104,7 @@ Defined in:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Colour Philosophy
|
## Colour Philosophy
|
||||||
|
|
||||||
## Greens
|
## Greens
|
||||||
The green palette represents:
|
The green palette represents:
|
||||||
@@ -150,7 +150,7 @@ This creates a warmer, more refined feel.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Surface Design
|
## Surface Design
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
Modern interfaces should feel layered rather than flat.
|
Modern interfaces should feel layered rather than flat.
|
||||||
@@ -214,7 +214,7 @@ These gradients should be nearly invisible.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Typography
|
## Typography
|
||||||
|
|
||||||
Defined in:
|
Defined in:
|
||||||
`src/lib/styles/typography.css`
|
`src/lib/styles/typography.css`
|
||||||
@@ -226,7 +226,7 @@ Defined in:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Typography Philosophy
|
## Typography Philosophy
|
||||||
|
|
||||||
Typography should create:
|
Typography should create:
|
||||||
- confidence
|
- confidence
|
||||||
@@ -242,7 +242,7 @@ Avoid:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Typography Rules
|
## Typography Rules
|
||||||
|
|
||||||
## Body copy
|
## Body copy
|
||||||
Desktop:
|
Desktop:
|
||||||
@@ -289,7 +289,7 @@ Spacing should create hierarchy more than font weight.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Spacing System
|
## Spacing System
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
Modern premium interfaces feel expensive because they are under-filled.
|
Modern premium interfaces feel expensive because they are under-filled.
|
||||||
@@ -318,7 +318,7 @@ Avoid arbitrary spacing values.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Border Radius
|
## Border Radius
|
||||||
|
|
||||||
| Context | Radius |
|
| Context | Radius |
|
||||||
|---|---|
|
|---|---|
|
||||||
@@ -335,7 +335,7 @@ Avoid:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Shadows & Depth
|
## Shadows & Depth
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
Modern depth is atmospheric, not dramatic.
|
Modern depth is atmospheric, not dramatic.
|
||||||
@@ -371,7 +371,7 @@ inset 0 1px 0 rgba(255,255,255,0.04);
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Texture & Grain
|
## Texture & Grain
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
Digital flatness feels artificial.
|
Digital flatness feels artificial.
|
||||||
@@ -391,7 +391,7 @@ Texture must never become visibly noisy.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Motion System
|
## Motion System
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
Motion should feel calm and physical.
|
Motion should feel calm and physical.
|
||||||
@@ -433,7 +433,7 @@ filter: brightness(1.02)
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Cards
|
## Cards
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
Cards should not feel disconnected from the layout.
|
Cards should not feel disconnected from the layout.
|
||||||
@@ -450,7 +450,7 @@ Avoid:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Photography Direction
|
## Photography Direction
|
||||||
|
|
||||||
## This is one of the most important parts of the brand.
|
## This is one of the most important parts of the brand.
|
||||||
|
|
||||||
@@ -487,7 +487,7 @@ not:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Layout Philosophy
|
## Layout Philosophy
|
||||||
|
|
||||||
## Editorial rhythm
|
## Editorial rhythm
|
||||||
Not every section should feel identical.
|
Not every section should feel identical.
|
||||||
@@ -515,7 +515,7 @@ Avoid perfect grid rigidity everywhere.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Interaction Design
|
## Interaction Design
|
||||||
|
|
||||||
## Buttons
|
## Buttons
|
||||||
Buttons should feel:
|
Buttons should feel:
|
||||||
@@ -537,7 +537,7 @@ Not distract.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Navigation
|
## Navigation
|
||||||
|
|
||||||
The navigation should feel:
|
The navigation should feel:
|
||||||
- lightweight
|
- lightweight
|
||||||
@@ -553,7 +553,7 @@ The navigation exists to support trust and conversion.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Mobile UX Principles
|
## Mobile UX Principles
|
||||||
|
|
||||||
## Thumb-first interaction
|
## Thumb-first interaction
|
||||||
Primary actions should remain reachable.
|
Primary actions should remain reachable.
|
||||||
@@ -572,7 +572,7 @@ Not simply shrink desktop layouts.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Accessibility
|
## Accessibility
|
||||||
|
|
||||||
Always support:
|
Always support:
|
||||||
- reduced motion
|
- reduced motion
|
||||||
@@ -585,7 +585,7 @@ Accessibility should feel integrated, not bolted on.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Design Language Keywords
|
## Design Language Keywords
|
||||||
|
|
||||||
The Goodwalk experience should feel:
|
The Goodwalk experience should feel:
|
||||||
|
|
||||||
@@ -613,7 +613,7 @@ Never:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# What To Prioritise Next
|
## What To Prioritise Next
|
||||||
|
|
||||||
Highest impact improvements:
|
Highest impact improvements:
|
||||||
|
|
||||||
@@ -630,7 +630,7 @@ Highest impact improvements:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Final Rule
|
## Final Rule
|
||||||
|
|
||||||
If a design decision looks impressive but reduces:
|
If a design decision looks impressive but reduces:
|
||||||
- clarity
|
- clarity
|
||||||
@@ -644,7 +644,7 @@ Goodwalk should feel premium because it feels thoughtful — not because it feel
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Implementation Reference
|
## Implementation Reference
|
||||||
|
|
||||||
Technical specs for what is currently live. Update this section when the codebase changes.
|
Technical specs for what is currently live. Update this section when the codebase changes.
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# OVERLOAD.md — Section flow audit & cuts
|
# Homepage Section Flow Audit
|
||||||
|
|
||||||
Evaluating each section of the Goodwalk homepage against one question: **does this section move a researching dog owner closer to booking, or does it just take up scroll?**
|
Evaluating each section of the Goodwalk homepage against one question: **does this section move a researching dog owner closer to booking, or does it just take up scroll?**
|
||||||
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
A working reference for the Goodwalk site rebuild and ongoing marketing decisions. Drawn from Chris Do (The Futur) and Debbie Millman (Design Matters), applied to the goal of acquiring 10 new clients.
|
A working reference for the Goodwalk site rebuild and ongoing marketing decisions. Drawn from Chris Do (The Futur) and Debbie Millman (Design Matters), applied to the goal of acquiring 10 new clients.
|
||||||
|
|
||||||
# Checklist
|
## Checklist
|
||||||
* Prioritise emotional trust before visual impressiveness.
|
* Prioritise emotional trust before visual impressiveness.
|
||||||
* Reduce cognitive load on every screen and interaction.
|
* Reduce cognitive load on every screen and interaction.
|
||||||
* Every page should answer: “Am I in the right place?”
|
* Every page should answer: “Am I in the right place?”
|
||||||
@@ -0,0 +1,252 @@
|
|||||||
|
# Onboarding
|
||||||
|
|
||||||
|
How a Goodwalk client comes into the system, how their record is shaped, and how
|
||||||
|
that record evolves over time.
|
||||||
|
|
||||||
|
## Flow at a glance
|
||||||
|
|
||||||
|
1. **Enquiry / email claim** — the user signs in to `clients.goodwalk.co.nz`
|
||||||
|
with a one-time code. A `client_profiles` entry is created keyed by the
|
||||||
|
lower-cased email.
|
||||||
|
2. **Onboarding form** (`src/lib/components/OnboardingPage.svelte`) — a 5-step
|
||||||
|
form: Owner Details → Dog Details → Health → Behaviour → Sign. Every
|
||||||
|
question must be answered; there is no skip / mark-complete shortcut.
|
||||||
|
3. **Submit** — the form posts to `POST /api/onboarding-submit`. The backend
|
||||||
|
validates, stores a `submissionSnapshot` on the profile, sends the owner an
|
||||||
|
email + PDF, and flips `onboardingCompleted: true`.
|
||||||
|
4. **Admin dashboard** (`src/lib/components/admin-dashboard/AdminDashboard.svelte`)
|
||||||
|
surfaces pending and completed clients, and now lets the owner change a
|
||||||
|
client's lifecycle status.
|
||||||
|
|
||||||
|
## Where data lives today
|
||||||
|
|
||||||
|
| Thing | Storage | Source of truth |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| Client profiles | `mail-api/data/client_profiles.json` (mirrored into `admin_db` KV) | `_client_profiles` dict in `main.py` |
|
||||||
|
| Onboarding drafts (in-progress, per email) | `mail-api/data/drafts.json` | `_drafts` dict |
|
||||||
|
| Submitted onboarding snapshot | Inside the client profile as `onboardingSubmission` / `submissionSnapshot` | same |
|
||||||
|
| Activity feed (admin actions) | SQLite via `admin_db.record_event` | same |
|
||||||
|
| Legacy historical data (Gravity Forms exports) | `data/legacy-onboarding.json`, `data/legacy-contracts.json`, `data/legacy-clients.json` | regenerated from the CSVs in repo root |
|
||||||
|
|
||||||
|
The plan is to move the JSON file to Postgres later; the JSON shape is already
|
||||||
|
relational-friendly (see *Postgres target* below).
|
||||||
|
|
||||||
|
## Client profile shape
|
||||||
|
|
||||||
|
Keyed by lower-cased email. Fields are merged over time as the client moves
|
||||||
|
through the funnel.
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"fullName": "Shelley McCabe",
|
||||||
|
"phone": "+6421328907",
|
||||||
|
"address": "...",
|
||||||
|
"dogName": "Maisie",
|
||||||
|
"dogBreed": "...",
|
||||||
|
"dogAge": "2015-04-28",
|
||||||
|
"services": ["Tiny Gang Pack Walks"],
|
||||||
|
"onboardingCompleted": true,
|
||||||
|
"onboardingSubmittedAt": "2026-03-14T16:14:20",
|
||||||
|
"onboardingSubmission": { /* full 5-step snapshot */ },
|
||||||
|
"welcomePackSentAt": "...",
|
||||||
|
"welcomePackOffer": { "serviceType": "...", "priceDetails": "...", "startDate": "..." },
|
||||||
|
"birthdayAutoSend": false,
|
||||||
|
"birthdayEmailLastSentAt": "...",
|
||||||
|
"lastEnquiryAt": "...",
|
||||||
|
"lifecycle": {
|
||||||
|
"status": "active", // active | paused | cancelled | archived
|
||||||
|
"reason": "",
|
||||||
|
"changedAt": "2026-05-20T10:11:00",
|
||||||
|
"changedBy": "info@goodwalk.co.nz"
|
||||||
|
},
|
||||||
|
"lifecycleHistory": [
|
||||||
|
{ "status": "active", "reason": "", "changedAt": "...", "changedBy": "..." }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Lifecycle status
|
||||||
|
|
||||||
|
Soft-delete only. **No client is ever removed**, so we keep the full history
|
||||||
|
for retention / newsletter work.
|
||||||
|
|
||||||
|
| Status | Meaning | Outreach included? |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `active` | Currently walking with us. | Yes — pending + completed + birthdays |
|
||||||
|
| `paused` | Temporarily not walking (holiday, recovery, etc.). | Yes — still on outreach lists |
|
||||||
|
| `cancelled` | No longer a client. Kept on file. | **No** — excluded from outreach |
|
||||||
|
| `archived` | Long-term inactive. Hidden from default views. | **No** — excluded from outreach |
|
||||||
|
|
||||||
|
Defaults: every client starts as `active`. A missing `lifecycle` block is
|
||||||
|
treated as `active` by the API and the dashboard.
|
||||||
|
|
||||||
|
### Filters that respect lifecycle
|
||||||
|
|
||||||
|
`_client_is_reachable(profile)` in `mail-api/main.py` is the single gate.
|
||||||
|
`cancelled` and `archived` are filtered out of:
|
||||||
|
|
||||||
|
- `GET /owner/pending-onboarding`
|
||||||
|
- `GET /owner/completed-onboarding`
|
||||||
|
- `GET /owner/birthdays`
|
||||||
|
|
||||||
|
`GET /owner/all-clients` returns **everyone**, regardless of status, so the
|
||||||
|
admin can always find a former client. The status pill on each row makes the
|
||||||
|
state obvious.
|
||||||
|
|
||||||
|
### Changing a client's status
|
||||||
|
|
||||||
|
Admin dashboard → Clients tab → row action **"Change status"**. Opens a modal
|
||||||
|
with the four status options and an optional 500-char reason. Saving calls:
|
||||||
|
|
||||||
|
```
|
||||||
|
POST /api/owner/client-status
|
||||||
|
Authorization: Bearer <admin session token>
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"email": "owner@example.com",
|
||||||
|
"status": "paused",
|
||||||
|
"reason": "Moving house, back in June"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The backend writes the new `lifecycle` block, appends to `lifecycleHistory`
|
||||||
|
(capped at the last 50 entries), and records an
|
||||||
|
`owner_client_status_changed` event in the activity feed.
|
||||||
|
|
||||||
|
## Legacy data migration
|
||||||
|
|
||||||
|
Two CSV exports from the old Gravity Forms install:
|
||||||
|
|
||||||
|
- `dog-enrolment-form-2026-05-20.csv` — 72 onboarding submissions (2022–2026).
|
||||||
|
- `goodwalk-contract-2026-05-20.csv` — 39 contract signings (2022-06 → 2024-02).
|
||||||
|
|
||||||
|
Two cleansing scripts produce relational-friendly JSON:
|
||||||
|
|
||||||
|
```
|
||||||
|
node scripts/clean-legacy-onboarding.mjs # → data/legacy-onboarding.json
|
||||||
|
node scripts/clean-legacy-contracts.mjs # → data/legacy-contracts.json
|
||||||
|
# also enriches legacy-onboarding.json
|
||||||
|
# and writes data/legacy-clients.json
|
||||||
|
```
|
||||||
|
|
||||||
|
### Importing legacy clients into production
|
||||||
|
|
||||||
|
The deploy pipeline ships these 36 clients into the live system on every
|
||||||
|
deploy. The flow:
|
||||||
|
|
||||||
|
1. `deploy.ps1` runs `scripts/build-legacy-seed.mjs`, which folds the three
|
||||||
|
legacy JSON files into one email-keyed dict shaped like the live
|
||||||
|
`_client_profiles` entries. Output: `mail-api/legacy-clients-seed.json`.
|
||||||
|
2. The mail-api `Dockerfile` `COPY`s that file to `/app/legacy-clients-seed.json`
|
||||||
|
so it lives **outside** the persistent `mail_api_data` volume — every
|
||||||
|
deploy carries a fresh copy.
|
||||||
|
3. On boot, `_merge_legacy_seed_if_present()` adds every email that is not
|
||||||
|
already in `_client_profiles`, persists the result to JSON + admin_kv,
|
||||||
|
and never overwrites a live entry. Re-running is idempotent.
|
||||||
|
|
||||||
|
Each imported client is created with `lifecycle: { status: 'archived' }` so
|
||||||
|
they don't pollute outreach lists. The admin can promote any of them back to
|
||||||
|
`active` from the dashboard. Provenance (entry IDs, signature URL, PDF URLs)
|
||||||
|
is preserved on the `legacy` field of every profile.
|
||||||
|
|
||||||
|
To skip the rebuild on a hotfix deploy use `deploy.ps1 -SkipLegacySeed`; the
|
||||||
|
previous seed file is reused as-is. To regenerate locally:
|
||||||
|
|
||||||
|
```
|
||||||
|
node scripts/build-legacy-seed.mjs
|
||||||
|
```
|
||||||
|
|
||||||
|
The contracts script backfills owner email + postal address onto onboarding
|
||||||
|
records where a contract row matches (by owner name, then dog name, then a
|
||||||
|
unique surname). At present: **38 of 72** onboarding rows now have an email
|
||||||
|
attached; the rest were submitted after the contract form was retired in
|
||||||
|
2024-02 and will need an email-claim flow before they can sign in.
|
||||||
|
|
||||||
|
### Known gaps in the legacy data
|
||||||
|
|
||||||
|
- 34 onboarding rows have no email (mostly post-2024-02).
|
||||||
|
- Dog **breed** was never collected by the old forms — `null` everywhere.
|
||||||
|
- Owner **address** was only collected on the contract form, not on
|
||||||
|
onboarding directly.
|
||||||
|
- One vet phone number (`6307168`) couldn't be normalised to E.164 — kept
|
||||||
|
as `phoneRaw` only.
|
||||||
|
|
||||||
|
## Postgres target
|
||||||
|
|
||||||
|
The JSON shapes already map cleanly onto a relational schema. Suggested tables
|
||||||
|
once we migrate off the JSON file:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
clients (
|
||||||
|
email TEXT PRIMARY KEY,
|
||||||
|
first_name, last_name, phone, phone_raw,
|
||||||
|
address, address_street, address_line2, address_suburb,
|
||||||
|
address_city, address_postal_code, address_country,
|
||||||
|
-- lifecycle
|
||||||
|
lifecycle_status TEXT NOT NULL DEFAULT 'active', -- enum: active|paused|cancelled|archived
|
||||||
|
lifecycle_reason TEXT,
|
||||||
|
lifecycle_changed_at TIMESTAMPTZ,
|
||||||
|
lifecycle_changed_by TEXT,
|
||||||
|
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||||
|
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||||
|
);
|
||||||
|
|
||||||
|
client_status_history (
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
client_email TEXT REFERENCES clients(email),
|
||||||
|
status TEXT NOT NULL,
|
||||||
|
reason TEXT,
|
||||||
|
changed_at TIMESTAMPTZ NOT NULL,
|
||||||
|
changed_by TEXT NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
dogs (
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
client_email TEXT REFERENCES clients(email),
|
||||||
|
name TEXT, surname TEXT, date_of_birth DATE, breed TEXT
|
||||||
|
);
|
||||||
|
|
||||||
|
onboarding_submissions (
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
client_email TEXT REFERENCES clients(email),
|
||||||
|
dog_id INT REFERENCES dogs(id),
|
||||||
|
legacy_entry_id TEXT,
|
||||||
|
legacy_pdf_url TEXT,
|
||||||
|
signature_url TEXT,
|
||||||
|
vet_name TEXT, vet_address TEXT, vet_phone TEXT, vet_phone_raw TEXT,
|
||||||
|
emergency_contact_name TEXT, emergency_contact_phone TEXT,
|
||||||
|
health JSONB, -- vaccinated / allergies / diet / medication
|
||||||
|
behaviour JSONB, -- recall / reactivity / car / commands
|
||||||
|
misc JSONB, -- additional notes / referrals / socials
|
||||||
|
signed_on DATE,
|
||||||
|
submitted_at TIMESTAMPTZ
|
||||||
|
);
|
||||||
|
|
||||||
|
contracts (
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
client_email TEXT REFERENCES clients(email),
|
||||||
|
legacy_entry_id TEXT,
|
||||||
|
signature_url TEXT,
|
||||||
|
pdf_url TEXT,
|
||||||
|
consent_text TEXT,
|
||||||
|
signed_on DATE
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
`health` / `behaviour` / `misc` stay as `JSONB` rather than exploding every
|
||||||
|
nullable yes/no into a column — it matches the existing
|
||||||
|
`submissionSnapshot: dict[str, Any]` shape in
|
||||||
|
`mail-api/mail_api/models.py` and makes the form easier to evolve.
|
||||||
|
|
||||||
|
## Things that intentionally don't exist yet
|
||||||
|
|
||||||
|
- **Hard delete** of a client. Use `archived` instead. Hard delete would also
|
||||||
|
break the activity feed and the legacy import provenance.
|
||||||
|
- **A "former client" notes log.** If we need anything richer than a 500-char
|
||||||
|
reason, the next step is to add a `client_notes` table keyed by email — but
|
||||||
|
hold off until the JSON → Postgres migration is done.
|
||||||
|
- **Re-engagement / win-back emails.** The data is there (lifecycle history +
|
||||||
|
email), so this is unblocked whenever marketing wants to send a newsletter
|
||||||
|
to past clients. `cancelled` and `archived` rows are still in
|
||||||
|
`/owner/all-clients`.
|
||||||
@@ -0,0 +1,277 @@
|
|||||||
|
"Dog Name","Dog Surname","Dog's date of birth","Owner Name","Owner Surname","Owner Contact","Emergency Contact Name","Emergency Contact Number","Vet Name","Vet Address","Vet Contact Number","Is your dog vaccinated?","Does your dog have any food allergies?","Specify","Does your dog have any environmental allergy?","Specify","Is your dog on a special diet?","Specify","Is your dog taking any medication that could put him at risk during a walk","Specify","Is your dog well socialised?","How many dogs does your dog interact with weekly (excluding your family dogs)","Does your dog visit the beach?","Does your dog visit dog parks frequently - How many times a week?","Does your dog have a bite history?","Is your dog reactive to other dogs?","Is your dog reactive to other animals?","Is your dog reactive to children?","Is your dog desexed?","Is your dog registered?","Is your dog reactive to other people?","Is your dog leash trained?","Rate your dog's recall from 1 to 5, with one being the lowest score and 5 the highest.","Has your dog ran away before?","Please describe your dog's behaviour in the car","List of commands your dog understands","Anything else you'd like to let us know?","Social Media Account Name","How did you hear about Goodwalk?","Person's name who reffered Goodwalk to you","Signature","Date","Created By (User Id)","Entry Id","Entry Date","Date Updated","Source Url","Transaction Id","Payment Amount","Payment Date","Payment Status","Post Id","User Agent","User IP","PDF: DogOnboardingForm"
|
||||||
|
"Maisie","McCabe","2015-04-28","Shelley","McCabe","021328907","Finn McCabe","02040319829","Auckland Pet Hospital","46 - 48 Pollen Street","09 360 0961","Yes","No","","No","","No","","No","","Yes","1-5","Yes, she loves the beach. Likes being in the water but not keen going in past top of her legs.","7 days per week","No","No","Cats","No","Yes","Yes","Yes","Yes","4","No","Very comfortable in the car. Does not need to be harnessed.","Sit, stay, stop, paw, walkies, come on, let's go for a walk","Nothing in particular","Maisie","Someone reffered me","Brigid McLean","https://onboarding.goodwalk.co.nz/index.php?gf-signature=69b4d28c1f80d3.92082912&form-id=4&field-id=50&hash=e252f70aca9398464a6ef16f21fdc18f4866fd6ba4804d4868373223f945e144","2026-03-14","","140","2026-03-14 16:14:20","2026-03-14 03:14:20","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0","104.23.198.146","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/140/"
|
||||||
|
"Pipi","Steuart","2013-04-13","Ellen","Graney","021740674","Patrick Steuart","0272235853","Royal Oak Vet care","649 Mt Albert Rd, Royal Oak","09 6259729","Yes","No","","No","","No","","No","","Yes","1-5","Yes","Weekly","No","Yes","Other","No","Yes","Yes","No","Yes","3","No","Settles down quickly and sleeps","Come, wait, stay, sit, down","",".","Someone reffered me","Paula Smith","https://onboarding.goodwalk.co.nz/index.php?gf-signature=699ce3df243213.09800906&form-id=4&field-id=50&hash=e84ff9c458b76d71f18cc977c19d0e45ce9866691863fe72b2e4c1b07b055a8a","2026-02-24","","139","2026-02-24 12:33:51","2026-02-23 23:33:51","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Mobile/15E148 Safari/604.1","122.57.112.233","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/139/"
|
||||||
|
"Poppy","Nam","2024-09-23","Yoori","Nam","021777306","Lily","0274880031","Auckland Pet Hospital","46/ pollen Street, Gray Lynn","093600961","Yes","No","","No","","No","","No","","No","1-5","Yes","twice a week","No","Yes","Cats","Yes","Yes","Yes","Yes","Yes","3","No","she is so quiet in the car","sit
|
||||||
|
wait
|
||||||
|
stay
|
||||||
|
shake hands
|
||||||
|
spin
|
||||||
|
hi5","She loves her family and thrives on routine.
|
||||||
|
she is stubborn,but once she gets used to someone, she becomes incredibly affectionate and friendly.
|
||||||
|
she is very wary of other dogs, but she would never attack- she only barks.
|
||||||
|
Honestly, barking is her only real issue.","Kiwiyuuri (instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=699cde43dc7b26.23456486&form-id=4&field-id=50&hash=553864499410acd217be476f35b4a07ba0269a1f74eba002932b6c642e366926","2026-02-24","","138","2026-02-24 12:09:55","2026-02-23 23:09:55","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15","222.154.51.238","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/138/"
|
||||||
|
"Ollie","Butt","2025-08-26","Maya","Steeper","0211148194","David Butt","021 722256","Balmoral Vets","482 Dominon Rd","6307168","Yes","No","","No","","No","","No","","Yes","1-5","yes","Not started visiting dog parks yet","No","No","Cats","No","No","Yes","No","Yes","5","No","He is good on car rides, normally buckled in with harness and curls up on seat","sit, down, stay, wait","","mayabutt on facebook","Someone reffered me","you did!","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6982533a56dfc8.61964352&form-id=4&field-id=50&hash=d34bd458652da66ae6c0ed90863ba454afac74fbb985f74fe5704fc8f237d297","2026-02-04","","137","2026-02-04 08:57:46","2026-02-03 19:57:46","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0","223.165.69.9","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/137/"
|
||||||
|
"Izzy","Gonzales -Keen","2023-01-02","Veronica","Gonzales","0225402906","Veronica Gonzales","0225402906","The Good Vet","726 New North Road Mount Albert Auckland, 1025","+64 27 297 5506","Yes","No","","Yes","Itchy paws during summer time, just needs a rinse after being in grass after walks","No","","No","","Yes","1-5","Onehunga reserve every morning and does go to the beach sometimes but does not like the water","Yes 4 times a week at least","No","No","Cats","Yes","Yes","Yes","No","Yes","4","No","Loves head out the window, will bark if people come close to car .","Sit, come, leave it, wait , no, yes, watch me, look.","As discussed Izzy is an anxious dog and can get overstimulated easily . It’s best to start the walk on lead and then after some time to then take her off lead . Has chased children before but has never bit them. However if she is with a pack of dogs it is less likely she will engage in that behavior .","Burritotoezz","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=69632786c6bf78.27345173&form-id=4&field-id=50&hash=8e111587451b694e01972381c28693db94261122e8dbb2cf6e9369f6da0c6b59","2026-01-11","","136","2026-01-11 17:31:02","2026-01-11 04:31:02","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_7_12 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Mobile/15E148 Safari/604.1","118.148.194.197","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/136/"
|
||||||
|
"Scotch","Maxwell","2021-04-22","Anna","Maxwell","0274261363","Benedict Casey","+64 27 879 0948","Emma at Auckland Pet Hospital","46-48 pollen street, grey lynn","(09) 360 0961","Yes","No","","No","","No","","No","","Yes","1-5","Yes - loves it. Will chase a stick into the water but otherwise not big on swimming - unless very hot!","He is off leash at the local parks twice a day. In terms of designated “dog parks” this is less frequent - 1 a month","No","No","Cats","No","Yes","Yes","No","Yes","3.5","No","Good. Loves the windows down! Loves being where he can see what’s happening. Will curl up and sleep too. Loves that he is being included on a journey.","This way, come, leave it, touch, a-way, that’s enough","Not reactive but can be bossy with big male dogs - particularly anything that looks remotely like a wolf -(German shepherd)
|
||||||
|
He will protect humans from big dogs (even their owners)
|
||||||
|
This only happens really with me, not my husband.","a.j.maxwell","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6928e3156d4662.20837423&form-id=4&field-id=50&hash=4337603b6b42e20a9146dba43a0efa517a162d8480145db43f396ee2e46825e6","2025-11-28","","135","2025-11-28 12:47:33","2025-11-27 23:47:33","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/142.0.7444.148 Mobile/15E148 Safari/604.1","122.63.71.137","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/135/"
|
||||||
|
"Yuki","Manu","2025-01-25","Sue","Manu","0220781853","Chris Kasper","0272430925","Balmoral Veterinary Clinic","482 Dominion Rd, Mt Eden","09 6307168","Yes","No","","No","","No","","No","","Yes","1-5","He has been once. He loved it","3 -4","No","Yes","Cats","Yes","Yes","Yes","Yes","Yes","1","Yes","Travelling in car is a daily event.
|
||||||
|
Settled in the car","Sit
|
||||||
|
Down
|
||||||
|
Stay
|
||||||
|
Off
|
||||||
|
Jump down
|
||||||
|
Cross now","Training is still work in progress","Suemanu. Instigram","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=68b6d1bb5cfe90.22636463&form-id=4&field-id=50&hash=093613c10d52a1459f56e63db5b76eb830ca733204d9d46f91b253e8ce57b598","2025-09-02","","134","2025-09-02 23:15:07","2025-09-02 11:15:07","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Mobile Safari/537.36","125.237.54.176","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/134/"
|
||||||
|
"Donut","Todoroki","2023-04-02","Masaya","Todoroki","0273425437","Christine Todoroki","0278978907","Pakuranga Vets","7 Johns Lane, Pakuranga, Auckland","09 576 4108","Yes","No","","No","","No","","No","","No","1-5","Only once","5 - 7 (Victoria Park)","No","Yes","Birds","Yes","Yes","Yes","Yes","Yes","2","Yes","Anxious unless sitting on my lap","Sit
|
||||||
|
Down
|
||||||
|
Stay","Donut has only run away when staying at Noya's parent place. Her parents open the door and he snuck through. He has never tried to run away when with us.","@masayadt (instagram)","Someone reffered me","Noya Xing","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6848f4f12abdc9.30092404&form-id=4&field-id=50&hash=06a0bbfe59b9821440e1d4815c6944fb5945c6e9283bd25de97956a10e069285","2025-06-11","","133","2025-06-11 15:16:01","2025-06-11 03:16:01","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 OPR/119.0.0.0","125.237.229.122","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/133/"
|
||||||
|
"Mimi","Xing","2020-01-20","Noya","Xing","0210751435","Masaya Todoroki","0273425437","Pakuranga Vets","7 Johns Lane, Pakuranga, Auckland 2010","09 576 4108","Yes","No","","No","","No","","No","","No","1-5","Only once, she enjoyed the beach","Never visited a dog park, just general parks like Victoria Park","No","Yes","Cats","No","Yes","Yes","No","Yes","2","No","Sits on the lap or backseat fine, crate is fine, calm. Stays quite still, or naps","Sit
|
||||||
|
Stay
|
||||||
|
Paw/shake
|
||||||
|
No
|
||||||
|
|
||||||
|
Recall is only good with treats on hand, she is very attentive to treats.","Mimi is reactive to other dogs on walks, generally fine when given time to sniff them out and play, will proceed to walk normally along them after. She's wary of larger dogs.","@Masayadt (instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6848f158f06299.86914798&form-id=4&field-id=50&hash=8c70b1420a73f311da6f6cee5780b282a98a589a32ae0e64edb227cd5143fade","2025-06-11","","132","2025-06-11 15:00:41","2025-06-11 03:00:41","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36","125.237.229.122","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/132/"
|
||||||
|
"Billie Bunny","Osborne","2024-03-27","Niki","Osborne","0211337479","Stacy Hyland","02102820035","Remuera Veterinary Hospital","236 Orakei Road, Remuera, Auckland","09-529-2091","Yes","No","","No","","No","","No","","Yes","5-10","Yes - loves the beach. Takapuna, Okahu & Mission Bay are regular spots","10 x per week","No","Yes","Birds","No","Yes","Yes","No","Yes","4","No","Lays down and sleeps right away.","Sit, Come, Stay, No.","Her reactivity to other dogs isn't constant - some dogs she won't even acknowledge. Others (usually bigger dogs), she'll bark at like she wants to play with them.","nikioznz","Someone reffered me","Met Alessandra walking in the park.","https://onboarding.goodwalk.co.nz/index.php?gf-signature=683e73d44fca21.96072834&form-id=4&field-id=50&hash=a2de4a4ebcdca29e3ccec6be1ab18b9758b710c4dc430e61406db858f0da8a46","2025-06-03","","131","2025-06-03 16:02:28","2025-06-03 04:02:28","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0","222.152.69.84","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/131/"
|
||||||
|
"Teddy or Ted","Uhlenberg","2021-11-01","Clare","Uhlenberg","021 508 767 / 846 1820 wk","Hamish Cook","021 713 216","Pohutukawa Vets Beachlands","Wakelin Road, Beachlands","09 320 1472","Yes","No","","No","","No","","No","","Yes","5-10","Yes","Yes - Daily","No","Yes","Other","Yes","Yes","Yes","Yes","Yes","4","No","Pretty good - Likes his head out the window
|
||||||
|
Will sometimes bark at motorbike riders on the motor way","sit/lay down/come etc","","face book - clare uhlenberg","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=682bf263299c64.69501352&form-id=4&field-id=50&hash=0d28d901c266d7d4ea39a526b07928571af76f882a37249605b59d18508fef13","2025-05-20","","130","2025-05-20 15:09:37","2025-05-20 03:09:37","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","219.89.199.64","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/130/"
|
||||||
|
"Floyd","Carney","2020-08-21","Kylie","Gladwell","0223771926","Sean Carney","0223509475","Royal Oak Veterinary Care","649 Mount Albert Road, Royal Oak","09 625 9729","Yes","No","","No","","No","","No","","Yes","1-5","Yes, he loves the beach and getting in the water","1-2 times a week","No","No","Cats","No","Yes","Yes","No","Yes","3","Yes","He is pretty good in the car. He can get anxious if we are getting close to where we are going and will bark when we park - it's either excitement or making sure we don't leave him in the car - which we never do! He doesn't get car sick.","Floyd, come.
|
||||||
|
Floyd, sit.
|
||||||
|
Down.
|
||||||
|
Ah a (meaning no)
|
||||||
|
Floyd, drop. (doesn't work all the time, but with consistency it does).","Our main concern about Floyd is his anxiety and barking for attention. We would love to help him to be more calm and reduce his anxiety. We are open to advise and will try and be consistent in our approach - something we haven't done too well in the past.","kyliegladwell","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6819b912bbdad1.02837485&form-id=4&field-id=50&hash=a5f9905ebd0bb4bae9eaff6f0371f549f16198e71c88cd419a9632a4e6ffce8e","2025-05-06","","129","2025-05-06 19:24:02","2025-05-06 07:24:02","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36","101.53.219.205","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/129/"
|
||||||
|
"Mickey","Vu","2024-01-04","Sophie","Vu","02108416304","Sophie","02108416304","Normanby Vet","49 Normanby Road, Mt Eden","096388445","Yes","Yes","Beef and chicken - eye stains","No","","Yes","Raw diet","No","","No","1-5","Yes","Yes, 4-5 times per week","No","No","Other","No","Yes","Yes","No","Yes","4","No","He usually shakes in the car. That’s because of his anxiety.","Sit, down, paw, high five, stay, turn around","Mickey is a timid and shy pup but loves going for a walk and does not like to stay in one place for too long. He might be whining and making noise when going out. And we don't know why he is like that :((","mickeyinauckland","Instagram","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=68193e35e2ca84.35518672&form-id=4&field-id=50&hash=68801ef892bfc3579b3cd48a2058a6627357f0dd810d3f885497c72d67d09b82","2025-05-06","","128","2025-05-06 10:39:49","2025-05-05 22:39:49","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 18_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1","125.239.151.7","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/128/"
|
||||||
|
"Jaxson","Yardley","2023-12-06","Layne","Yardley","0220145043","Jeremy (and Layne)","0220145045 or 0220145043","Vet North","45 Commercial Road, Helensvilles","09 420 8325","Yes","No","","No","","Yes","Generally on grain free but not fussed for training treats","No","","Yes","1-5","Yes, though doesnt like going in past chest.","Parks yes but not generally dog parks","Yes","Yes","Other","No","Yes","Yes","No","Yes","2","No","Just generally lies down and naps.
|
||||||
|
|
||||||
|
He can sometimes take awhile to get into the car (mooches around like he cannot get into the car physically and needs to be picked up) but is fine travelling.","Sit, Down, Nose, Spot, Come, Out!, Stay (for about 5m radius)","Bite History: Nibbles when excited to see you. Will generally only do so if Tryggr is around and getting overly excited.
|
||||||
|
|
||||||
|
Reactive to other dogs: Only when Tryggr is around he will get excited and want to be part of it.
|
||||||
|
|
||||||
|
Reactive to other animals: Not really, a bit scared of cats. Will jump around hedgehogs but only if Tryggr is going crazy.
|
||||||
|
|
||||||
|
Was diagnosed by Foster and Foster Vet as partially deaf (hearing high high and low low) but does seem to have the full realm of hearing (a bit belligerent!)","laynejburgess","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=67f360cb5d76a6.54558856&form-id=4&field-id=50&hash=e3ad1e680ee905a2d00960cff2f3fa1e6b59ac66eb0f0c7b64782c9159bdae2c","2025-04-07","","127","2025-04-07 17:21:15","2025-04-07 05:21:15","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0","101.100.142.27","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/127/"
|
||||||
|
"Tryggr","Yardley","2024-02-07","Layne","Yardley","0220145043","Jeremy (or Layne)","0220145045 or 0220145043","Vet North","45 Commerical Road, Helensville","09 420 8325","Yes","No","","No","","Yes","Generally we use grain free kibble but not fussed for training treats","No","","Yes","1-5","Yes, locally we take him. He likes to have a swim and fetch sticks.","Not dog parks but does go to various parks and interacts with dogs","No","Yes","Other","No","Yes","Yes","No","Yes","2","No","Generally will just lie down and go to sleep","Sit, Nose, Spot, Come","REactive to other dogs: Gets quite excited and 'whiney' trying to get close.
|
||||||
|
|
||||||
|
Reactive to other animals: Occasionally will chase a bird, not often. Hates hedgehogs and possums.","laynejburgess","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=67f35e0d2188f2.62328554&form-id=4&field-id=50&hash=686985b072ccbbe5eb48ba4ec0383f9293ca6c73643c46e81a38af4a1e6233b4","2025-04-07","","126","2025-04-07 17:09:33","2025-04-07 05:09:33","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0","101.100.142.27","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/126/"
|
||||||
|
"Fergus","Callender","2022-12-28","Geoff","Callender","022 318 8798","Steph Wilson","0210503830","Green","Green Bay Veterinary","098274625","Yes","Yes","Chicken","No","","Yes","Royal Canin DermaCare","No","","Yes","1-5","Yes - loves it","No","No","Yes","Birds","No","Yes","Yes","No","Yes","2","No","He likes looking out the windows and can bark at other dogs if he sees them. Otherwise he'll usually go to sleep.","Close
|
||||||
|
Heel
|
||||||
|
Sit
|
||||||
|
Down
|
||||||
|
Leave it
|
||||||
|
Wait
|
||||||
|
Stay (sometimes works)
|
||||||
|
Inside
|
||||||
|
Outside
|
||||||
|
Off
|
||||||
|
Come (Close works better)","Fergus has struggled with reactivity after he was attacked when he was a pup. He's super sweet, but it's quite anxious so will often bark. We're working in this with a trainer on this.","Steph.wilson or @FergusandMinnie","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=670ada87024785.23084565&form-id=4&field-id=50&hash=fa8a05c8943c81e576dbae15e8cf3fc1523eac2dbf0a3eb97a5c85f051ec68d2","2024-10-13","","125","2024-10-13 09:22:31","2024-10-12 20:22:31","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Android 14; Mobile; rv:131.0) Gecko/131.0 Firefox/131.0","115.188.37.188","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/125/"
|
||||||
|
"Indy","Yang","2019-03-29","Erica","Mancilla","02041931790","James","0220165396","St Lukes Veterinary Centre","13 Morningside Drive, St lukes, Auckland 1025","098455573","Yes","No","","No","","No","","No","","No","1-5","Yes","Once every week","No","Yes","Birds","No","Yes","Yes","No","Yes","1","No","He loves car rides, he usually stays on my lap on passenger or he back in his bed. First half of the trip will be energetic, wants to look out, second half he will rest on my lap. He doesn't vomit, reactive to only motercycles.","Indy
|
||||||
|
Hand
|
||||||
|
Stay
|
||||||
|
Down
|
||||||
|
Up
|
||||||
|
Wait
|
||||||
|
Bad boy
|
||||||
|
Good boy
|
||||||
|
Come, outside, inside (with hand gesture)","Dominant, doesn't share squeaky toys well.
|
||||||
|
He tugs and pulls during walks.
|
||||||
|
Very persistent to where he wants to go.","Erica_tiffany","Instagram","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=670acbb024b3b3.41379744&form-id=4&field-id=50&hash=d156e39fae40efc2f87038bf19e797b7821aafc1784a86d7a3dde0820ea82344","2024-10-13","","124","2024-10-13 08:19:28","2024-10-12 19:19:28","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Mobile/15E148 Safari/604.1","125.239.44.46","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/124/"
|
||||||
|
"Lara","Macleod","2017-06-01","Chrisy","Macleod","021918814","Chrisy","021918814","Auckland Pet Hospital","Ponsonby","09 360 0961","Yes","No","","No","","No","","No","","Yes","5-10","Yes loves the beach and swimming","Meola Dog park once a fortnight","No","No","Cats","No","Yes","Yes","No","Yes","4","Yes","Happy in the car. WIll often stand up and look around","Sit
|
||||||
|
Stay
|
||||||
|
Bed
|
||||||
|
Come","As Lara's master has just left she may be a little anxious and edgy. She will bark as she hears you on porch and at door. She wags her tail while barking.
|
||||||
|
She is tempted by cats and sometimes barks or strains at leads when she sees one. Sometimes she is ok, she is improving!
|
||||||
|
She does not like German Shepherds as she was attacked by one as a puppy. Sometimes she growls/barks at them.
|
||||||
|
She is very good natured and loves company.","https://www.facebook.com/chrisy.macleod/","Someone reffered me","Fluffy Bums","https://onboarding.goodwalk.co.nz/index.php?gf-signature=66e8abf5687124.26063072&form-id=4&field-id=50&hash=14f89d41ff7e39a7b06af802327b4123894a9c69a960479d35a9cf8407b768f7","2024-09-17","","123","2024-09-17 10:06:45","2024-09-16 22:06:45","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","101.53.219.202","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/123/"
|
||||||
|
"Bernie","","2021-02-22","Robin","Fryer","0279428816","Mark Fryer","021372109","CareVets Oratia","546 West Coast Road, Oratia, Auckland 0604","09 818 4104","Yes","No","","No","","No","","No","","Yes","5-10","Yes, she loves to run by the water","7","No","Yes","Birds","No","Yes","Yes","No","Yes","3","No","Fine","Sit, stay, come, stop. And some tricks","","ellislabel","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=66e68eec701c57.71195225&form-id=4&field-id=50&hash=004202b47300b83145766765695eed4f791cd79e9a7b78fd77aa333b1ef0b1db","2024-09-15","","122","2024-09-15 19:38:20","2024-09-15 07:38:20","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/128.0.6613.98 Mobile/15E148 Safari/604.1","118.92.99.79","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/122/"
|
||||||
|
"Holly","Millman","2014-04-24","Emma","Millman","0272184446","(Other than me) Chris Millman","027 960 2911","Auckland Pet Hospital","46/48 Pollen Street, Grey Lynn, Auckland 1021","09 360 0961","Yes","No","","No","","No","","No","","Yes","1-5","Loves the beach and chasing sticks in the waves","7","No","Yes","Cats","No","Yes","Yes","No","Yes","5","No","Holly Will get into a scrap if a dog attacks her first or growl at her she will never be the 1st to take action though. In other words she won’t back down from a scuffle.","Understands English so comes to any command","Gets sore if runs too much","Emmaljudge","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=66c7d18060eee9.98659650&form-id=4&field-id=50&hash=1afe6ca11db4f392692f8b4259a6b9096b414cf063866936d4bf53e990b1a491","2024-08-23","","121","2024-08-23 12:02:08","2024-08-23 00:02:08","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1","104.28.29.65","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/121/"
|
||||||
|
"Wilson","Storr","2014-12-07","Ashleigh","Storr","0211089688","Fran Storr","0211663821","The Vets","08 Manukau Road, Epsom, Auckland 1023","09 625 5556","Yes","No","","No","","No","","No","","Yes","5-10","Yes","10","No","No","Cats","No","Yes","Yes","No","Yes","4","No","Anxious","Sit, Stop, Stay, Come, Off, Down (i.e. lay down)","","@ashstorr","Someone reffered me","Rachel","https://onboarding.goodwalk.co.nz/index.php?gf-signature=66c25a44137723.11498121&form-id=4&field-id=50&hash=f6b3c42a3cd4111ebb5335d582fa6c95a559eed9106da9fcd486e3041cf2e100","2024-08-19","","120","2024-08-19 08:32:04","2024-08-18 20:32:04","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0","103.242.69.153","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/120/"
|
||||||
|
"Archie","Menezes","2023-10-01","Conal","Menezes","0210368104","Conal Menezes","0210368104","Balmoral Veterinary Care","482 Dominion Road, Mt Eden","096307168","Yes","No","","No","","No","","No","","Yes","1-5","Not yet, but we intend to in the summer","I used to take him once a week, but I have not taken him recently, as the behaviour of other dogs at our local dog park can be mixed. Often it is good and Archie is happy to be around them. Sometimes it is bad, with other dogs doing things to Archie that he does not enjoy. This is why we are seeking a pack walk with other dogs, to continue his socialisation in a controlled and structured environment.","No","Yes","Birds","Yes","Yes","Yes","Yes","Yes","3","No","Archie loves car rides and is reasonably well behaved in the car. We have a basket that we have tethered to the seat and Archie sits in that basket during car rides. He is tethered to the basket. The tether is attached to his harness that he wears in the car. We use a harness so that if there is an accident, he is not restrained by the neck.
|
||||||
|
|
||||||
|
Usually the command ""In"" will get him into the car and into his basket. This is sometimes not reliable if we are returning home and he would rather stay at the park. When this happens, I pick him up and put him in the car, and he will happily climb into his basket. While driving, he mostly sits in his basket. Sometimes he climbs out to look out the window, but the commands ""In"", ""Sit"" and ""Down"" get him back into the basket and sitting or lying down. If it is a longer ride, he usually curls up and goes to sleep in his basket. He has never thrown up in the car yet.","Sit - Sits down (index finger extended hand signal)
|
||||||
|
Down - Lie's down (point at the ground)
|
||||||
|
Wait - Wait until I give you the next command (hold palm out in a ""stop"" gesture)
|
||||||
|
Stay - Stay where you are until I come back to you (hold fist up). this command is not very reliable.
|
||||||
|
Come - Return to me
|
||||||
|
Squeeze - Return to me, walk around me and stand between my legs","","@kiwi_h2oboy","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=669dacb8823b43.24584415&form-id=4&field-id=50&hash=d81ab401d4486e911d57e88349d1e42e6362a85d61772f3810aedb64d5d6764f","2024-07-22","","119","2024-07-22 12:50:00","2024-07-22 00:50:00","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","161.29.73.81","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/119/"
|
||||||
|
"Moss","Lane","2021-12-03","Henry","Lane","0221308980","Henry","0221308980","Royal Oak Vet Clinic","649 Mt Albert Road, Royal Oak","09 625 9729","Yes","No","","No","","No","","No","","Yes","1-5","Occasionally","Yes, everyday","No","No","Other","No","Yes","Yes","No","Yes","4","No","Moss is excitable when we knows he is going to the park. He is otherwise content to sleep or look out the windo","Wait
|
||||||
|
Sit
|
||||||
|
OK
|
||||||
|
Here Boy
|
||||||
|
Drop
|
||||||
|
No","","N/A","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=669d7d9015b428.67048631&form-id=4&field-id=50&hash=93da47387a79563fc48ca88069e7d44ba48235d69eedd8f14eb88bf0a7182d63","2024-07-22","","118","2024-07-22 09:28:48","2024-07-21 21:28:48","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","103.229.249.250","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/118/"
|
||||||
|
"Pumpkin","Anderson","2023-07-07","Laree and Kevin","Anderson","0220 325121","Kevin Anderson","021679196","Balmoral Vet","482 dominion rd","096307168","Yes","No","","No","","No","","No","","Yes","1-5","Yes","1-2","No","No","Cats","Yes","Yes","Yes","Yes","Yes","1","Yes","She's fine in the car","Down, stay, wait. Come.","","Lareeandkevin","Someone reffered me","Anna Shaw","https://onboarding.goodwalk.co.nz/index.php?gf-signature=669c36f5a53f35.55401462&form-id=4&field-id=50&hash=721e0a06da4b27f76a6d582979cb17a8e68c04e3d5ab72c9d170a976cd5dd40f","2024-07-21","","117","2024-07-21 10:15:31","2024-07-20 22:15:31","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36","125.239.167.102","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/117/"
|
||||||
|
"Zola","Humphrey","2023-03-09","Monique","Humphrey","0212764358","Adam Begg","0211862322","Chris Laurenson","49 Normanby Road, Mt Eden","096388445","Yes","No","","Yes","Vet thinks she has an allergy to a particular grass/weed (so far unidentified) which causes her eyes to go gunky.","No","","No","","Yes","5-10","Yes - on holidays to Whangamata","None","No","No","Cats","Yes","Yes","Yes","No","Yes","5","No","Settled - enjoys looking out the window and sniffing out an open window.","Zola come
|
||||||
|
Sit
|
||||||
|
Down
|
||||||
|
Look
|
||||||
|
Wait
|
||||||
|
Leave
|
||||||
|
Where's Dad?
|
||||||
|
Get (toy) e.g. octopus, duck
|
||||||
|
Relax mat (still working on this one but getting there)","","moniquehumphrey31","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6690c2a50a3550.99332594&form-id=4&field-id=50&hash=d1920dd0952fb767ff4f8f7228cec5c8b4e849befcb03362651148ff941060cb","2024-07-12","","116","2024-07-12 17:44:18","2024-07-12 05:44:18","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","121.98.13.62","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/116/"
|
||||||
|
"Louis","Shallard","2018-12-08","Annika","Shallard","021 2718707","Dini Ratcliffe","073876878","St Lukes Vet","13 Morningside Drive","098455573","Yes","No","","No","","No","","No","","No","1-5","Yes, on lead as his ears are painted on. He doesn't go into the water doesn't like it.","1 time per week plus goodwalk","No","No","Other","No","Yes","Yes","No","Yes","1","Yes","Louis has wandered.
|
||||||
|
|
||||||
|
Louis is experienced in the car. Enjoys being with you. No issues.","Ad hoc.
|
||||||
|
|
||||||
|
Come. Sit.","Hip and back issues need to be cared for.","AnnikaShallard","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=668b0be2701063.18070877&form-id=4&field-id=50&hash=81d8184fe718f887c40a9f41b29a283ffc538789216a821f190c4d935821c1b2","2024-07-08","","115","2024-07-08 09:42:58","2024-07-07 21:42:58","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/25.0 Chrome/121.0.0.0 Mobile Safari/537.36","203.97.18.134","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/115/"
|
||||||
|
"Moss","Lane","2020-12-03","Henry","Lane","0221308980","Henry Lane","0221308980","Royal Oak Vet Clinic","649 Mt Albert Road, Royal Oak 1024","096259729","Yes","No","","No","","No","","No","","Yes","1-5","Yes","7","No","No","Birds","No","Yes","Yes","No","Yes","4","No","Chilled. Happy to sleep or look out of the window. Is excited and will whine when he knows he is going to the park","“Here boy”
|
||||||
|
“Wait”
|
||||||
|
“OK”
|
||||||
|
“Drop”
|
||||||
|
“Stop”
|
||||||
|
“Down”
|
||||||
|
“Sit”","","Lydia Park (instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=666e7df19031a2.70237035&form-id=4&field-id=50&hash=19527f1b9dd630922ba8e6fe067c42a1dd2fee1fa2dea728b5e3c3fd6d5e13fe","2024-06-16","","114","2024-06-16 17:53:53","2024-06-16 05:53:53","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/126.0.6478.54 Mobile/15E148 Safari/604.1","121.73.188.128","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/114/"
|
||||||
|
"Louis","Shallard","2018-12-08","Annika","Shallard","021 2718707","Dini Ratcliffe","0277126554","St Lukes Veterinary Centre","13 Morningside Drive","09 8455573","Yes","No","","No","","No","","No","","Yes","1-5","Yes - on lead, prevent physical over-exertion may affect joints hips","1","No","Yes","Other","No","Yes","Yes","No","Yes","1","No","Relaxed , travels often on the passenger seat without any issue.","Ears seem to be painted on. Louis has had previous training needs to be refreshed.","He can be very excited and also jump when meeting new human and doggy friends. Please avoid due to hip issues.","Annika Shallard","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=665bba626dfb29.88761325&form-id=4&field-id=50&hash=af56bc371f54af34378af3a47137f04fc74178f8e170d2e2ee8008ee27f308f4","2024-06-02","","113","2024-06-02 12:18:42","2024-06-02 00:18:42","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/24.0 Chrome/117.0.0.0 Mobile Safari/537.36","49.224.89.46","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/113/"
|
||||||
|
"Finn","Stock","2015-01-02","Cara","Telle","0212585984","Lueder Stock","021374459","MangereVet Clinic","95 Coronation Rd, Mangere","096366732","Yes","No","","No","","No","","No","","Yes","5-10","Yes","4 times per week","No","No","Cats","No","Yes","Yes","No","Yes","5","No","Sleeps or looks out the window","Heal, Come, Sit, Be Quick (for the toilet), Roll over, Down, Off, Car, Walk, Leave it, Dinner, Paw","Finn does not like male dogs who have not been desexed on our property","facebook Cara Telle","Instagram","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=664478578c97a7.90730553&form-id=4&field-id=50&hash=ee6fcf843fb7e6f15b4b491a5a27c4a650d32db0fd62e8527fd16fef2d14b6c0","2024-05-15","","112","2024-05-15 20:54:47","2024-05-15 08:54:47","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","161.29.229.57","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/112/"
|
||||||
|
"Griffin","Taylor","2012-11-01","Sam","Taylor","0204202808","Tate Watson","02040182762","St Lukes Veterinary Centre","13 Morningside Drive, Mount Albert","09 845 5573","Yes","No","","No","","Yes","Dental biscuits","No","","No","1-5","Yes – loves the beach","Yes – less so now that Meola Rd is closed. We used to take him to Coyles Park most mornings off lead and he was fine with other dogs.","No","Yes","Cats","Yes","Yes","Yes","No","No","3.5","No","A bit anxious, a bit excited. He's very, very vocal and usually won't sit still. He's a lot more relaxed after a walk.
|
||||||
|
|
||||||
|
He's getting better in the car, but it's hit and miss. The trick is to make him feel secure in his seat.
|
||||||
|
|
||||||
|
Recently we got him a car seat. Because it has a lip, he feels a lot more secure in it. When we're in the van, Griffin sits between us in his seat and is normally pretty relaxed. Often he'll even lie down. But he rarely does this in other cars.","Sit – but he only really does it if there's food.","More details about the questions above:
|
||||||
|
Griffin is ok with other dogs, he just gets annoyed with young or really active dogs who in his face and won't leave him alone. On walks, he happily goes up to other dogs to say hello and have a sniff and 90% of the time it's absolutely fine, particularly when he's off lead. When I say he's reactive, he always notices other dogs and wants to say hello. He won't just walk by another dog without taking notice.
|
||||||
|
|
||||||
|
He is very reactive to cats, but his eyesight isn't as good as it used to be, so if they're far away he likely won't notice them.
|
||||||
|
|
||||||
|
Small children (toddlers) make him nervous and he has nipped a few in the past. He's never nipped anybody off lead at a dog park, just when he's been stuck in a room with them. Still if there are small kids around, we always put him on a short lead until we're past them. Best not to risk it.
|
||||||
|
|
||||||
|
His recall is ok. Most of the time he comes back straight away, or he waits for you to catch up with him. But if he's having a really good time, he might choose to ignore you...","@taylormayd_ @lowercase.nz","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65f093d9438b36.22712932&form-id=4&field-id=50&hash=a3cf79a8ca1dada2f2f073c7a9dee3f71c28c1bd42b0085ada1acc9f2d122218","2024-03-13","","111","2024-03-13 06:41:45","2024-03-12 17:41:45","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","203.211.108.130","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/111/"
|
||||||
|
"Hudson","Beever","2021-08-22","Lee","Beever","021655859","Lee Beever","021655859","Lee Beever","8 Hereford St, Freemans Bay","09 281 5815","Yes","No","","No","","Yes","He eats mushy food standing on a stool because he has megaoesohagus so his oesophagus doesn’t work properly and he will regurg food and cough if he eats dry kibble. He can eat small amounts of kibble for training, but not too much as it will take quite a while before it moves down to his stomach","No","","Yes","5-10","Yes. He does get ear infections if he puts his head under the water too much.","No","No","No","Birds","No","Yes","Yes","No","Yes","2","No","Travels well. No issues. Either looks out window or lies down.","Sit. Down. Come. Leave. Wait.","We’ve been working on his leash walking to try limit pulling - it’s currently a work in progress.
|
||||||
|
His recall is much better if you have something he wants like a ball or treats.
|
||||||
|
Regarding dry kibble treats - please see comment above.","Lbeever (instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65e3d62dc175c1.20462780&form-id=4&field-id=50&hash=df70dd78431d6d977897a60098a1d3f2a2f27732752abfe0395cc3136b933c70","2024-03-03","","110","2024-03-03 14:45:17","2024-03-03 01:45:17","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.1","115.189.90.224","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/110/"
|
||||||
|
"Ruru","Short","2016-04-26","Emily","Short","0274124402","Emily Short","0274124402","Lee Beever","8 Hereford Street, Freemans Bay","09 281 5815","Yes","No","","No","","Yes","Hills sensitive stomach and skin","No","","No","1-5","Yes - will run out to water edge and just dip her chest into the water to cool down","None","No","Yes","Other","No","Yes","Yes","No","Yes","4","No","Fine in the car. Usually travels in the back of RAV4 behind a dog barrier.","Come. Sit. Lie down. Stay. Leave. Wait.","Ru is a very vocal Beardie, so barks and makes noises often. Usually this is due to excitement. She often will bark when she sees other dogs and would run towards them if she is off lead. Usually when she gets close she stops barking and they sniff each other and that’s fine. If she’s on lead I often lead her away from other dogs because her barking is loud. She does not growl and has never had a fight with another dog.
|
||||||
|
She is a really sweet girl and I often just walk her through neighbourhood streets rather than going to dog parks because I think she finds that more calm, rather than interacting with lots of random dogs.","Emily Short","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65e3d352cb6797.26378477&form-id=4&field-id=50&hash=9437cae00563f2b47658bb71143dbf7e35d18c2f6bc70ff7cf4f2d42f93ba5fb","2024-03-03","","109","2024-03-03 14:33:06","2024-03-03 01:33:06","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.1","115.189.90.224","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/109/"
|
||||||
|
"Louis","Hall","2022-03-21","Rachel","Hall","021777441","Peter Hall","0274222118","Pt Chev Vet","67 Pt Chevalier Road","098150696","Yes","No","","No","","No","","No","","Yes","5-10","Yes, he has been to Thorne Bay and Milford Beach","The Domain (1-2 times per week), Parnell Rose Gardens (1-2 times per week), Myers Park (daily), Albert Park (3-5 times week), Tahaki Reserve (Mt Eden) once a fortnight","No","No","Cats","Yes","Yes","Yes","No","Yes","4","Yes","Usually curls up and goes to sleep once going at 50km/h","Come, sit, wait (for when he sits and you move away and then call him), stay (for when he stays on the spot until you return to him), down, relax (down with back legs tucked to one side),stop (e.g. at road), leave it (not 100% if something irresistible like chicken bones), heel, gentle, up and over (to jump over low fence)","He is ok with children so long as they do not squeal and run up to him fast and then reach over his head. If a child does this he will run away from them or sometimes bark.","_rachel_hall_ (instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65bdd6163dc8f5.22341806&form-id=4&field-id=50&hash=de7c4489d6bcdc1bbb0ad3c389a943a9402be5abaa8052a179a8a7ba533b1c14","2024-02-03","","107","2024-02-03 18:58:46","2024-02-03 05:58:46","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15","115.189.128.39","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/107/"
|
||||||
|
"Tinks","Ewen","2021-01-31","sue","Ewen","0274 524722","sue ewen","+64274524722","The Vets","608 Manukau Rd, Greenwoods Corner, Epsom","+64 9 625 5556","Yes","No","","No","","No","","No","","Yes","5-10","Yes","Every day","No","No","Cats","No","Yes","Yes","No","Yes","2","No","Generally quiet but does bark at dogs on the footpath","Sit
|
||||||
|
Down
|
||||||
|
Leave
|
||||||
|
Heel","Interested in birds and cats - I say ""leave""
|
||||||
|
Uses hand signals up - means sit
|
||||||
|
hands pushing down means drop","i.paua.pearl","Someone reffered me","I met Aless in the park","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65b0c5573d2637.72381668&form-id=4&field-id=50&hash=cef171b38a8f109e90675acc0c7b91c491e0ba4dd066928af98fd905af6a693f","2024-01-24","","105","2024-01-24 21:07:51","2024-01-24 08:07:51","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0","125.237.63.27","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/105/"
|
||||||
|
"Honey Crumbles","Shaw","2020-11-08","Anna","Shaw","02102970532","Andrew SHaw","00275237374","St Lukes Veterinary Cllinic","13 Morningside Drive, St Lukes, Auckland 1025","098455573","Yes","No","","Yes","Nothiing major but gets a bit itchy, not sure what triggers it. It's managed well.","No","","No","","Yes","1-5","Yes, not often","No","No","No","Birds","No","Yes","Yes","No","Yes","3","Yes","Honey is content to be in the car. We have never had any issues. She does like to see what is going on, but that is a preference, not an issue.","Sit, Down, Stay (sometimes!) Up (for jump up), Come. Also sometimes ""no barking!!!'","No I think we covered verything in the meet and greet. Also please note that in the question about running away, Honey did escape a few times and has run but this is when she was a puppy. NOw if she gets out she just comes back to the front door and waits to be let in.","@themignonette","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65459e30a3bcc8.74105744&form-id=4&field-id=50&hash=ebf8c00d85a89599214e6b0dddc91fc01e498f8170c87418ad4ed1f2aec0a6f2","2023-11-04","","103","2023-11-04 14:28:50","2023-11-04 01:28:50","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36","123.255.41.22","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/103/"
|
||||||
|
"Hank","O'Donnell","2021-05-14","Shelly","Haggas","0210425095","Zane O'Donnell","021734734","Your Mobile Vet","80d Main Road, Kumeu. 0810","0275590889","Yes","No","","No","","No","","No","","Yes","1-5","We visit Cornwall beach most weekends.","Not too frequently, maybe once every few weeks.","No","No","Birds","Yes","No","Yes","Yes","Yes","4","No","Can be quite unsettled on short journeys. But sometimes very settled, it's sporadic.","Sit. Touch. Down. Get in. Whistles. Middle. Wait","","@hankthekiwivizsla","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=653eb518c7bde8.66228884&form-id=4&field-id=50&hash=b9f295f1f69bdcdf23e3ff0546fec4d7abb924ec31a9b3a1c937e2cdd6c8b61d","2023-10-30","","101","2023-10-30 08:40:08","2023-10-29 19:40:08","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36","203.118.148.26","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/101/"
|
||||||
|
"Molly","Hickey","2014-12-11","Danielle","Barclay","0273972112","Matthew Hickey","021851489","Balmoral Vets","Dominion road","tel:+6496307168","Yes","No","","No","","No","","No","","Yes","5-10","Yes, loves Pt Chev, Takapuna in particular","Yes, 4 to 5 times a week. Monte Cecelia, big king","No","No","Cats","No","Yes","Yes","No","Yes","3","No","Molly is good in the car, usually sleeps","Molly come
|
||||||
|
Wait
|
||||||
|
Sit
|
||||||
|
Down
|
||||||
|
Shake","She likes to bark with excitement but quickly settles down","Danielle Barclay","Someone reffered me","Tiny Paws","https://onboarding.goodwalk.co.nz/index.php?gf-signature=650c9ec862e7f9.75096945&form-id=4&field-id=50&hash=c53404ed82e4c1856d770489779edd316d19d65155c9f202b2330f660212cf39","2023-09-22","","99","2023-09-22 07:51:45","2023-09-21 19:51:45","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/117.0.5938.108 Mobile/15E148 Safari/604.1","121.98.37.166","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/99/"
|
||||||
|
"Otis","Batchelor","2022-02-11","Ross","Batchelor","021799704","Rosemary Batchelor","0274956005","Abbotts Way Veterinary Clinic","199 Abbotts Way, Remuera, Auckland 1050","09 524 8361","Yes","Yes","Possibly allergic to beef products.","No","","Yes","Strictly eats Acana Singles Free Run Duck biscuits only, at least until December 2023","No","","Yes","5-10","Yes, he loves swimming","Yes, every day","No","No","Cats","No","Yes","Yes","No","Yes","3","No","Very familiar with car travel, he usually rides in the boot of the car or sometimes on the front passenger seat with a seatbelt/collar clip.","Come, Wait, Sit, Toilet, Inside, Up, Cushion (bed)","","rossinopecorino (Instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6503b7198a9f77.22408968&form-id=4&field-id=50&hash=2573f783f06a20dec6ce6982c6def8f7e3e0b883a564f8ef88a93aa3efc5cdf6","2023-09-15","","97","2023-09-15 13:44:57","2023-09-15 01:44:57","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1","172.225.244.185","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/97/"
|
||||||
|
"Ollie","Buckley","2017-09-27","Ann","Buckley","0274479293","Emily Peterson","0273407725","Grey Lynn Vet (Vetcare)","46-48 Pollen St","09 3600961","Yes","No","","No","","No","","No","","Yes","5-10","Yes","4-5","No","No","Cats","No","Yes","Yes","Yes","Yes","4","No","Ollie is a little reactive and protective at home and in the car - he will bark at especially cyclists","Wait, Stay, Come, Sit, Down, Leave, Walk with me (walk on leash beside me politely), High five, shake","No","None although I am on facebook","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64bf5e8263bfa4.37532663&form-id=4&field-id=50&hash=108323a32dc92389b36f35f3f2b62fabb488d1cf4e9c9c142813d0fa42cca7f4","2023-07-27","","95","2023-07-25 17:32:50","2023-07-25 05:32:50","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","210.246.17.164","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/95/"
|
||||||
|
"Zola","Humphrey","2023-03-09","Monique","Humphrey","0212764358","Adam Begg","0211862322","Normanby Road Vets","49 Normanby Road, Mt Eden, 1024","096388445","Yes","No","","No","","No","","No","","Yes","1-5","No not yet but will in the future","No","No","No","Cats","No","No","Yes","Yes","Yes","2","Yes","A little anxious at the start and then settles down and curls up and rests.","Pup, pup, pup (for come)
|
||||||
|
Zola
|
||||||
|
Sit
|
||||||
|
Close
|
||||||
|
Down","","Monique Humphrey","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=648f8b0814a3c0.02837457&form-id=4&field-id=50&hash=97010e06e3b2cb0e650c3505b319534859c56305e935cce4ff94dfe30c316c04","2023-06-19","","93","2023-06-19 10:54:00","2023-06-18 22:54:00","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15","121.98.13.62","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/93/"
|
||||||
|
"Sunny","Lloyd","2021-09-03","Ruby","Tautuhi-Lloyd","02041461878","Kanoa Lloyd","021657788","Auckland Pet Hospital","46/48 Pollen Street, Grey Lynn","093600961","Yes","No","","No","","Yes","Royal canin digestion + supplements","No","","Yes","5-10","Yes","3-4","No","No","Cats","No","Yes","Yes","Yes","Yes","4","No","Calm and happy. May want to look out the window.","Sit, come, wait","Sunny has chronic rhianitus and has some breathing issues on and off. May flare up and be snotty from time to time. She is a little overweight at the moment and not as fit as usual","?","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=647f8d98a32e44.61071603&form-id=4&field-id=50&hash=6460be1bcbd773cbb5b389c7a1d9134b98815929b59b4582918f2b7a38b5c3d4","2023-06-07","","90","2023-06-07 07:48:40","2023-06-06 19:48:40","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.121 Mobile/15E148 Safari/604.1","101.100.129.22","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/90/"
|
||||||
|
"Donny","Kenny","2020-12-03","Megan and Adrian","Kenny","Meg 021676959 Adrian 021828902","Megan kenny","021676959","Normanby road vets","49 Normanby road","096388445","Yes","Yes","No red meat","No","","Yes","No raw food only biscuits","No","","Yes","1-5","Yes every weekend","Yes with his day carer 4 times a week","No","No","Other","No","Yes","Yes","No","Yes","3","No","He sits in his car seat or on the front seat he travels to Pauanui every week which is a three hour drive there and back very used to travelling in the car","Come Donny
|
||||||
|
|
||||||
|
Sit
|
||||||
|
|
||||||
|
Down
|
||||||
|
Shake hand","If cold he needs a jumper or jacket
|
||||||
|
If more than one dog runs up to him last he will definitely shy away
|
||||||
|
We try and keep an eye on what he eats on the ground if he is off the lead as he can tend to eat extremely unhealthy things which could make him sick","meg.kenny","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6476ee0f7f6963.08004489&form-id=4&field-id=50&hash=b9bc50afd19e6222c4993f4929950f6d2484bcbfed5ed8e9ec6171b641a711c0","2023-05-31","","88","2023-05-31 18:49:51","2023-05-31 06:49:51","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.121 Mobile/15E148 Safari/604.1","115.188.70.175","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/88/"
|
||||||
|
"Maggie","Read","2021-10-20","Harriet","Read","0212340063","Sue read","02102446843","Glendowie Vets","Riddell Road st Heliers","09 575 7688","Yes","No","","No","","No","","No","","Yes","1-5","Yes","Yes 3","No","No","Birds","No","Yes","Yes","Yes","Yes","4","No","Very happy normally sleeps","Come sit stay","","No socials","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6465739a39fc42.86875372&form-id=4&field-id=50&hash=93533b1bd1928f98414fc8aafb44986fdcf214ecadb129f698b28859d1148a92","2023-05-18","","87","2023-05-18 12:38:50","2023-05-18 00:38:50","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.69 Mobile/15E148 Safari/604.1","203.211.107.249","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/87/"
|
||||||
|
"Monty","Rewiri","2020-11-15","Estelle","Rewiri","0275194228","Nick McGrath","+61 433 864 156","Massey Vets","256 Don Buck Road, Massey","09 832 4895","Yes","No","","No","","No","","No","","Yes","5-10","yes","4","No","No","Cats","No","Yes","Yes","Yes","No","3","No","Whines in the car mostly when the windows are up / reversing","Sit
|
||||||
|
Stay
|
||||||
|
Wait (food)
|
||||||
|
Handshake
|
||||||
|
Bonk
|
||||||
|
Come
|
||||||
|
Turn
|
||||||
|
|
||||||
|
Maori commands..","Doesn’t like his paws being touched / isn’t the biggest fan of men / high vis clothing","Mischief_ Monty","Instagram","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=645c1e471090d2.61524914&form-id=4&field-id=50&hash=2ae19a9423580c651cdf1e2d0070a8bd595fe64ef5daf41389b747997849d4fb","2023-05-11","","84","2023-05-11 10:44:31","2023-05-10 22:44:31","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1","115.189.88.240","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/84/"
|
||||||
|
"Luna","Matthews","2020-04-16","Carl","Matthews","021737727","Vanessa Matthews","021 380 334","Chris at Normandy Rd Vet","49 Normanby Road, Mount Eden,","09 638 8445","Yes","No","","No","","No","","No","","Yes","5-10","Yes she loves the beach","2-3 times","No","No","Birds","Yes","Yes","Yes","Yes","Yes","4","Yes","She travels a lot in the car. Seems to prefer the boot as she can lean better.","Sit, stay, heel (sometimes), come, no. Good Girl (if she has responded to a command)","I put she is reactive to children and other people but only because she is very social and wants to play. She is never aggressive and will very rarely bark.
|
||||||
|
About 3 times a week we go to the local school (Kowhai) and there is often up to 12 of her dog friends there to play with.
|
||||||
|
|
||||||
|
She has run away before when we left the door open but didn't go far. She does have our phone numbers on the collar.
|
||||||
|
|
||||||
|
If we are at a dog park she has never run away or gone to far from us and will come back when called.
|
||||||
|
|
||||||
|
Loves treats!","I don't have any social media.","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=645aa1326e9497.56635043&form-id=4&field-id=50&hash=01947a1ded47ed55e41ee9b5190fb28a25759adecebf22c082dff38df73eef9a","2023-05-10","","83","2023-05-10 07:38:26","2023-05-09 19:38:26","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","121.99.240.46","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/83/"
|
||||||
|
"Sweep","","2013-12-17","Todd","Benton","021482670","Jose Rodriguez (co-owner)","021846685","Auckland Pet Hospital","46-48 Pollen Street, Grey Lynn, Auckland 1021","09 360 0961","Yes","Yes","Allergic to many different types of fish - please don't give fish based treats / food","Yes","Hayfever (very typical of Spanish water dogs) - he can get quite sneezy and rub his eyes but don't worry too much about it, I'm just telling you because I don't want you to worry too much about it","No","","No","","Yes","5-10","Yes - not often but he likes it (he will chase ducks etc)","14 minimum","No","Yes","Cats","No","Yes","Yes","No","Yes","4","No","He's very good in the car - he has travelled a lot (between UK & Spain and around Spain many times so very used to it). He does like to get out of the car after about 2.5 hours and stretch his legs but I don't think he will be with you in the car for longer than 2.5 hours continuously!","Sweep gets spoken to at home in both English and Spanish - English is fine but Spanish is good if you have any Spanish speaking staff! There's probably more, but the following are the key one's you are likely to use / need:
|
||||||
|
|
||||||
|
Sit - Sentate
|
||||||
|
Come - Ven / ven aqui
|
||||||
|
Cross (to cross the street) - Cruza
|
||||||
|
Wait (if he wants to cross the street and it's not safe) - Espera
|
||||||
|
Let's go - Vamos","I couldn't select above that he will react to both cats and birds - he will chase birds as well but it isn't a severe problem (the cats are worse). To add, when we walk around on the street, I always have him on a lead as if he sees a cat he will go straight after it and won't wait for any traffic (off-lead in the park, beach or other similar safe place is fine but not on the street).
|
||||||
|
|
||||||
|
As said on the phone, he doesn't like dogs jumping on him and isn't super good with small dogs that behave very aggressively ('small dog syndrome')toward him, as he was bitten by a small dog when he was younger.
|
||||||
|
|
||||||
|
As mentioned, he does have arthritis (which he does have medication for) - walking is fine but we try to avoid higher impact activities (chasing balls etc - he does love chasing balls so we need to keep an eye on him and make sure he doesn't go rushing off after other dog's balls in the park).","Let me get back to you on this (will email you) - Jose uses social media more than me","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64570e76700919.28264836&form-id=4&field-id=50&hash=f161774d4c291638db6211700c14419473a773e4d625e02777d5b15517d5b40d","2023-05-07","","80","2023-05-07 14:35:34","2023-05-07 02:35:34","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 OPR/98.0.0.0","121.99.103.51","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/80/"
|
||||||
|
"Bob","Smiyh","2021-06-01","Paula","Smith","021979995","Tony Browne","021505006","Balmoral Vets","Balmoral Road","+64 9 630 7168","Yes","No","","No","","No","","No","","Yes","1-5","He has been a couple of times","2 parks a week","No","No","Birds","No","Yes","Yes","Yes","Yes","4","No","Anxious- Whines and high pitched bark","Sit
|
||||||
|
Stay
|
||||||
|
Come
|
||||||
|
No","","Smithy007","Someone reffered me","Joni Liggins - owner of Basil a cavoodle","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64549b66b5eb99.40000704&form-id=4&field-id=50&hash=6787581b9df2e5d49139bdab8ac6db043ce11b3035c4d0f51d87b4185a1b447e","2023-05-05","","78","2023-05-05 18:00:06","2023-05-05 06:00:06","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1","125.237.205.159","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/78/"
|
||||||
|
"Test","test","1986-10-04","Test","Test","t","test","test","test","test","test","Yes","No","","No","","No","","No","","No","1-5","1","1","No","No","Cats","No","No","Yes","Yes","Yes","5","Yes","test","test","test","test","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6454406fe18cc4.20548864&form-id=4&field-id=50&hash=54ae4c519482f955b5b884c1b7f901ea40c6a3e8a83694cfd7eec842c314e854","1986-10-04","1","77","2023-05-05 11:31:59","2023-05-04 23:31:59","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36","101.98.31.253","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/77/"
|
||||||
|
"Fergie","Taylor","2020-10-06","Caroline","Logan","0272217468","Matt Taylor","0272175951","Auckland Pet Hospital","Pollen Street, Ponsonby","093600961","Yes","No","","No","","No","","No","","Yes","5-10","Yes - she loves the beach","4","No","Yes","Cats","No","Yes","Yes","Yes","Yes","4","No","She is well behaved. She likes to look out the window and gets very excited when she realises where she is going.","Come, heel, leave it, down, sit, Fergie","","@carriestrells","Facebook","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=645430414a9eb8.15054547&form-id=4&field-id=50&hash=7c9cb76001b8ba9925f6d81aacd877fe600e3d15b5dbdd73721d00b6d164c538","2023-05-05","","76","2023-05-05 10:22:57","2023-05-04 22:22:57","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1","122.56.203.158","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/76/"
|
||||||
|
"Buddy","Reynolds","2022-07-13","Lori","Reynolds","0223109861","Sarah Rothwell","021 998 531","Belmont vets","2 Egremont St Belmont Auckland 0622 New Zealand","09446 1155","Yes","No","","No","","No","","No","","Yes","5-10","Yes, weekend walks a few times a month.","Yes, approx 2","No","No","Birds","No","Yes","Yes","No","Yes","3","Yes","Good in the car and frequently rides with me. Loves to look out the window, stirs at times.","Sit and paw","","Instagram loriannreynolds","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6448d7241bccb3.97264724&form-id=4&field-id=50&hash=1f1318ecdf264abe17122ed5d4aa39bd7ff0885a9fce5abcb7ba3aa0b819a887","2023-05-26","","74","2023-04-26 19:48:02","2023-04-26 07:48:02","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1","172.225.244.185","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/74/"
|
||||||
|
"Baylee","Curac","2022-04-24","Tony","Curac","0274432085","Maxine Curac","+64212611082","The Strand Vet","Textile Centre Kenwyn Street Parnell","09 3776667","Yes","No","","No","","No","","No","","No","1-5","Yes","2 to 5","No","No","Birds","Yes","Yes","Yes","Yes","Yes","3","Yes","Likes to look out the window, sleeps after a while","Sit, come, stay shake, no","We need some help with training as she is a constant chewer and her recall needs improving","Max and Muppy - Insta","Someone reffered me","Johnathan","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6448b179106070.98351970&form-id=4&field-id=50&hash=30380f4859624003ebd68f2cb529d47daef907a96df05cd3559e47f879599e89","2023-04-26","","73","2023-04-26 17:07:05","2023-04-26 05:07:05","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36","115.188.146.39","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/73/"
|
||||||
|
"Jake","Korucu","2021-12-01","Stephanie","Korucu","021989369","Murat Korucu","021975369","Pt Chev Veterinary Clinic","67 Point Chevalier Road, Point Chevalier, Auckland 1022","09 815 0696","Yes","No","","No","","No","","No","","Yes","5-10","Yes, he loves the beach and the water, but doesn't actually swim","Twice a day, most days","No","No","Cats","No","Yes","Yes","No","Yes","3","No","Excitable on the way out, calm on the way home! Generally good.","Come, sit, sit nicely, wait , this way (understands and generally obeys)
|
||||||
|
Leave it, get down, stay (understands but variable as to whether he obeys)","Jake loves being off-leash for his morning walk - he enjoys running up and down the sides of the hills (Owairaka Domain is our usual). He knows a lot of the regular dog on the hill and there are several he meets and plays with on a regular basis. With some of his friends there is mutual fun in some fairly rough-looking wrestling play (Especially in the mornings you might encounter Sadie -yellow lab, Freddie -black boxer-labX, Miso -large yellow lab or Pearl -grey staffie - all of them love to play like this).","Steph Korucu (FB and Instagram)","Facebook","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=641d262642c5d7.69182113&form-id=4&field-id=50&hash=dd409536be64dcc6789788c2495fa916bffc40c9ea665d78354acad174a4b183","2023-03-24","","64","2023-03-24 17:25:10","2023-03-24 04:25:10","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","198.41.238.111","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/64/"
|
||||||
|
"Archie","Dine","2013-01-02","Penny","Dine","0225280966","Jessica","0225280966","Cambridge Vet","41 EMPIRE STREET","0800226384","Yes","No","","No","","No","","No","","Yes","1-5","Yes","5","No","No","Other","No","Yes","Yes","Yes","Yes","4","No","Very calm just sits there","come","","same as FLo / Mine","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63ebdb3cddbc13.42446379&form-id=4&field-id=50&hash=71bee8bcc5ac73a3f57eabccf7f82d3c78b757ba7627a8e8d7c647c5012fff92","2023-02-15","","61","2023-02-15 08:04:28","2023-02-14 19:04:28","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","172.68.66.78","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/61/"
|
||||||
|
"Freddie","Sullivan","2019-12-01","Monique","Sullivan","0275306046","Mark Sullivan","0211639997","Balmoral Vets","482 Dominion Rd, Mt Eden","630 7168","Yes","Yes","Dairy","Yes","Grass","Yes","Sensitive skin diet but can have treats","No","","Yes","5-10","Yes","3-4","No","No","Cats","No","Yes","Yes","No","Yes","4","No","Loves being in the car","Sit, down, come","Please keep Freddie off long grass that has gone to seed. He has needed two surgeries now to remove these seeds and we would like to try and prevent this happening again.","Instagram minksullivan","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63e43156c3cca5.95225021&form-id=4&field-id=50&hash=3bb68d2fa182db969b56928cc459ed91f4584c28a8f9af5cfecaa29741902768","2023-02-09","","59","2023-02-09 12:34:06","2023-02-08 23:34:06","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36","198.41.238.110","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/59/"
|
||||||
|
"Digby","Langdon-Baird","2021-11-21","Kate","Langdon","021411488","Sophie Baird","021931977","Auckland Pet Hospital","46-48 Pollen Street, Ponsonby","09 360 0961","Yes","No","","No","","No","","No","","Yes","1-5","Yes","7 times per week","No","No","Birds","No","Yes","Yes","No","Yes","3","Yes","He ran away once, when he saw scared off by another (huge dog).
|
||||||
|
He is fine in the car. He sits in the boot of the car.","Sit
|
||||||
|
Down
|
||||||
|
Come
|
||||||
|
Wait
|
||||||
|
Up (to get in the car)","He is a boisterous (but friendly) boy who needs lots of exercise!","Kate Langdon (facebook) katelangdon_nz (insta)","Facebook","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63df001dd7e541.37838378&form-id=4&field-id=50&hash=e8f90d72d6f9d3cfc20ff42c9efd5f16088654a14d5e6ccbdbc6609d2392670a","2023-02-05","","57","2023-02-05 14:02:21","2023-02-05 01:02:21","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","172.68.146.3","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/57/"
|
||||||
|
"Lulu","Levermore","2015-02-16","Matthew","Swinburne","02041249994","Victoria Levermore","02041196653","TBC","TBC","TBC","Yes","No","","No","","Yes","Hypoallergenic kibble","No","","No","1-5","Yes","No","Yes","Yes","Other","No","Yes","Yes","No","Yes","4","No","Lulu regularly travels in the boot of our car and has no issues.","Sit. Stay. Wait. Heel. Roll over. Down. Shake.","Lulu is nervous around other dogs and needs to be kept on leash at all times when walked.
|
||||||
|
If she feels threatened by other dogs she can get aggressive.
|
||||||
|
We recommend keeping space from dogs she is not familiar with.","@mattswinny (instagram)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63605b3fcc6f81.39608116&form-id=4&field-id=50&hash=79743c51c5ae9f38787210f42fbe2cdd1a10f84a5138057d2ae676b0e54fcbb3","2022-11-01","","56","2022-11-01 12:33:19","2022-10-31 23:33:19","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","162.158.2.21","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/56/"
|
||||||
|
"Wallace","Darrah","2022-07-22","Nina","Darrah","0224981015","Siobhan Connelly","02108639903","Pt Chev Vet Clinic","67 Point Chevalier Road, Point Chevalier, Auckland 1022","09 815 0696","Yes","No","","No","","No","","No","","Yes","1-5","Yes, put still on leash","0","No","No","Birds","No","No","Yes","No","No","1","No","She is pretty calm, I have her tethered to the seat so she cant roam far.","Sit
|
||||||
|
Down
|
||||||
|
|
||||||
|
working on: Wait, Stay","","@nina.darrah","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=635ae10606d868.49435145&form-id=4&field-id=50&hash=3db725b1f841bd74ebff7d583cac7b4b032bea51541c88d086df92c4be0a01a3","2022-10-28","","53","2022-10-28 08:50:30","2022-10-27 19:50:30","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36","172.68.66.3","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/53/"
|
||||||
|
"otis","McLean","2020-04-23","Fiona","Clarke","021477546","Brigid McLean","+64 21 051 9770","St Luke’s vets","13 Morningside Drive Mount Albert Auckland 1025 New Zealand","+6498455573","Yes","No","","Yes","Allergic to wandering Jew","No","","No","","Yes","1-5","Yes","Not often","No","No","Other","No","Yes","No","No","Yes","3","No","Calm, but likes cuddles","Sit, stay, come, wait, no, good boy etc","","Feeclarkee","Someone reffered me","Brigid McLean","https://onboarding.goodwalk.co.nz/index.php?gf-signature=633be8142e7824.35905911&form-id=4&field-id=50&hash=1e4809781b32a909dbf95107fe4c759f1de0ff7397bb547f1995f74c04157baf","2022-10-04","","51","2022-10-04 21:01:29","2022-10-04 08:01:29","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1","172.68.146.2","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/51/"
|
||||||
|
"Fergie","Taylor","2020-10-06","Caroline","Logan","0272217468","Matt Taylor","0272175951","Auckland Pet Hospital","46-48 Pollen Street, Grey Lynn, Aucklandd","09 360 0961","Yes","No","","No","","No","","No","","Yes","5-10","Yes regularly on and off leash","1-2 times per week","No","No","Birds","No","Yes","Yes","No","Yes","3","No","Relaxed. Happy to sit wherever but always keen to look out of the window where possible.","Sit, down, stay, come, leave it","I didn't quite understand the questions about being reactive. Fergie will look to chase cats and birds if given the opportunity, albeit has not totally run away previously in doing so. She is happy and confident around other dogs, people and children. She is particularly fond of playing with other dogs so will seek that out when off leash.
|
||||||
|
|
||||||
|
One call out would that she can be nervous walking on leash on pavements. Following a bad experience walking next to a building site during a demolition, she can be twitchy and look to pull away from buses, large trucks or loud noises from building sites etc.","@carriestrells & @matthewtaylorphoto on Instagram","Someone reffered me","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63328f1f08d1d9.93390027&form-id=4&field-id=50&hash=14ec5a99a530fa02e079e24e5a3480f2eb531de1c4689736af62fa056ff3e5b7","2022-09-27","","49","2022-09-27 18:51:12","2022-09-27 05:51:12","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","172.68.66.2","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/49/"
|
||||||
|
"Flo","Dine","2020-12-01","Jessica","Dine","0225280966","Alex Little","0276888676","Normanby Road Vets","49 Normandy Road","09 6388445","Yes","No","","No","","No","","No","","Yes","1-5","Yes loves it!","6x oer week","No","No","Cats","No","Yes","Yes","Yes","Yes","2","No","Fine, will just sit on seat","Sit
|
||||||
|
Come
|
||||||
|
Down
|
||||||
|
No
|
||||||
|
Walk
|
||||||
|
Treat
|
||||||
|
Dinner","","n/a","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63280e157c1eb5.67652552&form-id=4&field-id=50&hash=8cb69d5e96254bc74621d32638a83a2c7c1954ad316cb1c81b81007e82e96759","2022-09-19","","47","2022-09-19 18:37:46","2022-09-19 06:37:46","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.66.36","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/47/"
|
||||||
|
"Lenny","Stark","2020-07-21","Andy","Stark","0211926498","Andy","0211926498","St Luke Veterinary Clinic","13 Morningside Drive, St Lukes, Auckland 1025","09 845 5573","Yes","No","","Yes","The Mud at Meola Park causes bald patches. We avoid in the winter","No","","No","","Yes","5-10","Yes","one per week","No","No","Other","No","Yes","Yes","No","Yes","4","No","Very good. Loves the car and always relaxed.","Come
|
||||||
|
Stay
|
||||||
|
Sit
|
||||||
|
Down
|
||||||
|
Shake hands
|
||||||
|
No....","","kylie.stark_ and andystark88","Someone reffered me","Nancy from Generator","https://onboarding.goodwalk.co.nz/index.php?gf-signature=631d8173f240b8.62865903&form-id=4&field-id=50&hash=115663b7f127b08654c731bfe60b509bb18f551a77d675edd30ce9561aa9fe37","2022-09-11","","45","2022-09-11 18:35:14","2022-09-11 06:35:14","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36","172.69.62.30","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/45/"
|
||||||
|
"Archie","Lawrence","2019-03-15","Kate","Cadzow","0212052720","Robert Lawrence","0275194579","Auckland Pet Hospital","46 - 48 Pollen Street, Grey Lynn","09 3600961","Yes","No","","No","","No","","No","","Yes","1-5","Yes in summer time. He is unsure about water, but will chase a stick in.","5","No","Yes","Cats","No","Yes","Yes","Yes","Yes","3","Yes","Archie's behavior in a car varies. He will usually just stand where ever he is put, but can get very whiny and try to sit on someone in the car. He is usually fine though.","Sit, Down, Come, Spin, Shake, Stay, Paws, Up, Off, Leave it","Whist off lead Archie can be quite reactive to prams, bikes and people running. He will chase them and bark, but he will not bite them. He is also very reactive to cats whilst on the lead. He can sometimes very rarely be reactive to other dogs sometimes on lead, but also if they are behind fences.","Kate Cadzow (Facebook)","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6317c9766f3ba5.04202227&form-id=4&field-id=50&hash=e2947bb13e0173e9439b5048518bfd588d4f3a3e2b4e699c7646b17f741a3d3b","2022-09-07","","43","2022-09-07 10:28:06","2022-09-06 22:28:06","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.210.84","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/43/"
|
||||||
|
"Franky","Powell","2021-12-05","craig","powell","0223715249","Sean","0272889696","Balmoral vets","482 Dominion Road, Mount Eden, Auckland 1024","09 630 7168","Yes","No","","No","","No","","No","","Yes","5-10","Yes","at least 5 times a wekk","No","No","Other","No","No","Yes","No","Yes","4","No","He gets very excited as he knows hes going for a walk","Sit.
|
||||||
|
|
||||||
|
Stay.
|
||||||
|
|
||||||
|
Here
|
||||||
|
|
||||||
|
Paw.","Hes super friendly with everyone and all animals.
|
||||||
|
|
||||||
|
Will lick you to death if you let him.","craig powell","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63156c03a78f56.56615128&form-id=4&field-id=50&hash=4a623f4948d0dd41cd534843301a14ff3187ac2a53d45ee495bab3a9186d72d2","2022-09-05","","41","2022-09-05 15:24:51","2022-09-05 03:24:51","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.210.6","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/41/"
|
||||||
|
"Digby","McLean","2021-09-11","Brigid","McLean","0210519770","David Kidd","0299765289","St Luke’s Vet","13 Morningside Drive, Mt Albert","09 845 5573","Yes","No","","No","","No","","No","","Yes","1-5","Yes, mainly Pt Chev","4 -5 times mainly Nixon, Grey Lynn Park and Cox’s Bay Reserve","No","No","Birds","No","Yes","Yes","No","Yes","3","Yes","He loves the car because he knows it’s leading to an adventure","Sit
|
||||||
|
Recall","He only has run away once and on a group beach walk with other dogs when he was 8 months and got distracted by some birds. It was his second walk and hadn’t formed a bond with the walker","Brigid McLean","Facebook","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=630efe47eb1f48.98016769&form-id=4&field-id=50&hash=2c097f472e116334b53e543b9e8072082b6698782340692681861f245b7cc121","2022-08-31","","39","2022-08-31 18:23:03","2022-08-31 06:23:03","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1","172.68.66.22","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/39/"
|
||||||
|
"Slava","","2022-01-27","Daria","Derecha","0223972856","Nataliya Shchetkova","0223972860","Normanby Vet Clinic","49 Normanby Road, Mount Eden","09 638 8445","Yes","No","","No","","No","","No","","Yes","1-5","She's been to the beach, but haven't swam yet","1-2","No","No","Cats","Yes","No","No","Yes","Yes","3","Yes","She behaves in the car, but during long drives she can get sick","- Sit
|
||||||
|
- Down
|
||||||
|
- No
|
||||||
|
- Stay
|
||||||
|
- Wait
|
||||||
|
- Watch
|
||||||
|
- Leave it
|
||||||
|
- Roll","Slava will be kept outside when you come in and she'll have a vibration collar on.
|
||||||
|
Could you please take the collar off when you take her for a walk and put it back on when you back?
|
||||||
|
& also please make sure that the side door is closed shut when you leave, thank you :)","Daria Derecha","Facebook","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63082e2ad5ff32.85559674&form-id=4&field-id=50&hash=881863d12cd6127e227a40b851c1817d339386ee277691d5d0fd7fd865ee7cb2","2022-09-26","","38","2022-08-26 14:21:30","2022-08-26 02:21:30","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.146.4","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/38/"
|
||||||
|
"Charlie","Le Harivel","2012-01-01","Caitlin","Le Harivel","022 525 7530","Gerardo","+64224084568","Auckland vet hospital","46-48 Pollen Street, Grey Lynn, Auckland 1021","+64 9 360 0961","Yes","Yes","No grains, soy, dairy","No","","Yes","Raw meat/vege","No","","No","1-5","Yes, loves it","3-5","No","Yes","Cats","No","Yes","Yes","Yes","Yes","3","No","Needs to be in cage, whines and doesn't like turns. Settles on the straight parts of road/after walk.","Sit, come, lie down, down. ""Bah"": deep guttural noise for behavior you don't want.","Quite barky. Better off leash with other dogs","Caitlin le harivel","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6304215c740272.35188451&form-id=4&field-id=50&hash=c7dacf3575b1c220bf9bb512f9737af239b3d2379e7afc71f25c2be86b971aef","2022-08-23","","36","2022-08-23 12:38:24","2022-08-23 00:38:24","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Linux; Android 10; SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36 (Ecosia android@101.0.4951.41)","172.68.146.4","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/36/"
|
||||||
|
"Freddie","Douglas","2017-05-01","James","Douglas","0202040525283","Paula Lorgelly","02040646006","Auckland Pet Hospital","46 Pollen St, Grey Lynn, 1021","093600961","Yes","No","","No","","No","","No","","Yes","1-5","Yes, loves running on the beach, but doesn't like the water","5","No","No","Other","No","Yes","Yes","No","Yes","3","No","Likes the car, will generally sleep, he can jump into most cars to get in.","Sit
|
||||||
|
Wait
|
||||||
|
Cross (the road)
|
||||||
|
Come (back)
|
||||||
|
No","","Not applicalbe","Google / Google Ads","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6303f978daad47.67660995&form-id=4&field-id=50&hash=a5fe26196a6e39bdaf111206b1fb45288dac4cc2bdcc99f95f1b38c65dfefc92","2022-08-23","","34","2022-08-23 09:48:09","2022-08-22 21:48:09","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","172.68.146.16","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/34/"
|
||||||
|
"Quest","Kedzlie","2009-08-01","Joanna","Kedzlie","0274484720","Aaron Kedzlie","0274962151","Balmoral Vets","482 Dominion Rd Mt Eden","096307168","Yes","Yes","Beef chicken lamb causes itching","No","","Yes","Venison / Fish varieties of Ziwi Pet dried food","No","","Yes","5-10","yes every 2-3 weeks","5 x week","No","No","Cats","No","Yes","Yes","No","Yes","4","No","sleepy .","Wait , Sit , Go( chase or go see the dog or bird or go run)","Lifting to and from vehicles / couches / beds because of hip joint risk ( left hip fragile )
|
||||||
|
Sometimes not reactive to calling if far away ? getting deaf but knows her name and usually very responsive .
|
||||||
|
If sees cats can chase uncontrollably","Instagram","","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62f22657a8dc11.18756572&form-id=4&field-id=50&hash=4a42a8967744c968154fdf32da58f9442cae6e0a9155558bd60c98d7f2f29bb6","2022-08-09","","32","2022-08-09 21:31:24","2022-08-09 09:31:24","https://onboarding.goodwalk.co.nz/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1","172.68.146.14","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/32/"
|
||||||
|
"Sadie","Louise","2021-11-13","Nancy","Louise","0276234406","Sam Moir","+64 22 411 5904","Auckland Pet Hospital","46-48 Pollen Street, Grey Lynn, Auckland 1021","093600961","Yes","No","","No","","No","","No","","Yes","1-5","Yes","2","No","No","Birds","Yes","No","","","Yes","3","No","Sadie likes to sit on laps during a drive, but will snooze. She can sometimes be a bit hyper in the backseat of a car.","","Wants to be the best girl ever, but is still learning. Fine walking off leash and has good recall, but sometimes turns her ears off. Working on it…","","","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c65baf861644.12326872&form-id=4&field-id=50&hash=9f5474c574064ad3fe1e3ed448a567efd5794d6cc1128fedef44d8183cdd085a","2022-07-07","","30","2022-07-07 16:06:25","2022-07-07 04:06:25","https://goodwalk.co.nz/onboarding-form/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1","172.68.210.25","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/30/"
|
||||||
|
"Stella","Blows","2021-08-01","Adrienne","Blows","0212965171","Adrienne","Blows","Balmoral veterinary care","482 Dominion road Mt Edwn","09 6307168","Yes","No","","Select","","No","","No","","Yes","1-5","Yes","No","No","Yes","Birds","No","Yes","","","No","1","No","Moves around a bit and needs a restraint. Likes to stick her head out the window","","","","","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c3d5039fbde6.48018846&form-id=4&field-id=50&hash=1ec5ffc4a70ebe2961deb18a2522231b38fd73c21f017f1c6c50bc725e5d819c","2022-07-05","","27","2022-07-05 18:06:59","2022-07-05 06:06:59","https://goodwalk.co.nz/onboarding-form/","","","","","","Mozilla/5.0 (Linux; Android 12; SM-G988B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.70 Mobile Safari/537.36 EdgW/1.0","172.68.146.11","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/27/"
|
||||||
|
"Frankie","Richards-Berry","2020-06-08","Renee","Richards-Berry","0275342790","Michele Richards-Berry","021432583","St Luke’s Vet","13 Morningside Dr, st Lukes","09 845 5573","Yes","No","","No","","No","","No","","Yes","5-10","Yes. Loves swimming and fetching sticks","Daily","No","No","Cats","No","No","","","Yes","4","Yes","Excited initially but chills out and goes to sleep when she realises it might be a long journey. She loves the car.","","She loves to chase swallows at parks and they seem to love to taunt her. She usually just sits down in the park when she’s too tired to run any more","","","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c0bc95013e88.79836255&form-id=4&field-id=50&hash=a5170df830c4836db17676312d81ece5adf1d7aa57a6c7c5d7c17131cef108e3","2022-07-02","","24","2022-07-03 09:45:57","2022-07-02 21:45:57","https://goodwalk.co.nz/onboarding-form/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1","172.68.66.85","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/24/"
|
||||||
|
"Ted / Teddy","Jenkinson","2020-10-02","Kim","Jenkinson","0274490005","Kyle Brown (Brownie)","0274887496","Ellerslie Veterinary Clinic","199 Main Highway, Ellerslie","092813481","Yes","No","","Yes","Grass - but he has pills for that. Can help by hosing down his feet after a run around","No","","No","","Yes","1-5","Yes","four times","No","No","Birds","No","No","","","No","3","Yes","Loves it. Loves just being there for a ride. Can leave him in the car (with water/ ventilation) happily for up to 2 hours","","","","","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62bb6c86903b49.56603473&form-id=4&field-id=50&hash=5cdeebf1018eca2ad26f9674dbd27ef095015e3ab9a90881d728ba1ca6de87f0","2022-06-29","","22","2022-06-29 09:03:02","2022-06-28 21:03:02","https://goodwalk.co.nz/onboarding-form/","","","","","","Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36","202.3.88.174","https://onboarding.goodwalk.co.nz/pdf/62bad160c3d11/22/"
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
"Consent (Consent)","Consent (Text)","Consent (Description)","Owner Signature","GoodWalk Limited Signature","Date contract signed","Owners Name (Prefix)","Owners Name (First Name)","Owners Name (Middle)","Owners Name (Last Name/Surname)","Owners Name (Suffix)","Owner's email (Enter Email)","Phone","Dog's name (include surname)","Residential Address (Street Address)","Residential Address (Address Line 2)","Residential Address (City)","Residential Address (Suburb)","Residential Address (ZIP / Postal Code)","Residential Address (Country)","Created By (User Id)","Entry Id","Entry Date","Date Updated","Source Url","Transaction Id","Payment Amount","Payment Date","Payment Status","Post Id","User Agent","User IP","PDF: PDF Label"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65bddbac696dc2.10945403&form-id=3&field-id=1&hash=4ba1e2e94457e06082630de6de930a252ecb39bd4c56b5e9ffe7093bb5a0d957","","2024-02-03","","Rachel","","Hall","","rachelhall@dimery.co.nz","","Louis Hall","303/26 Poynton Terrace","","Auckland","Auckland Central","","","","108","2024-02-03 19:22:36","2024-02-03 06:22:36","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15","115.189.128.39","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/108/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65b1a8726c9964.16114292&form-id=3&field-id=1&hash=c9ab0ac4b94a84044c5030e2e24afb4134107a75395c766cccc04c28381db6f8","","2024-01-25","","Sue","","Ewen","","sewen@xtra.co.nz","(642) 745-2472","Tinks Ewen","16 Simmonds Ave, Mount Roskill,","16 Simmonds Ave","Mount Roskill Auckland 1041","Mt Roskill / Three Kings","","","","106","2024-01-25 13:17:08","2024-01-25 00:17:08","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0","125.237.63.27","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/106/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=65459ee482d712.77412582&form-id=3&field-id=1&hash=5bcb04c9fe21643fb791372228114a63555f7d3cafaa5d7ef45240b2115ec97a","","2023-11-04","","Anna","","Shaw","","annalshaw@gmail.com","(021) 029-7053","Honey Crumbles Shaw","43 Kings Road","","Auckland","Mt Roskill","","","","104","2023-11-04 14:31:16","2023-11-04 01:31:16","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36","123.255.41.22","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/104/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=653eb664cba249.42033046&form-id=3&field-id=1&hash=b297538263e5233fac01524703fa2cc4c79f8227dca70a551893cb09f273f194","","2023-10-30","","Shelly","","Haggas","","shelly@envoyconstruction.co.nz","(021) 042-5095","Hank O'Donnell","377 New North Road","Level 1","Aickland","Kingsland","","","","102","2023-10-30 08:45:40","2023-10-29 19:45:40","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36","203.118.148.26","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/102/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=650c9f6be75ef7.65308375&form-id=3&field-id=1&hash=a95b743d7995570e67bcb685c374b5028771af177d079eeaa9b256fdffed2b9f","","2023-09-22","","Danielle","","Barclay","","danielle@weblurthelines.com","(027) 397-2112","Molly Hickey","29 Kensington Avenue","","Auckland","Mt Eden","","","","100","2023-09-22 07:54:19","2023-09-21 19:54:19","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/117.0.5938.108 Mobile/15E148 Safari/604.1","121.98.37.166","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/100/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6503b77ec85832.30852194&form-id=3&field-id=1&hash=623ca1485ecedfcb151957fad9f0fc7a7f0d38926897465de892f7afd227289c","","2023-09-15","","Ross","","Batchelor","","ross.batchelor@icloud.com","","Otis Batchelor","203/2 Finch Street","","Auckland","Morningside","","","","98","2023-09-15 13:46:38","2023-09-15 01:46:38","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1","172.225.244.185","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/98/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64bf5fddc33ed7.06471243&form-id=3&field-id=1&hash=ce7a980f14ee232a171ce1ff4d43f0d24e7863d70c3016078c295c2f5a180503","","2023-07-25","","Ann","","Buckley","","ann.buckley9@gmail.com","(027) 447-9293","Ollie Buckley","","12 Stewart Rd","Auckland","Mt Albert","","","","96","2023-07-25 17:38:37","2023-07-25 05:38:37","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","210.246.17.164","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/96/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=648fd5294cb4d0.32639145&form-id=3&field-id=1&hash=ac2277457a879fd40401f0b29b9349c3bc8125798ca78b3e0051c4b45a17b822","","2023-06-19","","Monique","","Humphrey","","moniquehrtlb@gmail.com","(021) 276-4358","Zola Humphrey","90A Owens Road","","Auckland","Epsom, 1023","","","","94","2023-06-19 16:10:30","2023-06-19 04:10:30","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15","121.98.13.62","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/94/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64804b84af2975.29344074&form-id=3&field-id=1&hash=719768bc8e5f1cc180a2255ac84a3c0a32e54f987e0d26499b3210e522c5e721","","2023-06-07","","Ruby Kahurangi","","Tautuhi-Lloyd","","rubytlloyd@gmail.com","(020) 414-1878","Sunny Lloyd","6 Sussex Street","","Auckland","Grey Lynn","","","","92","2023-06-07 21:19:00","2023-06-07 09:19:00","https://onboarding.goodwalk.co.nz/contract/?","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/114.0.5735.99 Mobile/15E148 Safari/604.1","101.100.129.22","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/92/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=647fd5bb62cc48.21415458&form-id=3&field-id=1&hash=63c36109e5e7bb77911bbcb0acc0baf789a450618b8d1b04958a3694db9ae270","","2023-06-07","","Ruby Kahurangi","","Tautuhi-Lloyd","","rubytlloyd@gmail.com","(020) 414-1878","Sunny Lloyd","6 Sussex Street","","Auckland","Grey Lynn","","","","91","2023-06-07 12:56:27","2023-06-07 00:56:27","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/114.0.5735.99 Mobile/15E148 Safari/604.1","122.56.196.93","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/91/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=647d87282fb183.81737041&form-id=3&field-id=1&hash=84d5464dd9b51110878b940c8262e4dfcbcd612ac07feaf24c044f05a2a17b55","","2023-06-05","","Megan & Adrian","","Kenny","","info@kennyandharlow.co.nz","","Donny Kenny","31 b Normanby road","","Mount Eden","","","","","89","2023-06-05 18:57:51","2023-06-05 06:57:51","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.121 Mobile/15E148 Safari/604.1","115.188.134.131","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/89/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6462c5bf460fe8.96828794&form-id=3&field-id=1&hash=b08513e4d2ca635b22a3d1ef52bc35dbf730c3786cac77abc16144edbe73d431","","2023-05-16","","Harriet","","Read","","harriet.a.read@gmail.com","(021) 234-0063","Maggie Read","10 parkdale road,","My Albert","Auckland","Mt Albert","","","","86","2023-05-16 13:44:38","2023-05-16 01:44:38","https://onboarding.goodwalk.co.nz/contract/?","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.69 Mobile/15E148 Safari/604.1","122.56.5.204","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/86/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6462c5bf460fe8.96828794&form-id=3&field-id=1&hash=b08513e4d2ca635b22a3d1ef52bc35dbf730c3786cac77abc16144edbe73d431","","2023-05-16","","Harriet","","Read","","harriet.a.read@gmail.com","(021) 234-0063","Maggie Read","10 parkdale road,","My Albert","Auckland","Mt Albert","","","","85","2023-05-16 11:52:50","2023-05-15 23:52:50","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/113.0.5672.69 Mobile/15E148 Safari/604.1","122.56.5.204","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/85/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=645a9f6a95a969.46711675&form-id=3&field-id=1&hash=4f9b59d32b0c077ada66b5cb44c2aea16d395ea5cd0c20705e2ea2571c2f4722","","2023-05-10","","Carl","","Matthews","","carl@devmark.co.nz","(642) 173-7727","Luna Matthews","57 Marlborough Street","","Mount Eden, AUCKLAND","","","","","82","2023-05-10 07:30:58","2023-05-09 19:30:58","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","121.99.240.46","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/82/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64589d00752470.47731501&form-id=3&field-id=1&hash=1f578bd344c4e39ca0eb0c962abd3ae4ecb5529f1f9a90017af8b9dd7a8c6cfa","","2023-05-08","","Todd","","Benton","","toddbenton@outlook.com","","Sweep","3/61 Hepburn Street","","Auckland","Freemans Bay","","","","81","2023-05-08 18:56:00","2023-05-08 06:56:00","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 OPR/98.0.0.0","121.99.103.51","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/81/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=64549cabb86241.61504100&form-id=3&field-id=1&hash=a3aedd8ed8cac157b00bfe7d0ed2da461469981031d5a476c276b06d5eb569da","","2023-05-05","","Paula","","Smith","","smithy007@mac.com","","Bob Smith","178 Mount Albert Road","","Sandringham","Auckland","","","","79","2023-05-05 18:05:31","2023-05-05 06:05:31","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1","125.237.205.159","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/79/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6448d984e1f712.46902795&form-id=3&field-id=1&hash=0fe483a8e365b4bfa9555bfe9b327c846d9abd40e6f9af8884b8770b4665774f","","2023-04-26","","Lori","","Reynolds","","lorireynolds5@gmail.com","(022) 310-9861","Buddy Reynolds","14b Lidcombe Place","Avondale","Auckland","Avondale","","","","75","2023-04-26 19:57:56","2023-04-26 07:57:56","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1","172.225.244.181","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/75/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=641d2924990540.87574330&form-id=3&field-id=1&hash=bdfc49b3876c2de4e6f00efd38adb61ce3bbc36e35ca9337da875f00f901886b","","2023-03-24","","Stephanie","","Korucu","","korucusteph@gmail.com","","Jake Korucu","1/98 Owairaka Ave","Mount Albert","Auckland","","","","","65","2023-03-24 17:37:56","2023-03-24 04:37:56","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","198.41.238.107","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/65/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=641a1be974e772.11405043&form-id=3&field-id=1&hash=25d65613131edf5cd825ef16c4031163b34f1117d8053f7d5e81e1474758cb08","","2023-03-22","","Estelle","","Rewiri","","estelle.rewiri@mainfreight.com","(027) 519-4228","Monty Rewiri","11A Sandringham Road","Mt Eden","Auckland","","","","","63","2023-03-22 10:04:41","2023-03-21 21:04:41","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1","198.41.238.28","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/63/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63ebdb8add55a1.53333768&form-id=3&field-id=1&hash=2349b49c8b1a7a13da3898071653d63de9ce2b754a647728f5ae459ef5f5fb4b","","2023-02-15","","Penny","","Dine","","jess.dine@gmail.com","(022) 528-0966","Archie Dine","57 Bright Street","Eden Terrace","Auckland","Eden Terrace","","","","62","2023-02-15 08:06:04","2023-02-14 19:06:04","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","198.41.238.110","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/62/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63e4328e530e96.01203691&form-id=3&field-id=1&hash=4283da25a29c8eece570f4683e0cfcd5b393ac347b8fef10bb0faca02467a99f","","2023-02-09","","Monique","","Sullivan","","msullivan@mpm.co.nz","(027) 530-6046","Freddie Sullivan","3 Shaw St","Sandringham","Auckland","Sandringham","","","","60","2023-02-09 12:38:54","2023-02-08 23:38:54","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36","198.41.238.111","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/60/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63df01e41a56e9.54070037&form-id=3&field-id=1&hash=81945645899ec7d3be0002a858fae4ec90474ac1f96ac45a6eb451dc52510740","","2023-02-05","","Kate","","Langdon","","kate@katelangdon.com","","Digby Langdon-Baird","13 Buchanan Street","Kingsland","Auckland","Kingsland","","","","58","2023-02-05 14:09:56","2023-02-05 01:09:56","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","172.68.210.34","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/58/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=636058c639eb93.61392483&form-id=3&field-id=1&hash=1e8946795c3b839220656619ba8dff93772d372dce5ddef915b3a593cdc717e0","","2022-11-01","","Matthew","","Swinburne","","mattswinburne@gmail.com","","Lulu Levermore","12 Herringson Ave","","Auckland 1021","Grey Lynn","","","","55","2022-11-01 12:23:01","2022-10-31 23:23:01","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","162.158.2.13","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/55/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=635b0152493df6.85330069&form-id=3&field-id=1&hash=b81d54dcafff595f974d09a77ae5c6ea92c56500fe8a024515175098f48c5c72","","2022-10-28","","Nina","","Darrah","","nina.darrah@gmail.com","(022) 498-1015","Wallace Darrah","5 Cadman Ave","Waterview","Auckland","Waterview","","","","54","2022-10-28 11:08:18","2022-10-27 22:08:18","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36","172.68.146.15","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/54/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=633bec2129d2c8.71863735&form-id=3&field-id=1&hash=fe95c8059b6cb3b8b97246c5e0f06c5ac10b54193680f3440040365772140fee","","2022-10-04","","Fiona","","Clarke","","feeclarke@gmail.com","","Otis McLean","33 walters road","Mt eden","","Auckland","","","","52","2022-10-04 21:18:24","2022-10-04 08:18:24","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1","172.68.66.34","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/52/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63329aab7c9154.72679599&form-id=3&field-id=1&hash=a62256fed96d754da7294f5675ecaede73ec45ac890e053dcf0b2c9f8271f498","","2022-09-27","","Caroline","","Logan","","caroline.a.logan@gmail.com","(027) 221-7468","Fergie Taylor","5 Alexander Street","","Auckland","Kingsland","","","","50","2022-09-27 19:39:39","2022-09-27 06:39:39","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1","172.68.210.84","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/50/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63280e8d9c03e0.76063236&form-id=3&field-id=1&hash=3f0ce8d19b1b1667500bff4b993e292b58244b4c137c30e2bbae407b28fe933f","","2022-09-19","","Jessica","","Dine","","jess.dine@gmail.com","(022) 528-0966","Florence Dine","57 Bright Street","Eden Terrace","Auckland","Eden Terrace","","","","48","2022-09-19 18:39:09","2022-09-19 06:39:09","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.210.84","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/48/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=631d82d24472c5.01871772&form-id=3&field-id=1&hash=67496d58daa653a7fe5360b95f73f89a89a0ad2b9a677b2a2d4cb354875a69f5","","2022-09-11","","Andy","","Stark","","andystark88@gmail.com","(021) 192-6498","Lenny Stark","67 Kiwi Road","","Auckland","Point Chevalier","","","","46","2022-09-11 18:40:18","2022-09-11 06:40:18","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36","172.68.66.36","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/46/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6317cb0f063948.03054426&form-id=3&field-id=1&hash=50186e66c8e14daf4cb01de0ad3682ac9afeaa76497bdbb841b6846356248bba","","2022-09-07","","Robert","","Lawrence","","robert.a.lawrence@hotmail.com","(027) 519-4579","Archie Lawrence","4/52 Meadowbank Road","","Auckland","Meadowbank","","","","44","2022-09-07 10:34:55","2022-09-06 22:34:55","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.66.26","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/44/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=63156c4dec6ed5.48344366&form-id=3&field-id=1&hash=77ec6a504b0353f0266c32ee35784668fae2c44040c986a12dccfad54863c1e1","","2022-09-05","","craig","","powell","","c.powell1985@outlook.com","(022) 371-5249","Franky Powell","46 Burnley Terrace","Mount Eden","auckland","","","","","42","2022-09-05 15:26:05","2022-09-05 03:26:05","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","172.68.210.6","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/42/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=630eff5a769a86.20761083&form-id=3&field-id=1&hash=4cf1e7afd2e705ed2b18d9df15278703946add6ec431cef43d011c4745b2f96d","","2022-08-31","","Brigid","","McLean","","brigidmclean@gmail.com","(021) 051-9770","Digby McLean","Apt 413 / 8 Kingsland Terrace","8 Kingsland Terrace","Kingsland","Auckland","","","","40","2022-08-31 18:27:38","2022-08-31 06:27:38","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1","172.68.66.26","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/40/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=630422ba814ef5.81658908&form-id=3&field-id=1&hash=3c10ceb165845ec67c854f4220a05db9fa9c327d95f5285ce8a7938ede432e88","","2022-08-23","","Caitlin","","Le Harivel","","Caitlinleh@gmail.com","(022) 525-7530","Charlie le harivel","412/145 nelson street","","Auckland","Auckland Central","","","","37","2022-08-23 12:43:38","2022-08-23 00:43:38","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Linux; Android 10; SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36 (Ecosia android@101.0.4951.41)","172.69.62.30","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/37/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=6303fa4e4c0848.05382829&form-id=3&field-id=1&hash=ae71e833c9195588975ef592d666f59cb24215987b531be7be4744f09a1c990c","","2022-08-23","","James","","Douglas","","james_douglas@me.com","(020) 405-2528","Freddie Douglas","16 Rossgrove Terrace","Mount Albert","Auckland","Mount Albert, 1025","","","","35","2022-08-23 09:51:10","2022-08-22 21:51:10","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","172.68.210.56","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/35/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62f5d231bca2a3.30220644&form-id=3&field-id=1&hash=141bd60c7b10b46e0b3efd8bab2cefa474ff07289a751621df98770396058b62","","2022-08-12","","Kedzlie","","Joanna","","kedzlie@xtra.co.nz","(027) 448-4720","Quest Kedzlie","24 A","Woodside Road","Mt Eden","Auckland","","","","33","2022-08-12 16:08:17","2022-08-12 04:08:17","https://onboarding.goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1","172.69.62.30","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/33/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c65c66e18d38.45439060&form-id=3&field-id=1&hash=826e6dd0c397424665e72f5f38de6bcd4caccebde17f4f8060fa5f68f967ceaf","","2022-07-07","","Nancy","","Louise","","nancy.louise@icloud.com","","Sadie Louise","414 Scenic Drive, Waiatarua","","Auckland","Waiatarua","","","","31","2022-07-07 16:09:10","2022-07-07 04:09:10","https://goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1","172.68.210.25","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/31/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c52b76d0d3a0.71873578&form-id=3&field-id=1&hash=924287d3ac145b67103e00154588808d23f37b85bf6757baf11493fedb946403","","2022-07-06","","Maddie","","Thomas","","thomasmaddie@ymail.com","","Doug Thomas","12 Dryden Street","DRYDEN STREET","Grey Lynn","Grey Lynn","","","","29","2022-07-06 18:29:48","2022-07-06 06:29:48","https://goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15","172.68.146.45","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/29/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c4c9cf2d2015.66413113&form-id=3&field-id=1&hash=41bb2215be098a3e0cec6f8d294dc1b36a22b9204bc2566294ed2e7c56b20305","","2022-07-06","","Adrienne","","Blows","","adrienneblows@hotmail.com","(021) 296-5171","Stella Blows","1/107 Taylors Road","Mt Albert","Auckland","Mt Albert","","","","28","2022-07-06 11:31:27","2022-07-05 23:31:27","https://goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Linux; Android 12; SM-G988B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.70 Mobile Safari/537.36 EdgW/1.0","172.68.210.25","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/28/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62c0bdfa32cf79.13628927&form-id=3&field-id=1&hash=98f77c6b8498e390689018ee1d0dc63e5c8a0ccfadd23a7c3dbd6932fd3d6e0d","","2022-07-02","","Renee","","Richards-Berry","","reneeberryrenee@gmail.com","(027) 534-2790","Frankie Richards-Berry","66 Fourth Ave","Kingsland","Auckland 1021","","","","","25","2022-07-03 09:51:54","2022-07-02 21:51:54","https://goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1","172.69.62.73","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/25/"
|
||||||
|
"Checked","I agree that I have fully read and understood the terms and conditions","","https://onboarding.goodwalk.co.nz/index.php?gf-signature=62bb6d456d0595.78626579&form-id=3&field-id=1&hash=1df30f89b71b90ec341a48975474708e25fbe822f939e4b2f73fa959a94a0dd2","","2022-06-29","","Kim","","Jenkinson","","kimajenkinson@gmail.com","(027) 449-0005","Ted Jenkinson","61 Aranui Road,","","Auckland","Mt Wellington","","","","23","2022-06-29 09:06:13","2022-06-28 21:06:13","https://goodwalk.co.nz/contract/","","","","","","Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36","202.3.88.174","https://onboarding.goodwalk.co.nz/pdf/62b7e36382d03/23/"
|
||||||
|
@@ -26,4 +26,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY main.py db.py ./
|
COPY main.py db.py ./
|
||||||
COPY mail_api ./mail_api
|
COPY mail_api ./mail_api
|
||||||
|
|
||||||
|
# Legacy clients seed, generated by scripts/build-legacy-seed.mjs (called from
|
||||||
|
# deploy.ps1). Lives OUTSIDE the data volume so every deploy carries a fresh
|
||||||
|
# copy. The mail-api merges this on boot, add-only — it never overwrites a
|
||||||
|
# live entry. Must always be present in the build context; for local dev run
|
||||||
|
# `node scripts/build-legacy-seed.mjs` once, or `echo {} > legacy-clients-seed.json`.
|
||||||
|
COPY legacy-clients-seed.json /app/legacy-clients-seed.json
|
||||||
|
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
|
|||||||
@@ -1436,3 +1436,4 @@ resend.exceptions.ResendError: API key is invalid
|
|||||||
19/05/2026 23:32:40 New Zealand Standard Time ERROR mail-api: Startup smoke: WeasyPrint UNAVAILABLE — PDF attachments will be skipped (No module named 'weasyprint')
|
19/05/2026 23:32:40 New Zealand Standard Time ERROR mail-api: Startup smoke: WeasyPrint UNAVAILABLE — PDF attachments will be skipped (No module named 'weasyprint')
|
||||||
19/05/2026 23:32:40 New Zealand Standard Time WARNING mail-api: Startup smoke: postgres disabled — activity/submissions will NOT be recorded
|
19/05/2026 23:32:40 New Zealand Standard Time WARNING mail-api: Startup smoke: postgres disabled — activity/submissions will NOT be recorded
|
||||||
19/05/2026 23:32:40 New Zealand Standard Time INFO mail-api: Startup test email skipped: OWNER_BCC is not set to a real address
|
19/05/2026 23:32:40 New Zealand Standard Time INFO mail-api: Startup test email skipped: OWNER_BCC is not set to a real address
|
||||||
|
19/05/2026 23:37:58 New Zealand Standard Time INFO mail-api: [e8c74fa0] GET /auth/verify → 401 (2ms)
|
||||||
|
|||||||
@@ -211,6 +211,13 @@ _DATA_DIR = Path(os.environ.get("DATA_DIR", "data"))
|
|||||||
ALLOWED_EMAILS_FILE = _DATA_DIR / "allowed_emails.json"
|
ALLOWED_EMAILS_FILE = _DATA_DIR / "allowed_emails.json"
|
||||||
CLIENT_PROFILES_FILE = _DATA_DIR / "client_profiles.json"
|
CLIENT_PROFILES_FILE = _DATA_DIR / "client_profiles.json"
|
||||||
DRAFTS_FILE = _DATA_DIR / "drafts.json"
|
DRAFTS_FILE = _DATA_DIR / "drafts.json"
|
||||||
|
# Legacy seed lives OUTSIDE the data volume — it's shipped in the image so a
|
||||||
|
# fresh deploy always carries the same baked-in copy. On boot the mail-api
|
||||||
|
# merges this dict into _client_profiles, adding any emails that aren't
|
||||||
|
# already present. It never overwrites a live entry.
|
||||||
|
LEGACY_SEED_FILE = Path(
|
||||||
|
os.environ.get("LEGACY_SEED_FILE", "/app/legacy-clients-seed.json")
|
||||||
|
)
|
||||||
|
|
||||||
LOGO_URL = "https://www.goodwalk.co.nz/images/goodwalk-auckland-dog-walking-logo.png"
|
LOGO_URL = "https://www.goodwalk.co.nz/images/goodwalk-auckland-dog-walking-logo.png"
|
||||||
|
|
||||||
@@ -235,6 +242,12 @@ EMAIL_SEND_TIMEOUT_SECONDS = settings.email_send_timeout_seconds
|
|||||||
# Owner-BCC placeholder used by deploy.env.template; treat it as "unset" for the smoke email.
|
# Owner-BCC placeholder used by deploy.env.template; treat it as "unset" for the smoke email.
|
||||||
STARTUP_TEST_RECIPIENT = OWNER_BCC if OWNER_BCC and OWNER_BCC.lower() != "example@example.com" else ""
|
STARTUP_TEST_RECIPIENT = OWNER_BCC if OWNER_BCC and OWNER_BCC.lower() != "example@example.com" else ""
|
||||||
|
|
||||||
|
# Shared secret presented by the deploy script's post-deploy form smoke tests.
|
||||||
|
# When set, requests carrying a matching X-Deploy-Smoke header short-circuit the
|
||||||
|
# form handlers before any email/db side effects so production submissions stay
|
||||||
|
# clean. When unset, the bypass is fully disabled.
|
||||||
|
DEPLOY_SMOKE_SECRET = (os.environ.get("DEPLOY_SMOKE_SECRET") or "").strip()
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
"Mail API config: version=%r timezone=%r from=%r reply_to=%r owner=%r cp_admins=%r owner_bcc=%r client_bcc=%r general_enquiries=%r max_attempts=%d form_min=%ss form_max=%ss rate_window=%ss per_ip=%d per_email=%d min_interval=%ss send_timeout=%ss",
|
"Mail API config: version=%r timezone=%r from=%r reply_to=%r owner=%r cp_admins=%r owner_bcc=%r client_bcc=%r general_enquiries=%r max_attempts=%d form_min=%ss form_max=%ss rate_window=%ss per_ip=%d per_email=%d min_interval=%ss send_timeout=%ss",
|
||||||
APP_VERSION,
|
APP_VERSION,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any, Literal
|
||||||
|
|
||||||
from pydantic import BaseModel, EmailStr
|
from pydantic import BaseModel, EmailStr
|
||||||
|
|
||||||
@@ -70,6 +70,17 @@ class BirthdayAutoSendRequest(BaseModel):
|
|||||||
enabled: bool
|
enabled: bool
|
||||||
|
|
||||||
|
|
||||||
|
# Client lifecycle status. Soft-delete only — every client stays on file so the
|
||||||
|
# history is preserved for future newsletter / retention work.
|
||||||
|
ClientLifecycleStatus = Literal["active", "paused", "cancelled", "archived"]
|
||||||
|
|
||||||
|
|
||||||
|
class ClientStatusUpdate(BaseModel):
|
||||||
|
email: EmailStr
|
||||||
|
status: ClientLifecycleStatus
|
||||||
|
reason: str = ""
|
||||||
|
|
||||||
|
|
||||||
class ContractSubmission(BaseSubmission):
|
class ContractSubmission(BaseSubmission):
|
||||||
address: str
|
address: str
|
||||||
dogName: str
|
dogName: str
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ from mail_api.config import (
|
|||||||
CLIENT_PROFILES_FILE as _CLIENT_PROFILES_FILE,
|
CLIENT_PROFILES_FILE as _CLIENT_PROFILES_FILE,
|
||||||
CORS_ALLOWED_ORIGINS,
|
CORS_ALLOWED_ORIGINS,
|
||||||
CP_ADMIN_EMAILS,
|
CP_ADMIN_EMAILS,
|
||||||
|
DEPLOY_SMOKE_SECRET,
|
||||||
DEV_MODE,
|
DEV_MODE,
|
||||||
DRAFTS_FILE as _DRAFTS_FILE,
|
DRAFTS_FILE as _DRAFTS_FILE,
|
||||||
EMAIL_SEND_TIMEOUT_SECONDS,
|
EMAIL_SEND_TIMEOUT_SECONDS,
|
||||||
@@ -43,6 +44,7 @@ from mail_api.config import (
|
|||||||
FORM_MAX_SECONDS,
|
FORM_MAX_SECONDS,
|
||||||
FORM_MIN_SECONDS,
|
FORM_MIN_SECONDS,
|
||||||
FROM_EMAIL,
|
FROM_EMAIL,
|
||||||
|
LEGACY_SEED_FILE as _LEGACY_SEED_FILE,
|
||||||
LOGO_URL,
|
LOGO_URL,
|
||||||
MAX_REQUEST_BODY_BYTES,
|
MAX_REQUEST_BODY_BYTES,
|
||||||
MAX_SEND_ATTEMPTS,
|
MAX_SEND_ATTEMPTS,
|
||||||
@@ -62,6 +64,7 @@ from mail_api.models import (
|
|||||||
BirthdayAutoSendRequest,
|
BirthdayAutoSendRequest,
|
||||||
BirthdayEmailRequest,
|
BirthdayEmailRequest,
|
||||||
BookingSubmission,
|
BookingSubmission,
|
||||||
|
ClientStatusUpdate,
|
||||||
ContractSubmission,
|
ContractSubmission,
|
||||||
OnboardingSubmission,
|
OnboardingSubmission,
|
||||||
RenderMessageRequest,
|
RenderMessageRequest,
|
||||||
@@ -227,6 +230,70 @@ async def _seed_admin_state_from_json_if_needed() -> None:
|
|||||||
logger.warning("Admin seed from JSON failed: %s", exc)
|
logger.warning("Admin seed from JSON failed: %s", exc)
|
||||||
|
|
||||||
|
|
||||||
|
async def _merge_legacy_seed_if_present() -> None:
|
||||||
|
"""Merge the shipped legacy-clients-seed.json into _client_profiles.
|
||||||
|
|
||||||
|
Add-only: never overwrites an email that already exists in the live data.
|
||||||
|
Idempotent: re-running on every boot is a no-op once the entries are in.
|
||||||
|
|
||||||
|
Writes the updated profiles back to the JSON file + admin_kv so the merged
|
||||||
|
state survives container restarts.
|
||||||
|
"""
|
||||||
|
global _client_profiles
|
||||||
|
|
||||||
|
seed_path = _LEGACY_SEED_FILE
|
||||||
|
if not seed_path.exists():
|
||||||
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
|
seed = json.loads(seed_path.read_text(encoding="utf-8"))
|
||||||
|
except Exception as exc:
|
||||||
|
logger.warning("Legacy seed file unreadable (%s): %s", seed_path, exc)
|
||||||
|
return
|
||||||
|
|
||||||
|
if not isinstance(seed, dict) or not seed:
|
||||||
|
return
|
||||||
|
|
||||||
|
added: list[str] = []
|
||||||
|
skipped_existing = 0
|
||||||
|
|
||||||
|
for raw_email, profile in seed.items():
|
||||||
|
if not isinstance(raw_email, str) or not isinstance(profile, dict):
|
||||||
|
continue
|
||||||
|
email = raw_email.strip().lower()
|
||||||
|
if not email:
|
||||||
|
continue
|
||||||
|
if email == OWNER_EMAIL.strip().lower():
|
||||||
|
continue
|
||||||
|
if email in _client_profiles:
|
||||||
|
skipped_existing += 1
|
||||||
|
continue
|
||||||
|
_client_profiles[email] = profile
|
||||||
|
added.append(email)
|
||||||
|
|
||||||
|
if not added:
|
||||||
|
logger.info(
|
||||||
|
"Legacy seed already merged (existing=%d, candidates=%d).",
|
||||||
|
skipped_existing, len(seed),
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
|
snapshot = dict(_client_profiles)
|
||||||
|
try:
|
||||||
|
await asyncio.to_thread(_save_client_profiles_file, snapshot)
|
||||||
|
except Exception as exc:
|
||||||
|
logger.warning("Could not save client_profiles after legacy merge: %s", exc)
|
||||||
|
try:
|
||||||
|
await _persist_admin_state("client_profiles", snapshot)
|
||||||
|
except Exception as exc:
|
||||||
|
logger.warning("Could not persist client_profiles to postgres after legacy merge: %s", exc)
|
||||||
|
|
||||||
|
logger.info(
|
||||||
|
"Legacy seed merged: added=%d skipped_existing=%d total_after=%d",
|
||||||
|
len(added), skipped_existing, len(_client_profiles),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def _load_allowed_emails_async() -> set[str]:
|
async def _load_allowed_emails_async() -> set[str]:
|
||||||
if admin_db.is_enabled():
|
if admin_db.is_enabled():
|
||||||
data = await admin_db.get_kv("allowed_emails")
|
data = await admin_db.get_kv("allowed_emails")
|
||||||
@@ -308,6 +375,16 @@ async def _register_email(email: str) -> None:
|
|||||||
logger.info("Auth: registered new allowed email: %s", normalized)
|
logger.info("Auth: registered new allowed email: %s", normalized)
|
||||||
|
|
||||||
|
|
||||||
|
def _client_is_reachable(profile: dict) -> bool:
|
||||||
|
"""True if outreach (welcome pack, birthday email, etc.) should still target
|
||||||
|
this client. Excludes lifecycle states that mean the relationship has ended.
|
||||||
|
"""
|
||||||
|
lifecycle = profile.get("lifecycle")
|
||||||
|
if not isinstance(lifecycle, dict):
|
||||||
|
return True
|
||||||
|
return lifecycle.get("status") not in {"cancelled", "archived"}
|
||||||
|
|
||||||
|
|
||||||
async def _store_client_profile(email: str, profile: dict) -> None:
|
async def _store_client_profile(email: str, profile: dict) -> None:
|
||||||
normalized = email.strip().lower()
|
normalized = email.strip().lower()
|
||||||
if not normalized:
|
if not normalized:
|
||||||
@@ -458,6 +535,21 @@ def _get_ip(request: Request) -> str:
|
|||||||
return request.client.host if request.client else "unknown"
|
return request.client.host if request.client else "unknown"
|
||||||
|
|
||||||
|
|
||||||
|
def _is_deploy_smoke(request: Request) -> bool:
|
||||||
|
"""True when the request carries a matching X-Deploy-Smoke header.
|
||||||
|
|
||||||
|
Used by the deploy script to verify the form endpoints are reachable and
|
||||||
|
parse a valid payload, without producing a real submission. Disabled
|
||||||
|
entirely when DEPLOY_SMOKE_SECRET is unset.
|
||||||
|
"""
|
||||||
|
if not DEPLOY_SMOKE_SECRET:
|
||||||
|
return False
|
||||||
|
presented = request.headers.get("x-deploy-smoke") or ""
|
||||||
|
if not presented:
|
||||||
|
return False
|
||||||
|
return secrets.compare_digest(presented, DEPLOY_SMOKE_SECRET)
|
||||||
|
|
||||||
|
|
||||||
_submit_attempts_by_ip: dict[str, deque[float]] = {}
|
_submit_attempts_by_ip: dict[str, deque[float]] = {}
|
||||||
_submit_attempts_by_email: dict[str, deque[float]] = {}
|
_submit_attempts_by_email: dict[str, deque[float]] = {}
|
||||||
_submit_rate_limit_lock = asyncio.Lock()
|
_submit_rate_limit_lock = asyncio.Lock()
|
||||||
@@ -1477,6 +1569,213 @@ def _birthday_ics_attachment(dog_name: str, dog_birth_date: str, owner_name: str
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def _pdf_escape(value: Any) -> str:
|
||||||
|
if value is None:
|
||||||
|
return ""
|
||||||
|
text = str(value)
|
||||||
|
return (
|
||||||
|
text.replace("&", "&")
|
||||||
|
.replace("<", "<")
|
||||||
|
.replace(">", ">")
|
||||||
|
.replace("\n", "<br>")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def owner_onboarding_pdf_html(data: OnboardingSubmission) -> str:
|
||||||
|
"""Clean, full-width, black-and-white, Arial HTML for the printable onboarding PDF."""
|
||||||
|
submitted_at = datetime.now().strftime("%d %b %Y at %I:%M %p").lstrip("0")
|
||||||
|
|
||||||
|
snapshot = data.submissionSnapshot or {}
|
||||||
|
sections = snapshot.get("sections") if isinstance(snapshot, dict) else None
|
||||||
|
|
||||||
|
def render_value(value: Any) -> str:
|
||||||
|
if isinstance(value, list):
|
||||||
|
items = [_pdf_escape(item) for item in value if str(item).strip()]
|
||||||
|
return ", ".join(items) if items else "—"
|
||||||
|
text = _pdf_escape(value).strip()
|
||||||
|
return text if text else "—"
|
||||||
|
|
||||||
|
sections_html_parts: list[str] = []
|
||||||
|
|
||||||
|
if isinstance(sections, list) and sections:
|
||||||
|
for section in sections:
|
||||||
|
if not isinstance(section, dict):
|
||||||
|
continue
|
||||||
|
title = _pdf_escape(section.get("title", ""))
|
||||||
|
fields = section.get("fields") or []
|
||||||
|
rows_html = ""
|
||||||
|
for field in fields:
|
||||||
|
if not isinstance(field, dict):
|
||||||
|
continue
|
||||||
|
label = _pdf_escape(field.get("label", ""))
|
||||||
|
rows_html += (
|
||||||
|
"<tr>"
|
||||||
|
f"<th>{label}</th>"
|
||||||
|
f"<td>{render_value(field.get('value'))}</td>"
|
||||||
|
"</tr>"
|
||||||
|
)
|
||||||
|
if rows_html:
|
||||||
|
sections_html_parts.append(
|
||||||
|
f"<section class='pdf-section'>"
|
||||||
|
f"<h2>{title}</h2>"
|
||||||
|
f"<table class='pdf-table'><tbody>{rows_html}</tbody></table>"
|
||||||
|
f"</section>"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
# Fallback if snapshot is missing — render the core fields directly.
|
||||||
|
def row(label: str, value: Any) -> str:
|
||||||
|
return f"<tr><th>{_pdf_escape(label)}</th><td>{render_value(value)}</td></tr>"
|
||||||
|
|
||||||
|
owner_rows = (
|
||||||
|
row("Name", data.fullName)
|
||||||
|
+ row("Email", str(data.email))
|
||||||
|
+ row("Phone", data.phone)
|
||||||
|
+ row("Address", data.address)
|
||||||
|
)
|
||||||
|
dog_rows = (
|
||||||
|
row("Dog", data.dogName)
|
||||||
|
+ row("Breed", data.dogBreed)
|
||||||
|
+ row("Date of birth", data.dogAge or "")
|
||||||
|
+ row("Services", data.servicesNeeded)
|
||||||
|
+ row("Temperament / routine", data.temperament)
|
||||||
|
+ row("Medical notes", data.medicalNotes)
|
||||||
|
+ row("Home access", data.accessInstructions)
|
||||||
|
)
|
||||||
|
safety_rows = (
|
||||||
|
row("Vet clinic", data.vetName)
|
||||||
|
+ row("Vet phone", data.vetPhone)
|
||||||
|
+ row("Emergency contact", data.emergencyContactName)
|
||||||
|
+ row("Emergency phone", data.emergencyContactPhone)
|
||||||
|
+ row("Council registration", "Confirmed" if data.councilRegistrationConfirmed else "Not confirmed")
|
||||||
|
+ row("Vaccinations", "Confirmed" if data.vaccinationsConfirmed else "Not confirmed")
|
||||||
|
+ row("Emergency vet consent", "Confirmed" if data.emergencyVetConsent else "Not confirmed")
|
||||||
|
+ row("Declaration", "Signed" if data.termsAccepted else "Not signed")
|
||||||
|
)
|
||||||
|
sections_html_parts.append(
|
||||||
|
f"<section class='pdf-section'><h2>Owner Details</h2><table class='pdf-table'><tbody>{owner_rows}</tbody></table></section>"
|
||||||
|
f"<section class='pdf-section'><h2>Dog Details</h2><table class='pdf-table'><tbody>{dog_rows}</tbody></table></section>"
|
||||||
|
f"<section class='pdf-section'><h2>Safety</h2><table class='pdf-table'><tbody>{safety_rows}</tbody></table></section>"
|
||||||
|
)
|
||||||
|
|
||||||
|
signature_html = ""
|
||||||
|
if data.signatureDataUrl:
|
||||||
|
signature_html = (
|
||||||
|
"<section class='pdf-section pdf-signature'>"
|
||||||
|
"<h2>Signature</h2>"
|
||||||
|
f"<img src='{data.signatureDataUrl}' alt='Client signature'>"
|
||||||
|
f"<div class='pdf-signed-line'>Signed by {_pdf_escape(data.fullName)} on {_pdf_escape(submitted_at)}</div>"
|
||||||
|
"</section>"
|
||||||
|
)
|
||||||
|
|
||||||
|
body_html = "".join(sections_html_parts) + signature_html
|
||||||
|
|
||||||
|
return f"""<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Goodwalk onboarding form — {_pdf_escape(data.fullName)}</title>
|
||||||
|
<style>
|
||||||
|
@page {{
|
||||||
|
size: A4;
|
||||||
|
margin: 14mm 12mm 14mm 12mm;
|
||||||
|
}}
|
||||||
|
* {{ box-sizing: border-box; }}
|
||||||
|
html, body {{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 10.5pt;
|
||||||
|
line-height: 1.4;
|
||||||
|
}}
|
||||||
|
.pdf-doc {{ width: 100%; }}
|
||||||
|
.pdf-header {{
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: 1.5pt solid #000;
|
||||||
|
padding-bottom: 8pt;
|
||||||
|
margin-bottom: 14pt;
|
||||||
|
}}
|
||||||
|
.pdf-header h1 {{
|
||||||
|
font-size: 18pt;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0 0 4pt 0;
|
||||||
|
letter-spacing: 0.5pt;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}}
|
||||||
|
.pdf-header .pdf-meta {{
|
||||||
|
font-size: 9.5pt;
|
||||||
|
color: #000;
|
||||||
|
}}
|
||||||
|
.pdf-section {{
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 0 14pt 0;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}}
|
||||||
|
.pdf-section h2 {{
|
||||||
|
font-size: 11pt;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.6pt;
|
||||||
|
margin: 0 0 6pt 0;
|
||||||
|
padding: 0 0 3pt 0;
|
||||||
|
border-bottom: 0.75pt solid #000;
|
||||||
|
}}
|
||||||
|
table.pdf-table {{
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
table-layout: fixed;
|
||||||
|
}}
|
||||||
|
table.pdf-table th,
|
||||||
|
table.pdf-table td {{
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
padding: 5pt 8pt;
|
||||||
|
border-bottom: 0.4pt solid #000;
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}}
|
||||||
|
table.pdf-table th {{
|
||||||
|
width: 34%;
|
||||||
|
font-weight: 700;
|
||||||
|
background: #ffffff;
|
||||||
|
}}
|
||||||
|
table.pdf-table td {{
|
||||||
|
width: 66%;
|
||||||
|
font-weight: 400;
|
||||||
|
}}
|
||||||
|
.pdf-signature img {{
|
||||||
|
display: block;
|
||||||
|
max-width: 70%;
|
||||||
|
max-height: 60mm;
|
||||||
|
height: auto;
|
||||||
|
border: 0.5pt solid #000;
|
||||||
|
padding: 4pt;
|
||||||
|
margin: 4pt 0 6pt 0;
|
||||||
|
background: #fff;
|
||||||
|
}}
|
||||||
|
.pdf-signed-line {{
|
||||||
|
font-size: 9.5pt;
|
||||||
|
border-top: 0.4pt solid #000;
|
||||||
|
padding-top: 4pt;
|
||||||
|
margin-top: 4pt;
|
||||||
|
}}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="pdf-doc">
|
||||||
|
<header class="pdf-header">
|
||||||
|
<h1>Goodwalk Onboarding Form</h1>
|
||||||
|
<div class="pdf-meta">
|
||||||
|
<strong>{_pdf_escape(data.fullName)}</strong> · {_pdf_escape(data.dogName)} · Submitted {_pdf_escape(submitted_at)}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
{body_html}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>"""
|
||||||
|
|
||||||
|
|
||||||
def _render_pdf_sync(html: str) -> bytes:
|
def _render_pdf_sync(html: str) -> bytes:
|
||||||
from weasyprint import HTML # imported lazily so unit tests don't require the native libs
|
from weasyprint import HTML # imported lazily so unit tests don't require the native libs
|
||||||
return HTML(string=html).write_pdf()
|
return HTML(string=html).write_pdf()
|
||||||
@@ -1678,6 +1977,9 @@ async def _startup_mail_check() -> None:
|
|||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Admin state refresh from postgres failed; using JSON snapshot")
|
logger.exception("Admin state refresh from postgres failed; using JSON snapshot")
|
||||||
|
|
||||||
|
# 3. Merge any shipped legacy seed (add-only — never clobbers live entries).
|
||||||
|
await _merge_legacy_seed_if_present()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await _send_startup_test_email()
|
await _send_startup_test_email()
|
||||||
except Exception:
|
except Exception:
|
||||||
@@ -2728,6 +3030,42 @@ async def owner_render_message(data: RenderMessageRequest, request: Request):
|
|||||||
return {"ok": True, "html": html}
|
return {"ok": True, "html": html}
|
||||||
|
|
||||||
|
|
||||||
|
@app.post("/owner/render-welcome-pack")
|
||||||
|
async def owner_render_welcome_pack(data: WelcomePackEmailRequest, request: Request):
|
||||||
|
"""Render the welcome pack email as HTML for in-modal preview."""
|
||||||
|
await _require_owner_email(request)
|
||||||
|
|
||||||
|
email = str(data.email).strip().lower()
|
||||||
|
profile = _client_profiles.get(email, {})
|
||||||
|
owner_name = str(profile.get("fullName", "")).strip()
|
||||||
|
dog_name = str(profile.get("dogName", "")).strip()
|
||||||
|
|
||||||
|
html = _welcome_pack_email_html(
|
||||||
|
owner_name,
|
||||||
|
dog_name,
|
||||||
|
_trimmed(data.serviceType),
|
||||||
|
_trimmed(data.priceDetails),
|
||||||
|
_trimmed(data.startDate),
|
||||||
|
)
|
||||||
|
return {"ok": True, "html": html}
|
||||||
|
|
||||||
|
|
||||||
|
@app.post("/owner/render-birthday-email")
|
||||||
|
async def owner_render_birthday_email(data: BirthdayEmailRequest, request: Request):
|
||||||
|
"""Render the birthday email as HTML for in-modal preview."""
|
||||||
|
await _require_owner_email(request)
|
||||||
|
|
||||||
|
email = str(data.email).strip().lower()
|
||||||
|
profile = _client_profiles.get(email, {})
|
||||||
|
if not profile:
|
||||||
|
raise HTTPException(status_code=404, detail="Client profile not found.")
|
||||||
|
|
||||||
|
owner_name = str(profile.get("fullName", "")).strip()
|
||||||
|
dog_name = str(profile.get("dogName", "")).strip()
|
||||||
|
html = _birthday_email_html(owner_name, dog_name)
|
||||||
|
return {"ok": True, "html": html}
|
||||||
|
|
||||||
|
|
||||||
@app.post("/owner/send-message")
|
@app.post("/owner/send-message")
|
||||||
async def owner_send_message(data: SendMessageRequest, request: Request):
|
async def owner_send_message(data: SendMessageRequest, request: Request):
|
||||||
request_id = getattr(request.state, "request_id", uuid.uuid4().hex[:8])
|
request_id = getattr(request.state, "request_id", uuid.uuid4().hex[:8])
|
||||||
@@ -2896,6 +3234,8 @@ async def owner_pending_onboarding(request: Request):
|
|||||||
continue
|
continue
|
||||||
if profile.get("onboardingCompleted"):
|
if profile.get("onboardingCompleted"):
|
||||||
continue
|
continue
|
||||||
|
if not _client_is_reachable(profile):
|
||||||
|
continue
|
||||||
|
|
||||||
pending_clients.append({
|
pending_clients.append({
|
||||||
"email": email,
|
"email": email,
|
||||||
@@ -2947,6 +3287,8 @@ async def owner_completed_onboarding(request: Request):
|
|||||||
continue
|
continue
|
||||||
if not profile.get("onboardingCompleted"):
|
if not profile.get("onboardingCompleted"):
|
||||||
continue
|
continue
|
||||||
|
if not _client_is_reachable(profile):
|
||||||
|
continue
|
||||||
|
|
||||||
completed_clients.append({
|
completed_clients.append({
|
||||||
"email": email,
|
"email": email,
|
||||||
@@ -3011,6 +3353,7 @@ async def owner_all_clients(request: Request):
|
|||||||
if email == OWNER_EMAIL.strip().lower():
|
if email == OWNER_EMAIL.strip().lower():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
lifecycle = profile.get("lifecycle") if isinstance(profile.get("lifecycle"), dict) else None
|
||||||
clients.append({
|
clients.append({
|
||||||
"email": email,
|
"email": email,
|
||||||
"fullName": profile.get("fullName", ""),
|
"fullName": profile.get("fullName", ""),
|
||||||
@@ -3018,6 +3361,7 @@ async def owner_all_clients(request: Request):
|
|||||||
"dogName": profile.get("dogName", ""),
|
"dogName": profile.get("dogName", ""),
|
||||||
"dogBreed": profile.get("dogBreed", ""),
|
"dogBreed": profile.get("dogBreed", ""),
|
||||||
"status": "completed" if profile.get("onboardingCompleted") else "pending",
|
"status": "completed" if profile.get("onboardingCompleted") else "pending",
|
||||||
|
"lifecycle": lifecycle or {"status": "active", "reason": "", "changedAt": "", "changedBy": ""},
|
||||||
"lastActivityAt": profile.get("onboardingSubmittedAt", "") or profile.get("lastEnquiryAt", "") or profile.get("welcomePackSentAt", ""),
|
"lastActivityAt": profile.get("onboardingSubmittedAt", "") or profile.get("lastEnquiryAt", "") or profile.get("welcomePackSentAt", ""),
|
||||||
"welcomePackSentAt": profile.get("welcomePackSentAt", ""),
|
"welcomePackSentAt": profile.get("welcomePackSentAt", ""),
|
||||||
})
|
})
|
||||||
@@ -3068,6 +3412,8 @@ async def owner_birthdays(request: Request):
|
|||||||
continue
|
continue
|
||||||
if not profile.get("onboardingCompleted"):
|
if not profile.get("onboardingCompleted"):
|
||||||
continue
|
continue
|
||||||
|
if not _client_is_reachable(profile):
|
||||||
|
continue
|
||||||
|
|
||||||
upcoming = _upcoming_birthday_date(str(profile.get("dogAge", "")), today)
|
upcoming = _upcoming_birthday_date(str(profile.get("dogAge", "")), today)
|
||||||
if not upcoming:
|
if not upcoming:
|
||||||
@@ -3255,6 +3601,56 @@ async def owner_send_birthday_email(data: BirthdayEmailRequest, request: Request
|
|||||||
return {"ok": True, "sentAt": datetime.now().isoformat(timespec="seconds"), "preview": bool(data.preview)}
|
return {"ok": True, "sentAt": datetime.now().isoformat(timespec="seconds"), "preview": bool(data.preview)}
|
||||||
|
|
||||||
|
|
||||||
|
@app.post("/owner/client-status")
|
||||||
|
async def owner_client_status(data: ClientStatusUpdate, request: Request):
|
||||||
|
"""Set a client's lifecycle status (active / paused / cancelled / archived).
|
||||||
|
|
||||||
|
Soft-delete only: no client record is ever removed. Each change is recorded
|
||||||
|
in the profile's lifecycleHistory list and the global activity feed.
|
||||||
|
"""
|
||||||
|
request_id = getattr(request.state, "request_id", uuid.uuid4().hex[:8])
|
||||||
|
owner_email = await _require_owner_email(request)
|
||||||
|
|
||||||
|
email = str(data.email).strip().lower()
|
||||||
|
profile = _client_profiles.get(email)
|
||||||
|
if not profile:
|
||||||
|
raise HTTPException(status_code=404, detail="Client not found.")
|
||||||
|
|
||||||
|
reason = (data.reason or "").strip()[:500]
|
||||||
|
now_iso = datetime.now().isoformat(timespec="seconds")
|
||||||
|
|
||||||
|
existing_history = profile.get("lifecycleHistory")
|
||||||
|
history: list[dict[str, Any]] = list(existing_history) if isinstance(existing_history, list) else []
|
||||||
|
history.append({
|
||||||
|
"status": data.status,
|
||||||
|
"reason": reason,
|
||||||
|
"changedAt": now_iso,
|
||||||
|
"changedBy": owner_email,
|
||||||
|
})
|
||||||
|
# Cap history to a sensible size so the JSON file doesn't grow unbounded.
|
||||||
|
history = history[-50:]
|
||||||
|
|
||||||
|
lifecycle = {
|
||||||
|
"status": data.status,
|
||||||
|
"reason": reason,
|
||||||
|
"changedAt": now_iso,
|
||||||
|
"changedBy": owner_email,
|
||||||
|
}
|
||||||
|
|
||||||
|
await _store_client_profile(email, {
|
||||||
|
"lifecycle": lifecycle,
|
||||||
|
"lifecycleHistory": history,
|
||||||
|
})
|
||||||
|
|
||||||
|
await admin_db.record_event(
|
||||||
|
event_type="owner_client_status_changed",
|
||||||
|
request_id=request_id, actor_email=owner_email, ip=_get_ip(request), status="ok",
|
||||||
|
detail={"clientEmail": email, "status": data.status, "reason": reason},
|
||||||
|
)
|
||||||
|
logger.info("[%s] owner: %s set %s -> %s", request_id, owner_email, email, data.status)
|
||||||
|
return {"ok": True, "email": email, "lifecycle": lifecycle}
|
||||||
|
|
||||||
|
|
||||||
@app.post("/owner/birthday-auto-send")
|
@app.post("/owner/birthday-auto-send")
|
||||||
async def owner_birthday_auto_send(data: BirthdayAutoSendRequest, request: Request):
|
async def owner_birthday_auto_send(data: BirthdayAutoSendRequest, request: Request):
|
||||||
owner_email = await _require_owner_email(request)
|
owner_email = await _require_owner_email(request)
|
||||||
@@ -3285,6 +3681,10 @@ async def submit_booking(data: BookingSubmission, request: Request):
|
|||||||
ip = _get_ip(request)
|
ip = _get_ip(request)
|
||||||
browser = _parse_ua(request.headers.get("user-agent", ""))
|
browser = _parse_ua(request.headers.get("user-agent", ""))
|
||||||
|
|
||||||
|
if _is_deploy_smoke(request):
|
||||||
|
logger.info("[%s] /submit deploy-smoke bypass (no email, no db write)", request_id)
|
||||||
|
return {"ok": True, "request_id": request_id, "smoke": True}
|
||||||
|
|
||||||
await _enforce_submit_rate_limits(request_id, ip, str(data.email))
|
await _enforce_submit_rate_limits(request_id, ip, str(data.email))
|
||||||
_enforce_form_timing(request_id, data)
|
_enforce_form_timing(request_id, data)
|
||||||
|
|
||||||
@@ -3625,6 +4025,10 @@ async def submit_onboarding(data: OnboardingSubmission, request: Request):
|
|||||||
ip = _get_ip(request)
|
ip = _get_ip(request)
|
||||||
browser = _parse_ua(request.headers.get("user-agent", ""))
|
browser = _parse_ua(request.headers.get("user-agent", ""))
|
||||||
|
|
||||||
|
if _is_deploy_smoke(request):
|
||||||
|
logger.info("[%s] /onboarding-submit deploy-smoke bypass (no email, no db write)", request_id)
|
||||||
|
return {"ok": True, "request_id": request_id, "smoke": True}
|
||||||
|
|
||||||
await _enforce_submit_rate_limits(request_id, ip, str(data.email))
|
await _enforce_submit_rate_limits(request_id, ip, str(data.email))
|
||||||
_enforce_form_timing(request_id, data)
|
_enforce_form_timing(request_id, data)
|
||||||
|
|
||||||
@@ -3670,7 +4074,8 @@ async def submit_onboarding(data: OnboardingSubmission, request: Request):
|
|||||||
if birthday_attachment:
|
if birthday_attachment:
|
||||||
attachments.append(birthday_attachment)
|
attachments.append(birthday_attachment)
|
||||||
if ONBOARDING_PDF_ATTACHMENT_ENABLED:
|
if ONBOARDING_PDF_ATTACHMENT_ENABLED:
|
||||||
pdf_attachment = await _signed_form_pdf_attachment(owner_html, data.fullName, "onboarding", request_id)
|
pdf_html = owner_onboarding_pdf_html(data)
|
||||||
|
pdf_attachment = await _signed_form_pdf_attachment(pdf_html, data.fullName, "onboarding", request_id)
|
||||||
if pdf_attachment:
|
if pdf_attachment:
|
||||||
attachments.append(pdf_attachment)
|
attachments.append(pdf_attachment)
|
||||||
if attachments:
|
if attachments:
|
||||||
@@ -3755,6 +4160,10 @@ async def submit_contract(data: ContractSubmission, request: Request):
|
|||||||
ip = _get_ip(request)
|
ip = _get_ip(request)
|
||||||
browser = _parse_ua(request.headers.get("user-agent", ""))
|
browser = _parse_ua(request.headers.get("user-agent", ""))
|
||||||
|
|
||||||
|
if _is_deploy_smoke(request):
|
||||||
|
logger.info("[%s] /contract-submit deploy-smoke bypass (no email, no db write)", request_id)
|
||||||
|
return {"ok": True, "request_id": request_id, "smoke": True}
|
||||||
|
|
||||||
await _enforce_submit_rate_limits(request_id, ip, str(data.email))
|
await _enforce_submit_rate_limits(request_id, ip, str(data.email))
|
||||||
_enforce_form_timing(request_id, data)
|
_enforce_form_timing(request_id, data)
|
||||||
|
|
||||||
|
|||||||
@@ -225,6 +225,21 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /api/contract-submit {
|
||||||
|
if (-f /etc/nginx/conf.d/maintenance.flag) {
|
||||||
|
return 503;
|
||||||
|
}
|
||||||
|
|
||||||
|
set $goodwalk_mail_api goodwalk_svelte_mail_api:8000;
|
||||||
|
limit_req zone=goodwalk_limit burst=10 nodelay;
|
||||||
|
proxy_pass http://$goodwalk_mail_api/contract-submit;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
location /api/auth/ {
|
location /api/auth/ {
|
||||||
set $goodwalk_mail_api goodwalk_svelte_mail_api:8000;
|
set $goodwalk_mail_api goodwalk_svelte_mail_api:8000;
|
||||||
limit_req zone=goodwalk_limit burst=10 nodelay;
|
limit_req zone=goodwalk_limit burst=10 nodelay;
|
||||||
|
|||||||
@@ -0,0 +1,234 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
// Builds mail-api/legacy-clients-seed.json from the three cleaned legacy JSON
|
||||||
|
// files. The seed file is shipped into the mail-api Docker image and merged
|
||||||
|
// into _client_profiles on first boot — never overwriting a live entry.
|
||||||
|
//
|
||||||
|
// Inputs:
|
||||||
|
// data/legacy-clients.json
|
||||||
|
// data/legacy-onboarding.json
|
||||||
|
// data/legacy-contracts.json
|
||||||
|
//
|
||||||
|
// Output:
|
||||||
|
// mail-api/legacy-clients-seed.json (email -> profile dict)
|
||||||
|
//
|
||||||
|
// The output shape mirrors the live _client_profiles entries that the mail-api
|
||||||
|
// already serializes to JSON, so the merge path doesn't need to translate
|
||||||
|
// anything.
|
||||||
|
|
||||||
|
import { readFileSync, writeFileSync, existsSync } from 'node:fs';
|
||||||
|
import { dirname, resolve } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
|
const ROOT = resolve(__dirname, '..');
|
||||||
|
const CLIENTS_FILE = resolve(ROOT, 'data/legacy-clients.json');
|
||||||
|
const ONBOARDING_FILE = resolve(ROOT, 'data/legacy-onboarding.json');
|
||||||
|
const CONTRACTS_FILE = resolve(ROOT, 'data/legacy-contracts.json');
|
||||||
|
const OUTPUT = resolve(ROOT, 'mail-api/legacy-clients-seed.json');
|
||||||
|
|
||||||
|
for (const p of [CLIENTS_FILE, ONBOARDING_FILE, CONTRACTS_FILE]) {
|
||||||
|
if (!existsSync(p)) {
|
||||||
|
console.error(`Required legacy file missing: ${p}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const clientsDoc = JSON.parse(readFileSync(CLIENTS_FILE, 'utf8'));
|
||||||
|
const onboardingDoc = JSON.parse(readFileSync(ONBOARDING_FILE, 'utf8'));
|
||||||
|
const contractsDoc = JSON.parse(readFileSync(CONTRACTS_FILE, 'utf8'));
|
||||||
|
|
||||||
|
const onboardingByEntryId = new Map();
|
||||||
|
for (const rec of onboardingDoc.records ?? []) {
|
||||||
|
if (rec?.legacy?.entryId) onboardingByEntryId.set(String(rec.legacy.entryId), rec);
|
||||||
|
}
|
||||||
|
|
||||||
|
const contractsByEntryId = new Map();
|
||||||
|
for (const rec of contractsDoc.records ?? []) {
|
||||||
|
if (rec?.legacy?.entryId) contractsByEntryId.set(String(rec.legacy.entryId), rec);
|
||||||
|
}
|
||||||
|
|
||||||
|
const importedAt = new Date().toISOString();
|
||||||
|
|
||||||
|
function pickOnboarding(client) {
|
||||||
|
// Take the latest onboarding entry referenced for this client. Entry IDs
|
||||||
|
// are numeric — higher == newer.
|
||||||
|
const ids = (client.onboardingEntryIds ?? [])
|
||||||
|
.map((id) => String(id))
|
||||||
|
.filter((id) => onboardingByEntryId.has(id))
|
||||||
|
.sort((a, b) => Number(b) - Number(a));
|
||||||
|
return ids.length ? onboardingByEntryId.get(ids[0]) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function pickContract(client) {
|
||||||
|
const ids = (client.contractEntryIds ?? [])
|
||||||
|
.map((id) => String(id))
|
||||||
|
.filter((id) => contractsByEntryId.has(id))
|
||||||
|
.sort((a, b) => Number(b) - Number(a));
|
||||||
|
return ids.length ? contractsByEntryId.get(ids[0]) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function nonEmpty(v) {
|
||||||
|
return typeof v === 'string' ? v.trim() : v;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fullName(client) {
|
||||||
|
const parts = [client.firstName, client.lastName].map(nonEmpty).filter(Boolean);
|
||||||
|
return parts.join(' ');
|
||||||
|
}
|
||||||
|
|
||||||
|
function buildProfile(client) {
|
||||||
|
const onboarding = pickOnboarding(client);
|
||||||
|
const contract = pickContract(client);
|
||||||
|
|
||||||
|
const dog = (client.dogs || [])[0] || {};
|
||||||
|
const dogName = dog.name || onboarding?.dog?.name || '';
|
||||||
|
const dogBreed = dog.breed || onboarding?.dog?.breed || '';
|
||||||
|
const dogDob = dog.dateOfBirth || onboarding?.dog?.dateOfBirth || '';
|
||||||
|
|
||||||
|
// Pick a submittedAt timestamp from the best signal we have.
|
||||||
|
const submittedAt =
|
||||||
|
onboarding?.declaration?.signedOn ||
|
||||||
|
onboarding?.legacy?.entryDate ||
|
||||||
|
contract?.consent?.signedOn ||
|
||||||
|
contract?.legacy?.entryDate ||
|
||||||
|
'';
|
||||||
|
|
||||||
|
// Build the snapshot the admin dashboard expects when viewing a completed
|
||||||
|
// client. The shape matches what OnboardingPage.svelte writes today:
|
||||||
|
// { submittedAt, sections: [{ title, icon, fields: [{label, value}] }] }.
|
||||||
|
const sections = [];
|
||||||
|
if (onboarding) {
|
||||||
|
const yn = (v) => (v === true ? 'Yes' : v === false ? 'No' : '—');
|
||||||
|
const fv = (v) => (typeof v === 'string' && v.trim()) ? v.trim() : '—';
|
||||||
|
sections.push({
|
||||||
|
title: 'Owner Details',
|
||||||
|
icon: 'fas fa-user',
|
||||||
|
fields: [
|
||||||
|
{ label: 'Owner First Name', value: fv(onboarding.owner?.firstName) },
|
||||||
|
{ label: 'Owner Surname', value: fv(onboarding.owner?.lastName) },
|
||||||
|
{ label: 'Email', value: fv(client.email) },
|
||||||
|
{ label: 'Contact Number', value: fv(client.phoneRaw || client.phone) },
|
||||||
|
{ label: 'Home Address', value: fv(client.address) },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
sections.push({
|
||||||
|
title: 'Dog Details',
|
||||||
|
icon: 'fas fa-paw',
|
||||||
|
fields: [
|
||||||
|
{ label: 'Dog Name', value: fv(onboarding.dog?.name) },
|
||||||
|
{ label: 'Dog Surname', value: fv(onboarding.dog?.surname) },
|
||||||
|
{ label: 'Breed', value: fv(onboarding.dog?.breed) },
|
||||||
|
{ label: 'Date of Birth', value: fv(onboarding.dog?.dateOfBirth) },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
sections.push({
|
||||||
|
title: 'Vet & Emergency',
|
||||||
|
icon: 'fas fa-heart-pulse',
|
||||||
|
fields: [
|
||||||
|
{ label: 'Vet Name', value: fv(onboarding.vet?.name) },
|
||||||
|
{ label: 'Vet Address', value: fv(onboarding.vet?.address) },
|
||||||
|
{ label: 'Vet Phone', value: fv(onboarding.vet?.phoneRaw || onboarding.vet?.phone) },
|
||||||
|
{ label: 'Emergency Contact Name', value: fv(onboarding.emergencyContact?.name) },
|
||||||
|
{ label: 'Emergency Contact Phone', value: fv(onboarding.emergencyContact?.phoneRaw || onboarding.emergencyContact?.phone) },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
sections.push({
|
||||||
|
title: 'Health',
|
||||||
|
icon: 'fas fa-stethoscope',
|
||||||
|
fields: [
|
||||||
|
{ label: 'Vaccinations current?', value: yn(onboarding.health?.vaccinated) },
|
||||||
|
{ label: 'Food allergies', value: onboarding.health?.foodAllergy?.present ? fv(onboarding.health.foodAllergy.detail) : yn(onboarding.health?.foodAllergy?.present) },
|
||||||
|
{ label: 'Environmental allergies', value: onboarding.health?.environmentalAllergy?.present ? fv(onboarding.health.environmentalAllergy.detail) : yn(onboarding.health?.environmentalAllergy?.present) },
|
||||||
|
{ label: 'Special diet', value: onboarding.health?.specialDiet?.present ? fv(onboarding.health.specialDiet.detail) : yn(onboarding.health?.specialDiet?.present) },
|
||||||
|
{ label: 'Medication', value: onboarding.health?.medication?.present ? fv(onboarding.health.medication.detail) : yn(onboarding.health?.medication?.present) },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
sections.push({
|
||||||
|
title: 'Behaviour',
|
||||||
|
icon: 'fas fa-bone',
|
||||||
|
fields: [
|
||||||
|
{ label: 'Well socialised?', value: yn(onboarding.behaviour?.wellSocialised) },
|
||||||
|
{ label: 'Dogs interacted with weekly', value: fv(onboarding.behaviour?.dogsInteractedWeekly) },
|
||||||
|
{ label: 'Beach notes', value: fv(onboarding.behaviour?.beachNotes) },
|
||||||
|
{ label: 'Dog park notes', value: fv(onboarding.behaviour?.dogParkNotes) },
|
||||||
|
{ label: 'Bite history?', value: yn(onboarding.behaviour?.biteHistory) },
|
||||||
|
{ label: 'Reactive to dogs?', value: yn(onboarding.behaviour?.reactiveToDogs) },
|
||||||
|
{ label: 'Reactive to animals?', value: onboarding.behaviour?.reactiveToAnimals?.reactive ? fv(onboarding.behaviour.reactiveToAnimals.detail) : yn(onboarding.behaviour?.reactiveToAnimals?.reactive) },
|
||||||
|
{ label: 'Reactive to children?', value: yn(onboarding.behaviour?.reactiveToChildren) },
|
||||||
|
{ label: 'Reactive to people?', value: yn(onboarding.behaviour?.reactiveToPeople) },
|
||||||
|
{ label: 'Desexed?', value: yn(onboarding.behaviour?.desexed) },
|
||||||
|
{ label: 'Council registered?', value: yn(onboarding.behaviour?.councilRegistered) },
|
||||||
|
{ label: 'Leash trained?', value: yn(onboarding.behaviour?.leashTrained) },
|
||||||
|
{ label: 'Recall rating', value: onboarding.behaviour?.recallRating != null ? String(onboarding.behaviour.recallRating) : '—' },
|
||||||
|
{ label: 'Ever run away?', value: yn(onboarding.behaviour?.ranAwayBefore) },
|
||||||
|
{ label: 'Behaviour in car', value: fv(onboarding.behaviour?.carBehaviour) },
|
||||||
|
{ label: 'Known commands', value: fv(onboarding.behaviour?.knownCommands) },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
sections.push({
|
||||||
|
title: 'Other',
|
||||||
|
icon: 'fas fa-file-signature',
|
||||||
|
fields: [
|
||||||
|
{ label: 'Additional notes', value: fv(onboarding.misc?.additionalNotes) },
|
||||||
|
{ label: 'Social media', value: fv(onboarding.misc?.socialMediaAccount) },
|
||||||
|
{ label: 'How did you hear?', value: fv(onboarding.misc?.howDidYouHear) },
|
||||||
|
{ label: 'Referred by', value: fv(onboarding.misc?.referredBy) },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const profile = {
|
||||||
|
fullName: fullName(client),
|
||||||
|
phone: client.phone || '',
|
||||||
|
address: client.address || '',
|
||||||
|
dogName: dogName || '',
|
||||||
|
dogBreed: dogBreed || '',
|
||||||
|
dogAge: dogDob || '',
|
||||||
|
onboardingCompleted: Boolean(onboarding),
|
||||||
|
onboardingSubmittedAt: submittedAt || '',
|
||||||
|
onboardingSubmission: sections.length ? { submittedAt: submittedAt || '', sections } : undefined,
|
||||||
|
// Mark legacy imports as archived by default — they pre-date the new
|
||||||
|
// system and shouldn't pollute "active" outreach lists. The admin can
|
||||||
|
// promote any of them back to 'active' from the dashboard.
|
||||||
|
lifecycle: {
|
||||||
|
status: 'archived',
|
||||||
|
reason: 'Imported from legacy Gravity Forms data',
|
||||||
|
changedAt: importedAt,
|
||||||
|
changedBy: 'legacy-import',
|
||||||
|
},
|
||||||
|
// Provenance so we can always trace what came from the migration.
|
||||||
|
legacy: {
|
||||||
|
source: 'gravity-forms-csv',
|
||||||
|
importedAt,
|
||||||
|
onboardingEntryIds: client.onboardingEntryIds ?? [],
|
||||||
|
contractEntryIds: client.contractEntryIds ?? [],
|
||||||
|
onboardingPdfUrl: onboarding?.legacy?.pdfUrl ?? null,
|
||||||
|
contractPdfUrl: contract?.legacy?.pdfUrl ?? null,
|
||||||
|
signatureUrl: onboarding?.declaration?.signatureUrl ?? contract?.legacy?.signatureUrl ?? null,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
// Drop any keys that are empty strings so the mail-api merge path doesn't
|
||||||
|
// store noisy blanks.
|
||||||
|
for (const k of Object.keys(profile)) {
|
||||||
|
if (profile[k] === '' || profile[k] === undefined) delete profile[k];
|
||||||
|
}
|
||||||
|
return profile;
|
||||||
|
}
|
||||||
|
|
||||||
|
const out = {};
|
||||||
|
let written = 0;
|
||||||
|
for (const client of clientsDoc.clients ?? []) {
|
||||||
|
const email = String(client.email || '').trim().toLowerCase();
|
||||||
|
if (!email) continue;
|
||||||
|
out[email] = buildProfile(client);
|
||||||
|
written++;
|
||||||
|
}
|
||||||
|
|
||||||
|
writeFileSync(OUTPUT, JSON.stringify(out, null, 2) + '\n', 'utf8');
|
||||||
|
console.log(JSON.stringify({
|
||||||
|
ok: true,
|
||||||
|
emails: written,
|
||||||
|
outputPath: OUTPUT,
|
||||||
|
note: 'Ship this file in the mail-api Docker image. Merged on boot — never overwrites live entries.',
|
||||||
|
}, null, 2));
|
||||||
@@ -0,0 +1,360 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
// Cleans the legacy Gravity Forms contract CSV into structured JSON, then
|
||||||
|
// enriches data/legacy-onboarding.json with the owner email + postal address
|
||||||
|
// (and missing phone) wherever an onboarding row matches a contract row.
|
||||||
|
//
|
||||||
|
// Input:
|
||||||
|
// goodwalk-contract-2026-05-20.csv (repo root)
|
||||||
|
// data/legacy-onboarding.json (produced by clean-legacy-onboarding.mjs)
|
||||||
|
//
|
||||||
|
// Output:
|
||||||
|
// data/legacy-contracts.json (cleaned contracts)
|
||||||
|
// data/legacy-onboarding.json (enriched in place)
|
||||||
|
// data/legacy-clients.json (owner-email-keyed merged view)
|
||||||
|
//
|
||||||
|
// Run: node scripts/clean-legacy-contracts.mjs
|
||||||
|
|
||||||
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'node:fs';
|
||||||
|
import { dirname, resolve } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
|
const ROOT = resolve(__dirname, '..');
|
||||||
|
const CONTRACT_CSV = resolve(ROOT, 'goodwalk-contract-2026-05-20.csv');
|
||||||
|
const ONBOARDING_JSON = resolve(ROOT, 'data/legacy-onboarding.json');
|
||||||
|
const CONTRACTS_OUT = resolve(ROOT, 'data/legacy-contracts.json');
|
||||||
|
const CLIENTS_OUT = resolve(ROOT, 'data/legacy-clients.json');
|
||||||
|
|
||||||
|
function parseCsv(text) {
|
||||||
|
const rows = [];
|
||||||
|
let cur = [];
|
||||||
|
let val = '';
|
||||||
|
let inQ = false;
|
||||||
|
for (let i = 0; i < text.length; i++) {
|
||||||
|
const c = text[i];
|
||||||
|
if (inQ) {
|
||||||
|
if (c === '"') {
|
||||||
|
if (text[i + 1] === '"') { val += '"'; i++; }
|
||||||
|
else inQ = false;
|
||||||
|
} else val += c;
|
||||||
|
} else {
|
||||||
|
if (c === '"') inQ = true;
|
||||||
|
else if (c === ',') { cur.push(val); val = ''; }
|
||||||
|
else if (c === '\n') { cur.push(val); rows.push(cur); cur = []; val = ''; }
|
||||||
|
else if (c === '\r') { /* skip */ }
|
||||||
|
else val += c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (val.length || cur.length) { cur.push(val); rows.push(cur); }
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
const trimOrNull = (v) => {
|
||||||
|
const s = (v ?? '').trim();
|
||||||
|
return s ? s : null;
|
||||||
|
};
|
||||||
|
|
||||||
|
const lowerKey = (v) => (v ?? '').trim().toLowerCase().replace(/\s+/g, ' ');
|
||||||
|
|
||||||
|
function normalizePhone(raw) {
|
||||||
|
const original = (raw ?? '').trim();
|
||||||
|
if (!original) return { raw: null, e164: null };
|
||||||
|
let digits = original.replace(/[^\d+]/g, '');
|
||||||
|
if (digits.startsWith('+')) return { raw: original, e164: '+' + digits.slice(1).replace(/\D/g, '') };
|
||||||
|
digits = digits.replace(/\D/g, '');
|
||||||
|
if (!digits) return { raw: original, e164: null };
|
||||||
|
if (digits.startsWith('64')) return { raw: original, e164: '+' + digits };
|
||||||
|
if (digits.startsWith('0')) return { raw: original, e164: '+64' + digits.slice(1) };
|
||||||
|
return { raw: original, e164: null };
|
||||||
|
}
|
||||||
|
|
||||||
|
function composeAddress({ street, line2, city, suburb, postal, country }) {
|
||||||
|
const parts = [street, line2, suburb, city, postal, country]
|
||||||
|
.map((p) => (p ?? '').trim())
|
||||||
|
.filter(Boolean);
|
||||||
|
// De-dupe consecutive identical fragments (suburb sometimes duplicates city).
|
||||||
|
const deduped = [];
|
||||||
|
for (const p of parts) {
|
||||||
|
if (!deduped.length || deduped[deduped.length - 1].toLowerCase() !== p.toLowerCase()) {
|
||||||
|
deduped.push(p);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return deduped.length ? deduped.join(', ') : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -- Parse contract CSV --------------------------------------------------------
|
||||||
|
const raw = readFileSync(CONTRACT_CSV, 'utf8').replace(/^/, '');
|
||||||
|
const rows = parseCsv(raw);
|
||||||
|
const headers = rows[0].map((h) => h.trim());
|
||||||
|
const data = rows.slice(1).filter((r) => r.some((c) => (c ?? '').trim() !== ''));
|
||||||
|
const idx = Object.fromEntries(headers.map((h, i) => [h, i]));
|
||||||
|
const col = (row, name) => row[idx[name]] ?? '';
|
||||||
|
|
||||||
|
const contracts = data.map((row) => {
|
||||||
|
const first = trimOrNull(col(row, 'Owners Name (First Name)'));
|
||||||
|
const middle = trimOrNull(col(row, 'Owners Name (Middle)'));
|
||||||
|
const last = trimOrNull(col(row, 'Owners Name (Last Name/Surname)'));
|
||||||
|
const fullName = [first, middle, last].filter(Boolean).join(' ') || null;
|
||||||
|
const phone = normalizePhone(col(row, 'Phone'));
|
||||||
|
|
||||||
|
return {
|
||||||
|
legacy: {
|
||||||
|
entryId: trimOrNull(col(row, 'Entry Id')),
|
||||||
|
entryDate: trimOrNull(col(row, 'Entry Date')),
|
||||||
|
dateUpdated: trimOrNull(col(row, 'Date Updated')),
|
||||||
|
createdByUserId: trimOrNull(col(row, 'Created By (User Id)')),
|
||||||
|
sourceUrl: trimOrNull(col(row, 'Source Url')),
|
||||||
|
userAgent: trimOrNull(col(row, 'User Agent')),
|
||||||
|
userIp: trimOrNull(col(row, 'User IP')),
|
||||||
|
pdfUrl: trimOrNull(col(row, 'PDF: PDF Label')),
|
||||||
|
signatureUrl: trimOrNull(col(row, 'Owner Signature')),
|
||||||
|
},
|
||||||
|
owner: {
|
||||||
|
firstName: first,
|
||||||
|
middleName: middle,
|
||||||
|
lastName: last,
|
||||||
|
fullName,
|
||||||
|
email: trimOrNull(col(row, "Owner's email (Enter Email)")),
|
||||||
|
phone: phone.e164,
|
||||||
|
phoneRaw: phone.raw,
|
||||||
|
address: composeAddress({
|
||||||
|
street: col(row, 'Residential Address (Street Address)'),
|
||||||
|
line2: col(row, 'Residential Address (Address Line 2)'),
|
||||||
|
city: col(row, 'Residential Address (City)'),
|
||||||
|
suburb: col(row, 'Residential Address (Suburb)'),
|
||||||
|
postal: col(row, 'Residential Address (ZIP / Postal Code)'),
|
||||||
|
country: col(row, 'Residential Address (Country)'),
|
||||||
|
}),
|
||||||
|
addressParts: {
|
||||||
|
street: trimOrNull(col(row, 'Residential Address (Street Address)')),
|
||||||
|
line2: trimOrNull(col(row, 'Residential Address (Address Line 2)')),
|
||||||
|
suburb: trimOrNull(col(row, 'Residential Address (Suburb)')),
|
||||||
|
city: trimOrNull(col(row, 'Residential Address (City)')),
|
||||||
|
postalCode: trimOrNull(col(row, 'Residential Address (ZIP / Postal Code)')),
|
||||||
|
country: trimOrNull(col(row, 'Residential Address (Country)')),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dog: {
|
||||||
|
fullName: trimOrNull(col(row, "Dog's name (include surname)")),
|
||||||
|
},
|
||||||
|
consent: {
|
||||||
|
checked: (col(row, 'Consent (Consent)') ?? '').trim().toLowerCase() === 'checked',
|
||||||
|
text: trimOrNull(col(row, 'Consent (Text)')),
|
||||||
|
signedOn: trimOrNull(col(row, 'Date contract signed')),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
// -- Build contract lookup -----------------------------------------------------
|
||||||
|
// Some owners appear twice (re-signing) — keep the highest entryId per key.
|
||||||
|
function keepNewer(map, key, contract) {
|
||||||
|
const existing = map.get(key);
|
||||||
|
if (!existing) { map.set(key, contract); return; }
|
||||||
|
const a = Number(contract.legacy.entryId) || 0;
|
||||||
|
const b = Number(existing.legacy.entryId) || 0;
|
||||||
|
if (a > b) map.set(key, contract);
|
||||||
|
}
|
||||||
|
|
||||||
|
const byNameKey = new Map(); // "last|first"
|
||||||
|
const byLastKey = new Map(); // "last"
|
||||||
|
const byDogKey = new Map(); // dog full name lowercased
|
||||||
|
const byDogFirstWord = new Map(); // first token of dog name (handles surname mismatches)
|
||||||
|
|
||||||
|
for (const c of contracts) {
|
||||||
|
const last = lowerKey(c.owner.lastName);
|
||||||
|
const first = lowerKey(c.owner.firstName);
|
||||||
|
if (last && first) keepNewer(byNameKey, `${last}|${first}`, c);
|
||||||
|
if (last) keepNewer(byLastKey, last, c);
|
||||||
|
if (c.dog.fullName) {
|
||||||
|
keepNewer(byDogKey, lowerKey(c.dog.fullName), c);
|
||||||
|
const firstToken = lowerKey(c.dog.fullName).split(/\s+/)[0];
|
||||||
|
if (firstToken) keepNewer(byDogFirstWord, `${firstToken}|${last}`, c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -- Enrich onboarding ---------------------------------------------------------
|
||||||
|
if (!existsSync(ONBOARDING_JSON)) {
|
||||||
|
console.error(`Onboarding JSON not found at ${ONBOARDING_JSON}. Run clean-legacy-onboarding.mjs first.`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
const onboardingPayload = JSON.parse(readFileSync(ONBOARDING_JSON, 'utf8'));
|
||||||
|
|
||||||
|
let matched = 0;
|
||||||
|
let backfilledEmail = 0;
|
||||||
|
let backfilledAddress = 0;
|
||||||
|
let backfilledPhone = 0;
|
||||||
|
const unmatched = [];
|
||||||
|
|
||||||
|
for (const rec of onboardingPayload.records) {
|
||||||
|
const last = lowerKey(rec.owner.lastName);
|
||||||
|
const first = lowerKey(rec.owner.firstName);
|
||||||
|
const dogFull = lowerKey([rec.dog.name, rec.dog.surname].filter(Boolean).join(' '));
|
||||||
|
const dogFirst = lowerKey(rec.dog.name);
|
||||||
|
|
||||||
|
let match = null;
|
||||||
|
let matchedBy = null;
|
||||||
|
if (last && first && byNameKey.has(`${last}|${first}`)) {
|
||||||
|
match = byNameKey.get(`${last}|${first}`);
|
||||||
|
matchedBy = 'owner_name';
|
||||||
|
} else if (dogFull && byDogKey.has(dogFull)) {
|
||||||
|
match = byDogKey.get(dogFull);
|
||||||
|
matchedBy = 'dog_full_name';
|
||||||
|
} else if (dogFirst && last && byDogFirstWord.has(`${dogFirst}|${last}`)) {
|
||||||
|
match = byDogFirstWord.get(`${dogFirst}|${last}`);
|
||||||
|
matchedBy = 'dog_first_owner_last';
|
||||||
|
} else if (last && byLastKey.has(last)) {
|
||||||
|
// Last-resort: lone surname match. Only accept if surname is unique enough
|
||||||
|
// (i.e. only one contract has it).
|
||||||
|
const candidates = contracts.filter((c) => lowerKey(c.owner.lastName) === last);
|
||||||
|
if (candidates.length === 1) {
|
||||||
|
match = candidates[0];
|
||||||
|
matchedBy = 'owner_last_only';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!match) {
|
||||||
|
unmatched.push({
|
||||||
|
onboardingEntryId: rec.legacy.entryId,
|
||||||
|
owner: rec.owner.fullName,
|
||||||
|
dog: [rec.dog.name, rec.dog.surname].filter(Boolean).join(' '),
|
||||||
|
});
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
matched++;
|
||||||
|
if (!rec.owner.email && match.owner.email) {
|
||||||
|
rec.owner.email = match.owner.email;
|
||||||
|
backfilledEmail++;
|
||||||
|
}
|
||||||
|
if (!rec.owner.address && match.owner.address) {
|
||||||
|
rec.owner.address = match.owner.address;
|
||||||
|
rec.owner.addressParts = match.owner.addressParts;
|
||||||
|
backfilledAddress++;
|
||||||
|
}
|
||||||
|
if (!rec.owner.phone && match.owner.phone) {
|
||||||
|
rec.owner.phone = match.owner.phone;
|
||||||
|
rec.owner.phoneRaw = match.owner.phoneRaw;
|
||||||
|
backfilledPhone++;
|
||||||
|
}
|
||||||
|
rec.legacy.contractMatch = {
|
||||||
|
entryId: match.legacy.entryId,
|
||||||
|
matchedBy,
|
||||||
|
signedOn: match.consent.signedOn,
|
||||||
|
contractPdfUrl: match.legacy.pdfUrl,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// -- Write outputs -------------------------------------------------------------
|
||||||
|
mkdirSync(dirname(CONTRACTS_OUT), { recursive: true });
|
||||||
|
|
||||||
|
writeFileSync(
|
||||||
|
CONTRACTS_OUT,
|
||||||
|
JSON.stringify({
|
||||||
|
exportedAt: new Date().toISOString(),
|
||||||
|
source: { file: 'goodwalk-contract-2026-05-20.csv', rows: data.length, columns: headers.length },
|
||||||
|
records: contracts,
|
||||||
|
}, null, 2) + '\n',
|
||||||
|
'utf8',
|
||||||
|
);
|
||||||
|
|
||||||
|
onboardingPayload.enrichedAt = new Date().toISOString();
|
||||||
|
onboardingPayload.notes = [
|
||||||
|
...(onboardingPayload.notes ?? []),
|
||||||
|
'Enriched from goodwalk-contract-2026-05-20.csv: owner email + postal address backfilled where a contract row matched.',
|
||||||
|
];
|
||||||
|
writeFileSync(ONBOARDING_JSON, JSON.stringify(onboardingPayload, null, 2) + '\n', 'utf8');
|
||||||
|
|
||||||
|
// -- Build a clients view keyed by email ---------------------------------------
|
||||||
|
// This is the shape that maps most naturally to a Postgres `clients` table.
|
||||||
|
const clientsByEmail = new Map();
|
||||||
|
|
||||||
|
function upsertClient(email, partial) {
|
||||||
|
const key = (email ?? '').toLowerCase().trim();
|
||||||
|
if (!key) return;
|
||||||
|
const existing = clientsByEmail.get(key) ?? {
|
||||||
|
email: key,
|
||||||
|
firstName: null,
|
||||||
|
lastName: null,
|
||||||
|
phone: null,
|
||||||
|
phoneRaw: null,
|
||||||
|
address: null,
|
||||||
|
addressParts: null,
|
||||||
|
dogs: [],
|
||||||
|
onboardingEntryIds: [],
|
||||||
|
contractEntryIds: [],
|
||||||
|
};
|
||||||
|
for (const [k, v] of Object.entries(partial)) {
|
||||||
|
if (v == null) continue;
|
||||||
|
if (k === 'dogs') {
|
||||||
|
for (const dog of v) {
|
||||||
|
if (!existing.dogs.find((d) => (d.name ?? '').toLowerCase() === (dog.name ?? '').toLowerCase())) {
|
||||||
|
existing.dogs.push(dog);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (k === 'onboardingEntryIds' || k === 'contractEntryIds') {
|
||||||
|
for (const id of v) if (!existing[k].includes(id)) existing[k].push(id);
|
||||||
|
} else if (existing[k] == null) {
|
||||||
|
existing[k] = v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
clientsByEmail.set(key, existing);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const c of contracts) {
|
||||||
|
if (!c.owner.email) continue;
|
||||||
|
upsertClient(c.owner.email, {
|
||||||
|
firstName: c.owner.firstName,
|
||||||
|
lastName: c.owner.lastName,
|
||||||
|
phone: c.owner.phone,
|
||||||
|
phoneRaw: c.owner.phoneRaw,
|
||||||
|
address: c.owner.address,
|
||||||
|
addressParts: c.owner.addressParts,
|
||||||
|
dogs: c.dog.fullName ? [{ name: c.dog.fullName, source: 'contract' }] : [],
|
||||||
|
contractEntryIds: c.legacy.entryId ? [c.legacy.entryId] : [],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const rec of onboardingPayload.records) {
|
||||||
|
if (!rec.owner.email) continue;
|
||||||
|
const dogName = [rec.dog.name, rec.dog.surname].filter(Boolean).join(' ');
|
||||||
|
upsertClient(rec.owner.email, {
|
||||||
|
firstName: rec.owner.firstName,
|
||||||
|
lastName: rec.owner.lastName,
|
||||||
|
phone: rec.owner.phone,
|
||||||
|
phoneRaw: rec.owner.phoneRaw,
|
||||||
|
address: rec.owner.address,
|
||||||
|
addressParts: rec.owner.addressParts,
|
||||||
|
dogs: dogName ? [{
|
||||||
|
name: dogName,
|
||||||
|
dateOfBirth: rec.dog.dateOfBirth,
|
||||||
|
breed: rec.dog.breed,
|
||||||
|
source: 'onboarding',
|
||||||
|
}] : [],
|
||||||
|
onboardingEntryIds: rec.legacy.entryId ? [rec.legacy.entryId] : [],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
writeFileSync(
|
||||||
|
CLIENTS_OUT,
|
||||||
|
JSON.stringify({
|
||||||
|
exportedAt: new Date().toISOString(),
|
||||||
|
note: 'Owner-email-keyed merged view. Maps 1:1 to a Postgres `clients` table; the `dogs` array maps to a `dogs` table with a clients_id FK.',
|
||||||
|
clients: [...clientsByEmail.values()].sort((a, b) => a.email.localeCompare(b.email)),
|
||||||
|
}, null, 2) + '\n',
|
||||||
|
'utf8',
|
||||||
|
);
|
||||||
|
|
||||||
|
// -- Summary -------------------------------------------------------------------
|
||||||
|
console.log(JSON.stringify({
|
||||||
|
contracts: contracts.length,
|
||||||
|
contractsWithEmail: contracts.filter((c) => c.owner.email).length,
|
||||||
|
onboardingRecords: onboardingPayload.records.length,
|
||||||
|
matched,
|
||||||
|
unmatched: unmatched.length,
|
||||||
|
backfilledEmail,
|
||||||
|
backfilledAddress,
|
||||||
|
backfilledPhone,
|
||||||
|
uniqueClientsByEmail: clientsByEmail.size,
|
||||||
|
unmatchedSample: unmatched.slice(0, 10),
|
||||||
|
outputs: { CONTRACTS_OUT, ONBOARDING_JSON, CLIENTS_OUT },
|
||||||
|
}, null, 2));
|
||||||
@@ -0,0 +1,269 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
// Cleans the legacy Gravity Forms onboarding CSV export into a structured JSON
|
||||||
|
// file ready for later import into Postgres.
|
||||||
|
//
|
||||||
|
// Input: dog-enrolment-form-2026-05-20.csv (repo root)
|
||||||
|
// Output: data/legacy-onboarding.json
|
||||||
|
//
|
||||||
|
// Run: node scripts/clean-legacy-onboarding.mjs
|
||||||
|
|
||||||
|
import { readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
||||||
|
import { dirname, resolve } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
|
const ROOT = resolve(__dirname, '..');
|
||||||
|
const INPUT = resolve(ROOT, 'dog-enrolment-form-2026-05-20.csv');
|
||||||
|
const OUTPUT = resolve(ROOT, 'data/legacy-onboarding.json');
|
||||||
|
|
||||||
|
function parseCsv(text) {
|
||||||
|
const rows = [];
|
||||||
|
let cur = [];
|
||||||
|
let val = '';
|
||||||
|
let inQ = false;
|
||||||
|
for (let i = 0; i < text.length; i++) {
|
||||||
|
const c = text[i];
|
||||||
|
if (inQ) {
|
||||||
|
if (c === '"') {
|
||||||
|
if (text[i + 1] === '"') { val += '"'; i++; }
|
||||||
|
else inQ = false;
|
||||||
|
} else val += c;
|
||||||
|
} else {
|
||||||
|
if (c === '"') inQ = true;
|
||||||
|
else if (c === ',') { cur.push(val); val = ''; }
|
||||||
|
else if (c === '\n') { cur.push(val); rows.push(cur); cur = []; val = ''; }
|
||||||
|
else if (c === '\r') { /* skip */ }
|
||||||
|
else val += c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (val.length || cur.length) { cur.push(val); rows.push(cur); }
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
const trimOrNull = (v) => {
|
||||||
|
const s = (v ?? '').trim();
|
||||||
|
if (!s) return null;
|
||||||
|
if (s.toLowerCase() === 'select') return null;
|
||||||
|
return s;
|
||||||
|
};
|
||||||
|
|
||||||
|
const yesNo = (v) => {
|
||||||
|
const s = (v ?? '').trim().toLowerCase();
|
||||||
|
if (!s || s === 'select') return null;
|
||||||
|
if (s === 'yes') return true;
|
||||||
|
if (s === 'no') return false;
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
// reactive-to-animals style: 'Yes'/'No'/'' or a free-text species ('Cats', 'Birds', 'Other').
|
||||||
|
const reactiveField = (v) => {
|
||||||
|
const s = (v ?? '').trim();
|
||||||
|
if (!s) return { reactive: null, detail: null };
|
||||||
|
const lower = s.toLowerCase();
|
||||||
|
if (lower === 'yes') return { reactive: true, detail: null };
|
||||||
|
if (lower === 'no') return { reactive: false, detail: null };
|
||||||
|
if (lower === 'select') return { reactive: null, detail: null };
|
||||||
|
return { reactive: true, detail: s };
|
||||||
|
};
|
||||||
|
|
||||||
|
const parseFloatOrNull = (v) => {
|
||||||
|
const s = (v ?? '').trim();
|
||||||
|
if (!s) return null;
|
||||||
|
const n = Number(s);
|
||||||
|
return Number.isFinite(n) ? n : null;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Best-effort NZ phone normalisation. Keeps the raw, adds an e164 when we can
|
||||||
|
// confidently produce one. Doesn't try to invent missing data.
|
||||||
|
function normalizePhone(raw) {
|
||||||
|
const original = (raw ?? '').trim();
|
||||||
|
if (!original) return { raw: null, e164: null };
|
||||||
|
let digits = original.replace(/[^\d+]/g, '');
|
||||||
|
if (digits.startsWith('+')) {
|
||||||
|
return { raw: original, e164: '+' + digits.slice(1).replace(/\D/g, '') };
|
||||||
|
}
|
||||||
|
digits = digits.replace(/\D/g, '');
|
||||||
|
if (!digits) return { raw: original, e164: null };
|
||||||
|
if (digits.startsWith('64')) return { raw: original, e164: '+' + digits };
|
||||||
|
if (digits.startsWith('0')) return { raw: original, e164: '+64' + digits.slice(1) };
|
||||||
|
return { raw: original, e164: null };
|
||||||
|
}
|
||||||
|
|
||||||
|
const isoDateOrNull = (v) => {
|
||||||
|
const s = (v ?? '').trim();
|
||||||
|
if (!s) return null;
|
||||||
|
// CSV already uses YYYY-MM-DD or 'YYYY-MM-DD HH:MM:SS'
|
||||||
|
return s;
|
||||||
|
};
|
||||||
|
|
||||||
|
function emailGuess(ownerName, ownerSurname) {
|
||||||
|
// Legacy CSV doesn't include owner email. Leaving null so the Postgres
|
||||||
|
// import treats these as needing email-claim before they can sign in.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const raw = readFileSync(INPUT, 'utf8').replace(/^/, '');
|
||||||
|
const rows = parseCsv(raw);
|
||||||
|
const headers = rows[0];
|
||||||
|
const data = rows.slice(1).filter((r) => r.some((cell) => (cell ?? '').trim() !== ''));
|
||||||
|
|
||||||
|
// Column index lookups (defensive in case header order shifts).
|
||||||
|
const idx = Object.fromEntries(headers.map((h, i) => [h.trim(), i]));
|
||||||
|
const col = (row, name) => row[idx[name]] ?? '';
|
||||||
|
|
||||||
|
const records = data.map((row) => {
|
||||||
|
const hasFoodAllergy = yesNo(col(row, 'Does your dog have any food allergies?'));
|
||||||
|
const foodAllergyDetail = trimOrNull(col(row, 'Specify'));
|
||||||
|
// Two columns are labelled 'Specify'. The first is food, then env, then diet,
|
||||||
|
// then medication — pick them by position.
|
||||||
|
const specifyCols = headers
|
||||||
|
.map((h, i) => ({ h, i }))
|
||||||
|
.filter((x) => x.h.trim() === 'Specify')
|
||||||
|
.map((x) => x.i);
|
||||||
|
const [foodSpecifyIdx, envSpecifyIdx, dietSpecifyIdx, medSpecifyIdx] = specifyCols;
|
||||||
|
|
||||||
|
const phone = normalizePhone(col(row, 'Owner Contact'));
|
||||||
|
const emergencyPhone = normalizePhone(col(row, 'Emergency Contact Number'));
|
||||||
|
const vetPhone = normalizePhone(col(row, 'Vet Contact Number'));
|
||||||
|
|
||||||
|
const dogBirth = isoDateOrNull(col(row, "Dog's date of birth"));
|
||||||
|
const signedOn = isoDateOrNull(col(row, 'Date'));
|
||||||
|
const entryDate = isoDateOrNull(col(row, 'Entry Date'));
|
||||||
|
const updatedDate = isoDateOrNull(col(row, 'Date Updated'));
|
||||||
|
|
||||||
|
const ownerFirst = trimOrNull(col(row, 'Owner Name'));
|
||||||
|
const ownerLast = trimOrNull(col(row, 'Owner Surname'));
|
||||||
|
|
||||||
|
return {
|
||||||
|
legacy: {
|
||||||
|
entryId: trimOrNull(col(row, 'Entry Id')),
|
||||||
|
entryDate,
|
||||||
|
dateUpdated: updatedDate,
|
||||||
|
createdByUserId: trimOrNull(col(row, 'Created By (User Id)')),
|
||||||
|
sourceUrl: trimOrNull(col(row, 'Source Url')),
|
||||||
|
signatureUrl: trimOrNull(col(row, 'Signature')),
|
||||||
|
pdfUrl: trimOrNull(col(row, 'PDF: DogOnboardingForm')),
|
||||||
|
userAgent: trimOrNull(col(row, 'User Agent')),
|
||||||
|
userIp: trimOrNull(col(row, 'User IP')),
|
||||||
|
},
|
||||||
|
owner: {
|
||||||
|
firstName: ownerFirst,
|
||||||
|
lastName: ownerLast,
|
||||||
|
fullName: [ownerFirst, ownerLast].filter(Boolean).join(' ') || null,
|
||||||
|
email: emailGuess(ownerFirst, ownerLast),
|
||||||
|
phone: phone.e164,
|
||||||
|
phoneRaw: phone.raw,
|
||||||
|
address: null, // not collected in legacy form
|
||||||
|
},
|
||||||
|
emergencyContact: {
|
||||||
|
name: trimOrNull(col(row, 'Emergency Contact Name')),
|
||||||
|
phone: emergencyPhone.e164,
|
||||||
|
phoneRaw: emergencyPhone.raw,
|
||||||
|
},
|
||||||
|
dog: {
|
||||||
|
name: trimOrNull(col(row, 'Dog Name')),
|
||||||
|
surname: trimOrNull(col(row, 'Dog Surname')),
|
||||||
|
dateOfBirth: dogBirth,
|
||||||
|
breed: null, // not collected in legacy form
|
||||||
|
},
|
||||||
|
vet: {
|
||||||
|
name: trimOrNull(col(row, 'Vet Name')),
|
||||||
|
address: trimOrNull(col(row, 'Vet Address')),
|
||||||
|
phone: vetPhone.e164,
|
||||||
|
phoneRaw: vetPhone.raw,
|
||||||
|
},
|
||||||
|
health: {
|
||||||
|
vaccinated: yesNo(col(row, 'Is your dog vaccinated?')),
|
||||||
|
foodAllergy: {
|
||||||
|
present: hasFoodAllergy,
|
||||||
|
detail: hasFoodAllergy === true ? trimOrNull(row[foodSpecifyIdx]) : null,
|
||||||
|
},
|
||||||
|
environmentalAllergy: (() => {
|
||||||
|
const present = yesNo(col(row, 'Does your dog have any environmental allergy?'));
|
||||||
|
return {
|
||||||
|
present,
|
||||||
|
detail: present === true ? trimOrNull(row[envSpecifyIdx]) : null,
|
||||||
|
};
|
||||||
|
})(),
|
||||||
|
specialDiet: (() => {
|
||||||
|
const present = yesNo(col(row, 'Is your dog on a special diet?'));
|
||||||
|
return {
|
||||||
|
present,
|
||||||
|
detail: present === true ? trimOrNull(row[dietSpecifyIdx]) : null,
|
||||||
|
};
|
||||||
|
})(),
|
||||||
|
medication: (() => {
|
||||||
|
const present = yesNo(col(row, 'Is your dog taking any medication that could put him at risk during a walk'));
|
||||||
|
return {
|
||||||
|
present,
|
||||||
|
detail: present === true ? trimOrNull(row[medSpecifyIdx]) : null,
|
||||||
|
};
|
||||||
|
})(),
|
||||||
|
},
|
||||||
|
behaviour: {
|
||||||
|
wellSocialised: yesNo(col(row, 'Is your dog well socialised?')),
|
||||||
|
dogsInteractedWeekly: trimOrNull(col(row, 'How many dogs does your dog interact with weekly (excluding your family dogs)')),
|
||||||
|
beachNotes: trimOrNull(col(row, 'Does your dog visit the beach?')),
|
||||||
|
dogParkNotes: trimOrNull(col(row, 'Does your dog visit dog parks frequently - How many times a week?')),
|
||||||
|
biteHistory: yesNo(col(row, 'Does your dog have a bite history?')),
|
||||||
|
reactiveToDogs: yesNo(col(row, 'Is your dog reactive to other dogs?')),
|
||||||
|
reactiveToAnimals: reactiveField(col(row, 'Is your dog reactive to other animals?')),
|
||||||
|
reactiveToChildren: yesNo(col(row, 'Is your dog reactive to children?')),
|
||||||
|
reactiveToPeople: yesNo(col(row, 'Is your dog reactive to other people?')),
|
||||||
|
desexed: yesNo(col(row, 'Is your dog desexed?')),
|
||||||
|
councilRegistered: yesNo(col(row, 'Is your dog registered?')),
|
||||||
|
leashTrained: yesNo(col(row, 'Is your dog leash trained?')),
|
||||||
|
recallRating: parseFloatOrNull(col(row, "Rate your dog's recall from 1 to 5, with one being the lowest score and 5 the highest.")),
|
||||||
|
ranAwayBefore: yesNo(col(row, 'Has your dog ran away before?')),
|
||||||
|
carBehaviour: trimOrNull(col(row, "Please describe your dog's behaviour in the car")),
|
||||||
|
knownCommands: trimOrNull(col(row, 'List of commands your dog understands')),
|
||||||
|
},
|
||||||
|
misc: {
|
||||||
|
additionalNotes: trimOrNull(col(row, "Anything else you'd like to let us know?")),
|
||||||
|
socialMediaAccount: trimOrNull(col(row, 'Social Media Account Name')),
|
||||||
|
howDidYouHear: trimOrNull(col(row, 'How did you hear about Goodwalk?')),
|
||||||
|
referredBy: trimOrNull(col(row, "Person's name who reffered Goodwalk to you")),
|
||||||
|
},
|
||||||
|
declaration: {
|
||||||
|
signedOn,
|
||||||
|
signatureUrl: trimOrNull(col(row, 'Signature')),
|
||||||
|
// Legacy submissions implicitly accepted T&Cs when submitted.
|
||||||
|
termsAccepted: true,
|
||||||
|
emergencyVetConsent: true,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
mkdirSync(dirname(OUTPUT), { recursive: true });
|
||||||
|
|
||||||
|
const payload = {
|
||||||
|
exportedAt: new Date().toISOString(),
|
||||||
|
source: {
|
||||||
|
file: 'dog-enrolment-form-2026-05-20.csv',
|
||||||
|
rows: data.length,
|
||||||
|
columns: headers.length,
|
||||||
|
},
|
||||||
|
notes: [
|
||||||
|
'Legacy Gravity Forms export. Owner email/address were not collected by the old form.',
|
||||||
|
'Dog breed not collected by the old form.',
|
||||||
|
'Phone numbers retained as raw + best-effort E.164 (+64). Verify before dialling.',
|
||||||
|
"Yes/No fields parsed to booleans; 'Select' and blanks become null.",
|
||||||
|
"'Reactive to other animals' values like Cats/Birds/Other map to { reactive: true, detail }.",
|
||||||
|
],
|
||||||
|
records,
|
||||||
|
};
|
||||||
|
|
||||||
|
writeFileSync(OUTPUT, JSON.stringify(payload, null, 2) + '\n', 'utf8');
|
||||||
|
|
||||||
|
// Print a small summary so the operator can sanity-check.
|
||||||
|
const summary = {
|
||||||
|
records: records.length,
|
||||||
|
withOwnerPhone: records.filter((r) => r.owner.phone).length,
|
||||||
|
withVetPhone: records.filter((r) => r.vet.phone).length,
|
||||||
|
withEmergencyPhone: records.filter((r) => r.emergencyContact.phone).length,
|
||||||
|
withSignature: records.filter((r) => r.declaration.signatureUrl).length,
|
||||||
|
vaccinatedTrue: records.filter((r) => r.health.vaccinated === true).length,
|
||||||
|
councilRegistered: records.filter((r) => r.behaviour.councilRegistered === true).length,
|
||||||
|
output: OUTPUT,
|
||||||
|
};
|
||||||
|
console.log(JSON.stringify(summary, null, 2));
|
||||||
|
After Width: | Height: | Size: 351 KiB |
|
After Width: | Height: | Size: 429 KiB |
|
After Width: | Height: | Size: 362 KiB |
@@ -0,0 +1,98 @@
|
|||||||
|
"""Drive the homepage BookingWizard in a mobile viewport and check the success modal appears."""
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
import sys, io
|
||||||
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||||
|
|
||||||
|
BASE = "http://127.0.0.1:5180"
|
||||||
|
|
||||||
|
def run():
|
||||||
|
with sync_playwright() as p:
|
||||||
|
browser = p.chromium.launch()
|
||||||
|
ctx = browser.new_context(
|
||||||
|
viewport={"width": 390, "height": 844},
|
||||||
|
user_agent="Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Mobile/15E148 Safari/604.1",
|
||||||
|
is_mobile=True,
|
||||||
|
has_touch=True,
|
||||||
|
device_scale_factor=3,
|
||||||
|
)
|
||||||
|
page = ctx.new_page()
|
||||||
|
console_logs = []
|
||||||
|
page.on("console", lambda msg: console_logs.append(f"[{msg.type}] {msg.text}"))
|
||||||
|
page.on("pageerror", lambda err: console_logs.append(f"[pageerror] {err}"))
|
||||||
|
|
||||||
|
def handle_submit(route):
|
||||||
|
print(f" intercepted /api/submit -> returning 200")
|
||||||
|
route.fulfill(status=200, content_type="application/json", body='{"ok":true}')
|
||||||
|
page.route("**/api/submit", handle_submit)
|
||||||
|
|
||||||
|
print("[1] Loading homepage…")
|
||||||
|
page.goto(BASE + "/#newlead", wait_until="networkidle", timeout=30000)
|
||||||
|
page.locator("#newlead").scroll_into_view_if_needed()
|
||||||
|
page.wait_for_timeout(400)
|
||||||
|
|
||||||
|
print("[2] Step 1 — dog details")
|
||||||
|
# Pet name (avoid honeypot which uses autocomplete="new-password")
|
||||||
|
page.locator('.wiz-form input[placeholder*="Teddy"]').fill("Rex")
|
||||||
|
# Pick first service
|
||||||
|
page.locator('.wiz-service').first.click()
|
||||||
|
# Message (textarea)
|
||||||
|
page.locator('.wiz-form textarea').first.fill("Friendly dog, two years old, recall fine.")
|
||||||
|
|
||||||
|
# Continue
|
||||||
|
cont = page.get_by_role("button", name="Continue")
|
||||||
|
print(f" Continue button visible: {cont.is_visible()}")
|
||||||
|
cont.click()
|
||||||
|
page.wait_for_timeout(1200)
|
||||||
|
page.locator("#newlead").screenshot(path="scripts/mobile-step2.png")
|
||||||
|
errs = page.locator('.wiz-error').all()
|
||||||
|
print(f" visible errors after Continue: {len(errs)}")
|
||||||
|
for e in errs:
|
||||||
|
try: print(f" -> {e.inner_text()}")
|
||||||
|
except: pass
|
||||||
|
print(f" inputs after Continue: {page.locator('.wiz-form input').count()}")
|
||||||
|
for inp in page.locator('.wiz-form input').all():
|
||||||
|
print(f" autocomplete={inp.get_attribute('autocomplete')!r} type={inp.get_attribute('type')!r} visible={inp.is_visible()}")
|
||||||
|
|
||||||
|
print("[3] Step 2 — owner details")
|
||||||
|
page.locator('.wiz-form input[autocomplete="name"]').fill("Test User")
|
||||||
|
page.locator('.wiz-form input[type="email"]').fill("test@example.com")
|
||||||
|
page.locator('.wiz-form input[type="tel"]').fill("0211234567")
|
||||||
|
page.locator('.wiz-form input[autocomplete="address-level2"]').fill("Mt Eden")
|
||||||
|
|
||||||
|
print("[4] Submit")
|
||||||
|
page.get_by_role("button", name="Send my details").click()
|
||||||
|
|
||||||
|
print("[5] Waiting for success modal…")
|
||||||
|
try:
|
||||||
|
page.wait_for_selector('[role="dialog"]', timeout=8000, state="attached")
|
||||||
|
print(" PASS: dialog attached")
|
||||||
|
except Exception:
|
||||||
|
print(" FAIL: dialog never attached")
|
||||||
|
return 1
|
||||||
|
|
||||||
|
# Snapshot immediately
|
||||||
|
page.screenshot(path="scripts/mobile-modal-immediate.png", full_page=False)
|
||||||
|
c0 = page.locator('canvas').count()
|
||||||
|
d0 = page.locator('[role="dialog"]').count()
|
||||||
|
print(f" t=0ms: dialogs={d0} canvases={c0}")
|
||||||
|
|
||||||
|
for delay in (200, 500, 1000, 2000):
|
||||||
|
page.wait_for_timeout(delay)
|
||||||
|
d = page.locator('[role="dialog"]').count()
|
||||||
|
c = page.locator('canvas').count()
|
||||||
|
print(f" after +{delay}ms: dialogs={d} canvases={c}")
|
||||||
|
if d == 0:
|
||||||
|
print(" Modal vanished!")
|
||||||
|
page.screenshot(path=f"scripts/mobile-vanished-{delay}.png", full_page=False)
|
||||||
|
break
|
||||||
|
|
||||||
|
page.screenshot(path="scripts/mobile-modal-final.png", full_page=False)
|
||||||
|
|
||||||
|
print("\nConsole tail:")
|
||||||
|
for line in console_logs[-12:]:
|
||||||
|
print(f" {line}")
|
||||||
|
|
||||||
|
browser.close()
|
||||||
|
return 0
|
||||||
|
|
||||||
|
sys.exit(run())
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
"""Reproduce: testimonials cards blank after SPA navigation from another page."""
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
import sys, io
|
||||||
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||||
|
|
||||||
|
BASE = "https://www.goodwalk.co.nz"
|
||||||
|
|
||||||
|
def run():
|
||||||
|
with sync_playwright() as p:
|
||||||
|
browser = p.chromium.launch()
|
||||||
|
for label, ctx_opts in [
|
||||||
|
("mobile", {"viewport": {"width": 390, "height": 844}, "is_mobile": True, "has_touch": True,
|
||||||
|
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Mobile/15E148 Safari/604.1"}),
|
||||||
|
]:
|
||||||
|
print(f"\n=== {label} ===")
|
||||||
|
ctx = browser.new_context(**ctx_opts)
|
||||||
|
page = ctx.new_page()
|
||||||
|
logs = []
|
||||||
|
page.on("console", lambda m, L=logs: L.append(f"[{m.type}] {m.text}"))
|
||||||
|
page.on("pageerror", lambda e, L=logs: L.append(f"[pageerror] {e}"))
|
||||||
|
|
||||||
|
print(" Loading homepage…")
|
||||||
|
page.goto(BASE + "/", wait_until="networkidle", timeout=30000)
|
||||||
|
page.wait_for_timeout(800)
|
||||||
|
all_links = page.locator('a[href*="testimonials"]').all()
|
||||||
|
print(f" testimonials links found: {len(all_links)}")
|
||||||
|
for a in all_links[:5]:
|
||||||
|
print(f" href={a.get_attribute('href')!r} visible={a.is_visible()}")
|
||||||
|
|
||||||
|
# Try opening mobile menu (hamburger) then click testimonials
|
||||||
|
burger = page.locator('button[aria-label*="menu" i], button.header-burger, [aria-label*="open" i]').first
|
||||||
|
if burger.count() and burger.is_visible():
|
||||||
|
burger.click()
|
||||||
|
page.wait_for_timeout(400)
|
||||||
|
# Click first now-visible testimonials link (SPA nav, no reload)
|
||||||
|
visible_link = None
|
||||||
|
for a in page.locator('a[href*="testimonials"]').all():
|
||||||
|
if a.is_visible():
|
||||||
|
visible_link = a
|
||||||
|
break
|
||||||
|
if visible_link is None:
|
||||||
|
print(" no visible link to click")
|
||||||
|
return
|
||||||
|
print(" clicking testimonials link…")
|
||||||
|
with page.expect_navigation(wait_until="load", timeout=5000) as nav_info:
|
||||||
|
visible_link.click()
|
||||||
|
print(f" nav type detected: same-document={nav_info.value is None}")
|
||||||
|
page.wait_for_timeout(2000)
|
||||||
|
|
||||||
|
page.wait_for_timeout(2500)
|
||||||
|
print(f" url now: {page.url}")
|
||||||
|
|
||||||
|
section = page.locator(".testimonials-page-grid-section")
|
||||||
|
print(f" section count: {section.count()}")
|
||||||
|
if section.count():
|
||||||
|
classes = section.first.get_attribute("class")
|
||||||
|
print(f" section classes: {classes!r}")
|
||||||
|
|
||||||
|
cards = page.locator(".testimonials-page-card")
|
||||||
|
print(f" cards count: {cards.count()}")
|
||||||
|
if cards.count():
|
||||||
|
first = cards.first
|
||||||
|
computed = first.evaluate("el => { const cs = getComputedStyle(el); return { opacity: cs.opacity, transform: cs.transform }; }")
|
||||||
|
print(f" first card computed: {computed}")
|
||||||
|
last = cards.last
|
||||||
|
last_comp = last.evaluate("el => { const cs = getComputedStyle(el); return { opacity: cs.opacity }; }")
|
||||||
|
print(f" last card computed: {last_comp}")
|
||||||
|
|
||||||
|
page.screenshot(path=f"scripts/testimonials-spa-{label}.png", full_page=True)
|
||||||
|
print(f" screenshot: scripts/testimonials-spa-{label}.png")
|
||||||
|
|
||||||
|
# Now scroll and recheck
|
||||||
|
page.mouse.wheel(0, 600)
|
||||||
|
page.wait_for_timeout(500)
|
||||||
|
if cards.count():
|
||||||
|
op_after = cards.first.evaluate("el => getComputedStyle(el).opacity")
|
||||||
|
print(f" first card opacity after scroll 600px: {op_after}")
|
||||||
|
page.screenshot(path=f"scripts/testimonials-spa-scrolled-{label}.png", full_page=True)
|
||||||
|
|
||||||
|
if logs:
|
||||||
|
print(" console:")
|
||||||
|
for l in logs[-12:]:
|
||||||
|
print(f" {l}")
|
||||||
|
ctx.close()
|
||||||
|
browser.close()
|
||||||
|
|
||||||
|
run()
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
"""Load /testimonials and report what's actually visible."""
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
import sys, io
|
||||||
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||||
|
|
||||||
|
BASE = "http://127.0.0.1:5180"
|
||||||
|
|
||||||
|
def run():
|
||||||
|
with sync_playwright() as p:
|
||||||
|
browser = p.chromium.launch()
|
||||||
|
for label, ctx_opts in [
|
||||||
|
("desktop", {"viewport": {"width": 1280, "height": 900}}),
|
||||||
|
("mobile", {"viewport": {"width": 390, "height": 844}, "is_mobile": True, "has_touch": True,
|
||||||
|
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Mobile/15E148 Safari/604.1"}),
|
||||||
|
]:
|
||||||
|
print(f"\n=== {label} ===")
|
||||||
|
ctx = browser.new_context(**ctx_opts)
|
||||||
|
page = ctx.new_page()
|
||||||
|
logs = []
|
||||||
|
page.on("console", lambda m, L=logs: L.append(f"[{m.type}] {m.text}"))
|
||||||
|
page.on("pageerror", lambda e, L=logs: L.append(f"[pageerror] {e}"))
|
||||||
|
|
||||||
|
page.goto(BASE + "/testimonials", wait_until="networkidle", timeout=30000)
|
||||||
|
page.wait_for_timeout(600)
|
||||||
|
|
||||||
|
section = page.locator(".testimonials-page-grid-section")
|
||||||
|
print(f" section count: {section.count()}")
|
||||||
|
classes = section.first.get_attribute("class") if section.count() else None
|
||||||
|
print(f" section classes: {classes!r}")
|
||||||
|
|
||||||
|
cards = page.locator(".testimonials-page-card")
|
||||||
|
print(f" cards count: {cards.count()}")
|
||||||
|
|
||||||
|
if cards.count():
|
||||||
|
first = cards.first
|
||||||
|
computed = first.evaluate("el => { const cs = getComputedStyle(el); return { opacity: cs.opacity, transform: cs.transform, display: cs.display, visibility: cs.visibility }; }")
|
||||||
|
print(f" first card computed: {computed}")
|
||||||
|
bb = first.bounding_box()
|
||||||
|
print(f" first card bbox: {bb}")
|
||||||
|
txt = first.inner_text()
|
||||||
|
print(f" first card text: {txt[:200]!r}")
|
||||||
|
|
||||||
|
# Scroll into view and re-check
|
||||||
|
if section.count():
|
||||||
|
section.first.scroll_into_view_if_needed()
|
||||||
|
page.wait_for_timeout(800)
|
||||||
|
classes2 = section.first.get_attribute("class")
|
||||||
|
print(f" section classes after scroll: {classes2!r}")
|
||||||
|
if cards.count():
|
||||||
|
op2 = cards.first.evaluate("el => getComputedStyle(el).opacity")
|
||||||
|
print(f" first card opacity after scroll: {op2}")
|
||||||
|
|
||||||
|
page.screenshot(path=f"scripts/testimonials-{label}.png", full_page=True)
|
||||||
|
print(f" screenshot: scripts/testimonials-{label}.png")
|
||||||
|
|
||||||
|
if logs:
|
||||||
|
print(" console:")
|
||||||
|
for l in logs[-15:]:
|
||||||
|
print(f" {l}")
|
||||||
|
ctx.close()
|
||||||
|
browser.close()
|
||||||
|
|
||||||
|
run()
|
||||||
|
After Width: | Height: | Size: 3.3 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
@@ -1,5 +1,9 @@
|
|||||||
declare global {
|
declare global {
|
||||||
namespace App {
|
namespace App {
|
||||||
|
interface Locals {
|
||||||
|
abHero?: import('$lib/server/ab').HeroVariant;
|
||||||
|
anonId?: string;
|
||||||
|
}
|
||||||
interface PageData {
|
interface PageData {
|
||||||
content: import('$lib/types').HomePageContent | import('$lib/types').SiteSharedContent;
|
content: import('$lib/types').HomePageContent | import('$lib/types').SiteSharedContent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { Handle } from '@sveltejs/kit';
|
import type { Handle } from '@sveltejs/kit';
|
||||||
import { resolveSurface } from '$lib/server/surface';
|
import { resolveSurface } from '$lib/server/surface';
|
||||||
|
import { resolveAnonId, resolveHeroVariant } from '$lib/server/ab';
|
||||||
|
|
||||||
const ADMIN_PATH = '/owner/welcome';
|
const ADMIN_PATH = '/owner/welcome';
|
||||||
|
|
||||||
@@ -7,6 +8,14 @@ export const handle: Handle = async ({ event, resolve }) => {
|
|||||||
const { surface } = resolveSurface(event.url, event.cookies);
|
const { surface } = resolveSurface(event.url, event.cookies);
|
||||||
const path = event.url.pathname;
|
const path = event.url.pathname;
|
||||||
|
|
||||||
|
// Sticky A/B assignment, marketing surface only — no point polluting the
|
||||||
|
// owner/clients hosts with marketing-experiment cookies, and it skews
|
||||||
|
// exposure counts when staff hit the public site from the dashboard.
|
||||||
|
if (surface === 'marketing') {
|
||||||
|
event.locals.anonId = resolveAnonId(event.cookies);
|
||||||
|
event.locals.abHero = resolveHeroVariant(event.url, event.cookies);
|
||||||
|
}
|
||||||
|
|
||||||
// The admin host (cp.*) serves the dashboard at its root.
|
// The admin host (cp.*) serves the dashboard at its root.
|
||||||
if (surface === 'cp' && (path === '/' || path === '')) {
|
if (surface === 'cp' && (path === '/' || path === '')) {
|
||||||
return new Response(null, {
|
return new Response(null, {
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/**
|
||||||
|
* Client-side A/B event reporter. Server already assigned the variant; the
|
||||||
|
* client just reports exposures + conversions back. Uses sendBeacon when
|
||||||
|
* available so it survives page navigation (e.g. CTA click → external href).
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface AbContext {
|
||||||
|
experiment: string;
|
||||||
|
variant: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AbEventPayload extends AbContext {
|
||||||
|
event_type: 'exposure' | 'cta_click' | 'conversion';
|
||||||
|
meta?: Record<string, unknown>;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ENDPOINT = '/api/ab';
|
||||||
|
const SESSION_FIRED_KEY = 'gw_ab_fired';
|
||||||
|
|
||||||
|
// Dedupe `exposure` and `cta_click` per session — we only need one row per
|
||||||
|
// visitor per surface to compute CVR. Conversions are not deduped: every
|
||||||
|
// genuine booking submit should be recorded.
|
||||||
|
function shouldDedupe(payload: AbEventPayload): boolean {
|
||||||
|
if (payload.event_type === 'conversion') return false;
|
||||||
|
if (typeof sessionStorage === 'undefined') return false;
|
||||||
|
const key = `${payload.experiment}:${payload.variant}:${payload.event_type}:${payload.meta?.surface ?? ''}`;
|
||||||
|
try {
|
||||||
|
const raw = sessionStorage.getItem(SESSION_FIRED_KEY);
|
||||||
|
const fired = raw ? (JSON.parse(raw) as string[]) : [];
|
||||||
|
if (fired.includes(key)) return true;
|
||||||
|
fired.push(key);
|
||||||
|
sessionStorage.setItem(SESSION_FIRED_KEY, JSON.stringify(fired));
|
||||||
|
return false;
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function trackAb(payload: AbEventPayload): void {
|
||||||
|
if (typeof window === 'undefined') return;
|
||||||
|
if (!payload.experiment || !payload.variant) return;
|
||||||
|
if (shouldDedupe(payload)) return;
|
||||||
|
|
||||||
|
const body = JSON.stringify(payload);
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (typeof navigator !== 'undefined' && typeof navigator.sendBeacon === 'function') {
|
||||||
|
const blob = new Blob([body], { type: 'application/json' });
|
||||||
|
if (navigator.sendBeacon(ENDPOINT, blob)) return;
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// fall through to fetch
|
||||||
|
}
|
||||||
|
|
||||||
|
void fetch(ENDPOINT, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json' },
|
||||||
|
body,
|
||||||
|
keepalive: true,
|
||||||
|
}).catch(() => {});
|
||||||
|
}
|
||||||
@@ -28,8 +28,12 @@ describe('reveal action', () => {
|
|||||||
vi.unstubAllGlobals();
|
vi.unstubAllGlobals();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('toggles visibility as the element enters and leaves the viewport', () => {
|
it('reveals the element when the observer reports intersection', () => {
|
||||||
vi.stubGlobal('IntersectionObserver', TestIntersectionObserver);
|
vi.stubGlobal('IntersectionObserver', TestIntersectionObserver);
|
||||||
|
vi.spyOn(window, 'requestAnimationFrame').mockImplementation((cb) => {
|
||||||
|
cb(0);
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
vi.spyOn(window, 'matchMedia').mockReturnValue({
|
vi.spyOn(window, 'matchMedia').mockReturnValue({
|
||||||
matches: false,
|
matches: false,
|
||||||
media: '(prefers-reduced-motion: reduce)',
|
media: '(prefers-reduced-motion: reduce)',
|
||||||
@@ -67,9 +71,7 @@ describe('reveal action', () => {
|
|||||||
|
|
||||||
observer.trigger(node, true);
|
observer.trigger(node, true);
|
||||||
expect(node.classList.contains('reveal-visible')).toBe(true);
|
expect(node.classList.contains('reveal-visible')).toBe(true);
|
||||||
|
expect(observer.unobserve).toHaveBeenCalledWith(node);
|
||||||
observer.trigger(node, false);
|
|
||||||
expect(node.classList.contains('reveal-visible')).toBe(false);
|
|
||||||
|
|
||||||
action.destroy();
|
action.destroy();
|
||||||
expect(observer.disconnect).toHaveBeenCalledTimes(1);
|
expect(observer.disconnect).toHaveBeenCalledTimes(1);
|
||||||
|
|||||||
@@ -34,6 +34,17 @@ export function reveal(node: HTMLElement, options: RevealOptions = {}) {
|
|||||||
let observer: IntersectionObserver | null = null;
|
let observer: IntersectionObserver | null = null;
|
||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
|
||||||
|
// Failsafe: if hydration mismatch or any other edge case prevents the rAF
|
||||||
|
// check and IntersectionObserver from running, force visibility after a
|
||||||
|
// short delay so content never stays stuck at opacity 0.
|
||||||
|
const failsafe = window.setTimeout(() => {
|
||||||
|
if (cancelled) return;
|
||||||
|
if (!node.classList.contains('reveal-visible')) {
|
||||||
|
node.classList.add('reveal-visible');
|
||||||
|
observer?.disconnect();
|
||||||
|
}
|
||||||
|
}, 1200);
|
||||||
|
|
||||||
// Defer the layout-reading initial check + observer setup to the next
|
// Defer the layout-reading initial check + observer setup to the next
|
||||||
// frame. With 20+ `use:reveal` instances mounting in a row, calling
|
// frame. With 20+ `use:reveal` instances mounting in a row, calling
|
||||||
// getBoundingClientRect() synchronously after a class mutation forces
|
// getBoundingClientRect() synchronously after a class mutation forces
|
||||||
@@ -72,6 +83,7 @@ export function reveal(node: HTMLElement, options: RevealOptions = {}) {
|
|||||||
return {
|
return {
|
||||||
destroy() {
|
destroy() {
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
|
window.clearTimeout(failsafe);
|
||||||
observer?.disconnect();
|
observer?.disconnect();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,12 +35,12 @@
|
|||||||
{#each standardSections as section}
|
{#each standardSections as section}
|
||||||
{@const enhanced = getEnhancedImage(section.imageUrl)}
|
{@const enhanced = getEnhancedImage(section.imageUrl)}
|
||||||
<section
|
<section
|
||||||
use:reveal
|
use:reveal={{ distance: 0 }}
|
||||||
class="about-section reveal-block"
|
class="about-section reveal-block"
|
||||||
class:about-section-gradient={section.accent === 'gradient'}
|
class:about-section-gradient={section.accent === 'gradient'}
|
||||||
>
|
>
|
||||||
<div class="page-inner about-section-grid" class:about-section-reverse={section.reverse}>
|
<div class="page-inner about-section-grid" class:about-section-reverse={section.reverse}>
|
||||||
<div class="about-copy">
|
<div class="about-copy fade-up">
|
||||||
{#if section.eyebrow}
|
{#if section.eyebrow}
|
||||||
<span class="eyebrow about-eyebrow">{section.eyebrow}</span>
|
<span class="eyebrow about-eyebrow">{section.eyebrow}</span>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<p>{paragraph}</p>
|
<p>{paragraph}</p>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
<div class="about-media">
|
<div class="about-media scale-soft">
|
||||||
{#if enhanced}
|
{#if enhanced}
|
||||||
<enhanced:img src={enhanced} alt={section.imageAlt} loading="lazy" decoding="async" />
|
<enhanced:img src={enhanced} alt={section.imageAlt} loading="lazy" decoding="async" />
|
||||||
{:else}
|
{:else}
|
||||||
@@ -63,9 +63,9 @@
|
|||||||
<!-- ── Founder section ── -->
|
<!-- ── Founder section ── -->
|
||||||
{#if founderSection}
|
{#if founderSection}
|
||||||
{@const founderEnhanced = getEnhancedImage(founderSection.imageUrl)}
|
{@const founderEnhanced = getEnhancedImage(founderSection.imageUrl)}
|
||||||
<section use:reveal={{ delay: 50 }} class="about-founder reveal-block">
|
<section use:reveal={{ delay: 50, distance: 0 }} class="about-founder reveal-block">
|
||||||
<div class="page-inner about-founder-grid">
|
<div class="page-inner about-founder-grid">
|
||||||
<div class="about-founder-media">
|
<div class="about-founder-media scale-soft">
|
||||||
{#if founderEnhanced}
|
{#if founderEnhanced}
|
||||||
<enhanced:img
|
<enhanced:img
|
||||||
src={founderEnhanced}
|
src={founderEnhanced}
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="about-founder-copy">
|
<div class="about-founder-copy fade-up">
|
||||||
<article class="about-founder-note">
|
<article class="about-founder-note">
|
||||||
{#if founderSection.eyebrow}
|
{#if founderSection.eyebrow}
|
||||||
<span class="eyebrow about-eyebrow about-founder-kicker">{founderSection.eyebrow}</span>
|
<span class="eyebrow about-eyebrow about-founder-kicker">{founderSection.eyebrow}</span>
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
<span>If you are unsure about anything, feel free to email me anytime.</span>
|
<span>If you are unsure about anything, feel free to email me anytime.</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="/contact-us" class="btn btn-green btn-mobile-center about-founder-cta">
|
<a href="/contact-us" class="btn btn-green btn-mobile-center about-founder-cta cta-shimmer">
|
||||||
Book a free Meet & Greet
|
Book a free Meet & Greet
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
@@ -133,13 +133,13 @@
|
|||||||
|
|
||||||
<!-- ── FAQs ── -->
|
<!-- ── FAQs ── -->
|
||||||
{#if pageContent.faqs && pageContent.faqs.length}
|
{#if pageContent.faqs && pageContent.faqs.length}
|
||||||
<section use:reveal={{ delay: 30 }} class="about-faq reveal-block">
|
<section use:reveal={{ delay: 30, distance: 0 }} class="about-faq reveal-block">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="about-faq-header">
|
<div class="about-faq-header fade-up">
|
||||||
<span class="eyebrow about-eyebrow">FAQ</span>
|
<span class="eyebrow about-eyebrow">FAQ</span>
|
||||||
<h2>{pageContent.faqTitle ?? 'Common questions'}</h2>
|
<h2>{pageContent.faqTitle ?? 'Common questions'}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div use:accordion class="faq about-faq-list">
|
<div use:accordion class="faq about-faq-list fade-up">
|
||||||
{#each pageContent.faqs as item}
|
{#each pageContent.faqs as item}
|
||||||
<details>
|
<details>
|
||||||
<summary>{item.question}</summary>
|
<summary>{item.question}</summary>
|
||||||
@@ -571,4 +571,15 @@
|
|||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Per-section choreography — copy leads, then the media settles after a
|
||||||
|
short beat. Repeated across each about-section instance. */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:global(.reveal-visible) .about-copy { transition-delay: 40ms; }
|
||||||
|
:global(.reveal-visible) .about-media { transition-delay: 200ms; }
|
||||||
|
:global(.reveal-visible) .about-founder-media { transition-delay: 60ms; }
|
||||||
|
:global(.reveal-visible) .about-founder-copy { transition-delay: 220ms; }
|
||||||
|
:global(.reveal-visible) .about-faq-header { transition-delay: 40ms; }
|
||||||
|
:global(.reveal-visible) .about-faq-list { transition-delay: 180ms; }
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -10,21 +10,20 @@ async function fillOwnerStep() {
|
|||||||
await fireEvent.input(screen.getByLabelText(/^Email/i), {
|
await fireEvent.input(screen.getByLabelText(/^Email/i), {
|
||||||
target: { value: 'alex@example.com' }
|
target: { value: 'alex@example.com' }
|
||||||
});
|
});
|
||||||
await fireEvent.input(screen.getByLabelText(/Contact #/i), {
|
await fireEvent.input(screen.getByLabelText(/Phone number/i), {
|
||||||
target: { value: '021 123 4567' }
|
target: { value: '021 123 4567' }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fillDogStep() {
|
async function fillDogStep() {
|
||||||
await fireEvent.click(screen.getByLabelText('Tiny Gang Pack Walks'));
|
|
||||||
await fireEvent.click(screen.getByLabelText('Other Services'));
|
|
||||||
await fireEvent.input(screen.getByLabelText(/Dog's Name/i), {
|
await fireEvent.input(screen.getByLabelText(/Dog's Name/i), {
|
||||||
target: { value: 'Maya' }
|
target: { value: 'Maya' }
|
||||||
});
|
});
|
||||||
await fireEvent.input(screen.getByLabelText(/Location/i), {
|
await fireEvent.input(screen.getByLabelText(/Your suburb/i), {
|
||||||
target: { value: 'Kingsland' }
|
target: { value: 'Kingsland' }
|
||||||
});
|
});
|
||||||
await fireEvent.input(screen.getByLabelText(/Tiny Gang Pack Walks fit/i), {
|
await fireEvent.click(screen.getByLabelText('Tiny Gang Pack Walks'));
|
||||||
|
await fireEvent.input(screen.getByLabelText(/A bit about your dog/i), {
|
||||||
target: { value: 'Loves small group walks.' }
|
target: { value: 'Loves small group walks.' }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -103,7 +102,7 @@ describe('BookingSection', () => {
|
|||||||
petName: 'Maya',
|
petName: 'Maya',
|
||||||
location: 'Kingsland',
|
location: 'Kingsland',
|
||||||
message: 'Loves small group walks.',
|
message: 'Loves small group walks.',
|
||||||
services: ['Tiny Gang Pack Walks', 'Other Services'],
|
services: ['Tiny Gang Pack Walks'],
|
||||||
website: '',
|
website: '',
|
||||||
referrer: 'https://www.google.com/',
|
referrer: 'https://www.google.com/',
|
||||||
stepChanges: 1,
|
stepChanges: 1,
|
||||||
@@ -144,7 +143,7 @@ describe('BookingSection', () => {
|
|||||||
await fireEvent.click(container.querySelector('.booking-next-button')!);
|
await fireEvent.click(container.querySelector('.booking-next-button')!);
|
||||||
expect(screen.getByText('Please tell us how we can help')).toBeInTheDocument();
|
expect(screen.getByText('Please tell us how we can help')).toBeInTheDocument();
|
||||||
|
|
||||||
await fireEvent.input(screen.getByLabelText(/Your Message/i), {
|
await fireEvent.input(screen.getByLabelText(/How can we help/i), {
|
||||||
target: { value: 'I would like to discuss a business partnership.' }
|
target: { value: 'I would like to discuss a business partnership.' }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,14 @@
|
|||||||
import Icon from '$lib/components/Icon.svelte';
|
import Icon from '$lib/components/Icon.svelte';
|
||||||
import { reveal } from '$lib/actions/reveal';
|
import { reveal } from '$lib/actions/reveal';
|
||||||
import type { BookingContent } from '$lib/types';
|
import type { BookingContent } from '$lib/types';
|
||||||
|
import { trackAb, type AbContext } from '$lib/ab';
|
||||||
|
|
||||||
type SuccessModalComponentType = typeof import('$lib/components/SuccessModal.svelte').default;
|
type SuccessModalComponentType = typeof import('$lib/components/SuccessModal.svelte').default;
|
||||||
type ErrorModalComponentType = typeof import('$lib/components/ErrorModal.svelte').default;
|
type ErrorModalComponentType = typeof import('$lib/components/ErrorModal.svelte').default;
|
||||||
|
|
||||||
export let booking: BookingContent;
|
export let booking: BookingContent;
|
||||||
export let pagePath = '';
|
export let pagePath = '';
|
||||||
|
export let ab: AbContext | undefined = undefined;
|
||||||
$: isCompactContactPage = pagePath === '/contact-us';
|
$: isCompactContactPage = pagePath === '/contact-us';
|
||||||
|
|
||||||
const defaultServices = ['Tiny Gang Pack Walks', 'Solo Walks', 'Puppy Visits', 'Other Services'];
|
const defaultServices = ['Tiny Gang Pack Walks', 'Solo Walks', 'Puppy Visits', 'Other Services'];
|
||||||
@@ -285,6 +287,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
submitted = true;
|
submitted = true;
|
||||||
|
if (ab) trackAb({ ...ab, event_type: 'conversion', meta: { surface: 'booking_submit' } });
|
||||||
} catch (err: unknown) {
|
} catch (err: unknown) {
|
||||||
submitErrorDetail = err instanceof Error ? err.message : String(err);
|
submitErrorDetail = err instanceof Error ? err.message : String(err);
|
||||||
showErrorModal = true;
|
showErrorModal = true;
|
||||||
|
|||||||
@@ -22,20 +22,20 @@
|
|||||||
$: founderStoryEnhanced = getEnhancedImage(founderStory.imageUrl);
|
$: founderStoryEnhanced = getEnhancedImage(founderStory.imageUrl);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section id="promise" use:reveal={{ delay: 20 }} class="reveal-block">
|
<section id="promise" use:reveal={{ delay: 20, distance: 0 }} class="reveal-block">
|
||||||
<div class="founder-inner">
|
<div class="founder-inner">
|
||||||
<article class="founder-note">
|
<article class="founder-note">
|
||||||
<div class="founder-intro">
|
<div class="founder-intro fade-up">
|
||||||
<span class="eyebrow founder-kicker">A note from Aless</span>
|
<span class="eyebrow founder-kicker">A note from Aless</span>
|
||||||
<span class="founder-greeting">Hi, Aless from Goodwalk <span class="founder-greeting-wave" aria-hidden="true">👋</span></span>
|
<span class="founder-greeting">Hi, Aless from Goodwalk <span class="founder-greeting-wave" aria-hidden="true">👋</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="founder-heading">
|
<h2 class="founder-heading fade-up">
|
||||||
<span class="founder-heading-main">{founderStory.title}</span>
|
<span class="founder-heading-main">{founderStory.title}</span>
|
||||||
<span class="founder-heading-sub">Goodwalk is built around trust.</span>
|
<span class="founder-heading-sub">Goodwalk is built around trust.</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="founder-trust-strip" aria-label="What owners can expect from Goodwalk">
|
<div class="founder-trust-strip fade-up" aria-label="What owners can expect from Goodwalk">
|
||||||
<span class="founder-trust-label">What owners notice first</span>
|
<span class="founder-trust-label">What owners notice first</span>
|
||||||
<ul class="founder-trust-list">
|
<ul class="founder-trust-list">
|
||||||
{#each founderTrustNotes as note}
|
{#each founderTrustNotes as note}
|
||||||
@@ -44,29 +44,29 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="founder-body">
|
<div class="founder-body fade-up">
|
||||||
{#each founderStoryParagraphs as paragraph}
|
{#each founderStoryParagraphs as paragraph}
|
||||||
<p>{paragraph}</p>
|
<p>{paragraph}</p>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="founder-closing">
|
<p class="founder-closing fade-up">
|
||||||
Ready to <strong>{founderStory.emphasis}</strong>
|
Ready to <strong>{founderStory.emphasis}</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="founder-actions">
|
<div class="founder-actions fade-up">
|
||||||
<a class="founder-contact-note" href="mailto:info@goodwalk.co.nz" aria-label="Email Aless at Goodwalk">
|
<a class="founder-contact-note" href="mailto:info@goodwalk.co.nz" aria-label="Email Aless at Goodwalk">
|
||||||
<span class="founder-contact-wave" aria-hidden="true">👋</span>
|
<span class="founder-contact-wave" aria-hidden="true">👋</span>
|
||||||
<span>If you are unsure about anything, feel free to email, call, or send me an Instagram DM anytime.</span>
|
<span>If you are unsure about anything, feel free to email, call, or send me an Instagram DM anytime.</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href={founderStory.cta.href} class="btn btn-green btn-with-arrow btn-hide-arrow-mobile founder-cta">
|
<a href={founderStory.cta.href} class="btn btn-green btn-with-arrow btn-hide-arrow-mobile founder-cta cta-shimmer">
|
||||||
{founderStory.cta.label}
|
{founderStory.cta.label}
|
||||||
<Icon name="fas fa-arrow-right" />
|
<Icon name="fas fa-arrow-right" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="founder-signoff">
|
<div class="founder-signoff fade-up">
|
||||||
<div class="founder-signoff-copy">
|
<div class="founder-signoff-copy">
|
||||||
<p class="founder-signoff-name">Aless, founder of Goodwalk</p>
|
<p class="founder-signoff-name">Aless, founder of Goodwalk</p>
|
||||||
<p class="founder-signoff-line">The same calm face at the door, the same trusted routine for your dog.</p>
|
<p class="founder-signoff-line">The same calm face at the door, the same trusted routine for your dog.</p>
|
||||||
@@ -102,6 +102,19 @@
|
|||||||
contain-intrinsic-size: 980px;
|
contain-intrinsic-size: 980px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Narrative cascade — the article unfolds top-to-bottom in a steady,
|
||||||
|
unhurried rhythm. Intentionally slow steps (~90ms) so the eye reads
|
||||||
|
each block as it lands, not as a rush. */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:global(.reveal-visible) .founder-intro { transition-delay: 40ms; }
|
||||||
|
:global(.reveal-visible) .founder-heading { transition-delay: 130ms; }
|
||||||
|
:global(.reveal-visible) .founder-trust-strip { transition-delay: 220ms; }
|
||||||
|
:global(.reveal-visible) .founder-body { transition-delay: 310ms; }
|
||||||
|
:global(.reveal-visible) .founder-closing { transition-delay: 400ms; }
|
||||||
|
:global(.reveal-visible) .founder-actions { transition-delay: 490ms; }
|
||||||
|
:global(.reveal-visible) .founder-signoff { transition-delay: 580ms; }
|
||||||
|
}
|
||||||
|
|
||||||
.founder-inner {
|
.founder-inner {
|
||||||
max-width: 880px;
|
max-width: 880px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|||||||
@@ -1,9 +1,23 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { onMount } from 'svelte';
|
||||||
import Icon from '$lib/components/Icon.svelte';
|
import Icon from '$lib/components/Icon.svelte';
|
||||||
import type { CallToAction, HeroContent } from '$lib/types';
|
import type { CallToAction, HeroContent } from '$lib/types';
|
||||||
|
import { trackAb, type AbContext } from '$lib/ab';
|
||||||
|
|
||||||
export let hero: HeroContent;
|
export let hero: HeroContent;
|
||||||
export let reviewCta: CallToAction | undefined = undefined;
|
export let reviewCta: CallToAction | undefined = undefined;
|
||||||
|
export let primaryCtaOverride: CallToAction | undefined = undefined;
|
||||||
|
export let ab: AbContext | undefined = undefined;
|
||||||
|
|
||||||
|
$: primaryCta = primaryCtaOverride ?? hero.primaryCta;
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
if (ab) trackAb({ ...ab, event_type: 'exposure', meta: { surface: 'hero' } });
|
||||||
|
});
|
||||||
|
|
||||||
|
function handlePrimaryCtaClick() {
|
||||||
|
if (ab) trackAb({ ...ab, event_type: 'cta_click', meta: { surface: 'hero_primary' } });
|
||||||
|
}
|
||||||
|
|
||||||
$: titleParts = splitTitle(hero.title);
|
$: titleParts = splitTitle(hero.title);
|
||||||
$: mobileTitle = hero.mobileTitle?.trim() || `${hero.title} ${hero.highlight}`.trim();
|
$: mobileTitle = hero.mobileTitle?.trim() || `${hero.title} ${hero.highlight}`.trim();
|
||||||
@@ -133,12 +147,13 @@
|
|||||||
|
|
||||||
<div class="hero-buttons">
|
<div class="hero-buttons">
|
||||||
<a
|
<a
|
||||||
href={hero.primaryCta.href}
|
href={primaryCta.href}
|
||||||
target={linkTarget(hero.primaryCta.external)}
|
target={linkTarget(primaryCta.external)}
|
||||||
rel={linkRel(hero.primaryCta.external)}
|
rel={linkRel(primaryCta.external)}
|
||||||
class="btn btn-yellow btn-with-arrow btn-hide-arrow-mobile"
|
class="btn btn-yellow btn-with-arrow btn-hide-arrow-mobile"
|
||||||
|
on:click={handlePrimaryCtaClick}
|
||||||
>
|
>
|
||||||
{hero.primaryCta.label}
|
{primaryCta.label}
|
||||||
<Icon name="fas fa-arrow-right" />
|
<Icon name="fas fa-arrow-right" />
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -12,10 +12,10 @@
|
|||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section id="how-it-works" use:reveal={{ delay: 30 }} class="reveal-block">
|
<section id="how-it-works" use:reveal={{ delay: 30, distance: 0 }} class="reveal-block">
|
||||||
<div class="hiw-inner">
|
<div class="hiw-inner">
|
||||||
|
|
||||||
<div class="section-header hiw-header">
|
<div class="section-header hiw-header fade-up">
|
||||||
<span class="eyebrow hiw-eyebrow">Getting started</span>
|
<span class="eyebrow hiw-eyebrow">Getting started</span>
|
||||||
<h2 class="section-heading">{content.title}</h2>
|
<h2 class="section-heading">{content.title}</h2>
|
||||||
{#if content.intro}
|
{#if content.intro}
|
||||||
@@ -23,18 +23,18 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hiw-journey-bar" aria-label="How getting started works">
|
<div class="hiw-journey-bar stagger-children" aria-label="How getting started works">
|
||||||
{#each journeyChips as chip}
|
{#each journeyChips as chip}
|
||||||
<span class="hiw-journey-pill">
|
<span class="hiw-journey-pill fade-up">
|
||||||
<Icon name={chip.icon} className="hiw-journey-icon" />
|
<Icon name={chip.icon} className="hiw-journey-icon" />
|
||||||
{chip.label}
|
{chip.label}
|
||||||
</span>
|
</span>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hiw-steps">
|
<div class="hiw-steps stagger-children">
|
||||||
{#each content.steps as step, index}
|
{#each content.steps as step, index}
|
||||||
<div class="hiw-step">
|
<div class="hiw-step fade-up">
|
||||||
<div class="hiw-step-meta">
|
<div class="hiw-step-meta">
|
||||||
<span class="hiw-phase">{step.phase}</span>
|
<span class="hiw-phase">{step.phase}</span>
|
||||||
<span class="hiw-num">0{index + 1}</span>
|
<span class="hiw-num">0{index + 1}</span>
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hiw-cta">
|
<div class="hiw-cta fade-up">
|
||||||
<a href="#newlead" class="btn btn-green btn-mobile-center btn-with-arrow">
|
<a href="#newlead" class="btn btn-green btn-mobile-center btn-with-arrow cta-shimmer">
|
||||||
Book your free Meet & Greet
|
Book your free Meet & Greet
|
||||||
<Icon name="fas fa-arrow-right" />
|
<Icon name="fas fa-arrow-right" />
|
||||||
</a>
|
</a>
|
||||||
@@ -364,4 +364,28 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Choreography: when the section reveal fires, the inner tiers come in
|
||||||
|
as a hierarchy — header settles first, journey pills follow, then
|
||||||
|
step cards cascade, then the CTA tail. Each tier's own stagger still
|
||||||
|
applies on top of these base offsets, so within a tier the children
|
||||||
|
ripple as expected. Kept inside @media so reduced-motion users skip
|
||||||
|
the cascade and see everything at rest immediately. */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:global(.reveal-visible) .hiw-header {
|
||||||
|
transition-delay: 40ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.reveal-visible) .hiw-journey-bar > :nth-child(1) { transition-delay: 160ms; }
|
||||||
|
:global(.reveal-visible) .hiw-journey-bar > :nth-child(2) { transition-delay: 220ms; }
|
||||||
|
:global(.reveal-visible) .hiw-journey-bar > :nth-child(3) { transition-delay: 280ms; }
|
||||||
|
|
||||||
|
:global(.reveal-visible) .hiw-steps > :nth-child(1) { transition-delay: 340ms; }
|
||||||
|
:global(.reveal-visible) .hiw-steps > :nth-child(2) { transition-delay: 420ms; }
|
||||||
|
:global(.reveal-visible) .hiw-steps > :nth-child(3) { transition-delay: 500ms; }
|
||||||
|
|
||||||
|
:global(.reveal-visible) .hiw-cta {
|
||||||
|
transition-delay: 600ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -4,24 +4,40 @@
|
|||||||
|
|
||||||
export let instagram: HomePageContent['instagram'];
|
export let instagram: HomePageContent['instagram'];
|
||||||
|
|
||||||
|
// Editorial layout — full-bleed photo with a dark scrim on the left.
|
||||||
|
// Photo source is the existing tiny-gang pack walk image already used
|
||||||
|
// elsewhere on the site, so no new assets are required.
|
||||||
|
const editorialPhoto = '/images/goodwalk-tiny-gang-pack-walk-small-dogs-auckland.webp';
|
||||||
|
const editorialPhotoAlt = 'Goodwalk Tiny Gang on a pack walk in Auckland';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<aside id="instagram" aria-label="Follow Goodwalk on Instagram">
|
<aside id="instagram" aria-label="Follow Goodwalk on Instagram">
|
||||||
<div class="instagram-stage">
|
<div class="ig-editorial">
|
||||||
<div class="instagram-panel">
|
<div class="ig-editorial-photo">
|
||||||
<div class="instagram-copy">
|
<img src={editorialPhoto} alt={editorialPhotoAlt} loading="lazy" decoding="async" />
|
||||||
<span class="eyebrow instagram-kicker">Daily walks, happy dogs</span>
|
|
||||||
<h2>{instagram.title}</h2>
|
|
||||||
<p class="instagram-blurb">See our dogs in action — walks, play, and happy pups</p>
|
|
||||||
<a href={instagram.href} target="_blank" rel="noopener" class="btn btn-green instagram-button">
|
|
||||||
<Icon name="fab fa-instagram" />
|
|
||||||
{instagram.label}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="instagram-dog-wrap" aria-hidden="true">
|
<div class="ig-editorial-scrim">
|
||||||
<img src="/images/goodwalk-instagram-dog-cutout.webp" alt="" class="instagram-dog" loading="lazy" decoding="async" />
|
<div class="ig-editorial-copy">
|
||||||
|
<span class="ig-editorial-source">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>{instagram.label}</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<h2>{instagram.title}</h2>
|
||||||
|
<p>Daily walks, real dogs, no filter. Park runs, pack moments, and the kind of updates you'd actually want to scroll.</p>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href={instagram.href}
|
||||||
|
target={instagram.external ? '_blank' : undefined}
|
||||||
|
rel={instagram.external ? 'noopener' : undefined}
|
||||||
|
class="ig-editorial-cta"
|
||||||
|
>
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>Follow {instagram.label}</span>
|
||||||
|
<Icon name="fas fa-arrow-right" className="ig-editorial-arrow" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
@@ -30,133 +46,186 @@
|
|||||||
#instagram {
|
#instagram {
|
||||||
content-visibility: auto;
|
content-visibility: auto;
|
||||||
contain-intrinsic-size: 360px;
|
contain-intrinsic-size: 360px;
|
||||||
|
padding: 32px 24px 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial {
|
||||||
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-bottom: 40px;
|
max-width: 1180px;
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-stage {
|
|
||||||
position: relative;
|
|
||||||
max-width: 1040px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-panel {
|
|
||||||
position: relative;
|
|
||||||
min-height: 150px;
|
|
||||||
padding: 24px 320px 24px 44px;
|
|
||||||
border-radius: 28px;
|
border-radius: 28px;
|
||||||
background:
|
aspect-ratio: 2.6 / 1;
|
||||||
radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 42%),
|
min-height: 280px;
|
||||||
linear-gradient(135deg, rgba(255, 252, 242, 0.98), rgba(255, 243, 198, 0.96));
|
box-shadow: 0 30px 70px rgba(17, 20, 24, 0.16);
|
||||||
box-shadow:
|
|
||||||
inset 0 0 0 1px rgba(17, 20, 24, 0.06),
|
|
||||||
0 26px 50px rgba(106, 80, 16, 0.14);
|
|
||||||
overflow: visible;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-copy {
|
.ig-editorial-photo {
|
||||||
max-width: 580px;
|
|
||||||
margin: 0;
|
|
||||||
text-align: left;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-kicker {
|
|
||||||
/* All visual styling comes from the shared .eyebrow utility. */
|
|
||||||
display: inline-block;
|
|
||||||
margin: 0 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-copy :global(h2) {
|
|
||||||
max-width: none;
|
|
||||||
margin: 0 0 6px;
|
|
||||||
font-size: 22px;
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-blurb {
|
|
||||||
max-width: 520px;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-button {
|
|
||||||
margin-top: 14px;
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-dog-wrap {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -56px;
|
inset: 0;
|
||||||
bottom: -14px;
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-end;
|
|
||||||
justify-content: center;
|
|
||||||
width: 380px;
|
|
||||||
pointer-events: none;
|
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-dog {
|
.ig-editorial-photo img {
|
||||||
display: block;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: 60% 40%;
|
||||||
|
transform: scale(1.02);
|
||||||
|
transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1800px) {
|
.ig-editorial:hover .ig-editorial-photo img {
|
||||||
.instagram-stage {
|
transform: scale(1.06);
|
||||||
max-width: 1144px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ig-editorial-scrim {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: linear-gradient(
|
||||||
|
100deg,
|
||||||
|
rgba(15, 24, 15, 0.86) 0%,
|
||||||
|
rgba(15, 24, 15, 0.74) 36%,
|
||||||
|
rgba(15, 24, 15, 0.18) 70%,
|
||||||
|
rgba(15, 24, 15, 0) 100%
|
||||||
|
);
|
||||||
|
padding: 48px clamp(28px, 4vw, 56px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-copy {
|
||||||
|
max-width: 480px;
|
||||||
|
color: #fff;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-source {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 12px 6px 10px;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
|
-webkit-backdrop-filter: blur(6px);
|
||||||
|
color: #fff;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-source :global(.icon) {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Specificity bump: #instagram h2 (id+element) lives in the global
|
||||||
|
typography.css and would otherwise win. Prefixing #instagram here
|
||||||
|
matches that specificity so the editorial sizing applies. */
|
||||||
|
#instagram .ig-editorial-copy h2 {
|
||||||
|
margin: 0 0 12px;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: clamp(26px, 3vw, 36px);
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.025em;
|
||||||
|
line-height: 1.08;
|
||||||
|
color: #fff;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-copy p {
|
||||||
|
margin: 0 0 26px;
|
||||||
|
color: rgba(255, 255, 255, 0.78);
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.55;
|
||||||
|
max-width: 36ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 13px 22px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--yellow);
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 800;
|
||||||
|
text-decoration: none;
|
||||||
|
box-shadow: 0 12px 24px rgba(255, 209, 0, 0.32);
|
||||||
|
transition: transform 0.22s ease, box-shadow 0.22s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 18px 32px rgba(255, 209, 0, 0.38);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta :global(.ig-editorial-arrow) {
|
||||||
|
transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta:hover :global(.ig-editorial-arrow) {
|
||||||
|
transform: translateX(3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mobile — stack the photo above the copy so neither gets crushed.
|
||||||
|
Copy centers inside the green panel for a calmer vertical rhythm. */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#instagram {
|
#instagram {
|
||||||
padding-bottom: 120px;
|
padding: 24px 16px 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-panel {
|
.ig-editorial {
|
||||||
padding: 30px 24px 180px;
|
aspect-ratio: auto;
|
||||||
border-radius: 28px;
|
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-copy {
|
.ig-editorial-photo {
|
||||||
|
position: relative;
|
||||||
|
aspect-ratio: 4 / 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-scrim {
|
||||||
|
position: relative;
|
||||||
|
inset: auto;
|
||||||
|
background: var(--gw-green);
|
||||||
|
padding: 28px 22px 32px;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-copy {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
margin: 0 auto;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-copy :global(h2) {
|
#instagram .ig-editorial-copy h2 {
|
||||||
max-width: none;
|
text-align: center;
|
||||||
font-size: inherit;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-blurb {
|
.ig-editorial-copy p {
|
||||||
max-width: none;
|
|
||||||
font-size: inherit;
|
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-button {
|
|
||||||
margin-top: 24px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-dog-wrap {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
left: 50%;
|
.ig-editorial-photo img,
|
||||||
right: auto;
|
.ig-editorial-cta {
|
||||||
bottom: -96px;
|
transition: none;
|
||||||
width: min(300px, calc(100% - 32px));
|
transform: none;
|
||||||
transform: translateX(-50%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-dog {
|
.ig-editorial-cta:hover {
|
||||||
width: 100%;
|
transform: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -155,8 +155,14 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function fieldValue(value: string): string {
|
function toStr(value: unknown): string {
|
||||||
return value.trim() || '—';
|
if (typeof value === 'string') return value;
|
||||||
|
if (value == null) return '';
|
||||||
|
return String(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
function fieldValue(value: unknown): string {
|
||||||
|
return toStr(value).trim() || '—';
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetIdle() {
|
function resetIdle() {
|
||||||
@@ -528,33 +534,7 @@
|
|||||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearOptionalHealthFields() {
|
function buildSubmissionSnapshot(submittedAt: string): SubmissionSummary {
|
||||||
noteInteraction();
|
|
||||||
accessInstructions = '';
|
|
||||||
hasFoodAllergies = 'no';
|
|
||||||
foodAllergiesDetail = '';
|
|
||||||
hasEnvAllergies = 'no';
|
|
||||||
envAllergiesDetail = '';
|
|
||||||
onSpecialDiet = 'no';
|
|
||||||
specialDietDetail = '';
|
|
||||||
onMedication = 'no';
|
|
||||||
medicationDetail = '';
|
|
||||||
|
|
||||||
errors = {
|
|
||||||
...errors,
|
|
||||||
accessInstructions: '',
|
|
||||||
hasFoodAllergies: '',
|
|
||||||
foodAllergiesDetail: '',
|
|
||||||
hasEnvAllergies: '',
|
|
||||||
envAllergiesDetail: '',
|
|
||||||
onSpecialDiet: '',
|
|
||||||
specialDietDetail: '',
|
|
||||||
onMedication: '',
|
|
||||||
medicationDetail: '',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function buildSubmissionSnapshot(submittedAt: string): SubmissionSummary {
|
|
||||||
return {
|
return {
|
||||||
submittedAt,
|
submittedAt,
|
||||||
sections: [
|
sections: [
|
||||||
@@ -651,22 +631,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
submitting = true;
|
submitting = true;
|
||||||
signedOnDate = new Date().toISOString();
|
|
||||||
const submissionSnapshot = buildSubmissionSnapshot(signedOnDate);
|
|
||||||
|
|
||||||
const medicalNotes = [
|
|
||||||
temperament.trim(),
|
|
||||||
hasFoodAllergies === 'yes' ? `Food allergies: ${foodAllergiesDetail.trim()}` : '',
|
|
||||||
hasEnvAllergies === 'yes' ? `Environmental allergies: ${envAllergiesDetail.trim()}` : '',
|
|
||||||
onSpecialDiet === 'yes' ? `Special diet: ${specialDietDetail.trim()}` : '',
|
|
||||||
onMedication === 'yes' ? `Medication: ${medicationDetail.trim()}` : '',
|
|
||||||
additionalNotes.trim(),
|
|
||||||
].filter(Boolean).join('\n');
|
|
||||||
|
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutId = window.setTimeout(() => controller.abort(), 25000);
|
const timeoutId = window.setTimeout(() => controller.abort(), 25000);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
signedOnDate = new Date().toISOString();
|
||||||
|
const submissionSnapshot = buildSubmissionSnapshot(signedOnDate);
|
||||||
|
|
||||||
|
const medicalNotes = [
|
||||||
|
toStr(temperament).trim(),
|
||||||
|
hasFoodAllergies === 'yes' ? `Food allergies: ${toStr(foodAllergiesDetail).trim()}` : '',
|
||||||
|
hasEnvAllergies === 'yes' ? `Environmental allergies: ${toStr(envAllergiesDetail).trim()}` : '',
|
||||||
|
onSpecialDiet === 'yes' ? `Special diet: ${toStr(specialDietDetail).trim()}` : '',
|
||||||
|
onMedication === 'yes' ? `Medication: ${toStr(medicationDetail).trim()}` : '',
|
||||||
|
toStr(additionalNotes).trim(),
|
||||||
|
].filter(Boolean).join('\n');
|
||||||
|
|
||||||
const response = await fetch('/api/onboarding-submit', {
|
const response = await fetch('/api/onboarding-submit', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
@@ -1148,13 +1129,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-subsection-actions">
|
|
||||||
<button class="subsection-quick-action" type="button" on:click={clearOptionalHealthFields}>
|
|
||||||
<Icon name="fas fa-check" />
|
|
||||||
Clear optional health details
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label class="field">
|
<label class="field">
|
||||||
<span>Home access instructions</span>
|
<span>Home access instructions</span>
|
||||||
<textarea
|
<textarea
|
||||||
@@ -2060,12 +2034,6 @@
|
|||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-subsection-actions {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-start;
|
|
||||||
margin: -2px 0 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-subsection-head h3 {
|
.panel-subsection-head h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #171b20;
|
color: #171b20;
|
||||||
@@ -2097,40 +2065,7 @@
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subsection-quick-action {
|
.onboarding-step-icon {
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
min-height: 42px;
|
|
||||||
padding: 0 14px;
|
|
||||||
border: 1px solid rgba(33, 48, 33, 0.12);
|
|
||||||
border-radius: 999px;
|
|
||||||
background: rgba(255, 255, 255, 0.92);
|
|
||||||
color: rgba(33, 48, 33, 0.84);
|
|
||||||
font: inherit;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 700;
|
|
||||||
cursor: pointer;
|
|
||||||
transition:
|
|
||||||
border-color 0.18s ease,
|
|
||||||
background 0.18s ease,
|
|
||||||
transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
|
|
||||||
box-shadow 0.18s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.subsection-quick-action:hover {
|
|
||||||
border-color: rgba(33, 48, 33, 0.22);
|
|
||||||
background: #fff;
|
|
||||||
transform: translateY(-1px);
|
|
||||||
box-shadow: 0 8px 18px rgba(17, 20, 24, 0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.subsection-quick-action:focus-visible {
|
|
||||||
outline: none;
|
|
||||||
box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.14);
|
|
||||||
}
|
|
||||||
|
|
||||||
.onboarding-step-icon {
|
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
@@ -2803,8 +2738,7 @@
|
|||||||
.confirm-row,
|
.confirm-row,
|
||||||
.yn-btn,
|
.yn-btn,
|
||||||
.recall-btn,
|
.recall-btn,
|
||||||
.chip-option,
|
.chip-option {
|
||||||
.subsection-quick-action {
|
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2965,10 +2899,6 @@
|
|||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-subsection-actions {
|
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-subsection-head h3 {
|
.panel-subsection-head h3 {
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
@@ -2985,12 +2915,7 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subsection-quick-action {
|
.signature-header {
|
||||||
width: 100%;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.signature-header {
|
|
||||||
align-items: start;
|
align-items: start;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,36 +54,36 @@ describe('OnboardingPage', () => {
|
|||||||
await waitFor(() => expect(screen.getByPlaceholderText('First name')).toBeInTheDocument());
|
await waitFor(() => expect(screen.getByPlaceholderText('First name')).toBeInTheDocument());
|
||||||
|
|
||||||
await fireEvent.input(screen.getByPlaceholderText('First name'), { target: { value: 'Alex' } });
|
await fireEvent.input(screen.getByPlaceholderText('First name'), { target: { value: 'Alex' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Surname'), { target: { value: 'Walker' } });
|
await fireEvent.input(screen.getByPlaceholderText('Last name'), { target: { value: 'Walker' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('you@example.com'), { target: { value: 'alex@example.com' } });
|
await fireEvent.input(screen.getByPlaceholderText('you@example.com'), { target: { value: 'alex@example.com' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('021 234 5678'), { target: { value: '0212345678' } });
|
await fireEvent.input(screen.getByPlaceholderText('021 234 5678'), { target: { value: '0212345678' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Street address'), { target: { value: '1 Test Street' } });
|
await fireEvent.input(screen.getByPlaceholderText('Street, suburb, city'), { target: { value: '1 Test Street' } });
|
||||||
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
||||||
|
|
||||||
await waitFor(() => expect(screen.getByPlaceholderText('Dog name')).toBeInTheDocument());
|
await waitFor(() => expect(screen.getByPlaceholderText('Dog name')).toBeInTheDocument());
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Dog name'), { target: { value: 'Milo' } });
|
await fireEvent.input(screen.getByPlaceholderText('Dog name'), { target: { value: 'Milo' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Breed'), { target: { value: 'Spoodle' } });
|
await fireEvent.input(screen.getByPlaceholderText('e.g. Labrador, Cavoodle, mixed'), { target: { value: 'Spoodle' } });
|
||||||
await fireEvent.input(screen.getByLabelText(/date of birth/i), { target: { value: '2020-01-01' } });
|
await fireEvent.input(screen.getByLabelText(/date of birth/i), { target: { value: '2020-01-01' } });
|
||||||
await clickService('Tiny Gang Pack Walks');
|
await clickService('Tiny Gang Pack Walks');
|
||||||
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
||||||
|
|
||||||
await waitFor(() => expect(screen.getByPlaceholderText('Vet clinic or vet name')).toBeInTheDocument());
|
await waitFor(() => expect(screen.getByPlaceholderText('Clinic name or your usual vet')).toBeInTheDocument());
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Vet clinic or vet name'), { target: { value: 'Grey Lynn Vets' } });
|
await fireEvent.input(screen.getByPlaceholderText('Clinic name or your usual vet'), { target: { value: 'Grey Lynn Vets' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Vet phone number'), { target: { value: '099999999' } });
|
await fireEvent.input(screen.getByPlaceholderText('Clinic phone number'), { target: { value: '099999999' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Vet address'), { target: { value: '2 Vet Street' } });
|
await fireEvent.input(screen.getByPlaceholderText('Clinic address'), { target: { value: '2 Vet Street' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Emergency contact name'), { target: { value: 'Jamie Walker' } });
|
await fireEvent.input(screen.getByPlaceholderText('Full name'), { target: { value: 'Jamie Walker' } });
|
||||||
await fireEvent.input(screen.getByPlaceholderText('Emergency contact number'), { target: { value: '0211111111' } });
|
await fireEvent.input(screen.getByPlaceholderText('Phone number'), { target: { value: '0211111111' } });
|
||||||
await chooseOption(/is your dog vaccinated/i, 'Yes');
|
await chooseOption(/vaccinations up to date/i, 'Yes');
|
||||||
await chooseOption(/does your dog have any food allergies/i, 'No');
|
await chooseOption(/^Any food allergies\?$/i, 'No');
|
||||||
await chooseOption(/does your dog have any environmental allergies/i, 'No');
|
await chooseOption(/^Any environmental allergies\?$/i, 'No');
|
||||||
await chooseOption(/is your dog on a special diet/i, 'No');
|
await chooseOption(/^On a special diet\?$/i, 'No');
|
||||||
await chooseOption(/is your dog taking any medication/i, 'No');
|
await chooseOption(/medication that could affect walks/i, 'No');
|
||||||
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
||||||
|
|
||||||
await waitFor(() => expect(screen.getByText(/registered with council/i)).toBeInTheDocument());
|
await waitFor(() => expect(screen.getByText(/registered with council/i)).toBeInTheDocument());
|
||||||
await chooseOption(/registered with council/i, 'Yes');
|
await chooseOption(/registered with council/i, 'Yes');
|
||||||
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
await fireEvent.click(screen.getByRole('button', { name: /save and continue/i }));
|
||||||
|
|
||||||
await waitFor(() => expect(screen.getByText(/anything else you'd like us to know/i)).toBeInTheDocument());
|
await waitFor(() => expect(screen.getByText(/anything else we should know/i)).toBeInTheDocument());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -41,18 +41,18 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{#if pageContent.comparison}
|
{#if pageContent.comparison}
|
||||||
<section use:reveal id="pricing-chooser" class="pricing-guide reveal-block">
|
<section use:reveal={{ distance: 0 }} id="pricing-chooser" class="pricing-guide reveal-block">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="pricing-guide-heading">
|
<div class="pricing-guide-heading fade-up">
|
||||||
<span class="eyebrow">{pageContent.comparison.title}</span>
|
<span class="eyebrow">{pageContent.comparison.title}</span>
|
||||||
{#if pageContent.comparison.intro}
|
{#if pageContent.comparison.intro}
|
||||||
<h2>{pageContent.comparison.intro}</h2>
|
<h2>{pageContent.comparison.intro}</h2>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pricing-chooser-grid">
|
<div class="pricing-chooser-grid stagger-children">
|
||||||
{#each pageContent.sections as section, sectionIndex}
|
{#each pageContent.sections as section, sectionIndex}
|
||||||
<article class="pricing-chooser-card">
|
<article class="pricing-chooser-card fade-up">
|
||||||
{#if section.imageUrl}
|
{#if section.imageUrl}
|
||||||
<div class="pricing-chooser-image-wrap">
|
<div class="pricing-chooser-image-wrap">
|
||||||
<img class="pricing-chooser-image" src={section.imageUrl} alt={section.imageAlt ?? section.title} loading="lazy" decoding="async" />
|
<img class="pricing-chooser-image" src={section.imageUrl} alt={section.imageAlt ?? section.title} loading="lazy" decoding="async" />
|
||||||
@@ -103,19 +103,19 @@
|
|||||||
|
|
||||||
{#each pageContent.sections as section, sectionIndex}
|
{#each pageContent.sections as section, sectionIndex}
|
||||||
<section
|
<section
|
||||||
use:reveal
|
use:reveal={{ distance: 0 }}
|
||||||
id={`pricing-section-${sectionIndex}`}
|
id={`pricing-section-${sectionIndex}`}
|
||||||
class:pricing-detail--alt={sectionIndex % 2 === 1}
|
class:pricing-detail--alt={sectionIndex % 2 === 1}
|
||||||
class="pricing-detail reveal-block"
|
class="pricing-detail reveal-block"
|
||||||
>
|
>
|
||||||
<div class="page-inner pricing-detail-inner">
|
<div class="page-inner pricing-detail-inner">
|
||||||
<div class:pricing-detail-media--right={sectionIndex % 2 === 1} class="pricing-detail-media">
|
<div class:pricing-detail-media--right={sectionIndex % 2 === 1} class="pricing-detail-media scale-soft">
|
||||||
{#if section.imageUrl}
|
{#if section.imageUrl}
|
||||||
<img src={section.imageUrl} alt={section.imageAlt ?? section.title} loading="lazy" decoding="async" />
|
<img src={section.imageUrl} alt={section.imageAlt ?? section.title} loading="lazy" decoding="async" />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pricing-detail-copy">
|
<div class="pricing-detail-copy fade-up">
|
||||||
{#if section.eyebrow}
|
{#if section.eyebrow}
|
||||||
<p class="eyebrow pricing-detail-eyebrow">{section.eyebrow}</p>
|
<p class="eyebrow pricing-detail-eyebrow">{section.eyebrow}</p>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -158,14 +158,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="page-inner pricing-plan-shell">
|
<div class="page-inner pricing-plan-shell fade-up">
|
||||||
<div class:pricing-plan-grid-three={section.plans.length === 3} class="pricing-plan-grid">
|
<div class:pricing-plan-grid-three={section.plans.length === 3} class="pricing-plan-grid">
|
||||||
{#each decoratePlans(section.plans) as plan}
|
{#each decoratePlans(section.plans) as plan}
|
||||||
<PricingPlanCard {plan} variant="pricing" hideCtaOnMobile={true} />
|
<PricingPlanCard {plan} variant="pricing" hideCtaOnMobile={true} />
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="btn btn-yellow pricing-section-mobile-cta" href="#newlead">
|
<a class="btn btn-yellow pricing-section-mobile-cta cta-shimmer" href="#newlead">
|
||||||
Book a Meet & Greet
|
Book a Meet & Greet
|
||||||
<Icon name="fas fa-arrow-right" />
|
<Icon name="fas fa-arrow-right" />
|
||||||
</a>
|
</a>
|
||||||
@@ -173,8 +173,8 @@
|
|||||||
</section>
|
</section>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
<section use:reveal class="pricing-worth reveal-block" aria-labelledby="pricing-worth-heading">
|
<section use:reveal={{ distance: 0 }} class="pricing-worth reveal-block" aria-labelledby="pricing-worth-heading">
|
||||||
<div class="page-inner pricing-worth-inner">
|
<div class="page-inner pricing-worth-inner fade-up">
|
||||||
<span class="eyebrow eyebrow--accent pricing-worth-kicker">On the price</span>
|
<span class="eyebrow eyebrow--accent pricing-worth-kicker">On the price</span>
|
||||||
<h2 id="pricing-worth-heading">A better walk costs more.</h2>
|
<h2 id="pricing-worth-heading">A better walk costs more.</h2>
|
||||||
|
|
||||||
@@ -188,16 +188,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section use:reveal class="pricing-included reveal-block">
|
<section use:reveal={{ distance: 0 }} class="pricing-included reveal-block">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="pricing-included-heading">
|
<div class="pricing-included-heading fade-up">
|
||||||
<span class="eyebrow">Every booking</span>
|
<span class="eyebrow">Every booking</span>
|
||||||
<h2>Easy to start. Easy to trust.</h2>
|
<h2>Easy to start. Easy to trust.</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="pricing-included-list" aria-label="What every Goodwalk booking includes">
|
<ul class="pricing-included-list stagger-children" aria-label="What every Goodwalk booking includes">
|
||||||
{#each includedPromises as promise}
|
{#each includedPromises as promise}
|
||||||
<li>
|
<li class="fade-up">
|
||||||
<span class="pricing-included-icon" aria-hidden="true">
|
<span class="pricing-included-icon" aria-hidden="true">
|
||||||
<Icon name={promise.icon} />
|
<Icon name={promise.icon} />
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -179,7 +179,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{#if pageContent.highlight}
|
{#if pageContent.highlight}
|
||||||
<section use:reveal class="service-highlight reveal-block">
|
<section use:reveal={{ distance: 0 }} class="service-highlight reveal-block">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class:service-highlight-layout-points={pageContent.highlight.points?.length} class="service-highlight-layout">
|
<div class:service-highlight-layout-points={pageContent.highlight.points?.length} class="service-highlight-layout">
|
||||||
<div class="service-highlight-copy">
|
<div class="service-highlight-copy">
|
||||||
@@ -187,9 +187,9 @@
|
|||||||
<h2>{pageContent.highlight.title}</h2>
|
<h2>{pageContent.highlight.title}</h2>
|
||||||
|
|
||||||
{#if pageContent.highlight.points?.length}
|
{#if pageContent.highlight.points?.length}
|
||||||
<div class="service-highlight-points">
|
<div class="service-highlight-points stagger-children">
|
||||||
{#each pageContent.highlight.points as point}
|
{#each pageContent.highlight.points as point}
|
||||||
<article class="service-highlight-point">
|
<article class="service-highlight-point fade-up">
|
||||||
<h3>{point.title}</h3>
|
<h3>{point.title}</h3>
|
||||||
<p>{point.body}</p>
|
<p>{point.body}</p>
|
||||||
</article>
|
</article>
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<section use:reveal class="service-benefits reveal-block">
|
<section use:reveal={{ distance: 0 }} class="service-benefits reveal-block">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="service-section-heading">
|
<div class="service-section-heading">
|
||||||
<h2>{pageContent.benefits.title}</h2>
|
<h2>{pageContent.benefits.title}</h2>
|
||||||
@@ -244,12 +244,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="service-benefit-shell">
|
<div class="service-benefit-shell">
|
||||||
<div bind:this={benefitScroller} class:service-benefit-grid-simple-swipe={useSimpleBenefitSwipe} class="service-benefit-grid">
|
<div bind:this={benefitScroller} class:service-benefit-grid-simple-swipe={useSimpleBenefitSwipe} class="service-benefit-grid stagger-children">
|
||||||
{#each benefitCards as benefit, index}
|
{#each benefitCards as benefit, index}
|
||||||
<article
|
<article
|
||||||
class:active={index === activeBenefitIndex}
|
class:active={index === activeBenefitIndex}
|
||||||
class:service-benefit-card-featured={benefit.featured}
|
class:service-benefit-card-featured={benefit.featured}
|
||||||
class={`service-benefit-card ${benefit.tintClass}`}
|
class={`service-benefit-card fade-up ${benefit.tintClass}`}
|
||||||
>
|
>
|
||||||
<div class="service-benefit-icon" aria-hidden="true">
|
<div class="service-benefit-icon" aria-hidden="true">
|
||||||
<Icon name={benefit.icon ?? 'fas fa-paw'} />
|
<Icon name={benefit.icon ?? 'fas fa-paw'} />
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if pageContent.decision}
|
{#if pageContent.decision}
|
||||||
<section class:service-decision-pack={isPackWalks} class:service-decision-dog={isDogWalking} use:reveal class="service-decision reveal-block" aria-labelledby="service-decision-heading">
|
<section class:service-decision-pack={isPackWalks} class:service-decision-dog={isDogWalking} use:reveal={{ distance: 0 }} class="service-decision reveal-block" aria-labelledby="service-decision-heading">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="service-decision-card">
|
<div class="service-decision-card">
|
||||||
<div class="service-decision-header">
|
<div class="service-decision-header">
|
||||||
@@ -356,8 +356,8 @@
|
|||||||
{decisionIntro}
|
{decisionIntro}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="service-decision-grid">
|
<div class="service-decision-grid stagger-children">
|
||||||
<div class="service-decision-col service-decision-col-fit">
|
<div class="service-decision-col service-decision-col-fit fade-up">
|
||||||
<span class="service-decision-col-kicker service-decision-col-kicker-fit">{decisionFitKicker}</span>
|
<span class="service-decision-col-kicker service-decision-col-kicker-fit">{decisionFitKicker}</span>
|
||||||
<h3>{pageContent.decision.fitTitle ?? 'A good fit if your dog:'}</h3>
|
<h3>{pageContent.decision.fitTitle ?? 'A good fit if your dog:'}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -371,7 +371,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="service-decision-col service-decision-col-not">
|
<div class="service-decision-col service-decision-col-not fade-up">
|
||||||
<span class="service-decision-col-kicker service-decision-col-kicker-not">{decisionNotKicker}</span>
|
<span class="service-decision-col-kicker service-decision-col-kicker-not">{decisionNotKicker}</span>
|
||||||
<h3>{pageContent.decision.notFitTitle ?? 'Probably not a fit if:'}</h3>
|
<h3>{pageContent.decision.notFitTitle ?? 'Probably not a fit if:'}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -395,7 +395,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<section
|
<section
|
||||||
use:reveal
|
use:reveal={{ distance: 0 }}
|
||||||
class:service-pricing-immediate-mobile={useSimpleBenefitSwipe}
|
class:service-pricing-immediate-mobile={useSimpleBenefitSwipe}
|
||||||
class:service-pricing-pack={isPackWalks}
|
class:service-pricing-pack={isPackWalks}
|
||||||
class="service-pricing reveal-block"
|
class="service-pricing reveal-block"
|
||||||
@@ -410,7 +410,7 @@
|
|||||||
|
|
||||||
<div class:service-plan-grid-three={pageContent.pricing.plans.length === 3} class="service-plan-grid">
|
<div class:service-plan-grid-three={pageContent.pricing.plans.length === 3} class="service-plan-grid">
|
||||||
{#each pricingPlans as plan}
|
{#each pricingPlans as plan}
|
||||||
<PricingPlanCard {plan} variant="service" />
|
<PricingPlanCard {plan} variant="service" hideCtaOnMobile={true} />
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -426,7 +426,7 @@
|
|||||||
Every booking starts with a free, no-obligation Meet & Greet.
|
Every booking starts with a free, no-obligation Meet & Greet.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a class="btn btn-yellow btn-mobile-center service-plan-mobile-cta" href="#newlead">Book a Meet & Greet</a>
|
<a class="btn btn-yellow btn-mobile-center service-plan-mobile-cta cta-shimmer" href="#newlead">Book a Meet & Greet</a>
|
||||||
|
|
||||||
{#if pageContent.pricing.extras?.length}
|
{#if pageContent.pricing.extras?.length}
|
||||||
<div class="service-extras" aria-labelledby="service-extras-heading">
|
<div class="service-extras" aria-labelledby="service-extras-heading">
|
||||||
@@ -437,9 +437,9 @@
|
|||||||
</span>
|
</span>
|
||||||
<h3 id="service-extras-heading" class="service-extras-title">Optional extras</h3>
|
<h3 id="service-extras-heading" class="service-extras-title">Optional extras</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="service-extras-grid">
|
<div class="service-extras-grid stagger-children">
|
||||||
{#each pageContent.pricing.extras as extra}
|
{#each pageContent.pricing.extras as extra}
|
||||||
<article class="service-extra-card">
|
<article class="service-extra-card fade-up">
|
||||||
<div class="service-extra-card-body">
|
<div class="service-extra-card-body">
|
||||||
<span class="service-extra-card-label">{extra.label}</span>
|
<span class="service-extra-card-label">{extra.label}</span>
|
||||||
{#if extra.note}
|
{#if extra.note}
|
||||||
@@ -515,15 +515,15 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if showRelatedServices}
|
{#if showRelatedServices}
|
||||||
<section use:reveal class="service-related reveal-block" aria-label="Other services">
|
<section use:reveal={{ distance: 0 }} class="service-related reveal-block" aria-label="Other services">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="service-section-heading">
|
<div class="service-section-heading">
|
||||||
<h2>Explore our other services</h2>
|
<h2>Explore our other services</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="service-related-grid">
|
<div class="service-related-grid stagger-children">
|
||||||
{#each relatedCards as card, i}
|
{#each relatedCards as card, i}
|
||||||
<a class="service-related-card service-related-tint-{i % 4}" href={card.href}>
|
<a class="service-related-card fade-up service-related-tint-{i % 4}" href={card.href}>
|
||||||
<div class="service-related-icon" aria-hidden="true">
|
<div class="service-related-icon" aria-hidden="true">
|
||||||
<Icon name={card.icon} />
|
<Icon name={card.icon} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -67,22 +67,22 @@
|
|||||||
.map(({ service }) => service);
|
.map(({ service }) => service);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section id="services" use:reveal={{ delay: 20 }} class="reveal-block">
|
<section id="services" use:reveal={{ delay: 20, distance: 0 }} class="reveal-block">
|
||||||
<div class="services-inner">
|
<div class="services-inner">
|
||||||
<div class="section-header">
|
<div class="section-header fade-up">
|
||||||
<h2 class="section-heading">{heading}</h2>
|
<h2 class="section-heading">{heading}</h2>
|
||||||
<p class="section-intro services-intro">{intro}</p>
|
<p class="section-intro services-intro">{intro}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="services-grid">
|
<div class="services-grid stagger-children">
|
||||||
{#each orderedServices as service}
|
{#each orderedServices as service}
|
||||||
{@const meta = serviceMeta[service.title]}
|
{@const meta = serviceMeta[service.title]}
|
||||||
<a
|
<a
|
||||||
href={service.href}
|
href={service.href}
|
||||||
class:service-card-featured={meta?.featured}
|
class:service-card-featured={meta?.featured}
|
||||||
class="service-card"
|
class="service-card fade-up"
|
||||||
aria-label={`${service.title} — view service page`}
|
aria-label={`${service.title} — view service page`}
|
||||||
>
|
>
|
||||||
<div class="service-card-media">
|
<div class="service-card-media">
|
||||||
@@ -452,4 +452,15 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tier choreography — header settles, then the three cards cascade. */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:global(.reveal-visible) .section-header {
|
||||||
|
transition-delay: 40ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.reveal-visible) .services-grid > :nth-child(1) { transition-delay: 180ms; }
|
||||||
|
:global(.reveal-visible) .services-grid > :nth-child(2) { transition-delay: 260ms; }
|
||||||
|
:global(.reveal-visible) .services-grid > :nth-child(3) { transition-delay: 340ms; }
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
cta={{ label: 'Book a Meet & Greet', href: '#newlead', variant: 'yellow' }}
|
cta={{ label: 'Book a Meet & Greet', href: '#newlead', variant: 'yellow' }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<section use:reveal class="testimonials-page-grid-section reveal-block">
|
<section use:reveal={{ threshold: 0.02 }} class="testimonials-page-grid-section reveal-block">
|
||||||
<div class="page-inner">
|
<div class="page-inner">
|
||||||
<div class="testimonials-page-grid">
|
<div class="testimonials-page-grid">
|
||||||
{#each testimonialCards as testimonial}
|
{#each testimonialCards as testimonial}
|
||||||
@@ -399,43 +399,41 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
transition:
|
transition:
|
||||||
opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
|
opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
|
||||||
transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
|
transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
|
|
||||||
border-color 0.24s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(1) {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(1) {
|
||||||
transition-delay: 60ms;
|
transition-delay: 0ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(2) {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(2) {
|
||||||
transition-delay: 140ms;
|
transition-delay: 50ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(3) {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(3) {
|
||||||
transition-delay: 220ms;
|
transition-delay: 100ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(4) {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(4) {
|
||||||
transition-delay: 300ms;
|
transition-delay: 150ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(5) {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(5) {
|
||||||
transition-delay: 380ms;
|
transition-delay: 200ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(6) {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-card:nth-child(6) {
|
||||||
transition-delay: 460ms;
|
transition-delay: 250ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-google-cta-wrap {
|
:global(.reveal-visible.reveal-block).testimonials-page-grid-section .testimonials-page-google-cta-wrap {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
transition:
|
transition:
|
||||||
opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
|
opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
|
||||||
transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
|
transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
transition-delay: 240ms;
|
transition-delay: 140ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
@@ -482,7 +480,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1400px) {
|
@media (min-width: 1180px) {
|
||||||
.testimonials-page-grid {
|
.testimonials-page-grid {
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
max-width: 1500px;
|
max-width: 1500px;
|
||||||
|
|||||||
@@ -181,10 +181,10 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section id="testimonials" use:reveal={{ delay: 40 }} class="reveal-block">
|
<section id="testimonials" use:reveal={{ delay: 40, distance: 0 }} class="reveal-block">
|
||||||
<div class="testimonials-inner">
|
<div class="testimonials-inner">
|
||||||
<div class="testimonials-header">
|
<div class="testimonials-header">
|
||||||
<div class="testimonials-header-main">
|
<div class="testimonials-header-main fade-up">
|
||||||
<span class="eyebrow testimonials-eyebrow">
|
<span class="eyebrow testimonials-eyebrow">
|
||||||
<Icon name="fas fa-star" className="testimonials-eyebrow-star" />
|
<Icon name="fas fa-star" className="testimonials-eyebrow-star" />
|
||||||
{eyebrow}
|
{eyebrow}
|
||||||
@@ -192,13 +192,13 @@
|
|||||||
<h2 class="section-heading">{heading}</h2>
|
<h2 class="section-heading">{heading}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="testimonials-header-side">
|
<div class="testimonials-header-side fade-up">
|
||||||
<div class="testimonials-intro">
|
<div class="testimonials-intro">
|
||||||
<p>{blurb}</p>
|
<p>{blurb}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="testimonials-cta-row">
|
<div class="testimonials-cta-row">
|
||||||
<a href={testimonialsHref} class="btn btn-yellow testimonials-cta testimonials-cta-primary">
|
<a href={testimonialsHref} class="btn btn-yellow testimonials-cta testimonials-cta-primary cta-shimmer">
|
||||||
<Icon name="fas fa-comment-dots" />
|
<Icon name="fas fa-comment-dots" />
|
||||||
<span class="testimonials-cta-label-desktop">All testimonials</span>
|
<span class="testimonials-cta-label-desktop">All testimonials</span>
|
||||||
<span class="testimonials-cta-label-mobile">Testimonials</span>
|
<span class="testimonials-cta-label-mobile">Testimonials</span>
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
{#if slides.length}
|
{#if slides.length}
|
||||||
<div
|
<div
|
||||||
bind:this={carouselEl}
|
bind:this={carouselEl}
|
||||||
class="testimonials-carousel"
|
class="testimonials-carousel scale-soft"
|
||||||
role="region"
|
role="region"
|
||||||
aria-label="Customer testimonials"
|
aria-label="Customer testimonials"
|
||||||
on:mouseenter={() => (paused = true)}
|
on:mouseenter={() => (paused = true)}
|
||||||
@@ -527,6 +527,12 @@
|
|||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:global(.reveal-visible) .testimonials-header-main { transition-delay: 40ms; }
|
||||||
|
:global(.reveal-visible) .testimonials-header-side { transition-delay: 140ms; }
|
||||||
|
:global(.reveal-visible) .testimonials-carousel { transition-delay: 260ms; }
|
||||||
|
}
|
||||||
|
|
||||||
.testimonial-stage {
|
.testimonial-stage {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -84,15 +84,15 @@
|
|||||||
.map(({ value }) => value);
|
.map(({ value }) => value);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section id="values" use:reveal={{ delay: 30 }} class="reveal-block">
|
<section id="values" use:reveal={{ delay: 30, distance: 0 }} class="reveal-block">
|
||||||
<div class="values-inner">
|
<div class="values-inner">
|
||||||
<div class="section-header">
|
<div class="section-header fade-up">
|
||||||
<h2 class="section-heading">Calmer dogs. Calmer evenings.</h2>
|
<h2 class="section-heading">Calmer dogs. Calmer evenings.</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="values-photo-grid" aria-label="Goodwalk client dogs">
|
<div class="values-photo-grid stagger-children stagger-tight" aria-label="Goodwalk client dogs">
|
||||||
{#each clientPhotoCards as photo, index}
|
{#each clientPhotoCards as photo, index}
|
||||||
<figure class:values-photo-card-featured={index === 0} class="values-photo-card">
|
<figure class:values-photo-card-featured={index === 0} class="values-photo-card fade-up">
|
||||||
{#if photo.enhanced}
|
{#if photo.enhanced}
|
||||||
<enhanced:img
|
<enhanced:img
|
||||||
class="values-photo-image"
|
class="values-photo-image"
|
||||||
@@ -120,9 +120,9 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="values-bento values-contrast">
|
<div class="values-bento values-contrast stagger-children">
|
||||||
{#each stakes as stake, index}
|
{#each stakes as stake, index}
|
||||||
<article class:values-contrast-cell-good={index === 1} class="values-contrast-cell">
|
<article class:values-contrast-cell-good={index === 1} class="values-contrast-cell fade-up">
|
||||||
<div class="values-contrast-head">
|
<div class="values-contrast-head">
|
||||||
<span class:values-contrast-label-good={index === 1} class="values-contrast-label">
|
<span class:values-contrast-label-good={index === 1} class="values-contrast-label">
|
||||||
{stake.label}
|
{stake.label}
|
||||||
@@ -149,13 +149,13 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="values-points-header">
|
<div class="values-points-header fade-up">
|
||||||
<h3 class="values-points-title">Things we don't treat as extras</h3>
|
<h3 class="values-points-title">Things we don't treat as extras</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="values-bento values-points">
|
<div class="values-bento values-points stagger-children">
|
||||||
{#each orderedValues as value}
|
{#each orderedValues as value}
|
||||||
<div class="values-point">
|
<div class="values-point fade-up">
|
||||||
<div class="values-point-icon">
|
<div class="values-point-icon">
|
||||||
<Icon name={value.icon} className="values-point-glyph" />
|
<Icon name={value.icon} className="values-point-glyph" />
|
||||||
</div>
|
</div>
|
||||||
@@ -627,4 +627,25 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tier choreography — header, then photo gallery cascades tight,
|
||||||
|
contrast cells settle, then the bottom-row "extras" cascade. */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:global(.reveal-visible) .values-inner > .section-header { transition-delay: 40ms; }
|
||||||
|
|
||||||
|
:global(.reveal-visible) .values-photo-grid > :nth-child(1) { transition-delay: 160ms; }
|
||||||
|
:global(.reveal-visible) .values-photo-grid > :nth-child(2) { transition-delay: 220ms; }
|
||||||
|
:global(.reveal-visible) .values-photo-grid > :nth-child(3) { transition-delay: 280ms; }
|
||||||
|
:global(.reveal-visible) .values-photo-grid > :nth-child(4) { transition-delay: 340ms; }
|
||||||
|
:global(.reveal-visible) .values-photo-grid > :nth-child(5) { transition-delay: 400ms; }
|
||||||
|
|
||||||
|
:global(.reveal-visible) .values-contrast > :nth-child(1) { transition-delay: 460ms; }
|
||||||
|
:global(.reveal-visible) .values-contrast > :nth-child(2) { transition-delay: 540ms; }
|
||||||
|
|
||||||
|
:global(.reveal-visible) .values-points-header { transition-delay: 620ms; }
|
||||||
|
:global(.reveal-visible) .values-points > :nth-child(1) { transition-delay: 680ms; }
|
||||||
|
:global(.reveal-visible) .values-points > :nth-child(2) { transition-delay: 740ms; }
|
||||||
|
:global(.reveal-visible) .values-points > :nth-child(3) { transition-delay: 800ms; }
|
||||||
|
:global(.reveal-visible) .values-points > :nth-child(n + 4) { transition-delay: 860ms; }
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -26,6 +26,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type LifecycleStatus = 'active' | 'paused' | 'cancelled' | 'archived';
|
||||||
|
|
||||||
|
type Lifecycle = {
|
||||||
|
status: LifecycleStatus;
|
||||||
|
reason: string;
|
||||||
|
changedAt: string;
|
||||||
|
changedBy: string;
|
||||||
|
};
|
||||||
|
|
||||||
type AllClient = {
|
type AllClient = {
|
||||||
email: string;
|
email: string;
|
||||||
fullName: string;
|
fullName: string;
|
||||||
@@ -33,10 +42,22 @@
|
|||||||
dogName: string;
|
dogName: string;
|
||||||
dogBreed: string;
|
dogBreed: string;
|
||||||
status: 'pending' | 'completed';
|
status: 'pending' | 'completed';
|
||||||
|
lifecycle: Lifecycle;
|
||||||
lastActivityAt: string;
|
lastActivityAt: string;
|
||||||
welcomePackSentAt: string;
|
welcomePackSentAt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const lifecycleOptions: { value: LifecycleStatus; label: string; description: string }[] = [
|
||||||
|
{ value: 'active', label: 'Active', description: 'Currently a client. Included in outreach.' },
|
||||||
|
{ value: 'paused', label: 'Paused', description: 'Temporarily not walking. Still included in outreach.' },
|
||||||
|
{ value: 'cancelled', label: 'Cancelled', description: 'No longer a client. Excluded from outreach but kept on file.' },
|
||||||
|
{ value: 'archived', label: 'Archived', description: 'Long-term inactive. Hidden from outreach but kept for records.' },
|
||||||
|
];
|
||||||
|
|
||||||
|
function lifecycleLabel(status: LifecycleStatus): string {
|
||||||
|
return lifecycleOptions.find((o) => o.value === status)?.label ?? status;
|
||||||
|
}
|
||||||
|
|
||||||
type BirthdayClient = {
|
type BirthdayClient = {
|
||||||
email: string;
|
email: string;
|
||||||
fullName: string;
|
fullName: string;
|
||||||
@@ -126,6 +147,118 @@
|
|||||||
let confirmPreview = false;
|
let confirmPreview = false;
|
||||||
let confirmBusy = false;
|
let confirmBusy = false;
|
||||||
let confirmError = '';
|
let confirmError = '';
|
||||||
|
let confirmPreviewHtml = '';
|
||||||
|
let confirmPreviewBusy = false;
|
||||||
|
let confirmPreviewToken = 0;
|
||||||
|
|
||||||
|
async function fetchConfirmPreview(ctx: ConfirmContext) {
|
||||||
|
const token = getToken();
|
||||||
|
if (!token) return;
|
||||||
|
const stamp = ++confirmPreviewToken;
|
||||||
|
confirmPreviewBusy = true;
|
||||||
|
try {
|
||||||
|
let url = '';
|
||||||
|
let body: Record<string, unknown> = {};
|
||||||
|
if (ctx.kind === 'welcome') {
|
||||||
|
url = '/api/owner/render-welcome-pack';
|
||||||
|
body = {
|
||||||
|
email: ctx.client.email,
|
||||||
|
serviceType: ctx.serviceType,
|
||||||
|
priceDetails: ctx.priceDetails,
|
||||||
|
startDate: ctx.startDate,
|
||||||
|
};
|
||||||
|
} else if (ctx.kind === 'birthday') {
|
||||||
|
url = '/api/owner/render-birthday-email';
|
||||||
|
body = { email: ctx.client.email };
|
||||||
|
} else {
|
||||||
|
// 'message' uses the live preview already rendered in the messaging tab.
|
||||||
|
if (stamp === confirmPreviewToken) confirmPreviewHtml = msgPreviewHtml || '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const res = await fetch(url, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
|
||||||
|
body: JSON.stringify(body),
|
||||||
|
});
|
||||||
|
const data = await res.json().catch(() => null);
|
||||||
|
if (stamp !== confirmPreviewToken) return;
|
||||||
|
if (res.ok && typeof data?.html === 'string') {
|
||||||
|
confirmPreviewHtml = data.html;
|
||||||
|
} else {
|
||||||
|
confirmPreviewHtml = '';
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
if (stamp === confirmPreviewToken) confirmPreviewHtml = '';
|
||||||
|
} finally {
|
||||||
|
if (stamp === confirmPreviewToken) confirmPreviewBusy = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function openConfirmPreviewInNewTab() {
|
||||||
|
if (!confirmPreviewHtml) return;
|
||||||
|
const blob = new Blob([confirmPreviewHtml], { type: 'text/html' });
|
||||||
|
const url = URL.createObjectURL(blob);
|
||||||
|
window.open(url, '_blank', 'noopener,noreferrer');
|
||||||
|
setTimeout(() => URL.revokeObjectURL(url), 60_000);
|
||||||
|
}
|
||||||
|
|
||||||
|
$: if (confirmCtx) {
|
||||||
|
void fetchConfirmPreview(confirmCtx);
|
||||||
|
} else {
|
||||||
|
confirmPreviewHtml = '';
|
||||||
|
confirmPreviewBusy = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
let statusCtx: AllClient | null = null;
|
||||||
|
let statusDraft: LifecycleStatus = 'active';
|
||||||
|
let statusReason = '';
|
||||||
|
let statusBusy = false;
|
||||||
|
let statusError = '';
|
||||||
|
|
||||||
|
function openStatusEditor(client: AllClient) {
|
||||||
|
statusCtx = client;
|
||||||
|
statusDraft = client.lifecycle?.status ?? 'active';
|
||||||
|
statusReason = client.lifecycle?.reason ?? '';
|
||||||
|
statusError = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeStatusEditor() {
|
||||||
|
if (statusBusy) return;
|
||||||
|
statusCtx = null;
|
||||||
|
statusError = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
async function saveStatus() {
|
||||||
|
if (!statusCtx) return;
|
||||||
|
const token = getToken();
|
||||||
|
if (!token) {
|
||||||
|
statusError = 'Your session has expired. Please sign in again.';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
statusBusy = true;
|
||||||
|
statusError = '';
|
||||||
|
try {
|
||||||
|
const res = await fetch('/api/owner/client-status', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
|
||||||
|
body: JSON.stringify({ email: statusCtx.email, status: statusDraft, reason: statusReason.trim() }),
|
||||||
|
});
|
||||||
|
const data = await res.json().catch(() => null);
|
||||||
|
if (!res.ok) throw new Error(data?.detail?.message ?? data?.detail ?? 'Could not update status.');
|
||||||
|
|
||||||
|
const updated = data?.lifecycle as Lifecycle | undefined;
|
||||||
|
if (updated) {
|
||||||
|
allClients = allClients.map((c) =>
|
||||||
|
c.email === statusCtx!.email ? { ...c, lifecycle: updated } : c,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
statusCtx = null;
|
||||||
|
} catch (error) {
|
||||||
|
statusError = error instanceof Error ? error.message : 'Could not update status.';
|
||||||
|
} finally {
|
||||||
|
statusBusy = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getToken() {
|
function getToken() {
|
||||||
return window.localStorage.getItem('gw_onboarding_session') ?? '';
|
return window.localStorage.getItem('gw_onboarding_session') ?? '';
|
||||||
@@ -825,6 +958,13 @@
|
|||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>{header.title} | Goodwalk Admin</title>
|
<title>{header.title} | Goodwalk Admin</title>
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
|
||||||
|
<link
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<main class="owner-page">
|
<main class="owner-page">
|
||||||
@@ -1067,9 +1207,17 @@
|
|||||||
|
|
||||||
<div class="owner-cell">
|
<div class="owner-cell">
|
||||||
<span class="owner-mobile-label">Status</span>
|
<span class="owner-mobile-label">Status</span>
|
||||||
|
<div class="owner-status-stack">
|
||||||
<span class:owner-status-complete={client.status === 'completed'} class="owner-status-pill">
|
<span class:owner-status-complete={client.status === 'completed'} class="owner-status-pill">
|
||||||
{client.status === 'completed' ? 'Completed' : 'Pending'}
|
{client.status === 'completed' ? 'Completed' : 'Pending'}
|
||||||
</span>
|
</span>
|
||||||
|
<span class="owner-lifecycle-pill" data-lifecycle={client.lifecycle?.status ?? 'active'}>
|
||||||
|
{lifecycleLabel(client.lifecycle?.status ?? 'active')}
|
||||||
|
</span>
|
||||||
|
{#if client.lifecycle?.reason}
|
||||||
|
<small class="owner-lifecycle-reason" title={client.lifecycle.reason}>{client.lifecycle.reason}</small>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="owner-cell">
|
<div class="owner-cell">
|
||||||
@@ -1079,12 +1227,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="owner-cell owner-action-cell">
|
<div class="owner-cell owner-action-cell owner-action-stack">
|
||||||
<span class="owner-mobile-label">Action</span>
|
<span class="owner-mobile-label">Action</span>
|
||||||
<button class="owner-secondary-btn" type="button" on:click={() => openEnquiry(client.email)}>
|
<button class="owner-secondary-btn" type="button" on:click={() => openEnquiry(client.email)}>
|
||||||
<Icon name="fas fa-file-lines" />
|
<Icon name="fas fa-file-lines" />
|
||||||
View enquiry
|
View enquiry
|
||||||
</button>
|
</button>
|
||||||
|
<button class="owner-secondary-btn" type="button" on:click={() => openStatusEditor(client)}>
|
||||||
|
<Icon name="fas fa-circle-half-stroke" />
|
||||||
|
Change status
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{/each}
|
{/each}
|
||||||
@@ -1473,8 +1625,8 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
{#if confirmCtx}
|
{#if confirmCtx}
|
||||||
<div class="owner-modal-backdrop" role="presentation" on:click={closeConfirm}>
|
<div class="owner-modal-backdrop" role="presentation" on:click|self={closeConfirm}>
|
||||||
<div class="owner-modal" role="dialog" aria-modal="true" aria-label="Confirm send" on:click|stopPropagation>
|
<div class="owner-modal" role="dialog" aria-modal="true" aria-label="Confirm send" tabindex="-1">
|
||||||
<div class="owner-modal-head">
|
<div class="owner-modal-head">
|
||||||
<h2>
|
<h2>
|
||||||
{#if confirmCtx.kind === 'welcome'}
|
{#if confirmCtx.kind === 'welcome'}
|
||||||
@@ -1506,9 +1658,34 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div class="owner-modal-preview-shell">
|
||||||
|
{#if confirmPreviewHtml}
|
||||||
|
<iframe
|
||||||
|
class="owner-modal-preview-iframe"
|
||||||
|
title="Email preview"
|
||||||
|
sandbox=""
|
||||||
|
srcdoc={confirmPreviewHtml}
|
||||||
|
></iframe>
|
||||||
|
<div class="owner-modal-preview-actions">
|
||||||
|
<small>This is exactly how the email will look.</small>
|
||||||
|
<button type="button" class="owner-modal-preview-link" on:click={openConfirmPreviewInNewTab}>
|
||||||
|
<Icon name="fas fa-up-right-from-square" />
|
||||||
|
Open full preview
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
<div class="owner-modal-preview-empty">
|
||||||
|
{confirmPreviewBusy ? 'Rendering preview…' : 'Preview unavailable.'}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{#if confirmPreviewBusy && confirmPreviewHtml}
|
||||||
|
<span class="owner-modal-preview-busy">Refreshing…</span>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
<label class="owner-preview-toggle">
|
<label class="owner-preview-toggle">
|
||||||
<input type="checkbox" bind:checked={confirmPreview} disabled={confirmBusy} />
|
<input type="checkbox" bind:checked={confirmPreview} disabled={confirmBusy} />
|
||||||
<span>Send a preview to me ({ownerEmail}) instead</span>
|
<span>Also send a test copy to me ({ownerEmail}) instead of the client</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{#if confirmError}
|
{#if confirmError}
|
||||||
@@ -1531,9 +1708,62 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if statusCtx}
|
||||||
|
<div class="owner-modal-backdrop" role="presentation" on:click|self={closeStatusEditor}>
|
||||||
|
<div class="owner-modal" role="dialog" aria-modal="true" aria-label="Change client status" tabindex="-1">
|
||||||
|
<div class="owner-modal-head">
|
||||||
|
<h2>Change status for {statusCtx.fullName || statusCtx.email}</h2>
|
||||||
|
<button type="button" class="owner-modal-close" on:click={closeStatusEditor} aria-label="Close" disabled={statusBusy}>
|
||||||
|
<Icon name="fas fa-xmark" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="owner-modal-status">
|
||||||
|
Soft-change only. The client stays on file in case we want to reach out later
|
||||||
|
(e.g. a newsletter). Cancelled and archived clients are excluded from outreach.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="status-options">
|
||||||
|
{#each lifecycleOptions as opt}
|
||||||
|
<label class:status-option-active={statusDraft === opt.value} class="status-option">
|
||||||
|
<input type="radio" name="lifecycle-status" value={opt.value} bind:group={statusDraft} disabled={statusBusy} />
|
||||||
|
<div>
|
||||||
|
<strong>{opt.label}</strong>
|
||||||
|
<small>{opt.description}</small>
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="status-reason-field">
|
||||||
|
<span>Reason (optional)</span>
|
||||||
|
<textarea bind:value={statusReason} rows="3" maxlength="500" disabled={statusBusy}
|
||||||
|
placeholder="e.g. moved overseas, switched walkers, on hold until spring…"></textarea>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
{#if statusCtx.lifecycle?.changedAt}
|
||||||
|
<p class="owner-modal-status">
|
||||||
|
Last changed {formatDateLabel(statusCtx.lifecycle.changedAt)}{statusCtx.lifecycle.changedBy ? ` by ${statusCtx.lifecycle.changedBy}` : ''}.
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if statusError}
|
||||||
|
<div class="owner-inline-error">{statusError}</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<div class="owner-compose-actions">
|
||||||
|
<button class="owner-cancel-btn" type="button" on:click={closeStatusEditor} disabled={statusBusy}>Cancel</button>
|
||||||
|
<button class="owner-send-btn" type="button" on:click={saveStatus} disabled={statusBusy}>
|
||||||
|
{statusBusy ? 'Saving…' : 'Save status'}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if enquiryOpen}
|
{#if enquiryOpen}
|
||||||
<div class="owner-modal-backdrop" role="presentation" on:click={closeEnquiry}>
|
<div class="owner-modal-backdrop" role="presentation" on:click|self={closeEnquiry}>
|
||||||
<div class="owner-modal" role="dialog" aria-modal="true" aria-label="Client enquiry" on:click|stopPropagation>
|
<div class="owner-modal" role="dialog" aria-modal="true" aria-label="Client enquiry" tabindex="-1">
|
||||||
<div class="owner-modal-head">
|
<div class="owner-modal-head">
|
||||||
<h2>Website enquiry</h2>
|
<h2>Website enquiry</h2>
|
||||||
<button type="button" class="owner-modal-close" on:click={closeEnquiry} aria-label="Close">
|
<button type="button" class="owner-modal-close" on:click={closeEnquiry} aria-label="Close">
|
||||||
@@ -1585,6 +1815,18 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.owner-page {
|
.owner-page {
|
||||||
|
/* Scope a clean Inter type system to the admin only — leaves the public
|
||||||
|
site's Unbounded / Readex Pro stack untouched. */
|
||||||
|
--admin-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
||||||
|
--font-head: var(--admin-font);
|
||||||
|
--font-body: var(--admin-font);
|
||||||
|
font-family: var(--admin-font);
|
||||||
|
font-feature-settings: 'cv11', 'ss01', 'ss03';
|
||||||
|
letter-spacing: -0.005em;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: #f7f6f1;
|
background: #f7f6f1;
|
||||||
color: var(--gw-green);
|
color: var(--gw-green);
|
||||||
@@ -1592,6 +1834,13 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.owner-page :global(input),
|
||||||
|
.owner-page :global(textarea),
|
||||||
|
.owner-page :global(select),
|
||||||
|
.owner-page :global(button) {
|
||||||
|
font-family: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.owner-shell {
|
.owner-shell {
|
||||||
max-width: 1120px;
|
max-width: 1120px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@@ -1719,29 +1968,8 @@
|
|||||||
to { transform: rotate(360deg); }
|
to { transform: rotate(360deg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-hero {
|
|
||||||
padding: 16px 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-hero h1 {
|
|
||||||
margin: 0 0 6px;
|
|
||||||
color: rgba(17, 23, 27, 0.9);
|
|
||||||
font-family: var(--font-head);
|
|
||||||
font-size: clamp(22px, 3.4vw, 30px);
|
|
||||||
line-height: 1.1;
|
|
||||||
letter-spacing: -0.03em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-hero p {
|
|
||||||
margin: 0;
|
|
||||||
max-width: 62ch;
|
|
||||||
color: rgba(33, 48, 33, 0.66);
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.55;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-content {
|
.owner-content {
|
||||||
padding: 16px 0 112px;
|
padding: 16px 0 calc(108px + env(safe-area-inset-bottom, 0px));
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-summary-grid {
|
.owner-summary-grid {
|
||||||
@@ -1801,7 +2029,6 @@
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-section-head h2,
|
|
||||||
.owner-message-card h2 {
|
.owner-message-card h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #171b20;
|
color: #171b20;
|
||||||
@@ -1811,7 +2038,6 @@
|
|||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-section-head p,
|
|
||||||
.owner-message-card p {
|
.owner-message-card p {
|
||||||
margin: 6px 0 0;
|
margin: 6px 0 0;
|
||||||
color: rgba(33, 48, 33, 0.64);
|
color: rgba(33, 48, 33, 0.64);
|
||||||
@@ -1932,24 +2158,6 @@
|
|||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-chip-list {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-chip {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 32px;
|
|
||||||
padding: 0 10px;
|
|
||||||
border-radius: 999px;
|
|
||||||
background: rgba(33, 48, 33, 0.08);
|
|
||||||
color: #213021;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-status-pill {
|
.owner-status-pill {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1971,6 +2179,122 @@
|
|||||||
color: #213021;
|
color: #213021;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.owner-status-stack {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-lifecycle-pill {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 26px;
|
||||||
|
padding: 0 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
font-size: 10.5px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
background: rgba(33, 48, 33, 0.08);
|
||||||
|
color: rgba(33, 48, 33, 0.72);
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-lifecycle-pill[data-lifecycle='active'] {
|
||||||
|
background: rgba(60, 140, 75, 0.16);
|
||||||
|
color: #1f5a2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-lifecycle-pill[data-lifecycle='paused'] {
|
||||||
|
background: rgba(255, 209, 0, 0.22);
|
||||||
|
color: #6a4a00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-lifecycle-pill[data-lifecycle='cancelled'] {
|
||||||
|
background: rgba(190, 60, 60, 0.14);
|
||||||
|
color: #8a2a2a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-lifecycle-pill[data-lifecycle='archived'] {
|
||||||
|
background: rgba(33, 48, 33, 0.12);
|
||||||
|
color: rgba(33, 48, 33, 0.62);
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-lifecycle-reason {
|
||||||
|
color: rgba(33, 48, 33, 0.6);
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 1.35;
|
||||||
|
max-width: 220px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-options {
|
||||||
|
display: grid;
|
||||||
|
gap: 8px;
|
||||||
|
margin: 6px 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-option {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-radius: 14px;
|
||||||
|
border: 1px solid rgba(33, 48, 33, 0.12);
|
||||||
|
cursor: pointer;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-option input {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-option strong {
|
||||||
|
display: block;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #171b20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-option small {
|
||||||
|
display: block;
|
||||||
|
margin-top: 2px;
|
||||||
|
color: rgba(33, 48, 33, 0.62);
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-option-active {
|
||||||
|
border-color: rgba(33, 48, 33, 0.36);
|
||||||
|
background: rgba(255, 209, 0, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-reason-field {
|
||||||
|
display: grid;
|
||||||
|
gap: 6px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-reason-field span {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: rgba(33, 48, 33, 0.72);
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-reason-field textarea {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 1px solid rgba(33, 48, 33, 0.16);
|
||||||
|
font: inherit;
|
||||||
|
font-size: 13px;
|
||||||
|
resize: vertical;
|
||||||
|
min-height: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
.owner-open-btn,
|
.owner-open-btn,
|
||||||
.owner-send-btn,
|
.owner-send-btn,
|
||||||
.owner-cancel-btn,
|
.owner-cancel-btn,
|
||||||
@@ -2175,43 +2499,51 @@
|
|||||||
|
|
||||||
.owner-bottom-nav {
|
.owner-bottom-nav {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 12px;
|
left: 10px;
|
||||||
right: 12px;
|
right: 10px;
|
||||||
bottom: calc(12px + env(safe-area-inset-bottom, 0px));
|
bottom: calc(10px + env(safe-area-inset-bottom, 0px));
|
||||||
z-index: 25;
|
z-index: 25;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||||
gap: 6px;
|
gap: 2px;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
background: rgba(255, 253, 250, 0.95);
|
background: rgba(255, 255, 255, 0.92);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: saturate(180%) blur(18px);
|
||||||
border: 1px solid rgba(17, 20, 24, 0.08);
|
-webkit-backdrop-filter: saturate(180%) blur(18px);
|
||||||
box-shadow: 0 6px 18px rgba(17, 20, 24, 0.08);
|
border: 1px solid rgba(17, 20, 24, 0.06);
|
||||||
|
box-shadow: 0 10px 28px rgba(17, 20, 24, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-bottom-tab {
|
.owner-bottom-tab {
|
||||||
min-height: 48px;
|
min-height: 54px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 12px;
|
border-radius: 14px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
display: grid;
|
display: grid;
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
gap: 3px;
|
gap: 4px;
|
||||||
color: rgba(33, 48, 33, 0.58);
|
color: rgba(33, 48, 33, 0.6);
|
||||||
font: inherit;
|
font: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-bottom-tab:active {
|
||||||
|
transform: scale(0.96);
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-bottom-tab span {
|
.owner-bottom-tab span {
|
||||||
font-size: 10px;
|
font-size: 11px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
|
letter-spacing: -0.005em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-bottom-tab :global(i) {
|
.owner-bottom-tab :global(i) {
|
||||||
font-size: 13px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-bottom-tab-active {
|
.owner-bottom-tab-active {
|
||||||
@@ -2219,8 +2551,11 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.owner-bottom-tab-active span {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
.owner-tab:hover,
|
|
||||||
.owner-open-btn:hover,
|
.owner-open-btn:hover,
|
||||||
.owner-send-btn:hover,
|
.owner-send-btn:hover,
|
||||||
.owner-cancel-btn:hover,
|
.owner-cancel-btn:hover,
|
||||||
@@ -2398,10 +2733,10 @@
|
|||||||
color: rgba(33, 48, 33, 0.4);
|
color: rgba(33, 48, 33, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.rte-editor p { margin: 0 0 12px; }
|
.rte-editor :global(p) { margin: 0 0 12px; }
|
||||||
.rte-editor ul,
|
.rte-editor :global(ul),
|
||||||
.rte-editor ol { margin: 0 0 12px; padding-left: 22px; }
|
.rte-editor :global(ol) { margin: 0 0 12px; padding-left: 22px; }
|
||||||
.rte-editor a { color: #c0392b; text-decoration: underline; }
|
.rte-editor :global(a) { color: #c0392b; text-decoration: underline; }
|
||||||
|
|
||||||
.msg-form {
|
.msg-form {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -2563,25 +2898,6 @@
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-field textarea {
|
|
||||||
width: 100%;
|
|
||||||
min-height: 110px;
|
|
||||||
padding: 12px 15px;
|
|
||||||
border: 1px solid rgba(17, 20, 24, 0.1);
|
|
||||||
border-radius: 14px;
|
|
||||||
background: #fffdfa;
|
|
||||||
font: inherit;
|
|
||||||
color: #213021;
|
|
||||||
outline: none;
|
|
||||||
box-sizing: border-box;
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-field textarea:focus {
|
|
||||||
border-color: rgba(33, 48, 33, 0.42);
|
|
||||||
box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.12);
|
|
||||||
}
|
|
||||||
|
|
||||||
.msg-recipient-modes {
|
.msg-recipient-modes {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -2662,35 +2978,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-footer-desktop {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 900px) {
|
@media (min-width: 900px) {
|
||||||
.owner-footer-desktop {
|
|
||||||
display: block;
|
|
||||||
position: fixed;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
z-index: 20;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-footer-desktop :global(.ob-footer-inner) {
|
|
||||||
height: 38px;
|
|
||||||
padding: 0 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-footer-desktop :global(.ob-footer-back),
|
|
||||||
.owner-footer-desktop :global(.ob-footer-email),
|
|
||||||
.owner-footer-desktop :global(.ob-footer-logout) {
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-footer-desktop :global(.ob-footer-logout) {
|
|
||||||
padding: 4px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owner-content {
|
.owner-content {
|
||||||
padding-bottom: 60px;
|
padding-bottom: 60px;
|
||||||
}
|
}
|
||||||
@@ -2703,24 +2991,97 @@
|
|||||||
.owner-modal-backdrop {
|
.owner-modal-backdrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
background: rgba(17, 20, 24, 0.45);
|
background: rgba(17, 20, 24, 0.5);
|
||||||
backdrop-filter: blur(2px);
|
backdrop-filter: blur(4px);
|
||||||
|
-webkit-backdrop-filter: blur(4px);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 16px;
|
padding: 14px;
|
||||||
|
padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
|
||||||
|
padding-top: calc(14px + env(safe-area-inset-top, 0px));
|
||||||
z-index: 60;
|
z-index: 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-modal {
|
.owner-modal {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 480px;
|
max-width: 560px;
|
||||||
max-height: 90vh;
|
max-height: min(92vh, 800px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
overscroll-behavior: contain;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 16px;
|
border-radius: 18px;
|
||||||
padding: 18px;
|
padding: 20px;
|
||||||
box-shadow: 0 24px 60px rgba(17, 20, 24, 0.25);
|
box-shadow: 0 24px 60px rgba(17, 20, 24, 0.28);
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-shell {
|
||||||
|
margin: 6px 0 14px;
|
||||||
|
border-radius: 14px;
|
||||||
|
border: 1px solid rgba(17, 20, 24, 0.08);
|
||||||
|
background: #f7f6f1;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-iframe {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 320px;
|
||||||
|
border: 0;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-busy {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
right: 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: rgba(33, 48, 33, 0.6);
|
||||||
|
background: rgba(255, 255, 255, 0.85);
|
||||||
|
padding: 3px 8px;
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-empty {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 120px;
|
||||||
|
color: rgba(33, 48, 33, 0.5);
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
background: #fff;
|
||||||
|
border-top: 1px solid rgba(17, 20, 24, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-actions small {
|
||||||
|
color: rgba(33, 48, 33, 0.55);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-link {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 999px;
|
||||||
|
border: 1px solid rgba(33, 48, 33, 0.16);
|
||||||
|
background: #fff;
|
||||||
|
color: #213021;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-modal-head {
|
.owner-modal-head {
|
||||||
@@ -2832,21 +3193,56 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
.owner-page {
|
||||||
|
/* Prevent any element from breaking horizontal scroll on a phone. */
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-shell {
|
||||||
|
padding-left: max(16px, env(safe-area-inset-left, 0px));
|
||||||
|
padding-right: max(16px, env(safe-area-inset-right, 0px));
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-topbar-inner {
|
||||||
|
min-height: 56px;
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-logo img {
|
||||||
|
height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-pill {
|
||||||
|
font-size: 10px;
|
||||||
|
padding: 4px 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-topbar-logout {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
padding: 0;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
|
||||||
.owner-summary-grid {
|
.owner-summary-grid {
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-summary-pill {
|
.owner-summary-pill {
|
||||||
padding: 8px 10px;
|
padding: 10px 12px;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
|
border-radius: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-summary-pill strong {
|
.owner-summary-pill strong {
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-summary-pill span {
|
.owner-summary-pill span {
|
||||||
font-size: 10px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-section-head {
|
.owner-section-head {
|
||||||
@@ -2859,6 +3255,16 @@
|
|||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.owner-table-row {
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 14px;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-cell h3 {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.owner-pagination {
|
.owner-pagination {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@@ -2867,19 +3273,45 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.owner-pagination .owner-page-btn {
|
.owner-pagination .owner-page-btn {
|
||||||
min-height: 34px;
|
min-height: 40px;
|
||||||
padding: 0 12px;
|
padding: 0 14px;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-pagination .owner-page-indicator {
|
.owner-pagination .owner-page-indicator {
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.owner-enquiry-list > div {
|
.owner-enquiry-list > div {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.owner-modal {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: calc(100dvh - 90px - env(safe-area-inset-bottom, 0px));
|
||||||
|
border-radius: 20px 20px 16px 16px;
|
||||||
|
padding: 18px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-head h2 {
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-close {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-modal-preview-iframe {
|
||||||
|
height: 260px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.owner-send-btn,
|
||||||
|
.owner-cancel-btn {
|
||||||
|
min-height: 46px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Activity tab ── */
|
/* ── Activity tab ── */
|
||||||
|
|||||||
@@ -43,6 +43,23 @@ export function buildAreaServed(locations = locationPages) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const goodwalkProviderNode = {
|
||||||
|
'@type': ['LocalBusiness', 'PetCareService'],
|
||||||
|
'@id': `${siteUrl}/#business`,
|
||||||
|
name: 'Goodwalk',
|
||||||
|
url: siteUrl,
|
||||||
|
logo: `${siteUrl}/images/goodwalk-auckland-dog-walking-logo.webp`,
|
||||||
|
image: `${siteUrl}/images/goodwalk-auckland-dog-walking-logo.webp`,
|
||||||
|
email: 'info@goodwalk.co.nz',
|
||||||
|
telephone: '+64226421011',
|
||||||
|
address: {
|
||||||
|
'@type': 'PostalAddress',
|
||||||
|
addressLocality: 'Auckland Central',
|
||||||
|
addressRegion: 'Auckland',
|
||||||
|
addressCountry: 'NZ'
|
||||||
|
}
|
||||||
|
} as const;
|
||||||
|
|
||||||
function getLocationSeoImage(location: LocationPageContent) {
|
function getLocationSeoImage(location: LocationPageContent) {
|
||||||
return location.seo?.image ?? location.parks.find((park) => park.image?.src)?.image?.src ?? defaultLocationImage;
|
return location.seo?.image ?? location.parks.find((park) => park.image?.src)?.image?.src ?? defaultLocationImage;
|
||||||
}
|
}
|
||||||
@@ -81,9 +98,7 @@ export function buildLocationSeo(location: LocationPageContent) {
|
|||||||
name: serviceName,
|
name: serviceName,
|
||||||
description,
|
description,
|
||||||
serviceType,
|
serviceType,
|
||||||
provider: {
|
provider: goodwalkProviderNode,
|
||||||
'@id': `${siteUrl}/#business`
|
|
||||||
},
|
|
||||||
areaServed: {
|
areaServed: {
|
||||||
'@type': 'Place',
|
'@type': 'Place',
|
||||||
name: `${location.suburb}, Auckland, New Zealand`
|
name: `${location.suburb}, Auckland, New Zealand`
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
import { getPool } from '$lib/server/db';
|
||||||
|
|
||||||
|
export interface VariantResult {
|
||||||
|
variant: string;
|
||||||
|
exposures: number;
|
||||||
|
cta_clicks: number;
|
||||||
|
conversions: number;
|
||||||
|
cvr_pct: number | null;
|
||||||
|
click_thru_pct: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ExperimentResults {
|
||||||
|
experiment: string;
|
||||||
|
rows: VariantResult[];
|
||||||
|
computedAt: string;
|
||||||
|
available: boolean;
|
||||||
|
note?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const QUERY = `
|
||||||
|
select
|
||||||
|
variant,
|
||||||
|
count(distinct anon_id) filter (where event_type = 'exposure') as exposures,
|
||||||
|
count(distinct anon_id) filter (where event_type = 'cta_click') as cta_clicks,
|
||||||
|
count(distinct anon_id) filter (where event_type = 'conversion') as conversions
|
||||||
|
from ab_events
|
||||||
|
where experiment = $1
|
||||||
|
group by variant
|
||||||
|
order by variant;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export async function getExperimentResults(experiment: string): Promise<ExperimentResults> {
|
||||||
|
const computedAt = new Date().toISOString();
|
||||||
|
const pool = getPool();
|
||||||
|
if (!pool) {
|
||||||
|
return { experiment, rows: [], computedAt, available: false, note: 'DATABASE_URL not configured.' };
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const result = await pool.query<{
|
||||||
|
variant: string;
|
||||||
|
exposures: string;
|
||||||
|
cta_clicks: string;
|
||||||
|
conversions: string;
|
||||||
|
}>(QUERY, [experiment]);
|
||||||
|
|
||||||
|
const rows: VariantResult[] = result.rows.map((r) => {
|
||||||
|
const exposures = Number(r.exposures);
|
||||||
|
const cta_clicks = Number(r.cta_clicks);
|
||||||
|
const conversions = Number(r.conversions);
|
||||||
|
return {
|
||||||
|
variant: r.variant,
|
||||||
|
exposures,
|
||||||
|
cta_clicks,
|
||||||
|
conversions,
|
||||||
|
cvr_pct: exposures > 0 ? Math.round((conversions / exposures) * 10000) / 100 : null,
|
||||||
|
click_thru_pct: exposures > 0 ? Math.round((cta_clicks / exposures) * 10000) / 100 : null,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
return { experiment, rows, computedAt, available: true };
|
||||||
|
} catch (err) {
|
||||||
|
const message = err instanceof Error ? err.message : String(err);
|
||||||
|
if (/relation .*ab_events.* does not exist/i.test(message)) {
|
||||||
|
return {
|
||||||
|
experiment,
|
||||||
|
rows: [],
|
||||||
|
computedAt,
|
||||||
|
available: true,
|
||||||
|
note: 'No data yet — table will be created on the first event.',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
console.error('experiment results query failed', err);
|
||||||
|
return { experiment, rows: [], computedAt, available: false, note: 'Query failed; check logs.' };
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/**
|
||||||
|
* A/B test assignment. Sticky per-visitor via cookies, deterministic once
|
||||||
|
* assigned, and resolved on the server so the first paint already shows the
|
||||||
|
* correct variant (no flicker).
|
||||||
|
*
|
||||||
|
* Current experiment: `hero_cta` — does emphasising that the meet & greet is
|
||||||
|
* FREE lift booking-form conversions?
|
||||||
|
* control → existing "Book a Meet & Greet" copy
|
||||||
|
* free_emphasis → "Book a FREE Meet & Greet"
|
||||||
|
*/
|
||||||
|
|
||||||
|
import type { Cookies } from '@sveltejs/kit';
|
||||||
|
import { randomBytes } from 'crypto';
|
||||||
|
|
||||||
|
export const HERO_EXPERIMENT = 'hero_cta';
|
||||||
|
export type HeroVariant = 'control' | 'free_emphasis';
|
||||||
|
|
||||||
|
const HERO_COOKIE = 'gw_ab_hero';
|
||||||
|
const ANON_COOKIE = 'gw_anon';
|
||||||
|
const COOKIE_MAX_AGE = 60 * 60 * 24 * 180; // 180 days
|
||||||
|
|
||||||
|
const HERO_VARIANTS: HeroVariant[] = ['control', 'free_emphasis'];
|
||||||
|
|
||||||
|
function isHeroVariant(value: string | null | undefined): value is HeroVariant {
|
||||||
|
return value === 'control' || value === 'free_emphasis';
|
||||||
|
}
|
||||||
|
|
||||||
|
function setStickyCookie(cookies: Cookies, name: string, value: string) {
|
||||||
|
cookies.set(name, value, {
|
||||||
|
path: '/',
|
||||||
|
maxAge: COOKIE_MAX_AGE,
|
||||||
|
httpOnly: false, // client reads anon_id for event POSTs
|
||||||
|
sameSite: 'lax',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function resolveAnonId(cookies: Cookies): string {
|
||||||
|
const existing = cookies.get(ANON_COOKIE);
|
||||||
|
if (existing && existing.length >= 8) return existing;
|
||||||
|
const fresh = randomBytes(12).toString('base64url');
|
||||||
|
setStickyCookie(cookies, ANON_COOKIE, fresh);
|
||||||
|
return fresh;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function resolveHeroVariant(url: URL, cookies: Cookies): HeroVariant {
|
||||||
|
// ?ab=control or ?ab=free_emphasis forces and persists a variant — useful
|
||||||
|
// for stakeholder previews, screenshots, and QA. Anyone can use it: the
|
||||||
|
// only consequence of misuse is one self-skewed cookie.
|
||||||
|
const forced = url.searchParams.get('ab');
|
||||||
|
if (isHeroVariant(forced)) {
|
||||||
|
setStickyCookie(cookies, HERO_COOKIE, forced);
|
||||||
|
return forced;
|
||||||
|
}
|
||||||
|
|
||||||
|
const existing = cookies.get(HERO_COOKIE);
|
||||||
|
if (isHeroVariant(existing)) return existing;
|
||||||
|
|
||||||
|
const assigned = HERO_VARIANTS[Math.floor(Math.random() * HERO_VARIANTS.length)];
|
||||||
|
setStickyCookie(cookies, HERO_COOKIE, assigned);
|
||||||
|
return assigned;
|
||||||
|
}
|
||||||
@@ -25,6 +25,11 @@ img {
|
|||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
/* Hide alt text flash before pixels paint. Alt is still exposed to
|
||||||
|
screen readers; this only suppresses the visual text on the
|
||||||
|
broken-image placeholder shown by some browsers mid-load. */
|
||||||
|
color: transparent;
|
||||||
|
font-size: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ header {
|
|||||||
|
|
||||||
@media (min-width: 769px) {
|
@media (min-width: 769px) {
|
||||||
.nav-ribbon::after {
|
.nav-ribbon::after {
|
||||||
animation: nav-ribbon-shine 8s ease-in-out 2.8s infinite;
|
animation: nav-ribbon-shine 8s ease-in-out 2.8s 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,202 @@
|
|||||||
|
/* ─────────────────────────────────────────────────────────────────────────
|
||||||
|
Motion system
|
||||||
|
|
||||||
|
Reusable, opt-in animation utilities. One easing family, one set of
|
||||||
|
distances, one set of durations. Designed to pair with the existing
|
||||||
|
`use:reveal` action: apply the action on a parent section, then add
|
||||||
|
motion utilities to inner elements.
|
||||||
|
|
||||||
|
Naming
|
||||||
|
.fade-up opacity + translateY
|
||||||
|
.fade-in opacity only
|
||||||
|
.scale-soft opacity + subtle scale-in (0.985 → 1)
|
||||||
|
.stagger-children cascades children at --motion-stagger-step
|
||||||
|
.hover-lift elevates on hover (hover-capable devices only)
|
||||||
|
.cta-shimmer slow, subtle sheen across a CTA (one-off, not loop)
|
||||||
|
.subtle-glow soft, breathing focus halo for accent surfaces
|
||||||
|
.image-parallax gentle drift; CSS scroll-driven where supported
|
||||||
|
|
||||||
|
All motion is gated behind prefers-reduced-motion: no-preference.
|
||||||
|
───────────────────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
/* ── Reveal utilities ─────────────────────────────────────────────────
|
||||||
|
These start in an "off" state and animate when an ancestor carries
|
||||||
|
`.reveal-visible` (set by the existing reveal action). That keeps
|
||||||
|
trigger logic centralized — no extra observers per element. */
|
||||||
|
.fade-up,
|
||||||
|
.fade-in,
|
||||||
|
.scale-soft {
|
||||||
|
opacity: 0;
|
||||||
|
transition:
|
||||||
|
opacity var(--motion-duration-md) var(--ease-out-quiet),
|
||||||
|
transform var(--motion-duration-md) var(--ease-out-quiet);
|
||||||
|
will-change: opacity, transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-up {
|
||||||
|
transform: translate3d(0, var(--motion-distance-md), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-soft {
|
||||||
|
transform: scale(0.985);
|
||||||
|
transform-origin: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reveal trigger: when a parent reveal block becomes visible, or the
|
||||||
|
element itself carries `.is-in` (for non-reveal contexts). */
|
||||||
|
.reveal-visible .fade-up,
|
||||||
|
.reveal-visible .fade-in,
|
||||||
|
.reveal-visible .scale-soft,
|
||||||
|
.fade-up.is-in,
|
||||||
|
.fade-in.is-in,
|
||||||
|
.scale-soft.is-in {
|
||||||
|
opacity: 1;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Once the animation has played, drop will-change to free the layer. */
|
||||||
|
.reveal-visible .fade-up,
|
||||||
|
.reveal-visible .fade-in,
|
||||||
|
.reveal-visible .scale-soft {
|
||||||
|
will-change: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Stagger ──────────────────────────────────────────────────────────
|
||||||
|
Direct-child cascade. Up to 8 children covered explicitly; beyond
|
||||||
|
that, children inherit the 8th delay (graceful fallback for grids). */
|
||||||
|
.stagger-children > * {
|
||||||
|
transition-delay: 0ms;
|
||||||
|
}
|
||||||
|
.stagger-children > :nth-child(1) { transition-delay: calc(var(--motion-stagger-step) * 0); }
|
||||||
|
.stagger-children > :nth-child(2) { transition-delay: calc(var(--motion-stagger-step) * 1); }
|
||||||
|
.stagger-children > :nth-child(3) { transition-delay: calc(var(--motion-stagger-step) * 2); }
|
||||||
|
.stagger-children > :nth-child(4) { transition-delay: calc(var(--motion-stagger-step) * 3); }
|
||||||
|
.stagger-children > :nth-child(5) { transition-delay: calc(var(--motion-stagger-step) * 4); }
|
||||||
|
.stagger-children > :nth-child(6) { transition-delay: calc(var(--motion-stagger-step) * 5); }
|
||||||
|
.stagger-children > :nth-child(7) { transition-delay: calc(var(--motion-stagger-step) * 6); }
|
||||||
|
.stagger-children > :nth-child(n + 8) { transition-delay: calc(var(--motion-stagger-step) * 7); }
|
||||||
|
|
||||||
|
/* Tighter cascade for dense grids (8+ cells). Opt-in. */
|
||||||
|
.stagger-children.stagger-tight > * {
|
||||||
|
--motion-stagger-step: 45ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Hover lift ───────────────────────────────────────────────────────
|
||||||
|
Quiet 2px elevation. Only on hover-capable devices so touch users
|
||||||
|
don't get a sticky transformed state after tap. */
|
||||||
|
.hover-lift {
|
||||||
|
transition:
|
||||||
|
transform var(--motion-duration-sm) var(--ease-out-soft),
|
||||||
|
box-shadow var(--motion-duration-sm) var(--ease-out-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (hover: hover) {
|
||||||
|
.hover-lift:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Focus-visible matches hover for keyboard parity. */
|
||||||
|
.hover-lift:focus-visible {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── CTA shimmer ──────────────────────────────────────────────────────
|
||||||
|
A single, soft sheen sweep that fires once on hover. Quiet, not a
|
||||||
|
looping ad-banner. Requires the host to be position: relative and
|
||||||
|
overflow: hidden, which most pill buttons already are. */
|
||||||
|
.cta-shimmer {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
isolation: isolate;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-shimmer::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: linear-gradient(
|
||||||
|
115deg,
|
||||||
|
transparent 30%,
|
||||||
|
rgba(255, 255, 255, 0.32) 50%,
|
||||||
|
transparent 70%
|
||||||
|
);
|
||||||
|
transform: translateX(-110%);
|
||||||
|
transition: transform var(--motion-duration-lg) var(--ease-in-out-soft);
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (hover: hover) {
|
||||||
|
.cta-shimmer:hover::after {
|
||||||
|
transform: translateX(110%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Subtle glow ──────────────────────────────────────────────────────
|
||||||
|
A slow, breathing accent halo. Calibrated to be barely perceptible —
|
||||||
|
the kind of thing you notice only after watching for a few seconds. */
|
||||||
|
.subtle-glow {
|
||||||
|
animation: motion-subtle-glow 5.2s var(--ease-in-out-soft) infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes motion-subtle-glow {
|
||||||
|
0%, 100% {
|
||||||
|
box-shadow: 0 0 0 0 rgba(255, 209, 0, 0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
box-shadow: 0 0 0 6px rgba(255, 209, 0, 0.08);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Image parallax ───────────────────────────────────────────────────
|
||||||
|
Gentle vertical drift on scroll. Uses CSS scroll-driven animations
|
||||||
|
where supported (Chrome 115+, Edge 115+). Older browsers get a still
|
||||||
|
image — perfectly fine fallback, no jank, no JS. */
|
||||||
|
@supports (animation-timeline: view()) {
|
||||||
|
.image-parallax {
|
||||||
|
animation: motion-image-parallax linear both;
|
||||||
|
animation-timeline: view();
|
||||||
|
animation-range: cover 0% cover 100%;
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes motion-image-parallax {
|
||||||
|
from { transform: translate3d(0, -3%, 0); }
|
||||||
|
to { transform: translate3d(0, 3%, 0); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Reduced motion ─────────────────────────────────────────────────────
|
||||||
|
Strip every transition and animation that this system introduces. The
|
||||||
|
reveal utilities collapse to their visible state immediately so layout
|
||||||
|
stays correct. */
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.fade-up,
|
||||||
|
.fade-in,
|
||||||
|
.scale-soft {
|
||||||
|
opacity: 1;
|
||||||
|
transform: none;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-children > * {
|
||||||
|
transition-delay: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hover-lift,
|
||||||
|
.cta-shimmer::after,
|
||||||
|
.subtle-glow,
|
||||||
|
.image-parallax {
|
||||||
|
transition: none !important;
|
||||||
|
animation: none !important;
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-shimmer::after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -761,12 +761,71 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 14" laptop range: dog still clips the centered headline at the existing
|
||||||
|
54% / -200px settings. Shrink the footprint and pull it further left so
|
||||||
|
the mascot fully clears the text column. */
|
||||||
|
@media (min-width: 1024px) and (max-width: 1439px) {
|
||||||
|
.hero-img img {
|
||||||
|
width: 46%;
|
||||||
|
transform: translateX(-260px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
body:has(#hero) .hero-inner {
|
body:has(#hero) .hero-inner {
|
||||||
padding-bottom: 120px;
|
padding-bottom: 120px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Laptop screens (13–14"): the hero is otherwise capped at 680px, which
|
||||||
|
leaves the text crowding the top of the section. Give it more room so
|
||||||
|
the bottom-anchored text sits lower in the viewport. */
|
||||||
|
@media (min-width: 1024px) and (max-width: 1439px) {
|
||||||
|
#hero {
|
||||||
|
min-height: 92svh;
|
||||||
|
max-height: 920px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── 13/14" laptop polish ───────────────────────────────────────────────────
|
||||||
|
The default type and spacing scales were tuned on a large external
|
||||||
|
monitor — their caps land at sizes that feel oversized on the shorter
|
||||||
|
720–900px viewports typical of 13–14" laptops. Pull the caps down so
|
||||||
|
headings, hero text, and section rhythm sit comfortably above the fold
|
||||||
|
without changing the visual identity. Tokens flow through every section
|
||||||
|
that reads from them. ── */
|
||||||
|
@media (min-width: 1024px) and (max-width: 1439px) {
|
||||||
|
:root {
|
||||||
|
/* Type scale — trim caps ~15% so headings stop dominating the viewport */
|
||||||
|
--text-display: clamp(38px, 3.8vw, 46px);
|
||||||
|
--text-h1: clamp(30px, 3.1vw, 38px);
|
||||||
|
--text-h2: clamp(24px, 2.4vw, 30px);
|
||||||
|
--text-h3: 20px;
|
||||||
|
|
||||||
|
/* Section rhythm — keep generous breathing room but stop sections
|
||||||
|
eating ~60% of the viewport on a single scroll step */
|
||||||
|
--space-section-featured-y: clamp(var(--space-11), 6.2vw, var(--space-13));
|
||||||
|
--space-section-support-y: clamp(var(--space-10), 5.4vw, var(--space-12));
|
||||||
|
--space-section-form-y: clamp(var(--space-10), 5.4vw, var(--space-12));
|
||||||
|
--space-section-page-y: clamp(var(--space-10), 5vw, var(--space-12));
|
||||||
|
--space-hero-inner-bottom: clamp(var(--space-6), 3.6vw, var(--space-8));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero heading reads --text-display (now 46px max); explicitly tune
|
||||||
|
line-height and margin so the two-line headline stays tight. */
|
||||||
|
.hero-text h1 {
|
||||||
|
line-height: 1.04;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Subtitle: drop a hair so the lead doesn't compete with the heading */
|
||||||
|
.hero-subtitle,
|
||||||
|
.hero-subtitle-desktop {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Ultrawide (≥1800px) ────────────────────────────────────────────────────
|
/* ── Ultrawide (≥1800px) ────────────────────────────────────────────────────
|
||||||
Only add rules here that are genuinely ultrawide-specific.
|
Only add rules here that are genuinely ultrawide-specific.
|
||||||
Normal desktop, tablet, and mobile breakpoints are handled above. ── */
|
Normal desktop, tablet, and mobile breakpoints are handled above. ── */
|
||||||
|
|||||||
@@ -152,6 +152,21 @@
|
|||||||
--motion-reveal-opacity: 0.3s ease;
|
--motion-reveal-opacity: 0.3s ease;
|
||||||
--motion-reveal-transform: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
|
--motion-reveal-transform: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||||
|
|
||||||
|
/* Motion system — shared timing, easing, and distance tokens.
|
||||||
|
A single curve family (refined ease-out, gentle ease-in-out) keeps
|
||||||
|
the whole site speaking one motion language. */
|
||||||
|
--ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
--ease-out-quiet: cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||||
|
--ease-in-out-soft: cubic-bezier(0.45, 0, 0.2, 1);
|
||||||
|
--motion-duration-xs: 180ms;
|
||||||
|
--motion-duration-sm: 260ms;
|
||||||
|
--motion-duration-md: 420ms;
|
||||||
|
--motion-duration-lg: 620ms;
|
||||||
|
--motion-distance-xs: 6px;
|
||||||
|
--motion-distance-sm: 12px;
|
||||||
|
--motion-distance-md: 18px;
|
||||||
|
--motion-stagger-step: 70ms;
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
--max-w: 1280px;
|
--max-w: 1280px;
|
||||||
--space-container-x: clamp(var(--space-6), 4vw, var(--space-9));
|
--space-container-x: clamp(var(--space-6), 4vw, var(--space-9));
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
import '$lib/styles/buttons.css';
|
import '$lib/styles/buttons.css';
|
||||||
import '$lib/styles/forms.css';
|
import '$lib/styles/forms.css';
|
||||||
import '$lib/styles/sections.css';
|
import '$lib/styles/sections.css';
|
||||||
|
import '$lib/styles/motion.css';
|
||||||
import '$lib/styles/responsive.css';
|
import '$lib/styles/responsive.css';
|
||||||
|
|
||||||
const mobileCtaButtonEnabled = isMobileCtaButtonEnabled();
|
const mobileCtaButtonEnabled = isMobileCtaButtonEnabled();
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { getHomepageContent } from '$lib/server/content';
|
import { getHomepageContent } from '$lib/server/content';
|
||||||
import { resolveSurface } from '$lib/server/surface';
|
import { resolveSurface } from '$lib/server/surface';
|
||||||
|
import { HERO_EXPERIMENT } from '$lib/server/ab';
|
||||||
|
|
||||||
export async function load({ url, cookies }) {
|
export async function load({ url, cookies, locals }) {
|
||||||
const { surface, isPreview } = resolveSurface(url, cookies);
|
const { surface, isPreview } = resolveSurface(url, cookies);
|
||||||
const siteVariant = surface === 'clients' ? 'onboarding' : 'marketing';
|
const siteVariant = surface === 'clients' ? 'onboarding' : 'marketing';
|
||||||
|
|
||||||
@@ -15,5 +16,13 @@ export async function load({ url, cookies }) {
|
|||||||
return {
|
return {
|
||||||
siteVariant,
|
siteVariant,
|
||||||
content: await getHomepageContent(),
|
content: await getHomepageContent(),
|
||||||
|
ab:
|
||||||
|
locals.abHero && locals.anonId
|
||||||
|
? {
|
||||||
|
experiment: HERO_EXPERIMENT,
|
||||||
|
variant: locals.abHero,
|
||||||
|
anonId: locals.anonId,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,23 @@
|
|||||||
import OnboardingPage from '$lib/components/OnboardingPage.svelte';
|
import OnboardingPage from '$lib/components/OnboardingPage.svelte';
|
||||||
import { buildAreaServed } from '$lib/seo';
|
import { buildAreaServed } from '$lib/seo';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
|
import type { CallToAction } from '$lib/types';
|
||||||
|
|
||||||
export let data: PageData;
|
export let data: PageData;
|
||||||
|
|
||||||
const siteUrl = 'https://www.goodwalk.co.nz';
|
const siteUrl = 'https://www.goodwalk.co.nz';
|
||||||
|
|
||||||
|
// hero_cta experiment: free_emphasis swaps "Book a Meet & Greet"
|
||||||
|
// for "Book a FREE Meet & Greet". Same href, same destination.
|
||||||
|
$: heroAb = data.ab;
|
||||||
|
$: heroOverride =
|
||||||
|
data.siteVariant === 'marketing' && data.content && heroAb?.variant === 'free_emphasis'
|
||||||
|
? ({
|
||||||
|
...data.content.hero.primaryCta,
|
||||||
|
label: 'Book a FREE Meet & Greet',
|
||||||
|
} satisfies CallToAction)
|
||||||
|
: undefined;
|
||||||
|
|
||||||
function absoluteUrl(value: string) {
|
function absoluteUrl(value: string) {
|
||||||
if (value.startsWith('http://') || value.startsWith('https://')) {
|
if (value.startsWith('http://') || value.startsWith('https://')) {
|
||||||
return value;
|
return value;
|
||||||
@@ -168,14 +180,19 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<Header navigation={content.navigation} />
|
<Header navigation={content.navigation} />
|
||||||
<HeroSection hero={content.hero} reviewCta={content.intro.reviewCta} />
|
<HeroSection
|
||||||
|
hero={content.hero}
|
||||||
|
reviewCta={content.intro.reviewCta}
|
||||||
|
primaryCtaOverride={heroOverride}
|
||||||
|
ab={heroAb}
|
||||||
|
/>
|
||||||
<ValuesSection values={content.values} />
|
<ValuesSection values={content.values} />
|
||||||
<ServicesSection services={content.services} />
|
<ServicesSection services={content.services} />
|
||||||
<HowItWorksSection content={content.howItWorks} />
|
<HowItWorksSection content={content.howItWorks} />
|
||||||
<TestimonialsSection testimonials={content.testimonials} seedKey="/" />
|
<TestimonialsSection testimonials={content.testimonials} seedKey="/" />
|
||||||
<FounderStorySection founderStory={content.founderStory} />
|
<FounderStorySection founderStory={content.founderStory} />
|
||||||
<InfoSection info={content.info} />
|
<InfoSection info={content.info} />
|
||||||
<BookingWizard booking={content.booking} pagePath="/" />
|
<BookingWizard booking={content.booking} pagePath="/" ab={heroAb} />
|
||||||
<InstagramSection instagram={content.instagram} />
|
<InstagramSection instagram={content.instagram} />
|
||||||
<Footer footer={content.footer} />
|
<Footer footer={content.footer} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
import { privacyPolicyContent } from '$lib/content/privacy-policy';
|
import { privacyPolicyContent } from '$lib/content/privacy-policy';
|
||||||
import { puppyVisitsContent } from '$lib/content/puppy-visits';
|
import { puppyVisitsContent } from '$lib/content/puppy-visits';
|
||||||
import { termsAndConditionsContent } from '$lib/content/terms-and-conditions';
|
import { termsAndConditionsContent } from '$lib/content/terms-and-conditions';
|
||||||
import { buildAreaServed, buildBreadcrumb, absoluteUrl } from '$lib/seo';
|
import { buildAreaServed, buildBreadcrumb, absoluteUrl, goodwalkProviderNode } from '$lib/seo';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
|
|
||||||
export let data: PageData;
|
export let data: PageData;
|
||||||
@@ -47,15 +47,31 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const sharedServiceRating = {
|
function buildServiceNode(base: {
|
||||||
'@type': 'AggregateRating',
|
name: string;
|
||||||
ratingValue: '5.0',
|
description: string;
|
||||||
bestRating: '5',
|
serviceType: string;
|
||||||
worstRating: '1',
|
image: string;
|
||||||
reviewCount: '30'
|
url: string;
|
||||||
|
offers: ReturnType<typeof aggregateOfferSchema>;
|
||||||
|
}) {
|
||||||
|
const node: Record<string, unknown> = {
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'Service',
|
||||||
|
name: base.name,
|
||||||
|
description: base.description,
|
||||||
|
serviceType: base.serviceType,
|
||||||
|
provider: goodwalkProviderNode,
|
||||||
|
areaServed,
|
||||||
|
image: base.image,
|
||||||
|
url: base.url
|
||||||
};
|
};
|
||||||
|
if (base.offers) {
|
||||||
|
node.offers = base.offers;
|
||||||
|
}
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
const expertProvider = { '@id': `${siteUrl}/#alessandra` };
|
|
||||||
const areaServed = buildAreaServed();
|
const areaServed = buildAreaServed();
|
||||||
|
|
||||||
let seoImage = defaultSeoImage;
|
let seoImage = defaultSeoImage;
|
||||||
@@ -86,21 +102,14 @@
|
|||||||
seoImage = packWalksContent.hero.imageUrl;
|
seoImage = packWalksContent.hero.imageUrl;
|
||||||
seoImageAlt = packWalksContent.hero.imageAlt;
|
seoImageAlt = packWalksContent.hero.imageAlt;
|
||||||
pageStructuredData = [
|
pageStructuredData = [
|
||||||
{
|
buildServiceNode({
|
||||||
'@context': 'https://schema.org',
|
|
||||||
'@type': 'Service',
|
|
||||||
name: 'Goodwalk Tiny Gang Pack Walks',
|
name: 'Goodwalk Tiny Gang Pack Walks',
|
||||||
description: data.page.description,
|
description: data.page.description,
|
||||||
serviceType: 'Pack walks for small and medium dogs',
|
serviceType: 'Pack walks for small and medium dogs',
|
||||||
provider: { '@id': 'https://www.goodwalk.co.nz/#business' },
|
|
||||||
areaServed,
|
|
||||||
image: absoluteUrl(seoImage),
|
image: absoluteUrl(seoImage),
|
||||||
url: `${siteUrl}${data.page.canonicalPath}`,
|
url: `${siteUrl}${data.page.canonicalPath}`,
|
||||||
offers: aggregateOfferSchema(packWalksContent.pricing.plans),
|
offers: aggregateOfferSchema(packWalksContent.pricing.plans)
|
||||||
aggregateRating: sharedServiceRating,
|
}),
|
||||||
author: expertProvider,
|
|
||||||
dateModified: packWalksContent.lastUpdated
|
|
||||||
},
|
|
||||||
buildBreadcrumb([
|
buildBreadcrumb([
|
||||||
{ name: 'Home', url: siteUrl },
|
{ name: 'Home', url: siteUrl },
|
||||||
{ name: 'Tiny Gang Pack Walks', path: data.page.canonicalPath }
|
{ name: 'Tiny Gang Pack Walks', path: data.page.canonicalPath }
|
||||||
@@ -111,21 +120,14 @@
|
|||||||
seoImage = dogWalkingContent.hero.imageUrl;
|
seoImage = dogWalkingContent.hero.imageUrl;
|
||||||
seoImageAlt = dogWalkingContent.hero.imageAlt;
|
seoImageAlt = dogWalkingContent.hero.imageAlt;
|
||||||
pageStructuredData = [
|
pageStructuredData = [
|
||||||
{
|
buildServiceNode({
|
||||||
'@context': 'https://schema.org',
|
|
||||||
'@type': 'Service',
|
|
||||||
name: 'Goodwalk Solo Dog Walks',
|
name: 'Goodwalk Solo Dog Walks',
|
||||||
description: data.page.description,
|
description: data.page.description,
|
||||||
serviceType: 'One-on-one dog walking',
|
serviceType: 'One-on-one dog walking',
|
||||||
provider: { '@id': 'https://www.goodwalk.co.nz/#business' },
|
|
||||||
areaServed,
|
|
||||||
image: absoluteUrl(seoImage),
|
image: absoluteUrl(seoImage),
|
||||||
url: `${siteUrl}${data.page.canonicalPath}`,
|
url: `${siteUrl}${data.page.canonicalPath}`,
|
||||||
offers: aggregateOfferSchema(dogWalkingContent.pricing.plans),
|
offers: aggregateOfferSchema(dogWalkingContent.pricing.plans)
|
||||||
aggregateRating: sharedServiceRating,
|
}),
|
||||||
author: expertProvider,
|
|
||||||
dateModified: dogWalkingContent.lastUpdated
|
|
||||||
},
|
|
||||||
buildBreadcrumb([
|
buildBreadcrumb([
|
||||||
{ name: 'Home', url: siteUrl },
|
{ name: 'Home', url: siteUrl },
|
||||||
{ name: 'Solo Walks', path: data.page.canonicalPath }
|
{ name: 'Solo Walks', path: data.page.canonicalPath }
|
||||||
@@ -136,21 +138,14 @@
|
|||||||
seoImage = puppyVisitsContent.hero.imageUrl;
|
seoImage = puppyVisitsContent.hero.imageUrl;
|
||||||
seoImageAlt = puppyVisitsContent.hero.imageAlt;
|
seoImageAlt = puppyVisitsContent.hero.imageAlt;
|
||||||
pageStructuredData = [
|
pageStructuredData = [
|
||||||
{
|
buildServiceNode({
|
||||||
'@context': 'https://schema.org',
|
|
||||||
'@type': 'Service',
|
|
||||||
name: 'Goodwalk Puppy Visits',
|
name: 'Goodwalk Puppy Visits',
|
||||||
description: data.page.description,
|
description: data.page.description,
|
||||||
serviceType: 'In-home puppy visits',
|
serviceType: 'In-home puppy visits',
|
||||||
provider: { '@id': 'https://www.goodwalk.co.nz/#business' },
|
|
||||||
areaServed,
|
|
||||||
image: absoluteUrl(seoImage),
|
image: absoluteUrl(seoImage),
|
||||||
url: `${siteUrl}${data.page.canonicalPath}`,
|
url: `${siteUrl}${data.page.canonicalPath}`,
|
||||||
offers: aggregateOfferSchema(puppyVisitsContent.pricing.plans),
|
offers: aggregateOfferSchema(puppyVisitsContent.pricing.plans)
|
||||||
aggregateRating: sharedServiceRating,
|
}),
|
||||||
author: expertProvider,
|
|
||||||
dateModified: puppyVisitsContent.lastUpdated
|
|
||||||
},
|
|
||||||
buildBreadcrumb([
|
buildBreadcrumb([
|
||||||
{ name: 'Home', url: siteUrl },
|
{ name: 'Home', url: siteUrl },
|
||||||
{ name: 'Puppy Visits', path: data.page.canonicalPath }
|
{ name: 'Puppy Visits', path: data.page.canonicalPath }
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ describe('static slug route page', () => {
|
|||||||
['our-pricing', ourPricingContent.subtitle ?? ourPricingContent.title],
|
['our-pricing', ourPricingContent.subtitle ?? ourPricingContent.title],
|
||||||
['about', aboutPageContent.sections[0].title],
|
['about', aboutPageContent.sections[0].title],
|
||||||
['testimonials', 'Client Testimonials'],
|
['testimonials', 'Client Testimonials'],
|
||||||
['contact-us', "Let's meet!"],
|
['contact-us', 'Contact Us'],
|
||||||
['terms-and-conditions', '1. Application of Terms'],
|
['terms-and-conditions', '1. Application of Terms'],
|
||||||
['privacy-policy', 'How we collect your information']
|
['privacy-policy', 'How we collect your information']
|
||||||
] as const)('renders the %s page branch', (slug, expectedText) => {
|
] as const)('renders the %s page branch', (slug, expectedText) => {
|
||||||
@@ -49,26 +49,21 @@ describe('static slug route page', () => {
|
|||||||
data: createStaticRouteData(slug)
|
data: createStaticRouteData(slug)
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(screen.queryByText("Let's meet!")).not.toBeInTheDocument();
|
expect(screen.queryByText(/Tell us about your dog/i)).not.toBeInTheDocument();
|
||||||
expect(screen.queryByText('What our clients say')).not.toBeInTheDocument();
|
expect(screen.queryByText('What our clients say')).not.toBeInTheDocument();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
it('shows the general enquiry option on the contact page only', () => {
|
it('does not surface the general-enquiry option even when the flag is on', () => {
|
||||||
const { rerender } = render(SlugPage, {
|
render(SlugPage, {
|
||||||
data: {
|
data: {
|
||||||
...createStaticRouteData('contact-us'),
|
...createStaticRouteData('contact-us'),
|
||||||
generalEnquiryEnabled: true
|
generalEnquiryEnabled: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(screen.getByRole('button', { name: /General enquiry/i })).toBeInTheDocument();
|
|
||||||
|
|
||||||
rerender({
|
|
||||||
data: createStaticRouteData('pack-walks')
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(screen.queryByRole('button', { name: /General enquiry/i })).not.toBeInTheDocument();
|
expect(screen.queryByRole('button', { name: /General enquiry/i })).not.toBeInTheDocument();
|
||||||
|
expect(screen.queryByLabelText(/General enquiry/i)).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders the shared FAQ section on the contact page', () => {
|
it('renders the shared FAQ section on the contact page', () => {
|
||||||
|
|||||||
@@ -0,0 +1,90 @@
|
|||||||
|
import { json, error } from '@sveltejs/kit';
|
||||||
|
import { getPool } from '$lib/server/db';
|
||||||
|
|
||||||
|
const ALLOWED_EVENT_TYPES = new Set(['exposure', 'cta_click', 'conversion']);
|
||||||
|
const MAX_FIELD = 64;
|
||||||
|
const MAX_META_BYTES = 2048;
|
||||||
|
const BOT_UA_RE = /bot|spider|crawl|slurp|facebookexternalhit|whatsapp|telegram|preview|monitor|pingdom|uptime|lighthouse|headlesschrome|axios|curl|wget|python-requests/i;
|
||||||
|
|
||||||
|
// Ensures the events table exists. Idempotent and cheap. We run this once
|
||||||
|
// per Node process to handle prod where the init script's only chance was
|
||||||
|
// volume creation. CREATE TABLE IF NOT EXISTS is the contract.
|
||||||
|
let schemaReady: Promise<void> | null = null;
|
||||||
|
function ensureSchema(pool: ReturnType<typeof getPool>): Promise<void> {
|
||||||
|
if (!pool) return Promise.resolve();
|
||||||
|
if (!schemaReady) {
|
||||||
|
schemaReady = pool
|
||||||
|
.query(
|
||||||
|
`create table if not exists ab_events (
|
||||||
|
id bigserial primary key,
|
||||||
|
experiment text not null,
|
||||||
|
variant text not null,
|
||||||
|
event_type text not null check (event_type in ('exposure', 'cta_click', 'conversion')),
|
||||||
|
anon_id text not null,
|
||||||
|
meta jsonb not null default '{}'::jsonb,
|
||||||
|
created_at timestamptz not null default now()
|
||||||
|
);
|
||||||
|
create index if not exists ab_events_experiment_variant_idx
|
||||||
|
on ab_events (experiment, variant, event_type, created_at desc);`
|
||||||
|
)
|
||||||
|
.then(() => undefined)
|
||||||
|
.catch((err) => {
|
||||||
|
schemaReady = null; // retry on next request
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return schemaReady;
|
||||||
|
}
|
||||||
|
|
||||||
|
function clamp(value: unknown): string | null {
|
||||||
|
if (typeof value !== 'string') return null;
|
||||||
|
const trimmed = value.trim();
|
||||||
|
if (!trimmed) return null;
|
||||||
|
return trimmed.slice(0, MAX_FIELD);
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function POST({ request, locals }) {
|
||||||
|
const ua = request.headers.get('user-agent') ?? '';
|
||||||
|
// No UA at all, or a known bot UA → drop silently. Don't pollute metrics
|
||||||
|
// with scraper exposures or load-balancer health probes.
|
||||||
|
if (!ua || BOT_UA_RE.test(ua)) return json({ ok: true, recorded: false, reason: 'ua' });
|
||||||
|
|
||||||
|
if (!locals.anonId) return json({ ok: true, recorded: false, reason: 'no_anon' });
|
||||||
|
|
||||||
|
let body: Record<string, unknown>;
|
||||||
|
try {
|
||||||
|
body = (await request.json()) as Record<string, unknown>;
|
||||||
|
} catch {
|
||||||
|
throw error(400, 'invalid json');
|
||||||
|
}
|
||||||
|
|
||||||
|
const experiment = clamp(body.experiment);
|
||||||
|
const variant = clamp(body.variant);
|
||||||
|
const eventType = clamp(body.event_type);
|
||||||
|
if (!experiment || !variant || !eventType) throw error(400, 'missing fields');
|
||||||
|
if (!ALLOWED_EVENT_TYPES.has(eventType)) throw error(400, 'bad event_type');
|
||||||
|
|
||||||
|
const meta = body.meta && typeof body.meta === 'object' ? body.meta : {};
|
||||||
|
const metaJson = JSON.stringify(meta);
|
||||||
|
if (metaJson.length > MAX_META_BYTES) throw error(400, 'meta too large');
|
||||||
|
|
||||||
|
const pool = getPool();
|
||||||
|
// No DB configured (local dev without Postgres) → silently accept so the
|
||||||
|
// marketing site keeps working. Variant assignment still happens; we just
|
||||||
|
// can't measure it. Production has DATABASE_URL set.
|
||||||
|
if (!pool) return json({ ok: true, recorded: false, reason: 'no_db' });
|
||||||
|
|
||||||
|
try {
|
||||||
|
await ensureSchema(pool);
|
||||||
|
await pool.query(
|
||||||
|
`insert into ab_events (experiment, variant, event_type, anon_id, meta)
|
||||||
|
values ($1, $2, $3, $4, $5::jsonb)`,
|
||||||
|
[experiment, variant, eventType, locals.anonId, metaJson]
|
||||||
|
);
|
||||||
|
} catch (err) {
|
||||||
|
console.error('ab_events insert failed', err);
|
||||||
|
throw error(500, 'insert failed');
|
||||||
|
}
|
||||||
|
|
||||||
|
return json({ ok: true, recorded: true });
|
||||||
|
}
|
||||||
@@ -21,7 +21,9 @@ describe('home page route', () => {
|
|||||||
const booking = document.getElementById('newlead');
|
const booking = document.getElementById('newlead');
|
||||||
|
|
||||||
expect(screen.getAllByText(homepageContent.hero.highlight).length).toBeGreaterThan(0);
|
expect(screen.getAllByText(homepageContent.hero.highlight).length).toBeGreaterThan(0);
|
||||||
expect(screen.getByText(homepageContent.intro.text)).toBeInTheDocument();
|
const introHeadlineText = homepageContent.intro.text.replace(/\.$/, '');
|
||||||
|
const introHeading = document.querySelector('#intro .intro-headline');
|
||||||
|
expect(introHeading?.textContent?.replace(/\s+/g, ' ').trim()).toBe(introHeadlineText);
|
||||||
expect(screen.getByText('Calmer dogs. Clearer routines. Less worry.')).toBeInTheDocument();
|
expect(screen.getByText('Calmer dogs. Clearer routines. Less worry.')).toBeInTheDocument();
|
||||||
expect(screen.getByText(homepageContent.howItWorks.title)).toBeInTheDocument();
|
expect(screen.getByText(homepageContent.howItWorks.title)).toBeInTheDocument();
|
||||||
expect(screen.getByText(homepageContent.info.title)).toBeInTheDocument();
|
expect(screen.getByText(homepageContent.info.title)).toBeInTheDocument();
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { HERO_EXPERIMENT } from '$lib/server/ab';
|
||||||
|
import { getExperimentResults } from '$lib/server/ab-results';
|
||||||
|
|
||||||
|
export const load = async () => {
|
||||||
|
return {
|
||||||
|
results: await getExperimentResults(HERO_EXPERIMENT),
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -0,0 +1,153 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import type { PageData } from './$types';
|
||||||
|
|
||||||
|
export let data: PageData;
|
||||||
|
|
||||||
|
$: results = data.results;
|
||||||
|
$: control = results.rows.find((r) => r.variant === 'control');
|
||||||
|
$: variant = results.rows.find((r) => r.variant !== 'control');
|
||||||
|
$: lift =
|
||||||
|
control && variant && control.cvr_pct != null && variant.cvr_pct != null && control.cvr_pct > 0
|
||||||
|
? Math.round(((variant.cvr_pct - control.cvr_pct) / control.cvr_pct) * 10000) / 100
|
||||||
|
: null;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Experiments · Goodwalk</title>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<main class="exp">
|
||||||
|
<header class="exp-header">
|
||||||
|
<h1>Experiments</h1>
|
||||||
|
<p class="exp-meta">
|
||||||
|
Experiment <code>{results.experiment}</code> · computed
|
||||||
|
{new Date(results.computedAt).toLocaleString('en-NZ')}
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{#if !results.available}
|
||||||
|
<p class="exp-note exp-note-error">{results.note ?? 'Unavailable.'}</p>
|
||||||
|
{:else if results.rows.length === 0}
|
||||||
|
<p class="exp-note">{results.note ?? 'No events recorded yet.'}</p>
|
||||||
|
{:else}
|
||||||
|
<table class="exp-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Variant</th>
|
||||||
|
<th>Exposures</th>
|
||||||
|
<th>CTA clicks</th>
|
||||||
|
<th>Conversions</th>
|
||||||
|
<th>Click-thru</th>
|
||||||
|
<th>CVR</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{#each results.rows as row}
|
||||||
|
<tr>
|
||||||
|
<td><code>{row.variant}</code></td>
|
||||||
|
<td>{row.exposures}</td>
|
||||||
|
<td>{row.cta_clicks}</td>
|
||||||
|
<td>{row.conversions}</td>
|
||||||
|
<td>{row.click_thru_pct != null ? `${row.click_thru_pct}%` : '—'}</td>
|
||||||
|
<td>{row.cvr_pct != null ? `${row.cvr_pct}%` : '—'}</td>
|
||||||
|
</tr>
|
||||||
|
{/each}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{#if lift != null && control && variant}
|
||||||
|
<p class="exp-lift" class:exp-lift-positive={lift > 0} class:exp-lift-negative={lift < 0}>
|
||||||
|
<strong>{variant.variant}</strong> vs <strong>control</strong>: {lift > 0 ? '+' : ''}{lift}%
|
||||||
|
relative CVR.
|
||||||
|
</p>
|
||||||
|
<p class="exp-note">
|
||||||
|
Counts are unique visitors per event type. Statistical significance is not computed here —
|
||||||
|
wait for ≥200 conversions per variant before drawing conclusions.
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<section class="exp-preview">
|
||||||
|
<h2>Preview a variant</h2>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/?ab=control" target="_blank" rel="noopener">View control</a></li>
|
||||||
|
<li><a href="/?ab=free_emphasis" target="_blank" rel="noopener">View free_emphasis</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.exp {
|
||||||
|
max-width: 880px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 2.5rem 1.5rem 4rem;
|
||||||
|
font-family: var(--font-family-body, system-ui, sans-serif);
|
||||||
|
color: var(--color-text, #213021);
|
||||||
|
}
|
||||||
|
.exp-header h1 {
|
||||||
|
margin: 0 0 0.25rem;
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
.exp-meta {
|
||||||
|
margin: 0 0 2rem;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.exp-table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
.exp-table th,
|
||||||
|
.exp-table td {
|
||||||
|
text-align: left;
|
||||||
|
padding: 0.75rem 0.75rem;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
.exp-table th {
|
||||||
|
font-weight: 600;
|
||||||
|
background: #f6f6f3;
|
||||||
|
}
|
||||||
|
.exp-table code {
|
||||||
|
background: #eef2ee;
|
||||||
|
padding: 0.1rem 0.4rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
.exp-lift {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: #f6f6f3;
|
||||||
|
}
|
||||||
|
.exp-lift-positive {
|
||||||
|
background: #e6f4e6;
|
||||||
|
}
|
||||||
|
.exp-lift-negative {
|
||||||
|
background: #fde8e8;
|
||||||
|
}
|
||||||
|
.exp-note {
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.exp-note-error {
|
||||||
|
color: #b00020;
|
||||||
|
}
|
||||||
|
.exp-preview {
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
padding-top: 1.5rem;
|
||||||
|
border-top: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
.exp-preview h2 {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
margin: 0 0 0.5rem;
|
||||||
|
}
|
||||||
|
.exp-preview ul {
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 1.2rem;
|
||||||
|
}
|
||||||
|
.exp-preview a {
|
||||||
|
color: #213021;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -8,6 +8,7 @@ export const GET: RequestHandler = () => {
|
|||||||
'Disallow: /contract',
|
'Disallow: /contract',
|
||||||
'Disallow: /meet-greet-v2',
|
'Disallow: /meet-greet-v2',
|
||||||
'Disallow: /variants-contact-form',
|
'Disallow: /variants-contact-form',
|
||||||
|
'Disallow: /variants/',
|
||||||
'',
|
'',
|
||||||
'# AI crawlers — explicitly permitted',
|
'# AI crawlers — explicitly permitted',
|
||||||
'User-agent: GPTBot',
|
'User-agent: GPTBot',
|
||||||
|
|||||||
@@ -0,0 +1,881 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import Icon from '$lib/components/Icon.svelte';
|
||||||
|
|
||||||
|
const instagramHref = 'https://www.instagram.com/goodwalk.nz/';
|
||||||
|
|
||||||
|
// Thumbnails for the polaroid stack + phone mosaic come from the existing
|
||||||
|
// imagery in /static/images so this page works without new uploads.
|
||||||
|
const gridImages = [
|
||||||
|
'/images/goodwalk-tiny-gang-pack-walk-auckland.webp',
|
||||||
|
'/images/goodwalk-tiny-gang-mt-albert-park-auckland.webp',
|
||||||
|
'/images/goodwalk-tiny-gang-finishing-walk-suv-auckland.webp',
|
||||||
|
'/images/goodwalk-client-dogs-mt-cecila-auckland.webp',
|
||||||
|
'/images/goodwalk-tiny-gang-pack-walk-small-dogs-auckland.webp',
|
||||||
|
'/images/goodwalk-dogs-group-outing-auckland.webp',
|
||||||
|
'/images/archie-goodwalk-dog-walking-review-auckland.webp',
|
||||||
|
'/images/monty-goodwalk-dog-walking-review-auckland.webp',
|
||||||
|
'/images/otis-goodwalk-dog-walking-review-auckland.webp'
|
||||||
|
];
|
||||||
|
|
||||||
|
const variants = [
|
||||||
|
{
|
||||||
|
id: 'editorial',
|
||||||
|
index: '01',
|
||||||
|
label: 'Photo-led editorial',
|
||||||
|
kicker: 'Magazine feel — image does the work, type stays quiet'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'phone-mosaic',
|
||||||
|
index: '02',
|
||||||
|
label: 'Phone mosaic',
|
||||||
|
kicker: 'Native Instagram preview — see exactly what you’ll get'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'quiet-split',
|
||||||
|
index: '03',
|
||||||
|
label: 'Quiet split',
|
||||||
|
kicker: 'Apple-style restraint — no yellow background, no dog cutout'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Instagram CTA — variants</title>
|
||||||
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<main class="variants-page">
|
||||||
|
<header class="variants-header">
|
||||||
|
<span class="variants-eyebrow">Variants</span>
|
||||||
|
<h1>Follow-on-Instagram CTA</h1>
|
||||||
|
<p>
|
||||||
|
Three reference takes on the existing yellow banner. All link to <code>@goodwalk.nz</code>.
|
||||||
|
No copy, branding, or palette changes — same content, three different ways to frame it.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<nav class="variants-nav" aria-label="Jump to variant">
|
||||||
|
{#each variants as variant}
|
||||||
|
<a href={`#${variant.id}`} class="variants-nav-chip">
|
||||||
|
<span class="variants-nav-index">{variant.index}</span>
|
||||||
|
<span class="variants-nav-label">{variant.label}</span>
|
||||||
|
</a>
|
||||||
|
{/each}
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- ─── Variant 01: Photo-led editorial ─────────────────────────────────── -->
|
||||||
|
<section id="editorial" class="variant-showcase">
|
||||||
|
<div class="variant-meta">
|
||||||
|
<span class="variant-index">01</span>
|
||||||
|
<div>
|
||||||
|
<h2>Photo-led editorial</h2>
|
||||||
|
<p>Full-bleed dog photo. Type sits in a dark scrim on the left. A small Instagram source pill anchors the corner. Yellow CTA the only saturated element.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="variant-stage variant-stage-editorial">
|
||||||
|
<aside class="ig-editorial" aria-label="Follow Goodwalk on Instagram">
|
||||||
|
<div class="ig-editorial-photo">
|
||||||
|
<img
|
||||||
|
src="/images/goodwalk-tiny-gang-pack-walk-small-dogs-auckland.webp"
|
||||||
|
alt=""
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ig-editorial-scrim">
|
||||||
|
<div class="ig-editorial-copy">
|
||||||
|
<span class="ig-editorial-source">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>@goodwalk.nz</span>
|
||||||
|
</span>
|
||||||
|
<h2>Follow the Tiny Gang on Instagram.</h2>
|
||||||
|
<p>Daily walks, real dogs, no filter. Park runs, pack moments, and the kind of updates you'd actually want to scroll.</p>
|
||||||
|
|
||||||
|
<a href={instagramHref} target="_blank" rel="noopener" class="ig-editorial-cta">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>Follow @goodwalk.nz</span>
|
||||||
|
<Icon name="fas fa-arrow-right" className="ig-editorial-arrow" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ─── Variant 02: Phone mosaic ────────────────────────────────────────── -->
|
||||||
|
<section id="phone-mosaic" class="variant-showcase">
|
||||||
|
<div class="variant-meta">
|
||||||
|
<span class="variant-index">02</span>
|
||||||
|
<div>
|
||||||
|
<h2>Phone mosaic</h2>
|
||||||
|
<p>Goodwalk green panel, copy left. Right side carries a subtle phone frame showing a 3×3 Instagram grid. Visitors see the product before they tap.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="variant-stage variant-stage-mosaic">
|
||||||
|
<aside class="ig-mosaic" aria-label="Follow Goodwalk on Instagram">
|
||||||
|
<div class="ig-mosaic-copy">
|
||||||
|
<span class="ig-mosaic-eyebrow">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>@goodwalk.nz</span>
|
||||||
|
</span>
|
||||||
|
<h2>Follow the Tiny Gang on Instagram.</h2>
|
||||||
|
<p>Pack walks, puppy visits, and the dogs your dog would call friends. Updated most days.</p>
|
||||||
|
|
||||||
|
<a href={instagramHref} target="_blank" rel="noopener" class="btn btn-yellow ig-mosaic-cta">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>Follow on Instagram</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<div class="ig-mosaic-meta" aria-label="Follower stats">
|
||||||
|
<div>
|
||||||
|
<strong>30+</strong>
|
||||||
|
<span>five-star reviews</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<strong>Daily</strong>
|
||||||
|
<span>tiny-gang updates</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ig-mosaic-phone" aria-hidden="true">
|
||||||
|
<div class="ig-mosaic-phone-frame">
|
||||||
|
<div class="ig-mosaic-phone-header">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
<span>goodwalk.nz</span>
|
||||||
|
<span class="ig-mosaic-phone-dot" aria-hidden="true">•</span>
|
||||||
|
<span class="ig-mosaic-phone-follow">Following</span>
|
||||||
|
</div>
|
||||||
|
<div class="ig-mosaic-phone-grid">
|
||||||
|
{#each gridImages as src}
|
||||||
|
<div class="ig-mosaic-phone-cell">
|
||||||
|
<img {src} alt="" loading="lazy" decoding="async" />
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ─── Variant 03: Quiet split ─────────────────────────────────────────── -->
|
||||||
|
<section id="quiet-split" class="variant-showcase">
|
||||||
|
<div class="variant-meta">
|
||||||
|
<span class="variant-index">03</span>
|
||||||
|
<div>
|
||||||
|
<h2>Quiet split</h2>
|
||||||
|
<p>No yellow page background. The section sits on off-white. One editorial photo, type at the leading edge, CTA understated. The page exhales here instead of shouting.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="variant-stage variant-stage-quiet">
|
||||||
|
<aside class="ig-quiet" aria-label="Follow Goodwalk on Instagram">
|
||||||
|
<div class="ig-quiet-copy">
|
||||||
|
<span class="ig-quiet-eyebrow">Daily on Instagram</span>
|
||||||
|
<h2>The Tiny Gang, day by day.</h2>
|
||||||
|
<p>
|
||||||
|
A small window into our walks. Park favourites, new pack pairings, and the
|
||||||
|
quieter moments owners love coming home to.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<a href={instagramHref} target="_blank" rel="noopener" class="ig-quiet-cta">
|
||||||
|
<span class="ig-quiet-cta-mark" aria-hidden="true">
|
||||||
|
<Icon name="fab fa-instagram" />
|
||||||
|
</span>
|
||||||
|
<span class="ig-quiet-cta-text">
|
||||||
|
<span class="ig-quiet-cta-handle">@goodwalk.nz</span>
|
||||||
|
<span class="ig-quiet-cta-action">
|
||||||
|
Follow
|
||||||
|
<Icon name="fas fa-arrow-right" />
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ig-quiet-media">
|
||||||
|
<img
|
||||||
|
src="/images/goodwalk-tiny-gang-mt-albert-park-auckland.webp"
|
||||||
|
alt=""
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.variants-page {
|
||||||
|
background: var(--off-white);
|
||||||
|
min-height: 100vh;
|
||||||
|
padding-bottom: 96px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Page header ─────────────────────────────────────────────────────── */
|
||||||
|
.variants-header {
|
||||||
|
max-width: 880px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 96px 24px 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-eyebrow {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: 0.18em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-header h1 {
|
||||||
|
margin: 0 0 18px;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: clamp(34px, 4vw, 48px);
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.025em;
|
||||||
|
line-height: 1.05;
|
||||||
|
color: var(--text-heading);
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-header p {
|
||||||
|
margin: 0;
|
||||||
|
max-width: 60ch;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-header code {
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: rgba(33, 48, 33, 0.08);
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-nav {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
margin-top: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-nav-chip {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 9px 16px 9px 12px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.08), 0 6px 16px rgba(17, 20, 24, 0.04);
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: transform 0.18s ease, box-shadow 0.22s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-nav-chip:hover {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.1), 0 10px 22px rgba(17, 20, 24, 0.07);
|
||||||
|
}
|
||||||
|
|
||||||
|
.variants-nav-index {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--yellow);
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Each variant block ──────────────────────────────────────────────── */
|
||||||
|
.variant-showcase {
|
||||||
|
max-width: 1280px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 72px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-meta {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 18px;
|
||||||
|
margin-bottom: 28px;
|
||||||
|
max-width: 760px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-index {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--gw-green);
|
||||||
|
color: var(--yellow);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-meta h2 {
|
||||||
|
margin: 0 0 6px;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-heading);
|
||||||
|
letter-spacing: -0.015em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-meta p {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.55;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The "stage" mimics where the section sits on the live page — page
|
||||||
|
surface around it, so each variant reads in context. */
|
||||||
|
.variant-stage {
|
||||||
|
padding: 56px clamp(24px, 4vw, 64px);
|
||||||
|
border-radius: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-stage-editorial {
|
||||||
|
background: #f4efe5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-stage-mosaic {
|
||||||
|
background: var(--yellow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-stage-quiet {
|
||||||
|
background: var(--off-white);
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ═══════════════════════════════════════════════════════════════════════
|
||||||
|
Variant 01 — Photo-led editorial
|
||||||
|
═══════════════════════════════════════════════════════════════════════ */
|
||||||
|
.ig-editorial {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 28px;
|
||||||
|
aspect-ratio: 2.6 / 1;
|
||||||
|
min-height: 280px;
|
||||||
|
box-shadow: 0 30px 70px rgba(17, 20, 24, 0.16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-photo {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-photo img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: 60% 40%;
|
||||||
|
transform: scale(1.02);
|
||||||
|
transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial:hover .ig-editorial-photo img {
|
||||||
|
transform: scale(1.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-scrim {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: linear-gradient(
|
||||||
|
100deg,
|
||||||
|
rgba(15, 24, 15, 0.86) 0%,
|
||||||
|
rgba(15, 24, 15, 0.74) 36%,
|
||||||
|
rgba(15, 24, 15, 0.18) 70%,
|
||||||
|
rgba(15, 24, 15, 0) 100%
|
||||||
|
);
|
||||||
|
padding: 48px clamp(28px, 4vw, 56px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-copy {
|
||||||
|
max-width: 480px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-source {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 12px 6px 10px;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
|
-webkit-backdrop-filter: blur(6px);
|
||||||
|
color: #fff;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-source :global(.icon) {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-copy h2 {
|
||||||
|
margin: 0 0 12px;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: clamp(26px, 3vw, 36px);
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.025em;
|
||||||
|
line-height: 1.08;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-copy p {
|
||||||
|
margin: 0 0 26px;
|
||||||
|
color: rgba(255, 255, 255, 0.78);
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.55;
|
||||||
|
max-width: 36ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 13px 22px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--yellow);
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 800;
|
||||||
|
text-decoration: none;
|
||||||
|
box-shadow: 0 12px 24px rgba(255, 209, 0, 0.32);
|
||||||
|
transition: transform 0.22s ease, box-shadow 0.22s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 18px 32px rgba(255, 209, 0, 0.38);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta :global(.ig-editorial-arrow) {
|
||||||
|
transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-cta:hover :global(.ig-editorial-arrow) {
|
||||||
|
transform: translateX(3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ═══════════════════════════════════════════════════════════════════════
|
||||||
|
Variant 02 — Phone mosaic
|
||||||
|
═══════════════════════════════════════════════════════════════════════ */
|
||||||
|
.ig-mosaic {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: clamp(24px, 4vw, 56px);
|
||||||
|
padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
|
||||||
|
border-radius: 32px;
|
||||||
|
background:
|
||||||
|
radial-gradient(circle at 100% 0%, rgba(255, 209, 0, 0.16), transparent 38%),
|
||||||
|
var(--gw-green);
|
||||||
|
color: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-copy {
|
||||||
|
max-width: 460px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-eyebrow {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 7px 14px 7px 11px;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(255, 255, 255, 0.12);
|
||||||
|
color: var(--yellow);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic h2 {
|
||||||
|
margin: 0 0 14px;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: clamp(28px, 3vw, 38px);
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.025em;
|
||||||
|
line-height: 1.06;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-copy p {
|
||||||
|
margin: 0 0 28px;
|
||||||
|
color: rgba(255, 255, 255, 0.78);
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.55;
|
||||||
|
max-width: 38ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-cta {
|
||||||
|
gap: 9px;
|
||||||
|
font-weight: 800;
|
||||||
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-meta {
|
||||||
|
display: flex;
|
||||||
|
gap: 32px;
|
||||||
|
margin-top: 32px;
|
||||||
|
padding-top: 24px;
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.14);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-meta div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-meta strong {
|
||||||
|
color: var(--yellow);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-meta span {
|
||||||
|
color: rgba(255, 255, 255, 0.7);
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
min-height: 320px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-frame {
|
||||||
|
width: min(100%, 320px);
|
||||||
|
padding: 14px;
|
||||||
|
border-radius: 26px;
|
||||||
|
background: linear-gradient(180deg, #fafaf7, #ecebe5);
|
||||||
|
box-shadow:
|
||||||
|
inset 0 0 0 1px rgba(17, 20, 24, 0.1),
|
||||||
|
0 28px 60px rgba(0, 0, 0, 0.32),
|
||||||
|
0 4px 10px rgba(0, 0, 0, 0.18);
|
||||||
|
transform: rotate(-3deg);
|
||||||
|
transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic:hover .ig-mosaic-phone-frame {
|
||||||
|
transform: rotate(-1.5deg) translateY(-4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 4px 14px;
|
||||||
|
color: var(--text-heading);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-header :global(.icon) {
|
||||||
|
color: var(--text-heading);
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-dot {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-follow {
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 3px;
|
||||||
|
border-radius: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-cell {
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
overflow: hidden;
|
||||||
|
background: rgba(33, 48, 33, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-cell img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ═══════════════════════════════════════════════════════════════════════
|
||||||
|
Variant 03 — Quiet split
|
||||||
|
═══════════════════════════════════════════════════════════════════════ */
|
||||||
|
.ig-quiet {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: clamp(32px, 5vw, 72px);
|
||||||
|
padding: clamp(28px, 3vw, 40px) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-copy {
|
||||||
|
max-width: 440px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-eyebrow {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: var(--gw-green);
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: 0.18em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet h2 {
|
||||||
|
margin: 0 0 18px;
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: clamp(28px, 3.2vw, 40px);
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.03em;
|
||||||
|
line-height: 1.04;
|
||||||
|
color: var(--text-heading);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-copy p {
|
||||||
|
margin: 0 0 32px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.6;
|
||||||
|
max-width: 36ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: 14px;
|
||||||
|
padding: 8px 8px 8px 12px;
|
||||||
|
border-radius: 18px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.08), 0 18px 32px rgba(17, 20, 24, 0.06);
|
||||||
|
color: var(--text-heading);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: transform 0.22s ease, box-shadow 0.22s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.1), 0 24px 40px rgba(17, 20, 24, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta-mark {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: var(--gw-green);
|
||||||
|
color: var(--yellow);
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta-text {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta-handle {
|
||||||
|
font-family: var(--font-head);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-heading);
|
||||||
|
line-height: 1.1;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta-action {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta-action :global(.icon) {
|
||||||
|
font-size: 10px;
|
||||||
|
transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta:hover .ig-quiet-cta-action :global(.icon) {
|
||||||
|
transform: translateX(3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-media {
|
||||||
|
position: relative;
|
||||||
|
aspect-ratio: 4 / 3;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 24px;
|
||||||
|
box-shadow: 0 22px 50px rgba(17, 20, 24, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-media img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet:hover .ig-quiet-media img {
|
||||||
|
transform: scale(1.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Mobile ──────────────────────────────────────────────────────────── */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.variants-header {
|
||||||
|
padding: 64px 20px 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-showcase {
|
||||||
|
padding: 48px 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.variant-stage {
|
||||||
|
padding: 28px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial {
|
||||||
|
aspect-ratio: auto;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-photo {
|
||||||
|
position: relative;
|
||||||
|
aspect-ratio: 4 / 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-editorial-scrim {
|
||||||
|
position: relative;
|
||||||
|
inset: auto;
|
||||||
|
background: var(--gw-green);
|
||||||
|
padding: 28px 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
padding: 32px 22px;
|
||||||
|
gap: 24px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-copy {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-eyebrow,
|
||||||
|
.ig-mosaic-cta {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-meta {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone {
|
||||||
|
min-height: 0;
|
||||||
|
aspect-ratio: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-mosaic-phone-frame {
|
||||||
|
width: min(100%, 280px);
|
||||||
|
transform: rotate(-2deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 24px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-copy {
|
||||||
|
order: 2;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-copy p {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-cta {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-quiet-media {
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reduced motion */
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.ig-editorial-photo img,
|
||||||
|
.ig-mosaic-phone-frame,
|
||||||
|
.ig-quiet-media img,
|
||||||
|
.ig-editorial-cta,
|
||||||
|
.ig-quiet-cta {
|
||||||
|
transition: none;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -14,7 +14,12 @@ export function createHomepageRouteData() {
|
|||||||
return {
|
return {
|
||||||
siteVariant: 'marketing',
|
siteVariant: 'marketing',
|
||||||
content: homepageContent,
|
content: homepageContent,
|
||||||
howItWorksEnabled: false
|
howItWorksEnabled: false,
|
||||||
|
ab: {
|
||||||
|
experiment: 'hero_cta',
|
||||||
|
variant: 'control' as const,
|
||||||
|
anonId: 'test-anon'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||