diff --git a/plan/flare.md b/plan/flare.md index 6f5efc0..e03f7b8 100644 --- a/plan/flare.md +++ b/plan/flare.md @@ -69,10 +69,6 @@ page within about three seconds of the result existing, so a control on it is a control that is gone before it is read — the same reason sharing and the full report left it. The report page it opens carries the link instead. -- [ ] **The form itself.** `SURVEY_URL` is a placeholder in all three, until - jmm pastes the real one in. The placeholder goes to a Google Forms 404, - which is a visible failure rather than a silent one. - ## Still open - [ ] **Rate-limit the endpoint.** Nothing stops a signed-in player filling the @@ -90,7 +86,9 @@ full report left it. The report page it opens carries the link instead. ## Done - [x] **headquarters:** the survey link on your own player page and at the - foot of a match report, and the site-wide banner it is announced from. `site-banner.ts` is the + foot of a match report, and the site-wide banner it is announced from. + The form is jmm's, on Google Forms, and its address is in all three + bundles. `site-banner.ts` is the generalised half: one object, or `null` for a site with nothing to say, rendered by Base.astro into the served HTML and dismissed per browser by the banner's `id`. diff --git a/services/api/src/share.rs b/services/api/src/share.rs index 049acf5..4d9346c 100644 --- a/services/api/src/share.rs +++ b/services/api/src/share.rs @@ -403,9 +403,8 @@ pub(crate) const TAGLINE: &str = "Tactical combat on the Atmosphere."; /// /// A constant, the way the flare board's address is, and `web/src/survey.ts` /// and `arena/suramadu/web/survey.js` carry their own copies of it: three -/// bundles that never share code, one form. PLACEHOLDER until the real form -/// id is pasted in. -const SURVEY_URL: &str = "https://docs.google.com/forms/d/e/REPLACE-WITH-FORM-ID/viewform"; +/// bundles that never share code, one form. +const SURVEY_URL: &str = "https://docs.google.com/forms/d/e/1FAIpQLSdT7hshO7t3JhbvdTB74ixx8D0923ViqDwnhsUXcrYHSwTMFQ/viewform"; /// What the link is called. A control's name, not copy. const SURVEY_LABEL: &str = "Alpha survey"; diff --git a/web/src/survey.ts b/web/src/survey.ts index aa63075..214048f 100644 --- a/web/src/survey.ts +++ b/web/src/survey.ts @@ -19,15 +19,9 @@ import { el } from "./dom"; -/** - * The form. - * - * PLACEHOLDER — the real form id is jmm's to paste in. Until it is, this - * address goes to a Google Forms 404, which is a visible failure rather than - * a silent one. - */ +/** The form. */ export const SURVEY_URL = - "https://docs.google.com/forms/d/e/REPLACE-WITH-FORM-ID/viewform"; + "https://docs.google.com/forms/d/e/1FAIpQLSdT7hshO7t3JhbvdTB74ixx8D0923ViqDwnhsUXcrYHSwTMFQ/viewform"; /** * What the link is called. A control's name, not copy: it says where it goes