@dieulc/workflow 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +40 -14
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -4187,21 +4187,30 @@ export default function workflowExtension(pi: ExtensionAPI) {
4187
4187
  const lbl = ` ${box} ${roleIcon(roleName)} ${roleName} `;
4188
4188
  chips.push(
4189
4189
  i === currentTab
4190
- ? theme.bg("selectedBg", theme.fg("text", lbl))
4191
- : theme.fg(dirty ? "success" : "muted", lbl),
4190
+ ? theme.bg(
4191
+ "selectedBg",
4192
+ `${theme.fg("accent", "→")} ${theme.fg("text", lbl)}`,
4193
+ )
4194
+ : theme.fg(dirty ? "success" : "muted", ` ${lbl}`),
4192
4195
  );
4193
4196
  }
4194
4197
  const saveActivateLbl = " ✓ Save & activate ";
4195
4198
  const saveOnlyLbl = " 💾 Save only ";
4196
4199
  chips.push(
4197
4200
  isSaveActivate()
4198
- ? theme.bg("selectedBg", theme.fg("text", saveActivateLbl))
4199
- : theme.fg("success", saveActivateLbl),
4201
+ ? theme.bg(
4202
+ "selectedBg",
4203
+ `${theme.fg("accent", "→")} ${theme.fg("text", saveActivateLbl)}`,
4204
+ )
4205
+ : theme.fg("success", ` ${saveActivateLbl}`),
4200
4206
  );
4201
4207
  chips.push(
4202
4208
  currentTab === tabIds.length + 1
4203
- ? theme.bg("selectedBg", theme.fg("text", saveOnlyLbl))
4204
- : theme.fg("success", saveOnlyLbl),
4209
+ ? theme.bg(
4210
+ "selectedBg",
4211
+ `${theme.fg("accent", "→")} ${theme.fg("text", saveOnlyLbl)}`,
4212
+ )
4213
+ : theme.fg("success", ` ${saveOnlyLbl}`),
4205
4214
  );
4206
4215
  lines.push(` ${chips.join("")}`);
4207
4216
  lines.push("");
@@ -4991,15 +5000,21 @@ export default function workflowExtension(pi: ExtensionAPI) {
4991
5000
  const lbl = ` ${box} ${roleIcon(r.name)} ${r.name} `;
4992
5001
  chips.push(
4993
5002
  i === currentTab
4994
- ? theme.bg("selectedBg", theme.fg("text", lbl))
4995
- : theme.fg(dirty ? "success" : "muted", lbl),
5003
+ ? theme.bg(
5004
+ "selectedBg",
5005
+ `${theme.fg("accent", "→")} ${theme.fg("text", lbl)}`,
5006
+ )
5007
+ : theme.fg(dirty ? "success" : "muted", ` ${lbl}`),
4996
5008
  );
4997
5009
  }
4998
5010
  const submitLbl = " ✓ Submit ";
4999
5011
  chips.push(
5000
5012
  isSubmitTab()
5001
- ? theme.bg("selectedBg", theme.fg("text", submitLbl))
5002
- : theme.fg("success", submitLbl),
5013
+ ? theme.bg(
5014
+ "selectedBg",
5015
+ `${theme.fg("accent", "→")} ${theme.fg("text", submitLbl)}`,
5016
+ )
5017
+ : theme.fg("success", ` ${submitLbl}`),
5003
5018
  );
5004
5019
  lines.push(` ${chips.join("")}`);
5005
5020
  lines.push("");
@@ -5730,17 +5745,28 @@ export default function workflowExtension(pi: ExtensionAPI) {
5730
5745
  const box = answered ? "■" : "□";
5731
5746
  const color = answered ? "success" : "muted";
5732
5747
  const text = ` ${box} ${lbl} `;
5748
+ // The active tab carries an explicit marker, not only the
5749
+ // selection fill. A fill alone is easy to miss in a host that
5750
+ // paints it in its own palette (the desktop app); the marker is
5751
+ // what says "this one" in every surface. The marker replaces
5752
+ // the two-space indent, so the labels stay aligned.
5733
5753
  const styled = active
5734
- ? theme.bg("selectedBg", theme.fg("text", text))
5735
- : theme.fg(color as any, text);
5754
+ ? theme.bg(
5755
+ "selectedBg",
5756
+ `${theme.fg("accent", "→")} ${theme.fg("text", text)}`,
5757
+ )
5758
+ : theme.fg(color as any, ` ${text}`);
5736
5759
  tabs.push(`${styled} `);
5737
5760
  }
5738
5761
  const canSubmit = allAnswered();
5739
5762
  const isSubmit = currentTab === questions.length;
5740
5763
  const submitText = " ✓ Submit ";
5741
5764
  const sStyled = isSubmit
5742
- ? theme.bg("selectedBg", theme.fg("text", submitText))
5743
- : theme.fg(canSubmit ? "success" : "dim", submitText);
5765
+ ? theme.bg(
5766
+ "selectedBg",
5767
+ `${theme.fg("accent", "→")} ${theme.fg("text", submitText)}`,
5768
+ )
5769
+ : theme.fg(canSubmit ? "success" : "dim", ` ${submitText}`);
5744
5770
  tabs.push(`${sStyled}`);
5745
5771
  // naive join wrapped
5746
5772
  lines.push(` ${tabs.join("")}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dieulc/workflow",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "keywords": ["pi-package", "workflow", "plan-mode", "review-mode", "questionnaire", "rewind"],