cornfield 0.29.0 → 0.31.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/explorer/view.js CHANGED
@@ -157,13 +157,13 @@ export function setView(view) {
157
157
 
158
158
  export function syncViewUi() {
159
159
  const preset = state.view === 'dataflow';
160
+ // The View switch: the Map button is on for the map itself; Flow and House say theirs (house.js) in aria-pressed too
161
+ const map = $('preset-map-btn');
162
+ if (map) map.setAttribute('aria-pressed', String(state.view !== 'dataflow' && state.view !== 'house'));
160
163
  const btn = $('preset-dataflow-btn');
161
- if (btn) {
162
- btn.classList.toggle('hx-btn--active', preset);
163
- btn.setAttribute('aria-pressed', String(preset));
164
- }
164
+ if (btn) btn.setAttribute('aria-pressed', String(preset));
165
165
  const layersBtn = $('legend-toggle-btn');
166
- if (layersBtn) layersBtn.classList.toggle('hx-btn--dim', preset);
166
+ if (layersBtn) layersBtn.classList.toggle('hx-layers-chip--dim', preset);
167
167
  const note = $('layers-preset-note');
168
168
  if (note) note.hidden = !preset;
169
169
  const badge = $('instruction-badge-text');
@@ -535,7 +535,7 @@ function mountDrawerBox() {
535
535
  drawerBox.id = 'whatif-drawer';
536
536
  drawerBox.className = 'hx-block hx-whatif-drawer';
537
537
  drawerBox.hidden = true;
538
- block.parentElement.insertBefore(drawerBox, block);
538
+ block.after(drawerBox); // under the facts, the mockups and the threads: the node comes first, the tools to edit it after
539
539
  drawerBox.addEventListener('click', onClick);
540
540
  return drawerBox;
541
541
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cornfield",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "A self-hostable dev dashboard with the topology map at its centre: proposals on the map, scenarios, outages and what-if edits, for any repo.",
5
5
  "license": "MIT",
6
6
  "author": "popcorn245 (https://github.com/popcorn245)",
package/server/server.js CHANGED
@@ -259,6 +259,8 @@ export function clientConfig(config, signIn = false) {
259
259
  return {
260
260
  name: 'cornfield',
261
261
  version: PKG.version,
262
+ // Where cornfield's own docs are: the account menu's Docs link
263
+ docs: PKG.homepage,
262
264
  title: config.title,
263
265
  links: config.links || [],
264
266
  // The theme's names and default, never a file's path (docs/config.md#theme)