clavarium 0.2.441-next.1 → 0.2.442-next.1

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.441-next.1",
3
+ "version": "0.2.442-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.441-next.1",
9
+ "version": "0.2.442-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.441-next.1",
3
+ "version": "0.2.442-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
package/web/app.js CHANGED
@@ -4304,7 +4304,9 @@
4304
4304
  });
4305
4305
  }
4306
4306
  /* Its settings, on the Access chapter. `giving`: « Give… » instead, in its Assets tab (07-11, assets step 4). */
4307
- async function openAccess(giving = false) {
4307
+ /* `atAccess`: on its Access chapter (a link that asks for it). The settings button keeps the tab the person was
4308
+ on (14-11: it jumped from Resources to Access by itself, each time the settings were opened or painted again). */
4309
+ async function openAccess(giving = false, { atAccess = true } = {}) {
4308
4310
  if (DEVICE || !current) return;
4309
4311
  if (place !== 'conversations') leavePlace();
4310
4312
  if (giving) { openGive(); return; }
@@ -4312,10 +4314,13 @@
4312
4314
  /* What it has may have changed from another screen: asked again before it is shown. */
4313
4315
  await refresh();
4314
4316
  await paintPanel();
4315
- /* The folders button shows the folders: their chapter opened, in its tab. */
4316
- openChapter('access');
4317
+ if (atAccess) openChapter('access');
4317
4318
  }
4318
- $('folders').addEventListener('click', () => { void openAccess(false); });
4319
+ $('folders').addEventListener('click', () => {
4320
+ /* A tab chosen before on this device: that one. Never chosen: its Access chapter, as it always opened. */
4321
+ let kept = null; try { kept = localStorage.getItem('clavarium-tab-panel'); } catch { /* a private window */ }
4322
+ void openAccess(false, { atAccess: !kept });
4323
+ });
4319
4324
  /* « N assets · see »: its Assets tab. */
4320
4325
  $('access-assets').addEventListener('click', () => { goTab('assets'); });
4321
4326