v4.0.5
Component architecture - Reorganise src/lib/components into pages/, sections/, ui/ subdirectories and update all imports across routes and tests. Owner admin dashboard (+2k lines) - Scheduled welcome-pack emails: durable queue with cancel/reschedule and a background sender loop (SCHEDULED_CHECK_INTERVAL_SECONDS, default 60s). - Custom welcome-pack subject line, preview recipients, and client BCC. - Add-client, edit client profile, and reset-onboarding flows. - "View as client" onboarding preview (owner impersonation, dry-run submit). - Tabbed owner welcome route (/owner/welcome/[[tab]]). MYOB integration - New mail_api/myob.py: create new clients as MYOB AccountRight customer contacts. Disabled until all MYOB_* env vars are set (no-op otherwise). Onboarding - New "Does your dog resource guard?" Yes/No question in the Behaviour step. - Persist vetAddress, flea/tick, and pet-insurance fields server-side. Misc - vite config, new hooks.ts, responsive CSS tweaks, deploy/docker config, mail-api README and start-dev.ps1. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -277,6 +277,17 @@ if [[ -f "$DEPLOY_PATH/.env" ]]; then
|
||||
echo "[deploy-remote] Preserving existing $DEPLOY_PATH/.env"
|
||||
fi
|
||||
|
||||
# The application source tree is fully owned by the repo and is only used as
|
||||
# Docker build context — it holds no runtime data. The rsync below uses no
|
||||
# --delete, so a file removed or renamed in the repo (e.g. a moved SvelteKit
|
||||
# route) would otherwise linger here and break the build with a route conflict.
|
||||
# Wipe src/ first so it is rebuilt exactly from the archive. Runtime data,
|
||||
# .env, and Docker volumes live outside src/ and are untouched.
|
||||
if [[ -d "$DEPLOY_PATH/src" ]]; then
|
||||
echo "[deploy-remote] Refreshing $DEPLOY_PATH/src from archive (pruning stale files)"
|
||||
rm -rf "$DEPLOY_PATH/src"
|
||||
fi
|
||||
|
||||
echo "[deploy-remote] Copying application files into $DEPLOY_PATH"
|
||||
if command -v rsync >/dev/null 2>&1; then
|
||||
rsync -a \
|
||||
|
||||
Reference in New Issue
Block a user