shadok-ai 0.15.29 → 0.15.30
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/README.md +2 -2
- package/package.json +1 -1
- package/public/index.html +13 -15
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ Enter to skip; you can add it later from the web UI).
|
|
|
77
77
|
grouping, and closing all sync live between the browser and Telegram: it's
|
|
78
78
|
one list, server-owned, not two copies.
|
|
79
79
|
- **Groups column** — on a desktop the groups get a column of their own, left
|
|
80
|
-
of the agents: pick a group and the agents column shows only its agents
|
|
81
|
-
|
|
80
|
+
of the agents: pick a group and the agents column shows only its agents
|
|
81
|
+
(*Ungrouped* holds the rest, the home agent included unless you file it). Each
|
|
82
82
|
group has an icon — drawn at random, click it to pick another or type any
|
|
83
83
|
emoji — and a **+** that creates the new agent straight into that group.
|
|
84
84
|
Dragging an agent onto a group still files it there, and dragging groups
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -707,8 +707,8 @@
|
|
|
707
707
|
agents column keeps its DOM (groups, bodies, tabs) because that is what is
|
|
708
708
|
persisted, so the filtering below is pure CSS over it: group heads go (the
|
|
709
709
|
rail is the header now), bodies are always unfolded, and every tab outside
|
|
710
|
-
the selected group is hidden
|
|
711
|
-
|
|
710
|
+
the selected group is hidden, the home agent included (it lives in its own
|
|
711
|
+
group like any other). Phones (≤640px) keep the single-column sheet. */
|
|
712
712
|
#groupRail { display: none; }
|
|
713
713
|
.icon-picker[hidden] { display: none; }
|
|
714
714
|
@media (min-width: 641px) {
|
|
@@ -781,11 +781,11 @@
|
|
|
781
781
|
#tabbar .group { margin-top: 0; }
|
|
782
782
|
#tabbar .group-body { padding-left: 0; }
|
|
783
783
|
#tabbar .group.collapsed .group-body { display: flex; }
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
#tabbar
|
|
787
|
-
#tabbar
|
|
788
|
-
#tabbar .group:not(.in-view)
|
|
784
|
+
/* The home agent is an agent like the others here: it shows in ITS group
|
|
785
|
+
(usually Ungrouped), not pinned into every one. */
|
|
786
|
+
#tabbar:not([data-view="ungrouped"]) #ungrouped,
|
|
787
|
+
#tabbar[data-view="ungrouped"] #groups,
|
|
788
|
+
#tabbar .group:not(.in-view) { display: none; }
|
|
789
789
|
}
|
|
790
790
|
@media (max-width: 640px) {
|
|
791
791
|
#tabbar .side-label .sl-view, #viewEmpty { display: none; }
|
|
@@ -4159,16 +4159,14 @@
|
|
|
4159
4159
|
applyView();
|
|
4160
4160
|
// Picking a group shows one of ITS agents: staying on an agent that is no
|
|
4161
4161
|
// longer in the list would leave the chat and the list disagreeing.
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
if (follow && active && !active.btnEl.closest("#tweakSlot") && (active.isMain || viewOfTab(active) !== currentView())) {
|
|
4165
|
-
const first = tabsInView(currentView()).find((t) => !t.isMain);
|
|
4162
|
+
if (follow && active && !active.btnEl.closest("#tweakSlot") && viewOfTab(active) !== currentView()) {
|
|
4163
|
+
const first = tabsInView(currentView())[0];
|
|
4166
4164
|
if (first) activate(first);
|
|
4167
4165
|
}
|
|
4168
4166
|
}
|
|
4169
4167
|
/** Whatever opens an agent (a click, a link, a notification) brings its group. */
|
|
4170
4168
|
function showTabGroup(tab) {
|
|
4171
|
-
if (!tab || tab.
|
|
4169
|
+
if (!tab || tab.btnEl.closest("#tweakSlot")) return;
|
|
4172
4170
|
const v = viewOfTab(tab);
|
|
4173
4171
|
if (v !== currentView()) setView(v, { follow: false });
|
|
4174
4172
|
}
|
|
@@ -4179,7 +4177,7 @@
|
|
|
4179
4177
|
for (const g of groups) g.el.classList.toggle("in-view", String(g.id) === v);
|
|
4180
4178
|
const g = groups.find((x) => String(x.id) === v);
|
|
4181
4179
|
$("viewLabel").textContent = g ? `${g.icon} ${g.nameEl.textContent}` : "Ungrouped";
|
|
4182
|
-
$("viewEmpty").hidden = tabsInView(v).
|
|
4180
|
+
$("viewEmpty").hidden = tabsInView(v).length > 0 || v === "ungrouped";
|
|
4183
4181
|
renderRail();
|
|
4184
4182
|
}
|
|
4185
4183
|
|
|
@@ -4187,7 +4185,7 @@
|
|
|
4187
4185
|
["needs-answer", "unread", "working"].find((m) => t.btnEl.classList.contains(m)) || null;
|
|
4188
4186
|
|
|
4189
4187
|
function railItem({ view, icon, name, group }) {
|
|
4190
|
-
const members = tabsInView(view)
|
|
4188
|
+
const members = tabsInView(view);
|
|
4191
4189
|
const item = document.createElement("div");
|
|
4192
4190
|
item.className = "rail-item" + (group ? " editable" : "");
|
|
4193
4191
|
item.dataset.view = view;
|
|
@@ -4302,7 +4300,7 @@
|
|
|
4302
4300
|
// replaced under the pointer.
|
|
4303
4301
|
const v = currentView();
|
|
4304
4302
|
const sig = v + "|" + entries.map((e) => {
|
|
4305
|
-
const members = tabsInView(e.view)
|
|
4303
|
+
const members = tabsInView(e.view);
|
|
4306
4304
|
return [e.view, e.icon, e.name, members.length, members.map(moodOf).join(",")].join("/");
|
|
4307
4305
|
}).join("|");
|
|
4308
4306
|
if (sig !== railSig) {
|