Skip to content

Commit 61acb7b

Browse files
committed
renamed view for workspace
1 parent 7a0c414 commit 61acb7b

5 files changed

Lines changed: 13 additions & 16 deletions

File tree

src/graph/layout.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GraphLayoutManager {
1414

1515
async changeLayout() {
1616
this.cache.data.selectedLayout = document.getElementById('selectView').value;
17-
await this.cache.ui.showLoading("Switching View", this.cache.data.selectedLayout);
17+
await this.cache.ui.showLoading("Switching Workspace", this.cache.data.selectedLayout);
1818
await new Promise(resolve => requestAnimationFrame(resolve));
1919

2020
const currentLayout = this.cache.data.layouts[this.cache.data.selectedLayout];
@@ -50,7 +50,7 @@ class GraphLayoutManager {
5050
this.cache.bs.updateManualGroupButtonState();
5151
this.cache.bs.refreshBubbleStyleElements();
5252

53-
this.cache.ui.info(`Switched to view: ${this.cache.data.selectedLayout}`);
53+
this.cache.ui.info(`Switched to workspace: ${this.cache.data.selectedLayout}`);
5454
}
5555

5656
async applyLayoutStyles(layout) {
@@ -138,14 +138,14 @@ class GraphLayoutManager {
138138
// Show dialog with clone vs template options
139139
const result = await Popup.layoutCreationDialog(this.cache.DEFAULTS.LAYOUT_INTERNALS);
140140
if (!result) {
141-
this.cache.ui.info("Creating view canceled");
141+
this.cache.ui.info("Creating workspace canceled");
142142
return;
143143
}
144144

145145
// Check if name already exists
146146
let existing = Object.keys(this.cache.data.layouts);
147147
if (existing.includes(result.name)) {
148-
this.cache.ui.error(`View with name "${result.name}" already exists.`);
148+
this.cache.ui.error(`Workspace with name "${result.name}" already exists.`);
149149
return;
150150
}
151151

@@ -204,9 +204,6 @@ class GraphLayoutManager {
204204
// - Refreshing all UI elements
205205
await this.cache.lm.changeLayout();
206206
} else {
207-
// Create from template - apply layout algorithm once and store positions
208-
this.cache.ui.info(`Creating template view: ${result.name} (${result.templateType})`);
209-
210207
// Create the layout structure first
211208
this.cache.data.layouts[result.name] = {
212209
internals: null,
@@ -231,7 +228,7 @@ class GraphLayoutManager {
231228
document.getElementById('selectView').value = result.name;
232229
this.cache.data.selectedLayout = result.name;
233230

234-
await this.cache.ui.showLoading("Creating View", `Applying ${result.templateType} layout`);
231+
await this.cache.ui.showLoading("Creating Workspace", `Applying ${result.templateType} layout`);
235232

236233
// Clear the filter lock since this is a fresh template with no query
237234
this.cache.EVENT_LOCKS.FILTERS_LOCKED_BY_MANUAL_QUERY = false;
@@ -278,14 +275,14 @@ class GraphLayoutManager {
278275
this.cache.bs.refreshBubbleStyleElements();
279276

280277
await this.cache.ui.hideLoading();
281-
this.cache.ui.info(`Created template view: ${result.name} (${result.templateType})`);
278+
this.cache.ui.info(`Created Workspace: ${result.name} (${result.templateType})`);
282279
}
283280
}
284281

285282
async removeSelectedLayout() {
286283
// Protect the "Default" layout from deletion
287284
if (this.cache.data.selectedLayout === "Default") {
288-
this.cache.ui.error("Cannot delete the Default layout.");
285+
this.cache.ui.error("Cannot delete the Default workspace.");
289286
return;
290287
}
291288

src/graph_lens_lite.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h3>Graph Lens Lite</h3>
4646
</div>
4747
<div class="showOnLoad">
4848
<hr>
49-
<label for="selectView">View Preset:</label>
49+
<label for="selectView">Workspace:</label>
5050
<select name="selectView" id="selectView" onchange="cache.lm.changeLayout()"></select>
5151
<button class="small-btn red disabled" id="removeSelectedLayoutButton" title="Delete current view preset" onclick="cache.lm.removeSelectedLayout()">&nbsp;✗&nbsp;</button>
5252
<button class="small-btn green" title="Create new view preset" onclick="cache.lm.addLayout()" >&nbsp;✚&nbsp;</button>

src/managers/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ class QueryManager {
777777
with the UI-generated this.cache.query.
778778
</div>
779779
<div class="alert-info">
780-
<strong>💡 Tip:</strong> Queries are saved for each view and included when exporting the model 💾
780+
<strong>💡 Tip:</strong> Queries are saved for each workspace and included when exporting the model 💾
781781
</div>
782782
783783
<h3>Available Actions</h3>

src/utilities/data_editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DataTable {
3434

3535
container.innerHTML = `
3636
<div class="data-table-warning-banner">
37-
<span><strong>⚠️</strong> Data modifications affect all views globally</span>
37+
<span><strong>⚠️</strong> Data modifications affect all workspaces globally</span>
3838
<button class="data-table-warning-close" title="Dismiss warning">×</button>
3939
</div>
4040
<div class="data-table-tabs">

src/utilities/popup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static async prompt(message) {
140140

141141
// Title
142142
const title = document.createElement('h3');
143-
title.textContent = 'Create New View Preset';
143+
title.textContent = 'Create New Workspace';
144144
title.style.marginTop = '0';
145145
title.style.textAlign = 'center';
146146
container.appendChild(title);
@@ -149,7 +149,7 @@ static async prompt(message) {
149149
const nameInput = document.createElement('input');
150150
nameInput.type = 'text';
151151
nameInput.className = 'p-prompt';
152-
nameInput.placeholder = 'Enter view preset name...';
152+
nameInput.placeholder = 'Enter workspace name...';
153153
nameInput.style.width = '100%';
154154
nameInput.style.marginBottom = '20px';
155155
nameInput.style.padding = '8px';
@@ -171,7 +171,7 @@ static async prompt(message) {
171171

172172
const cloneLabel = document.createElement('label');
173173
cloneLabel.htmlFor = 'mode-clone';
174-
cloneLabel.textContent = ' Clone Current View';
174+
cloneLabel.textContent = ' Clone Current Workspace';
175175
cloneLabel.style.fontWeight = 'bold';
176176

177177
const cloneDesc = document.createElement('p');

0 commit comments

Comments
 (0)