autosolutions-os 0.4.20 → 0.4.22
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/CHANGELOG.md +23 -0
- package/dist/feedback.js +50 -5
- package/dist/feedbackAsk.d.ts +1 -1
- package/dist/feedbackAsk.js +8 -2
- package/dist/nav.d.ts +4 -0
- package/dist/nav.js +23 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.22 - 2026-12-01
|
|
4
|
+
|
|
5
|
+
The feedback form shows a picture big (Didac, 18 November 2026, feedback e724e723: "when someone attach a
|
|
6
|
+
picture ... they click preview on the attachment and show what it is on big").
|
|
7
|
+
|
|
8
|
+
- A click on a picture in the form opens it big, inside the form: "Picture 1 of 2", Previous and Next when
|
|
9
|
+
there are more, and Close. Escape, Close or a click beside the picture closes it; the arrow keys move.
|
|
10
|
+
- While it is open the form behind it takes no clicks or Tab (`inert`). Closing gives focus back to the
|
|
11
|
+
picture. The small x still removes a picture.
|
|
12
|
+
- The form still takes pictures only (PNG, JPEG, WebP). Documents would need the core's `feedback-submit`
|
|
13
|
+
and its bucket to take them first.
|
|
14
|
+
- Apps change nothing but the version.
|
|
15
|
+
|
|
16
|
+
## 0.4.21 - 2026-12-01
|
|
17
|
+
|
|
18
|
+
Finance Hub go-live. Menu text and marks only; apps change nothing but the version.
|
|
19
|
+
|
|
20
|
+
- Finance > Approvals & authority is off the menu (it stays in the item catalogue until a core migration removes it).
|
|
21
|
+
- Compliance calendar reads real data (core #156, Hub #152): marked (Incomplete), with what is missing in `OS_TOOL_DATA["compliance-calendar"]`.
|
|
22
|
+
- Month-end close Tasks reads real data (core #158, Hub #154): the `close-tasks` sample tab mark is gone and the hover text says what is still open.
|
|
23
|
+
- Financial Analyst > Exception alerts is the Exceptions desk (core #157, Hub #153); the hover text says which checks still wait for data.
|
|
24
|
+
- The Finance hover texts now name the Unmarked companies (The Unmarked Group, Enxgy, Ledgify) as connected.
|
|
25
|
+
|
|
3
26
|
## 0.4.20 - 2026-11-19
|
|
4
27
|
|
|
5
28
|
Brief submission is a fourth row in the Hub panel's Tools, below Projects (Didac, 19 November 2026:
|
package/dist/feedback.js
CHANGED
|
@@ -8,7 +8,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
8
8
|
* `core.feedback`, for its TopBar's `actions`.
|
|
9
9
|
*
|
|
10
10
|
* The form asks for a type (Bug, Idea, Question, Other), what happened, and up
|
|
11
|
-
* to three pictures (picked, pasted or dropped).
|
|
11
|
+
* to three pictures (picked, pasted or dropped). A click on a picture shows it
|
|
12
|
+
* big inside the form (0.4.22), with Previous and Next when there are more. When the person presses Send
|
|
12
13
|
* it adds what the page knows: the app, the page's path, title and address,
|
|
13
14
|
* the company the bar shows, the browser, the screen, the language, the time
|
|
14
15
|
* zone, the app's commit (Lovable's `data-commit-sha`) and this package's
|
|
@@ -52,7 +53,12 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
52
53
|
const ref = useRef(null);
|
|
53
54
|
const text = useRef(null);
|
|
54
55
|
const file = useRef(null);
|
|
56
|
+
const form = useRef(null);
|
|
57
|
+
const viewClose = useRef(null);
|
|
55
58
|
const id = useId();
|
|
59
|
+
/* The picture shown big (0.4.22, feedback e724e723), or null. */
|
|
60
|
+
const [view, setView] = useState(null);
|
|
61
|
+
const shown = view !== null ? draft.pictures[view] ?? null : null;
|
|
56
62
|
const [sending, setSending] = useState(false);
|
|
57
63
|
const [error, setError] = useState(null);
|
|
58
64
|
const [sent, setSent] = useState(null);
|
|
@@ -71,6 +77,33 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
71
77
|
live.current = false;
|
|
72
78
|
};
|
|
73
79
|
}, []);
|
|
80
|
+
/* While a picture is shown big, the form behind it takes no clicks or Tab
|
|
81
|
+
(inert, set here so React 18 and 19 both write it), and the Close button
|
|
82
|
+
has focus. Closing gives focus back to the picture that was opened. */
|
|
83
|
+
const opened = useRef(null);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
form.current?.toggleAttribute("inert", shown !== null);
|
|
86
|
+
if (shown !== null) {
|
|
87
|
+
viewClose.current?.focus();
|
|
88
|
+
}
|
|
89
|
+
else if (opened.current !== null) {
|
|
90
|
+
const back = form.current?.querySelectorAll(".osfb-pic__open")[opened.current];
|
|
91
|
+
opened.current = null;
|
|
92
|
+
back?.focus();
|
|
93
|
+
}
|
|
94
|
+
}, [shown]);
|
|
95
|
+
const openView = (i) => {
|
|
96
|
+
opened.current = i;
|
|
97
|
+
setView(i);
|
|
98
|
+
};
|
|
99
|
+
const step = (by) => {
|
|
100
|
+
const count = draft.pictures.length;
|
|
101
|
+
if (view === null || count < 2)
|
|
102
|
+
return;
|
|
103
|
+
const next = (view + by + count) % count;
|
|
104
|
+
opened.current = next;
|
|
105
|
+
setView(next);
|
|
106
|
+
};
|
|
74
107
|
const addFiles = async (files) => {
|
|
75
108
|
const list = Array.from(files).filter((f) => f.type.startsWith("image/"));
|
|
76
109
|
if (list.length === 0)
|
|
@@ -106,6 +139,11 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
106
139
|
first, and the paste (a picture or text) lands in the form. */
|
|
107
140
|
const onKeyDown = (e) => {
|
|
108
141
|
e.stopPropagation();
|
|
142
|
+
if (shown !== null && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
143
|
+
e.preventDefault();
|
|
144
|
+
step(e.key === "ArrowLeft" ? -1 : 1);
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
109
147
|
if (!(e.metaKey || e.ctrlKey) || e.altKey || e.key.toLowerCase() !== "v")
|
|
110
148
|
return;
|
|
111
149
|
const at = e.target;
|
|
@@ -154,20 +192,27 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
154
192
|
};
|
|
155
193
|
return (_jsxs("dialog", { ref: ref, "data-os-feedback": "dialog", "aria-labelledby": `${id}-title`, onCancel: (e) => {
|
|
156
194
|
e.preventDefault();
|
|
157
|
-
|
|
195
|
+
/* Escape closes the big picture first, then the form. */
|
|
196
|
+
if (shown !== null)
|
|
197
|
+
setView(null);
|
|
198
|
+
else
|
|
199
|
+
close();
|
|
158
200
|
}, onKeyDown: onKeyDown, onPaste: onPaste, onDragOver: (e) => {
|
|
159
201
|
if (e.dataTransfer?.types?.includes("Files"))
|
|
160
202
|
e.preventDefault();
|
|
161
|
-
}, onDrop: onDrop, children: [_jsx("style", { children: CSS }), _jsxs("form", { className: "osfb-form", method: "dialog", onSubmit: (e) => {
|
|
203
|
+
}, onDrop: onDrop, children: [_jsx("style", { children: CSS }), _jsxs("form", { ref: form, className: "osfb-form", method: "dialog", onSubmit: (e) => {
|
|
162
204
|
e.preventDefault();
|
|
163
205
|
if (!sending && !sent)
|
|
164
206
|
void send();
|
|
165
207
|
}, children: [_jsxs("div", { className: "osfb-head", children: [_jsxs("div", { children: [_jsx("h2", { className: "osfb-title", id: `${id}-title`, children: "Send feedback" }), _jsx("p", { className: "osfb-sub", children: "Tell us what went wrong or what would help." })] }), _jsx("button", { type: "button", className: "osfb-close", "aria-label": "Close", onClick: close, children: "\u00D7" })] }), sent ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "osfb-alert is-ok", role: "status", children: ["Thanks. We got your feedback.", sent.warnings.length > 0 && (_jsx("ul", { children: sent.warnings.map((w) => _jsx("li", { children: w }, w)) }))] }), _jsxs("div", { className: "osfb-actions", children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: () => setSent(null), children: "Send more" }), _jsx("button", { type: "button", className: "osfb-btn is-primary", onClick: close, children: "Close" })] })] })) : (_jsxs(_Fragment, { children: [_jsxs("fieldset", { className: "osfb-group", children: [_jsx("legend", { className: "osfb-label", children: "Type" }), _jsx("div", { className: "osfb-types", children: OS_FEEDBACK_TYPES.map((t) => (_jsxs("label", { className: draft.type === t.value ? "osfb-type is-on" : "osfb-type", children: [_jsx("input", { type: "radio", name: `${id}-type`, value: t.value, checked: draft.type === t.value, onChange: () => setDraft((d) => ({ ...d, type: t.value })) }), t.label] }, t.value))) })] }), _jsxs("div", { children: [_jsx("label", { className: "osfb-label", htmlFor: `${id}-text`, children: "What happened?" }), _jsx("textarea", { ref: text, id: `${id}-text`, className: "osfb-text", value: draft.message, maxLength: OS_FEEDBACK_LIMITS.message, placeholder: "What did you do, what did you expect, and what happened instead?", onChange: (e) => {
|
|
166
208
|
const message = e.target.value;
|
|
167
209
|
setDraft((d) => ({ ...d, message }));
|
|
168
|
-
} })] }), _jsxs("div", { children: [_jsx("span", { className: "osfb-label", id: `${id}-pics`, children: "Pictures (optional)" }), _jsxs("div", { className: "osfb-pics", role: "group", "aria-labelledby": `${id}-pics`, children: [draft.pictures.map((p, i) => (_jsxs("div", { className: "osfb-pic", children: [_jsx("img", { src: p.data, alt: `Picture ${i + 1}` }), _jsx("button", { type: "button", "aria-label": `Remove picture ${i + 1}`, onClick: () => setDraft((d) => ({ ...d, pictures: d.pictures.filter((_, j) => j !== i) })), children: "\u00D7" })] }, `${i}-${p.size}`))), draft.pictures.length < OS_FEEDBACK_LIMITS.pictures && (_jsx("button", { type: "button", className: "osfb-btn", onClick: () => file.current?.click(), children: "Add a picture" })), _jsx("input", { ref: file, className: "osfb-sr", type: "file", accept: "image/png,image/jpeg,image/webp", multiple: true, tabIndex: -1, "aria-hidden": "true", onChange: (e) => {
|
|
210
|
+
} })] }), _jsxs("div", { children: [_jsx("span", { className: "osfb-label", id: `${id}-pics`, children: "Pictures (optional)" }), _jsxs("div", { className: "osfb-pics", role: "group", "aria-labelledby": `${id}-pics`, children: [draft.pictures.map((p, i) => (_jsxs("div", { className: "osfb-pic", children: [_jsx("button", { type: "button", className: "osfb-pic__open", "aria-label": `Show picture ${i + 1} big`, title: "Show it big", onClick: () => openView(i), children: _jsx("img", { src: p.data, alt: `Picture ${i + 1}` }) }), _jsx("button", { type: "button", className: "osfb-pic__remove", "aria-label": `Remove picture ${i + 1}`, onClick: () => setDraft((d) => ({ ...d, pictures: d.pictures.filter((_, j) => j !== i) })), children: "\u00D7" })] }, `${i}-${p.size}`))), draft.pictures.length < OS_FEEDBACK_LIMITS.pictures && (_jsx("button", { type: "button", className: "osfb-btn", onClick: () => file.current?.click(), children: "Add a picture" })), _jsx("input", { ref: file, className: "osfb-sr", type: "file", accept: "image/png,image/jpeg,image/webp", multiple: true, tabIndex: -1, "aria-hidden": "true", onChange: (e) => {
|
|
169
211
|
const files = Array.from(e.target.files ?? []);
|
|
170
212
|
e.target.value = "";
|
|
171
213
|
void addFiles(files);
|
|
172
|
-
} })] }), _jsxs("p", { className: "osfb-note", children: ["You can also paste or drop up to ", OS_FEEDBACK_LIMITS.pictures, " pictures here."] })] }), _jsx("p", { className: "osfb-note", children: "We also send the app, this page's address, your company, your name and email, your browser and the time." }), error && _jsx("p", { className: "osfb-alert is-error", role: "alert", children: error }), _jsxs("div", { className: "osfb-actions", children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: close, children: "Cancel" }), _jsx("button", { type: "submit", className: "osfb-btn is-primary", disabled: sending, children: sending ? "Sending" : "Send" })] })] }))] })
|
|
214
|
+
} })] }), _jsxs("p", { className: "osfb-note", children: ["You can also paste or drop up to ", OS_FEEDBACK_LIMITS.pictures, " pictures here. Click a picture to see it big."] })] }), _jsx("p", { className: "osfb-note", children: "We also send the app, this page's address, your company, your name and email, your browser and the time." }), error && _jsx("p", { className: "osfb-alert is-error", role: "alert", children: error }), _jsxs("div", { className: "osfb-actions", children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: close, children: "Cancel" }), _jsx("button", { type: "submit", className: "osfb-btn is-primary", disabled: sending, children: sending ? "Sending" : "Send" })] })] }))] }), shown !== null && view !== null && (_jsxs("div", { className: "osfb-view", role: "group", "aria-label": `Picture ${view + 1} of ${draft.pictures.length}`, "data-os-feedback": "preview", onClick: (e) => {
|
|
215
|
+
if (e.target === e.currentTarget)
|
|
216
|
+
setView(null);
|
|
217
|
+
}, children: [_jsxs("div", { className: "osfb-view__bar", children: [_jsxs("span", { className: "osfb-view__count", children: ["Picture ", view + 1, " of ", draft.pictures.length] }), draft.pictures.length > 1 && (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: () => step(-1), children: "Previous" }), _jsx("button", { type: "button", className: "osfb-btn", onClick: () => step(1), children: "Next" })] })), _jsx("button", { type: "button", ref: viewClose, className: "osfb-btn is-primary", onClick: () => setView(null), children: "Close" })] }), _jsx("img", { className: "osfb-view__img", src: shown.data, alt: `Picture ${view + 1}, big` })] }))] }));
|
|
173
218
|
}
|
package/dist/feedbackAsk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const OS_FEEDBACK_ASK_CSS = "\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{width:auto;height:2.25rem;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;gap:.375rem;margin-inline-end:1rem;padding:0 .875rem 0 .6875rem;border:0;border-radius:999px;background:linear-gradient(110deg,#D1007C 0%,#6E3192 50%,#D1007C 100%);background-size:200% 100%;background-position:0% 50%;color:#FFFFFF;font:inherit;font-size:.8125rem;font-weight:600;line-height:1;white-space:nowrap;animation:osfb-ask-drift 6s ease-in-out 1s 10 alternate}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask:hover{filter:brightness(1.1)}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask:active{filter:brightness(.95)}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.is-seen{animation:none}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask--float{position:fixed;top:.75rem;inset-inline-end:1rem;z-index:2147483000;margin:0;padding:0 .875rem 0 .6875rem;width:auto;box-shadow:0 .25rem .75rem rgba(0,0,0,.25)}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask--float .osfb-ask__icon{display:block}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask--float .osfb-ask__word{display:inline}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__icon{display:block;flex:0 0 auto}\n@keyframes osfb-ask-drift{from{background-position:0% 50%}to{background-position:100% 50%}}\n@media (max-width:767px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{margin-inline-end:.5rem;gap:.3125rem;padding:0 .6875rem 0 .5rem}}\n@media (max-width:409px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{padding:0 .75rem}.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__icon{display:none}}\n@media (max-width:379px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{width:2.25rem;padding:0}.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__icon{display:block}.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__word{display:none}}\n@media (max-width:359px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{margin-inline-end:.25rem}}\n@media (prefers-reduced-motion:reduce){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{animation:none}}\n@media (forced-colors:active){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{border:1px solid ButtonText;background:ButtonFace;color:ButtonText;forced-color-adjust:none}}\n";
|
|
2
|
-
export declare const OS_FEEDBACK_DIALOG_CSS = "\ndialog[data-os-feedback=\"dialog\"]{box-sizing:border-box;width:min(34rem,calc(100vw - 2rem));max-width:none;max-height:calc(100vh - 2rem);margin:auto;padding:0;border:1px solid var(--ws-color-panel-stroke,#E6E6E8);border-radius:var(--ws-radius-sheet,1rem);background:var(--ws-color-surface,#FFFFFF);color:var(--ws-color-text,#303030);font-family:var(--ws-font,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif);font-size:.875rem;line-height:1.45;text-align:start;box-shadow:0 1.25rem 3.75rem rgba(0,0,0,.25);overflow:auto}\ndialog[data-os-feedback=\"dialog\"]::backdrop{background:rgba(26,26,26,.45)}\ndialog[data-os-feedback=\"dialog\"] *{box-sizing:border-box}\ndialog[data-os-feedback=\"dialog\"] .osfb-form{display:flex;flex-direction:column;gap:1rem;margin:0;padding:1.25rem 1.5rem 1.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-title{margin:0;font-size:1.125rem;line-height:1.3;font-weight:600;color:inherit}\ndialog[data-os-feedback=\"dialog\"] .osfb-sub,dialog[data-os-feedback=\"dialog\"] .osfb-note{margin:.25rem 0 0;font-size:.8125rem;color:var(--ws-color-text-secondary,#616161)}\ndialog[data-os-feedback=\"dialog\"] .osfb-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:-.25rem -.5rem 0 0;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-close:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-label{display:block;margin:0 0 .375rem;font-weight:600;font-size:.8125rem;color:inherit}\ndialog[data-os-feedback=\"dialog\"] fieldset.osfb-group{margin:0;padding:0;border:0;min-width:0}\ndialog[data-os-feedback=\"dialog\"] .osfb-types{display:flex;flex-wrap:wrap;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-type{position:relative;display:inline-flex;align-items:center;height:2rem;padding:0 .875rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:999px;background:var(--ws-color-surface,#FFFFFF);color:inherit;font-weight:550;cursor:pointer;user-select:none}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-type.is-on{border-color:var(--ws-color-pill-ink,#2B5BE3);background:var(--ws-color-pill,#E3EAFD);color:var(--ws-color-pill-ink,#2B5BE3)}\ndialog[data-os-feedback=\"dialog\"] .osfb-type input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:has(input:focus-visible){outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text{display:block;width:100%;min-height:8rem;margin:0;padding:.5rem .75rem;border:1px solid var(--ws-color-sheet-stroke,#D1D1D1);border-radius:.5rem;background:#FFFFFF;color:inherit;font:inherit;line-height:1.45;resize:vertical}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text:focus{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:0;border-color:transparent}\ndialog[data-os-feedback=\"dialog\"] .osfb-pics{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic{position:relative;width:4.5rem;height:4.5rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:.5rem;overflow:hidden;background:#F4F4F5}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic img{display:block;width:100%;height:100%;object-fit:cover}\ndialog[data-os-feedback=\"dialog\"] .osfb-
|
|
2
|
+
export declare const OS_FEEDBACK_DIALOG_CSS = "\ndialog[data-os-feedback=\"dialog\"]{box-sizing:border-box;width:min(34rem,calc(100vw - 2rem));max-width:none;max-height:calc(100vh - 2rem);margin:auto;padding:0;border:1px solid var(--ws-color-panel-stroke,#E6E6E8);border-radius:var(--ws-radius-sheet,1rem);background:var(--ws-color-surface,#FFFFFF);color:var(--ws-color-text,#303030);font-family:var(--ws-font,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif);font-size:.875rem;line-height:1.45;text-align:start;box-shadow:0 1.25rem 3.75rem rgba(0,0,0,.25);overflow:auto}\ndialog[data-os-feedback=\"dialog\"]::backdrop{background:rgba(26,26,26,.45)}\ndialog[data-os-feedback=\"dialog\"] *{box-sizing:border-box}\ndialog[data-os-feedback=\"dialog\"] .osfb-form{display:flex;flex-direction:column;gap:1rem;margin:0;padding:1.25rem 1.5rem 1.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-title{margin:0;font-size:1.125rem;line-height:1.3;font-weight:600;color:inherit}\ndialog[data-os-feedback=\"dialog\"] .osfb-sub,dialog[data-os-feedback=\"dialog\"] .osfb-note{margin:.25rem 0 0;font-size:.8125rem;color:var(--ws-color-text-secondary,#616161)}\ndialog[data-os-feedback=\"dialog\"] .osfb-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:-.25rem -.5rem 0 0;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-close:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-label{display:block;margin:0 0 .375rem;font-weight:600;font-size:.8125rem;color:inherit}\ndialog[data-os-feedback=\"dialog\"] fieldset.osfb-group{margin:0;padding:0;border:0;min-width:0}\ndialog[data-os-feedback=\"dialog\"] .osfb-types{display:flex;flex-wrap:wrap;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-type{position:relative;display:inline-flex;align-items:center;height:2rem;padding:0 .875rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:999px;background:var(--ws-color-surface,#FFFFFF);color:inherit;font-weight:550;cursor:pointer;user-select:none}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-type.is-on{border-color:var(--ws-color-pill-ink,#2B5BE3);background:var(--ws-color-pill,#E3EAFD);color:var(--ws-color-pill-ink,#2B5BE3)}\ndialog[data-os-feedback=\"dialog\"] .osfb-type input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:has(input:focus-visible){outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text{display:block;width:100%;min-height:8rem;margin:0;padding:.5rem .75rem;border:1px solid var(--ws-color-sheet-stroke,#D1D1D1);border-radius:.5rem;background:#FFFFFF;color:inherit;font:inherit;line-height:1.45;resize:vertical}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text:focus{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:0;border-color:transparent}\ndialog[data-os-feedback=\"dialog\"] .osfb-pics{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic{position:relative;width:4.5rem;height:4.5rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:.5rem;overflow:hidden;background:#F4F4F5}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic img{display:block;width:100%;height:100%;object-fit:cover}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic__open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic__open:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:-2px}\ndialog[data-os-feedback=\"dialog\"] .osfb-view{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:1rem;background:rgba(16,16,16,.88);color:#FFFFFF}\ndialog[data-os-feedback=\"dialog\"] .osfb-view__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;max-width:100%}\ndialog[data-os-feedback=\"dialog\"] .osfb-view__count{margin-inline-end:.5rem;font-weight:600}\ndialog[data-os-feedback=\"dialog\"] .osfb-view__img{display:block;max-width:100%;max-height:calc(100vh - 6rem);object-fit:contain;border-radius:.5rem;background:#FFFFFF;box-shadow:0 1rem 3rem rgba(0,0,0,.4)}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic__remove{position:absolute;top:.125rem;right:.125rem;display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:999px;background:rgba(26,26,26,.75);color:#FFFFFF;font:inherit;font-size:.875rem;line-height:1;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;height:2.25rem;padding:0 1rem;border:0;border-radius:.5rem;background:var(--ws-color-button,#E3E3E3);color:var(--ws-color-text,#303030);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn:hover{background:var(--ws-color-button-hover,#D4D4D4)}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn:disabled{cursor:default;opacity:.6}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn.is-primary{background:var(--ws-color-badge,#303030);color:var(--ws-color-badge-text,#FFFFFF)}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn.is-primary:hover{background:#1A1A1A}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn:focus-visible,dialog[data-os-feedback=\"dialog\"] .osfb-close:focus-visible,dialog[data-os-feedback=\"dialog\"] .osfb-pic__remove:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}\ndialog[data-os-feedback=\"dialog\"] .osfb-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert{margin:0;padding:.625rem .75rem;border-radius:.5rem;font-size:.8125rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert.is-error{background:#FDECEE;color:var(--ws-color-text-critical,#8E0B21)}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert.is-ok{background:#E7F5EC;color:#14532D}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert ul{margin:.375rem 0 0;padding-inline-start:1.25rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n";
|
|
3
3
|
export declare const OS_FEEDBACK_SEEN_KEY = "autosolutions-os:feedback-seen";
|
|
4
4
|
export declare function readSeen(): boolean;
|
|
5
5
|
export declare function keepSeen(): void;
|
package/dist/feedbackAsk.js
CHANGED
|
@@ -60,13 +60,19 @@ ${D} textarea.osfb-text:focus{outline:2px solid var(--ws-color-focus,#2B5BE3);ou
|
|
|
60
60
|
${D} .osfb-pics{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
|
|
61
61
|
${D} .osfb-pic{position:relative;width:4.5rem;height:4.5rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:.5rem;overflow:hidden;background:#F4F4F5}
|
|
62
62
|
${D} .osfb-pic img{display:block;width:100%;height:100%;object-fit:cover}
|
|
63
|
-
${D} .osfb-
|
|
63
|
+
${D} .osfb-pic__open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
|
|
64
|
+
${D} .osfb-pic__open:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:-2px}
|
|
65
|
+
${D} .osfb-view{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:1rem;background:rgba(16,16,16,.88);color:#FFFFFF}
|
|
66
|
+
${D} .osfb-view__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;max-width:100%}
|
|
67
|
+
${D} .osfb-view__count{margin-inline-end:.5rem;font-weight:600}
|
|
68
|
+
${D} .osfb-view__img{display:block;max-width:100%;max-height:calc(100vh - 6rem);object-fit:contain;border-radius:.5rem;background:#FFFFFF;box-shadow:0 1rem 3rem rgba(0,0,0,.4)}
|
|
69
|
+
${D} .osfb-pic__remove{position:absolute;top:.125rem;right:.125rem;display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:999px;background:rgba(26,26,26,.75);color:#FFFFFF;font:inherit;font-size:.875rem;line-height:1;cursor:pointer}
|
|
64
70
|
${D} .osfb-btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;height:2.25rem;padding:0 1rem;border:0;border-radius:.5rem;background:var(--ws-color-button,#E3E3E3);color:var(--ws-color-text,#303030);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
|
|
65
71
|
${D} .osfb-btn:hover{background:var(--ws-color-button-hover,#D4D4D4)}
|
|
66
72
|
${D} .osfb-btn:disabled{cursor:default;opacity:.6}
|
|
67
73
|
${D} .osfb-btn.is-primary{background:var(--ws-color-badge,#303030);color:var(--ws-color-badge-text,#FFFFFF)}
|
|
68
74
|
${D} .osfb-btn.is-primary:hover{background:#1A1A1A}
|
|
69
|
-
${D} .osfb-btn:focus-visible,${D} .osfb-close:focus-visible,${D} .osfb-
|
|
75
|
+
${D} .osfb-btn:focus-visible,${D} .osfb-close:focus-visible,${D} .osfb-pic__remove:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}
|
|
70
76
|
${D} .osfb-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}
|
|
71
77
|
${D} .osfb-alert{margin:0;padding:.625rem .75rem;border-radius:.5rem;font-size:.8125rem}
|
|
72
78
|
${D} .osfb-alert.is-error{background:#FDECEE;color:var(--ws-color-text-critical,#8E0B21)}
|
package/dist/nav.d.ts
CHANGED
|
@@ -112,6 +112,10 @@ export declare const OS_FUNCTIONS: OsNavItem[];
|
|
|
112
112
|
* standalone app: no other app's menu shows it, the Hub's included. Candidate
|
|
113
113
|
* Hub places its own row in its own frame, as any app places a tool the map
|
|
114
114
|
* does not have (OsAppTool's `fn`, `section`, `label` and `icon`).
|
|
115
|
+
*
|
|
116
|
+
* One more row is gone since 0.4.21 (the owner's call, 1 December 2026):
|
|
117
|
+
* Finance > Approvals & authority (approvals-authority), until Steve Gordijn
|
|
118
|
+
* describes what it should do; it was a sample only.
|
|
115
119
|
*/
|
|
116
120
|
export declare const OS_MENU: Record<OsMenuFunction, OsToolGroup[]>;
|
|
117
121
|
/**
|
package/dist/nav.js
CHANGED
|
@@ -88,6 +88,10 @@ const overview = (fn) => ({
|
|
|
88
88
|
* standalone app: no other app's menu shows it, the Hub's included. Candidate
|
|
89
89
|
* Hub places its own row in its own frame, as any app places a tool the map
|
|
90
90
|
* does not have (OsAppTool's `fn`, `section`, `label` and `icon`).
|
|
91
|
+
*
|
|
92
|
+
* One more row is gone since 0.4.21 (the owner's call, 1 December 2026):
|
|
93
|
+
* Finance > Approvals & authority (approvals-authority), until Steve Gordijn
|
|
94
|
+
* describes what it should do; it was a sample only.
|
|
91
95
|
*/
|
|
92
96
|
export const OS_MENU = {
|
|
93
97
|
finance: [
|
|
@@ -103,7 +107,6 @@ export const OS_MENU = {
|
|
|
103
107
|
] },
|
|
104
108
|
{ title: "Tools", items: [
|
|
105
109
|
tool("month-end-close", "Month-end close checklist", "fin-compliance", "To build", [["close-tasks", "Tasks"], ["close-progress", "Close progress"], ["close-locks", "Period locks"]]),
|
|
106
|
-
tool("approvals-authority", "Approvals & authority", "fin-approvals", "No status"),
|
|
107
110
|
tool("compliance-calendar", "Compliance calendar", "fin-compliance", "No status"),
|
|
108
111
|
tool("financial-analyst", "Financial Analyst", "agent", "To build", [["fa-weekly", "Weekly finance note"], ["fa-monthly", "Monthly commentary"], ["fa-alerts", "Exception alerts"], ["fa-ask", "Ask a question"]]),
|
|
109
112
|
] },
|
|
@@ -393,54 +396,61 @@ export const OS_TOOL_DATA = {
|
|
|
393
396
|
hourly NetSuite copy. Release 6 (0.4.13): Collections too (chase drafts by fixed rules). */
|
|
394
397
|
"debtors-creditors": {
|
|
395
398
|
data: "incomplete",
|
|
396
|
-
missing: "Frank Body
|
|
399
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. DSO and DPO against last year start after the November 2026 close. Disputed invoices have no source yet. Collections drafts are written by fixed rules, addressed to the customer's email in NetSuite, for a person to check and send.",
|
|
397
400
|
},
|
|
398
401
|
/* Finance Step 3, releases 2 to 4 (0.4.11): P&L vs LY, Cash & forecast's Actual v LY, the Balance
|
|
399
402
|
sheet, Gross margin by channel and Working capital read the core's hourly NetSuite copy (posting
|
|
400
403
|
period, AUD at NetSuite's consolidated rates). Each one's tabs with no source stay samples. */
|
|
401
404
|
"pl-vs-ly": {
|
|
402
405
|
data: "incomplete",
|
|
403
|
-
missing: "Frank Body
|
|
406
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. NetSuite's own P&L structure until Steve's account map. Last year starts with July 2026.",
|
|
404
407
|
},
|
|
405
408
|
"cash-forecast": {
|
|
406
409
|
data: "incomplete",
|
|
407
|
-
missing: "Bank balances from Frank Body
|
|
410
|
+
missing: "Bank balances from NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. LY starts with the November 2026 close. The 13-week forecast holds open invoices and bills by due date, open purchase orders not billed yet (paid at expected receipt plus terms) and the manual flows: no sales forecast, payroll or tax. Forecast accuracy starts a week after the first Monday snapshot.",
|
|
408
411
|
},
|
|
409
412
|
"balance-sheet": {
|
|
410
413
|
data: "incomplete",
|
|
411
|
-
missing: "Frank Body
|
|
414
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. NetSuite's own structure until Steve's account map. LY starts with the November 2026 close. The Balance sheet tab's Group totals keep intercompany in; the Intercompany tab shows what elimination would remove.",
|
|
412
415
|
},
|
|
413
416
|
"margin-by-channel": {
|
|
414
417
|
data: "incomplete",
|
|
415
|
-
missing: "Frank Body
|
|
418
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. Channels are NetSuite's customer categories until Steve's channel rule. Freight, 3PL, terms and Total GM wait for his account map. Last year by channel, customer and SKU starts with November 2025.",
|
|
416
419
|
},
|
|
417
420
|
"working-capital": {
|
|
418
421
|
data: "incomplete",
|
|
419
|
-
missing: "Frank Body
|
|
422
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. The weekly history starts with the first weekly snapshot, and last year a year after it. The 13-week forecast uses run rates of sales (with GST for the Australian companies) and Cost of Goods Sold (no sales forecast yet) and open purchase orders from NetSuite; bills not on a PO are held at today's level. Aged & slow stock shows no near expiry: NetSuite does not track lots or expiry dates.",
|
|
420
423
|
},
|
|
421
424
|
/* Finance release 5 (0.4.12): the Finance Overview and Sales ratio assessments read the core's
|
|
422
425
|
hourly NetSuite copy (the six page functions and finance_page_ratios). The Overview's weekly
|
|
423
426
|
Finance note is still a sample; monthly reports say Provisional until NetSuite closes a month. */
|
|
424
427
|
"finance-home": {
|
|
425
428
|
data: "incomplete",
|
|
426
|
-
missing: "Frank Body
|
|
429
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. Group totals do not remove intercompany. Monthly reports stay Provisional: NetSuite has no closed month yet. The weekly Finance note is written by fixed rules, not AI.",
|
|
427
430
|
},
|
|
428
431
|
"sales-ratios": {
|
|
429
432
|
data: "incomplete",
|
|
430
|
-
missing: "Frank Body
|
|
433
|
+
missing: "NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet. Group totals do not remove intercompany. Ratios use NetSuite's own headings until Steve's account map. Stock, debtor and creditor ratios have last year from the November 2026 close.",
|
|
434
|
+
},
|
|
435
|
+
/* Finance > Compliance calendar (0.4.21; core #156, Hub #152): every tax and filing date per company and
|
|
436
|
+
country, drafted from the tax offices' own pages; Tyler's team checks each rule. */
|
|
437
|
+
"compliance-calendar": {
|
|
438
|
+
data: "incomplete",
|
|
439
|
+
missing: "Every date is a draft until Tyler's team checks its rule. Dates that depend on staff, sales tax states, dividends or company anniversaries wait for their answers. The Shanghai company is not in NetSuite or Xero: a Finance editor adds it on the page. Xero companies come in the morning after they are connected. Public holidays are not counted.",
|
|
431
440
|
},
|
|
432
441
|
/* Finance release 6 (0.4.13): Month-end close reads NetSuite's own period steps (Tasks wait for
|
|
433
442
|
Steve's close template); the Financial Analyst writes its alerts, weekly note and monthly
|
|
434
443
|
commentary by fixed rules from the live Finance pages. 0.4.18: Ask a question is live (Ada's
|
|
435
|
-
finance_cube / finance_query behind the core's finance_ask switch).
|
|
444
|
+
finance_cube / finance_query behind the core's finance_ask switch). 0.4.21 makes Tasks live
|
|
445
|
+
(core #158, Hub #154). */
|
|
436
446
|
"month-end-close": {
|
|
437
447
|
data: "incomplete",
|
|
438
|
-
missing: "NetSuite's own close steps only (AR, AP and all locked, closed), one set of periods for
|
|
439
|
-
tabs: { "close-tasks": "mock" },
|
|
448
|
+
missing: "Close progress and Period locks: NetSuite's own close steps only (AR, AP and all locked, closed), one set of periods for each NetSuite account; the copy holds no lock dates. Tasks: Steve's checklist is a draft until he confirms the steps; bank reconciliation is ticked by hand (the copy has no reconciliation status); intercompany is checked for NetSuite companies only. al.ive body and Strength Lab (Xero) are not connected yet.",
|
|
440
449
|
},
|
|
450
|
+
/* 0.4.21 makes Exception alerts the Exceptions desk (core #157, Hub #153). */
|
|
441
451
|
"financial-analyst": {
|
|
442
452
|
data: "incomplete",
|
|
443
|
-
missing: "Weekly note
|
|
453
|
+
missing: "Weekly note and Monthly commentary are written by fixed rules from the live Finance pages, not by AI. Exception alerts is the Exceptions desk: each problem is a tracked item with an owner and a status until it is fixed, from checks that run every half hour on the NetSuite copy. Two checks wait for data: bank reconciliation (the copy holds no reconciled dates) and bills waiting for approval (the copy reads no bills pending approval). The morning Slack message is off. Ask a question goes to Ada on our own Sparks: she reads only your own companies' Finance data, cannot change it, and marks her figures as query answers, not Finance page figures. NetSuite companies only (Frank Body, The Unmarked Group, Enxgy and Ledgify): al.ive body and Strength Lab (Xero) are not connected yet.",
|
|
444
454
|
},
|
|
445
455
|
};
|
|
446
456
|
/**
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
|
|
2
|
-
export declare const OS_VERSION = "0.4.
|
|
2
|
+
export declare const OS_VERSION = "0.4.22";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
|
|
2
|
-
export const OS_VERSION = "0.4.
|
|
2
|
+
export const OS_VERSION = "0.4.22";
|
package/package.json
CHANGED