Ashish-K commited on
Commit
cd1cdce
·
verified ·
1 Parent(s): 03358a4

Plain wording: Get feedback

Browse files
Files changed (1) hide show
  1. 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 a short, encouraging read of this period: what went well, what to keep an eye on, and how you can help." : "Get a short, encouraging read of 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…" : "✨ Ask the coach", 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,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 coach's comments will be sent." : "Your numbers will be sent. Ask the coach first if you'd like to include its comments." }));
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 }) });