Plain wording: Get feedback
Browse files- static/index.html +3 -3
static/index.html
CHANGED
|
@@ -1556,8 +1556,8 @@ details.fold > .fold-body, details.fold > .kid-subjects { padding: 0 12px 10px 2
|
|
| 1556 |
const box = h("section", { class: "sheet coach" }, h("h3", { text: forParent ? "✨ Coach: how is it going?" : "✨ Coach: how did I do?" }));
|
| 1557 |
if (!S.tutorOn) { box.append(h("p", { class: "muted", text: "The coach isn't switched on yet." })); return box; }
|
| 1558 |
if (!R.coach || !R.coach.msgs.length) {
|
| 1559 |
-
box.append(h("p", { class: "muted", text: forParent ? "Get
|
| 1560 |
-
h("button", { class: "btn accent", disabled: R.busy || !R.data, text: R.busy ? "Thinking…" : "✨
|
| 1561 |
return box;
|
| 1562 |
}
|
| 1563 |
for (const m of R.coach.msgs) box.append(h("div", { class: `bubble ${m.who === "me" ? "me" : m.who === "coach" ? "tutor" : "system"}` }, m.who === "coach" ? md(m.text) : h("p", { text: m.text })));
|
|
@@ -1573,7 +1573,7 @@ details.fold > .fold-body, details.fold > .kid-subjects { padding: 0 12px 10px 2
|
|
| 1573 |
const box = h("section", { class: "sheet share" }, h("h3", { text: "📤 Share this report" }));
|
| 1574 |
if (!fam.length) { box.append(h("p", { class: "muted", text: "No parent is linked to your account yet." })); return box; }
|
| 1575 |
const commentary = R.coach && (R.coach.msgs.find((m) => m.who === "coach") || {}).text || "";
|
| 1576 |
-
box.append(h("p", { class: "muted", text: commentary ? "Your numbers and the
|
| 1577 |
const send = async (ids) => {
|
| 1578 |
try {
|
| 1579 |
const r = await api("api/report/share", { method: "POST", body: JSON.stringify({ ...reportQuery(), to: ids, commentary }) });
|
|
|
|
| 1556 |
const box = h("section", { class: "sheet coach" }, h("h3", { text: forParent ? "✨ Coach: how is it going?" : "✨ Coach: how did I do?" }));
|
| 1557 |
if (!S.tutorOn) { box.append(h("p", { class: "muted", text: "The coach isn't switched on yet." })); return box; }
|
| 1558 |
if (!R.coach || !R.coach.msgs.length) {
|
| 1559 |
+
box.append(h("p", { class: "muted", text: forParent ? "Get feedback on this period: what went well, what to keep an eye on, and how you can help." : "Get feedback on this period: what went well, what to pay attention to, and what to do next." }),
|
| 1560 |
+
h("button", { class: "btn accent", disabled: R.busy || !R.data, text: R.busy ? "Thinking…" : "✨ Get feedback", onclick: () => coachSend("") }));
|
| 1561 |
return box;
|
| 1562 |
}
|
| 1563 |
for (const m of R.coach.msgs) box.append(h("div", { class: `bubble ${m.who === "me" ? "me" : m.who === "coach" ? "tutor" : "system"}` }, m.who === "coach" ? md(m.text) : h("p", { text: m.text })));
|
|
|
|
| 1573 |
const box = h("section", { class: "sheet share" }, h("h3", { text: "📤 Share this report" }));
|
| 1574 |
if (!fam.length) { box.append(h("p", { class: "muted", text: "No parent is linked to your account yet." })); return box; }
|
| 1575 |
const commentary = R.coach && (R.coach.msgs.find((m) => m.who === "coach") || {}).text || "";
|
| 1576 |
+
box.append(h("p", { class: "muted", text: commentary ? "Your numbers and the feedback will be sent." : "Your numbers will be sent. Get feedback first if you'd like to include it." }));
|
| 1577 |
const send = async (ids) => {
|
| 1578 |
try {
|
| 1579 |
const r = await api("api/report/share", { method: "POST", body: JSON.stringify({ ...reportQuery(), to: ids, commentary }) });
|