feat: clarify web library memory and conversation management
Rebuild & Deploy / rebuild (push) Failing after 17s
Rebuild & Deploy / rebuild (push) Failing after 17s
This commit is contained in:
1 parent
3183ebaea7
commit
41ca590744
11 files changed
+767
-70
No files matched your search
+11
-1
@@ -19,7 +19,7 @@
|
||||
function updateMemoryStatus() {
|
||||
text('settingsMemoryStatus', !memory || memory.hidden
|
||||
? 'Memory controls are unavailable for this account. No memory has been changed.'
|
||||
: 'Review or edit your saved memory below. Clearing memory does not delete conversations.');
|
||||
: '');
|
||||
}
|
||||
function identity(user, changed) {
|
||||
text('settingsAccountName', user?.display_name || user?.username || '');
|
||||
@@ -51,6 +51,10 @@
|
||||
button.classList.toggle('selected', active);
|
||||
if (active) button.setAttribute('aria-current', 'page'); else button.removeAttribute('aria-current');
|
||||
});
|
||||
if (window.matchMedia('(max-width: 600px)').matches) {
|
||||
const selected = dialog.querySelector('[data-settings-target].selected');
|
||||
selected?.scrollIntoView({block: 'nearest', inline: 'nearest', behavior: 'instant'});
|
||||
}
|
||||
// auth.js keeps its polling and provisioning handlers; never copy them.
|
||||
if ($('adminSection')) $('adminSection').hidden = section !== 'admin';
|
||||
$('adminBtn')?.setAttribute('aria-expanded', String(section === 'admin'));
|
||||
@@ -64,6 +68,12 @@
|
||||
if (typeof loadModelSettings === 'function') loadModelSettings();
|
||||
}
|
||||
}
|
||||
if (section === 'security') {
|
||||
text('securityServer', window.location.host);
|
||||
text('securityConnection', window.location.protocol === 'https:' ? 'HTTPS · connection encrypted in transit' : 'Not HTTPS · use your secure Hope address');
|
||||
const user = window.HopeAuth?.user;
|
||||
text('securityIdentity', user ? `${user.display_name || user.username} (@${user.username})` : 'Not signed in');
|
||||
}
|
||||
if (section === 'privacy') {
|
||||
if (!memory) memory = window.HopeFeatures?.mountMemory?.($('privacyMemory') || panel('privacy')) || null;
|
||||
const status = $('featureStatus');
|
||||
|
||||
Reference in new issue
Block a user