polats commited on
Commit
dccc98e
·
verified ·
1 Parent(s): 590c64d

Deploy Karate Wiener (kimodo kata maker)

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -4921,14 +4921,16 @@ _COMPOSE_JS = r"""
4921
  let hintHTML = '';
4922
  if (poses.length === 0) hintHTML = 'Tap <b style="color:#c79bff">+ Add a stance</b> below to begin.';
4923
  else if (activeIdx >= 1 && poses[activeIdx] && poses[activeIdx]._uid === _czGenPulseUid) {
4924
- // Just generated: celebrate + point at the next action (pulses since the text changed).
4925
- hintHTML = '<b style="color:#c79bff">Move #' + activeIdx + '</b> created. Keep adding stances with <b style="color:#c79bff">+ Add a stance</b> or keep editing.';
4926
  }
4927
  else if (activeIdx >= 1) {
 
4928
  hintHTML = '<span style="color:#9a9aa3">Editing pose on 3d viewer</span><br>'
4929
- + 'drag <b style="color:#6fd0a0">ring</b> to move • <b style="color:#e8736a">knob</b> to rotate<br>'
4930
  + '<span style="color:#9a9aa3">changing duration</span><br>'
4931
- + 'drag <b style="color:#c79bff">…</b> up/down';
 
4932
  }
4933
  else hintHTML = 'Tap a move to edit it, or + add the next stance below.';
4934
  if (hintHTML) { const hint = document.createElement('div'); hint.className = 'kimodo-cz-hint' + (hintHTML !== _czLastHint ? ' pulse' : ''); hint.innerHTML = hintHTML; topbar.appendChild(hint); _czLastHint = hintHTML; }
 
4921
  let hintHTML = '';
4922
  if (poses.length === 0) hintHTML = 'Tap <b style="color:#c79bff">+ Add a stance</b> below to begin.';
4923
  else if (activeIdx >= 1 && poses[activeIdx] && poses[activeIdx]._uid === _czGenPulseUid) {
4924
+ // Just generated/updated: celebrate + point at the next action (pulses since the text changed).
4925
+ hintHTML = '<b style="color:#c79bff">Move #' + activeIdx + '</b> updated. Keep adding stances with <b style="color:#c79bff">+ Add a stance</b> or keep editing.';
4926
  }
4927
  else if (activeIdx >= 1) {
4928
+ const btn = poses[activeIdx].clipId ? 'Refresh' : 'Generate';
4929
  hintHTML = '<span style="color:#9a9aa3">Editing pose on 3d viewer</span><br>'
4930
+ + 'drag <b style="color:#6fd0a0">ring</b> to move • <b style="color:#e8736a">knob</b> to rotate<br><br>'
4931
  + '<span style="color:#9a9aa3">changing duration</span><br>'
4932
+ + 'drag <b style="color:#c79bff">…</b> up/down<br><br>'
4933
+ + '<b style="color:#7db8ff">' + btn + '</b> when done';
4934
  }
4935
  else hintHTML = 'Tap a move to edit it, or + add the next stance below.';
4936
  if (hintHTML) { const hint = document.createElement('div'); hint.className = 'kimodo-cz-hint' + (hintHTML !== _czLastHint ? ' pulse' : ''); hint.innerHTML = hintHTML; topbar.appendChild(hint); _czLastHint = hintHTML; }