Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
517697197e | ||
|
|
c71296b01a |
No files matched your search
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.10.8 — 2026-11-08
|
||||||
|
|
||||||
|
- **A model opens as its outline.** On `main.archify` the top-level panels (Shared, Diagrams, Registries, Decisions) start collapsed; open the one you need. What you open or close is kept while the page is open.
|
||||||
|
- **Sync button in line on every page.** On the model, registry and decision pages it sits next to Model | Graph | Source instead of floating above it, and on the Graph page it comes after Export PNG instead of covering it. It takes the height of the controls beside it.
|
||||||
|
|
||||||
## 0.10.7 — 2026-11-08
|
## 0.10.7 — 2026-11-08
|
||||||
|
|
||||||
- **Model | Graph | Source looks like 2D | 3D.** The selected view is the same inset pill, the same height as the other toolbar controls.
|
- **Model | Graph | Source looks like 2D | 3D.** The selected view is the same inset pill, the same height as the other toolbar controls.
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "archify-vscode-ext",
|
"name": "archify-vscode-ext",
|
||||||
"version": "0.10.7",
|
"version": "0.10.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "archify-vscode-ext",
|
"name": "archify-vscode-ext",
|
||||||
"version": "0.10.7",
|
"version": "0.10.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.20.4",
|
"@codemirror/autocomplete": "^6.20.4",
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "archify-vscode-ext",
|
"name": "archify-vscode-ext",
|
||||||
"displayName": "Archify Diagram Viewer",
|
"displayName": "Archify Diagram Viewer",
|
||||||
"description": "Archify diagrams in VS Code. Write diagrams as .archify files in YAML: they open as the interactive diagram, with live updates, validation, templates and completion. Also previews Archify's own JSON files (*.architecture.json, …) and opens rendered Archify HTML.",
|
"description": "Archify diagrams in VS Code. Write diagrams as .archify files in YAML: they open as the interactive diagram, with live updates, validation, templates and completion. Also previews Archify's own JSON files (*.architecture.json, …) and opens rendered Archify HTML.",
|
||||||
"version": "0.10.7",
|
"version": "0.10.8",
|
||||||
"publisher": "root-at-skic",
|
"publisher": "root-at-skic",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"sponsor": {
|
"sponsor": {
|
||||||
|
|||||||
+23
-11
@@ -208,6 +208,7 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
// Collapsible panels of the model page; open/closed is kept in the webview state.
|
// Collapsible panels of the model page; open/closed is kept in the webview state.
|
||||||
|
// The model page's top-level panels start closed: a model opens as its outline.
|
||||||
function panelStates() { return (vscode.getState() || {}).modelPanels || {}; }
|
function panelStates() { return (vscode.getState() || {}).modelPanels || {}; }
|
||||||
function panel(key, className, title, count, defaultOpen) {
|
function panel(key, className, title, count, defaultOpen) {
|
||||||
// count: a number or a short text such as "3 files".
|
// count: a number or a short text such as "3 files".
|
||||||
@@ -624,7 +625,7 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
live.hidden = true;
|
live.hidden = true;
|
||||||
body.appendChild(live);
|
body.appendChild(live);
|
||||||
var count = model.groups.reduce(function (n, g) { return n + g.diagrams.length; }, 0);
|
var count = model.groups.reduce(function (n, g) { return n + g.diagrams.length; }, 0);
|
||||||
var diagramsPanel = panel('diagrams', 'archify-model-diagrams', 'Diagrams', count, true);
|
var diagramsPanel = panel('diagrams', 'archify-model-diagrams', 'Diagrams', count, false);
|
||||||
body.appendChild(diagramsPanel);
|
body.appendChild(diagramsPanel);
|
||||||
if (!count) diagramsPanel.appendChild(el('p', 'archify-model-empty', 'No diagrams yet. Add .archify files next to main.archify or in subfolders.'));
|
if (!count) diagramsPanel.appendChild(el('p', 'archify-model-empty', 'No diagrams yet. Add .archify files next to main.archify or in subfolders.'));
|
||||||
model.groups.forEach(function (group) {
|
model.groups.forEach(function (group) {
|
||||||
@@ -658,7 +659,7 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
byFile[element.file].push(element);
|
byFile[element.file].push(element);
|
||||||
});
|
});
|
||||||
files.sort();
|
files.sort();
|
||||||
var registryPanel = panel('registry', 'archify-model-registry', 'Registries', files.length + (files.length === 1 ? ' file' : ' files'), true);
|
var registryPanel = panel('registry', 'archify-model-registry', 'Registries', files.length + (files.length === 1 ? ' file' : ' files'), false);
|
||||||
body.appendChild(registryPanel);
|
body.appendChild(registryPanel);
|
||||||
files.forEach(function (file) {
|
files.forEach(function (file) {
|
||||||
var elements = byFile[file].slice().sort(function (a, b) { return a.line - b.line; });
|
var elements = byFile[file].slice().sort(function (a, b) { return a.line - b.line; });
|
||||||
@@ -676,7 +677,7 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
}
|
}
|
||||||
// Decisions: one list, live ones first, superseded and rejected dimmed and last.
|
// Decisions: one list, live ones first, superseded and rejected dimmed and last.
|
||||||
if (model.decisions && model.decisions.length) {
|
if (model.decisions && model.decisions.length) {
|
||||||
var decisionsPanel = panel('decisions', 'archify-model-decisions', 'Decisions', model.decisions.length, true);
|
var decisionsPanel = panel('decisions', 'archify-model-decisions', 'Decisions', model.decisions.length, false);
|
||||||
body.appendChild(decisionsPanel);
|
body.appendChild(decisionsPanel);
|
||||||
var decisionList = el('ul', 'archify-model-list archify-decision-list');
|
var decisionList = el('ul', 'archify-model-list archify-decision-list');
|
||||||
model.decisions.forEach(function (row) { decisionList.appendChild(decisionRowItem(row)); });
|
model.decisions.forEach(function (row) { decisionList.appendChild(decisionRowItem(row)); });
|
||||||
@@ -723,7 +724,7 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
if (!info) { holder.hidden = true; return; }
|
if (!info) { holder.hidden = true; return; }
|
||||||
holder.hidden = false;
|
holder.hidden = false;
|
||||||
var others = info.people.filter(function (p) { return !p.me; });
|
var others = info.people.filter(function (p) { return !p.me; });
|
||||||
var livePanel = panel('live', 'archify-model-live is-' + info.state, 'Shared \u00b7 ' + info.name, others.length ? others.length + 1 + ' here' : info.host, true);
|
var livePanel = panel('live', 'archify-model-live is-' + info.state, 'Shared \u00b7 ' + info.name, others.length ? others.length + 1 + ' here' : info.host, false);
|
||||||
var status = el('div', 'archify-live-status');
|
var status = el('div', 'archify-live-status');
|
||||||
status.appendChild(el('span', 'archify-live-dot'));
|
status.appendChild(el('span', 'archify-live-dot'));
|
||||||
status.appendChild(el('span', 'archify-live-state', (LIVE_STATE[info.state] || info.state) + (info.state === 'online' ? ' on ' + info.host : '')));
|
status.appendChild(el('span', 'archify-live-state', (LIVE_STATE[info.state] || info.state) + (info.state === 'online' ? ' on ' + info.host : '')));
|
||||||
@@ -901,14 +902,23 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
button.type = 'button';
|
button.type = 'button';
|
||||||
button.title = 'Archify Sync: sign in, share this model with others, or join one';
|
button.title = 'Archify Sync: sign in, share this model with others, or join one';
|
||||||
button.addEventListener('click', function (event) { event.stopPropagation(); post({ type: 'syncMenu' }); });
|
button.addEventListener('click', function (event) { event.stopPropagation(); post({ type: 'syncMenu' }); });
|
||||||
// A diagram page has Archify's toolbar at the top right: the button goes
|
// Last in the row that holds the view switch: Archify's toolbar on a
|
||||||
// last in it, after Export. Other pages have nothing there; it floats.
|
// diagram (after Export), the Graph page's header actions (after Export,
|
||||||
var toolbar = document.querySelector('body > .toolbar');
|
// built a moment later by graph.js), next to the switch on the other
|
||||||
if (toolbar) {
|
// pages. It floats only while there is no such row.
|
||||||
button.classList.add('in-toolbar');
|
|
||||||
toolbar.appendChild(button);
|
|
||||||
} else {
|
|
||||||
document.body.appendChild(button);
|
document.body.appendChild(button);
|
||||||
|
function place() {
|
||||||
|
var modeSwitch = document.getElementById('archify-mode-switch');
|
||||||
|
var row = document.querySelector('.ag-actions') || (modeSwitch && modeSwitch.parentElement) || document.querySelector('body > .toolbar');
|
||||||
|
if (!row || row === document.body) return false;
|
||||||
|
button.classList.add('in-toolbar');
|
||||||
|
row.classList.add('archify-sync-row');
|
||||||
|
row.appendChild(button);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!place() && window.MutationObserver) {
|
||||||
|
var watch = new MutationObserver(function () { if (place()) watch.disconnect(); });
|
||||||
|
watch.observe(document.body, { childList: true, subtree: true });
|
||||||
}
|
}
|
||||||
showSyncState(false);
|
showSyncState(false);
|
||||||
post({ type: 'syncReady' });
|
post({ type: 'syncReady' });
|
||||||
@@ -939,7 +949,9 @@ function bridgeScript(options: PageOptions): string {
|
|||||||
+ ' display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 8px !important; cursor: pointer !important;'
|
+ ' display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 8px !important; cursor: pointer !important;'
|
||||||
+ ' color: #fff !important; background: var(--vscode-button-background, #0e639c) !important; border: 1px solid var(--vscode-contrastBorder, transparent) !important;'
|
+ ' color: #fff !important; background: var(--vscode-button-background, #0e639c) !important; border: 1px solid var(--vscode-contrastBorder, transparent) !important;'
|
||||||
+ ' box-shadow: 0 1px 4px rgba(0,0,0,.35) !important; }'
|
+ ' box-shadow: 0 1px 4px rgba(0,0,0,.35) !important; }'
|
||||||
|
+ ' .archify-model-switch-row.archify-sync-row { display: flex !important; align-items: center !important; gap: 0.5rem !important; }'
|
||||||
+ ' #archify-sync-button.in-toolbar { position: relative !important; top: auto !important; right: auto !important; align-self: center !important; flex: none !important; width: 36px !important; height: 36px !important; }'
|
+ ' #archify-sync-button.in-toolbar { position: relative !important; top: auto !important; right: auto !important; align-self: center !important; flex: none !important; width: 36px !important; height: 36px !important; }'
|
||||||
|
+ ' .ag-actions #archify-sync-button.in-toolbar, .archify-model-switch-row #archify-sync-button.in-toolbar { align-self: stretch !important; height: auto !important; width: auto !important; aspect-ratio: 1 / 1 !important; }'
|
||||||
+ ' body.vscode-high-contrast #archify-sync-button:not(.is-shared) { background: #0e639c !important; }'
|
+ ' body.vscode-high-contrast #archify-sync-button:not(.is-shared) { background: #0e639c !important; }'
|
||||||
+ ' #archify-sync-button svg { display: block !important; width: 16px !important; height: 16px !important; flex: none !important; }'
|
+ ' #archify-sync-button svg { display: block !important; width: 16px !important; height: 16px !important; flex: none !important; }'
|
||||||
+ ' #archify-sync-button:hover { background: var(--vscode-button-hoverBackground, #1177bb) !important; }'
|
+ ' #archify-sync-button:hover { background: var(--vscode-button-hoverBackground, #1177bb) !important; }'
|
||||||
|
|||||||
Reference in new issue
Block a user