@xeplr/ui-factory 1.8.1 → 1.8.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/ui-factory",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "Design data-entry screens on @xeplr/ui-canvas, save them as JSON, run them as auto-saving forms with lists of saved records — built for Claude to draft and people to refine",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -30,7 +30,12 @@ const STATUS = {
30
30
 
31
31
  /** What the background save is doing, in words. */
32
32
  function SaveStatus({ ctrl }) {
33
- const text = ctrl.status === 'error' ? `Not saved — ${ctrl.saveError}` : STATUS[ctrl.status]
33
+ // A screen with no table of its own (a review in a workflow) saves nothing,
34
+ // so "Unsaved changes" and "Saved" would describe something that is not
35
+ // happening. What still matters there is a field left wrong.
36
+ const keeps = Boolean(ctrl.document && ctrl.document.source)
37
+ const quiet = !keeps && (ctrl.status === 'pending' || ctrl.status === 'saved' || ctrl.status === 'saving')
38
+ const text = quiet ? '' : ctrl.status === 'error' ? `Not saved — ${ctrl.saveError}` : STATUS[ctrl.status]
34
39
  return (
35
40
  <span className={`xeplr-factory-footer-status xeplr-factory-footer-status--${ctrl.status}`} role="status" aria-live="polite">
36
41
  {text}