@agentsignalnet/claude-plugin 0.2.69 → 0.2.70
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/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/dashboard.mjs +36 -1
package/package.json
CHANGED
package/scripts/dashboard.mjs
CHANGED
|
@@ -1920,12 +1920,47 @@ const PAGE = `<!doctype html>
|
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
1922
|
|
|
1923
|
+
/*
|
|
1924
|
+
Clear the refusal as soon as it stops being true. Left up, "Choose who this
|
|
1925
|
+
goes to." is still on screen after they have chosen, which reads as the
|
|
1926
|
+
choice not having registered.
|
|
1927
|
+
*/
|
|
1928
|
+
for (const id of ['to', 'say']) {
|
|
1929
|
+
document.getElementById(id).addEventListener('input', () => {
|
|
1930
|
+
const note = document.getElementById('sent');
|
|
1931
|
+
if (note.textContent.startsWith('Choose') || note.textContent.startsWith('Type')) {
|
|
1932
|
+
note.textContent = '';
|
|
1933
|
+
}
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1923
1937
|
document.getElementById('compose').onsubmit = async (event) => {
|
|
1924
1938
|
event.preventDefault();
|
|
1925
1939
|
const to = document.getElementById('to').value;
|
|
1926
1940
|
const say = document.getElementById('say');
|
|
1927
1941
|
const note = document.getElementById('sent');
|
|
1928
|
-
|
|
1942
|
+
|
|
1943
|
+
/*
|
|
1944
|
+
SAY WHY, rather than doing nothing.
|
|
1945
|
+
|
|
1946
|
+
This was one bare early return covering both cases, so clicking Send with no
|
|
1947
|
+
recipient chosen -- the state the form STARTS in -- did nothing at all:
|
|
1948
|
+
no error, no hint, the typed message still sitting there. Reported as
|
|
1949
|
+
"the send button is not working", which is exactly what it looks like
|
|
1950
|
+
from the outside, and the button was working perfectly.
|
|
1951
|
+
|
|
1952
|
+
Not a disabled button instead. A disabled Send is the same silent
|
|
1953
|
+
failure wearing a different hat: it is clicked, nothing happens, and
|
|
1954
|
+
nothing explains which of the two fields is the problem.
|
|
1955
|
+
*/
|
|
1956
|
+
if (!to) {
|
|
1957
|
+
note.textContent = 'Choose who this goes to.';
|
|
1958
|
+
return;
|
|
1959
|
+
}
|
|
1960
|
+
if (!say.value.trim()) {
|
|
1961
|
+
note.textContent = 'Type something to send.';
|
|
1962
|
+
return;
|
|
1963
|
+
}
|
|
1929
1964
|
note.textContent = 'sending…';
|
|
1930
1965
|
// The channel on screen, said explicitly. A message composed under a
|
|
1931
1966
|
// Sandbox header and delivered into a different channel is the worst
|