@floless/app 0.112.1 → 0.113.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.
@@ -2779,6 +2779,7 @@
2779
2779
  'data-export-details',
2780
2780
  'data-tekla-recovery',
2781
2781
  'data-render-recovery',
2782
+ 'data-open-exports-folder', // the note's `exports` button — survives the repaint an export triggers
2782
2783
  'data-copyshare', // the share-link Copy button — omitted here, a repaint mid-render steals its focus
2783
2784
  ];
2784
2785
 
@@ -2817,8 +2818,15 @@
2817
2818
  html += `<div class="ws-exports-gate">Exports go out after sign-off — ` +
2818
2819
  `<button type="button" id="ws-exports-approve">Approve this version</button> to enable them.</div>`;
2819
2820
  }
2821
+ // The word `exports` was styled like a link (mono, accent-bright) and was inert, so people
2822
+ // clicked it and nothing happened. It is now the control it already looked like: a real button
2823
+ // that opens the folder. `▤` is this pane's established "show me in a folder" glyph — the same
2824
+ // one the per-file Reveal button uses — rather than a new icon vocabulary. Left ENABLED before
2825
+ // the first export on purpose: the sentence asserts the folder as a present-tense fact, and a
2826
+ // disabled-in-its-empty-state control is exactly the trap this pane is reviewed for.
2820
2827
  html += `<div class="exports-note"><b>Export at any stage</b> — polishing is optional. ` +
2821
- `Each writes to this project’s <code>exports</code> folder.</div>`;
2828
+ `Each writes to this project’s <button type="button" class="exports-note-link" data-open-exports-folder ` +
2829
+ `aria-label="Open the exports folder" data-tip="Open this project’s exports folder">▤ exports</button> folder.</div>`;
2822
2830
  const cards = (wsApp() && wsApp().exports) || [];
2823
2831
  html += '<div class="export-grid">' + cards.map((c) => cardHtml(c, approved)).join('') + '</div>';
2824
2832
  $wsExports.innerHTML = html;
@@ -3211,8 +3219,27 @@
3211
3219
  }
3212
3220
  }
3213
3221
 
3222
+ /**
3223
+ * Open the project's own exports folder. Deliberately NOT routed through `fileAction`: that helper
3224
+ * sends a `path` from the browser, and this endpoint takes none — the server derives the directory
3225
+ * from the project id. The user-visible failure is identical to a file-level Reveal, which is the
3226
+ * part that has to match.
3227
+ */
3228
+ async function openExportsFolder() {
3229
+ const projectId = current && current.id;
3230
+ if (!projectId) return;
3231
+ try {
3232
+ await api(`/api/projects/${encodeURIComponent(projectId)}/exports/open`, { method: 'POST' });
3233
+ } catch (err) {
3234
+ const detail = err && err.body && err.body.error;
3235
+ const failMsg = 'Couldn’t open the exports folder';
3236
+ showToast(detail ? `${failMsg} — ${detail}` : failMsg, 'warn');
3237
+ }
3238
+ }
3239
+
3214
3240
  $wsExports.addEventListener('click', (e) => {
3215
3241
  if (e.target.closest('#ws-exports-approve')) { approveProject(); return; }
3242
+ if (e.target.closest('[data-open-exports-folder]')) { openExportsFolder(); return; }
3216
3243
  const details = e.target.closest('[data-export-details]');
3217
3244
  if (details) { showExportReceiptDetails(details.dataset.exportDetails, details); return; }
3218
3245
  const recovery = e.target.closest('[data-tekla-recovery]');
@@ -4042,6 +4069,7 @@
4042
4069
  'control-dropped': 'Sheet controls',
4043
4070
  'elevation-default-missing': 'Elevations',
4044
4071
  'elevation-in-inferred': 'Elevations',
4072
+ 'column-zero-height': 'Elevations',
4045
4073
  'dedup-merge-proposed': 'Duplicate members',
4046
4074
  'marker-unbound': 'Duplicate members',
4047
4075
  'marker-merge-dependent': 'Duplicate members',
@@ -4052,6 +4080,7 @@
4052
4080
  'field-unmapped': 'Things that will not carry across',
4053
4081
  'enum-value-unsupported': 'Things that will not carry across',
4054
4082
  'scratch-history-discarded': 'Things that will not carry across',
4083
+ 'grid-ends-materialized': 'Things that will not carry across',
4055
4084
  'view-camera-unframed': 'Saved views',
4056
4085
  'view-generated-unresolved': 'Saved views',
4057
4086
  'view-generated-regenerated': 'Saved views',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.112.1",
3
+ "version": "0.113.0",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {
@@ -27,6 +27,7 @@
27
27
  "verify:skills": "node build/verify-shipped-skills.mjs",
28
28
  "verify:flo": "node build/verify-flo-descriptions.mjs",
29
29
  "verify:no-title": "node build/verify-no-title.mjs",
30
+ "verify:display-sync": "node build/verify-display-sync.mjs",
30
31
  "verify:view-modes": "node build/verify-view-modes.mjs",
31
32
  "verify:gateway": "node build/verify-contract-gateway.mjs",
32
33
  "verify:flo-versions": "node build/verify-flo-versions.mjs",