Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h3>Premium</h3>
<h2>Request tech support</h2>
<p class="sub">Tell me what is happening and when works for you. I will follow up using your preferred contact method.</p>

<form id="service-request" data-intake-form data-intake-endpoint="https://parrot.tail60dba7.ts.net:8443/v1/intake">
<form id="service-request" data-intake-form data-intake-enabled="false" data-intake-endpoint="https://parrot.tail60dba7.ts.net:8443/v1/intake">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the client gate to the activation procedure

After the storage safeguards are installed, the documented activation procedure in DEPLOY.md:20 only sets PUBLIC_INTAKE_ENABLED=true and recreates the intake container. This hard-coded client flag belongs to the separately deployed static site and has no connection to that environment variable, so following the runbook leaves the submit button permanently disabled even though the receiver is enabled; coordinate flipping and redeploying this attribute with server activation, or avoid the independent client-side gate.

Useful? React with 👍 / 👎.

<input type="hidden" id="request-type" name="requestType" value="website_request" />
<input type="hidden" id="source-page" name="sourcePage" value="/book.html" />

Expand Down
5 changes: 5 additions & 0 deletions intake.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

const status = document.getElementById('intake-status');
const submit = document.getElementById('intake-submit');
if (form.dataset.intakeEnabled !== 'true') {
submit.disabled = true;
status.textContent = 'Online requests are temporarily paused. Please email hello@ohgeec.com. Do not include passwords.';
return;
Comment on lines +8 to +11

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve URL-specific setup before returning

When visitors follow the /tech-support/onsite-montana/ link to /book.html?mode=onsite, this return skips all subsequent mode handling, so the booking page incorrectly retains its remote-support headline, pricing, categories, and default service mode. Move the intake-enabled guard below the URL-driven page initialization while still returning before the submit handler is registered.

Useful? React with 👍 / 👎.

}
const params = new URLSearchParams(window.location.search);
const mode = params.get('mode');
const serviceMode = document.getElementById('service-mode');
Expand Down
Loading