@@ -374,48 +479,57 @@ export default function TinyPlaceOrchestrationTab() {
{t('tinyplaceOrchestration.pairing.requests')}
- {incomingRequests.map(request => (
-
-
{request.agentId}
-
-
-
-
+ {incomingRequests.map((request, index) => {
+ const address = contactAddress(request);
+ const handle = address ? agentHandles[address] : null;
+ return (
+
+ {handle ? (
+
@{handle}
+ ) : null}
+
+ {address}
+
+
+
+
+
+
-
- ))}
+ );
+ })}
) : null}
@@ -442,15 +556,90 @@ export default function TinyPlaceOrchestrationTab() {
- {t('tinyplaceOrchestration.sessions')}
+ {t('tinyplaceOrchestration.contacts')}
- {sessions.length === 0 ? (
+ {acceptedContactList.length === 0 ? (
- {t('tinyplaceOrchestration.noSessions')}
+ {t('tinyplaceOrchestration.noContacts')}
) : (
+
+ {acceptedContactList.map((contact, index) => {
+ const address = contactAddress(contact);
+ const handle = address ? agentHandles[address] : null;
+ const isOpen = !!expandedContacts[address];
+ const contactSessions = address ? (sessionsByContact.get(address) ?? []) : [];
+ return (
+
+
+ {isOpen ? (
+
+ {contactSessions.map(chat => (
+ {
+ debug('[tinyplace-orchestration] open session id=%s', chat.id);
+ selectChat(chat.id);
+ }}
+ />
+ ))}
+
+
+ ) : null}
+
+ );
+ })}
+
+ )}
+
+
+ {ungroupedSessions.length > 0 ? (
+
+
+ {t('tinyplaceOrchestration.otherSessions')}
+
- {sessions.map(chat => (
+ {ungroupedSessions.map(chat => (
))}
- )}
-
+
+ ) : null}
@@ -532,7 +721,7 @@ export default function TinyPlaceOrchestrationTab() {
)}
- {isMasterSelected && sessionsState.status === 'ok' ? (
+ {canCompose && sessionsState.status === 'ok' ? (