clay-server 2.34.0-beta.9 → 2.34.0
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/lib/project-connection.js +1 -0
- package/lib/project-sessions.js +33 -0
- package/lib/public/css/mobile-nav.css +0 -14
- package/lib/public/css/notifications-center.css +23 -19
- package/lib/public/css/sidebar.css +326 -101
- package/lib/public/index.html +7 -10
- package/lib/public/modules/diff.js +21 -7
- package/lib/public/modules/sidebar-mobile.js +10 -20
- package/lib/public/modules/sidebar-sessions.js +490 -113
- package/lib/public/modules/sidebar.js +8 -6
- package/lib/public/modules/tools.js +37 -10
- package/lib/public/sw.js +1 -1
- package/lib/sessions.js +90 -0
- package/lib/ws-schema.js +2 -0
- package/lib/yoke/adapters/codex.js +31 -4
- package/package.json +1 -1
|
@@ -11,7 +11,8 @@ import { getMateSessions } from './mate-sidebar.js';
|
|
|
11
11
|
import { openProjectSettings } from './project-settings.js';
|
|
12
12
|
import {
|
|
13
13
|
getCachedSessions,
|
|
14
|
-
getDateGroup
|
|
14
|
+
getDateGroup,
|
|
15
|
+
openResumePicker
|
|
15
16
|
} from './sidebar-sessions.js';
|
|
16
17
|
import {
|
|
17
18
|
getCachedProjectList,
|
|
@@ -389,12 +390,6 @@ function createMobileSessionItem(s) {
|
|
|
389
390
|
|
|
390
391
|
var titleSpan = document.createElement("span");
|
|
391
392
|
titleSpan.className = "mobile-session-title";
|
|
392
|
-
if (s.bookmarked) {
|
|
393
|
-
var bookmarkIcon = document.createElement("span");
|
|
394
|
-
bookmarkIcon.className = "mobile-session-bookmark";
|
|
395
|
-
bookmarkIcon.innerHTML = iconHtml("star");
|
|
396
|
-
titleSpan.appendChild(bookmarkIcon);
|
|
397
|
-
}
|
|
398
393
|
titleSpan.appendChild(document.createTextNode(s.title || "New Session"));
|
|
399
394
|
el.appendChild(titleSpan);
|
|
400
395
|
|
|
@@ -720,8 +715,7 @@ function renderMobileSessionsInto(container) {
|
|
|
720
715
|
importBtn.innerHTML = '<i data-lucide="import" style="width:16px;height:16px"></i> Import session';
|
|
721
716
|
importBtn.addEventListener("click", function () {
|
|
722
717
|
closeMobileSheet();
|
|
723
|
-
|
|
724
|
-
if (targetBtn) setTimeout(function () { targetBtn.click(); }, 250);
|
|
718
|
+
setTimeout(function () { openResumePicker(); }, 250);
|
|
725
719
|
});
|
|
726
720
|
container.appendChild(importBtn);
|
|
727
721
|
|
|
@@ -784,7 +778,7 @@ function renderMobileSessionsInto(container) {
|
|
|
784
778
|
if (bookmarkedItems.length > 0) {
|
|
785
779
|
var bookmarkedHeader = document.createElement("div");
|
|
786
780
|
bookmarkedHeader.className = "mobile-sheet-group";
|
|
787
|
-
bookmarkedHeader.textContent = "
|
|
781
|
+
bookmarkedHeader.textContent = "Favorites";
|
|
788
782
|
container.appendChild(bookmarkedHeader);
|
|
789
783
|
|
|
790
784
|
for (var bi = 0; bi < bookmarkedItems.length; bi++) {
|
|
@@ -798,10 +792,12 @@ function renderMobileSessionsInto(container) {
|
|
|
798
792
|
var group = getDateGroup(item.lastActivity || 0);
|
|
799
793
|
if (group !== currentGroup) {
|
|
800
794
|
currentGroup = group;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
795
|
+
if (group !== "Today") {
|
|
796
|
+
var header = document.createElement("div");
|
|
797
|
+
header.className = "mobile-sheet-group";
|
|
798
|
+
header.textContent = group;
|
|
799
|
+
container.appendChild(header);
|
|
800
|
+
}
|
|
805
801
|
}
|
|
806
802
|
if (item.type === "loop") {
|
|
807
803
|
container.appendChild(createMobileLoopGroup(item.loopId, item.children, item.groupKey));
|
|
@@ -977,12 +973,6 @@ function renderSearchResults(container, query) {
|
|
|
977
973
|
|
|
978
974
|
var titleSpan = document.createElement("span");
|
|
979
975
|
titleSpan.className = "mobile-session-title";
|
|
980
|
-
if (s.bookmarked) {
|
|
981
|
-
var bookmarkIcon = document.createElement("span");
|
|
982
|
-
bookmarkIcon.className = "mobile-session-bookmark";
|
|
983
|
-
bookmarkIcon.innerHTML = iconHtml("star");
|
|
984
|
-
titleSpan.appendChild(bookmarkIcon);
|
|
985
|
-
}
|
|
986
976
|
titleSpan.appendChild(document.createTextNode(title));
|
|
987
977
|
el.appendChild(titleSpan);
|
|
988
978
|
|