fix(freelancer-directory): success copy is a receipt, not a delivery claim

The two relay success strings still described a delivery the stub endpoints
cannot perform ("on its way", "we will email them one invitation"). They were
unreachable only while ODOO_EXPERTS_QUOTE_WEBHOOK / ODOO_EXPERTS_INVITE_WEBHOOK
are empty — setting either re-armed the F1 false confirmation.

- request form success -> "we have your request … come back to you by email"
- invite form success -> "we have recorded your invitation … one-click opt-out"
- comment at each constant: setting it switches the form on; the success copy
  must already be a receipt.

Constants stay empty; both forms stay dark.
This commit is contained in:
webmaster committed 2026-11-03 12:11:03 +00:00
1 parent 4d5d59f3bd
commit 1c3a2a4b0e
1 file changed
+11 -2
+11 -2
View File
@@ -990,7 +990,16 @@
// "not open yet" line (see #requestNotLive / #inviteNotLive) — the visitor can
// never submit, so the page can never confirm an action nothing performs.
// Set the URL to switch a form on; its note then hides itself. Nothing else changes.
//
// Setting this endpoint switches the REQUEST form on. The success copy in
// initRequestForm() must already be a RECEIPT ("we have your request"), never a
// delivery claim ("on its way", "we will send you their answers") — a visitor sees
// it the moment the form goes live, and the endpoint does not repair the copy.
var ODOO_EXPERTS_QUOTE_WEBHOOK = "";
//
// Setting this endpoint switches the INVITE form on. The success copy in
// initInviteForm() must already be a RECEIPT ("we have recorded your invitation"),
// never a delivery claim ("we will email them one invitation") — same reason.
var ODOO_EXPERTS_INVITE_WEBHOOK = "";
// Wire shape, per the user: `languages` and `specialities` are COMMA-SEPARATED
@@ -1224,7 +1233,7 @@
if (!res.ok) throw new Error("HTTP " + res.status);
setStatus(
status,
"Thank you — your request is on its way to the freelancers you picked, with no name attached. We will come back to you with their answers.",
"Thank you — we have your request. We will come back to you by email at the address you gave.",
"ok"
);
form.reset();
@@ -1261,7 +1270,7 @@
if (!res.ok) throw new Error("HTTP " + res.status);
setStatus(
status,
"Thank you — we will email them one invitation to sign up, and tell them you suggested it.",
"Thank you — we have recorded your invitation. If we send it, it names you as the person who suggested them and carries a one-click opt-out.",
"ok"
);
form.reset();