Skip to content

Commit 5bc01bb

Browse files
authored
🎨 [Frontend] Review 20.05 (#7703)
1 parent 5c86393 commit 5bc01bb

File tree

11 files changed

+40
-18
lines changed

11 files changed

+40
-18
lines changed

services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
191191
osparc.store.Templates.getHypertools()
192192
.then(hypertools => {
193193
if (hypertools.length) {
194-
const hypertoolsMenuButton = this.self().createMenuButton("@FontAwesome5Solid/star/16", this.tr("Hypertools"));
194+
const hypertoolsMenuButton = this.self().createMenuButton(osparc.data.model.StudyUI.HYPERTOOL_ICON(16), this.tr("Hypertools"));
195195
this.addAt(hypertoolsMenuButton, this.__itemIdx);
196196
this.__itemIdx++;
197197

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserFilter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
416416
});
417417

418418
// hypertools filter
419-
const button = new qx.ui.toolbar.RadioButton("Hypertools", "@FontAwesome5Solid/wrench/"+iconSize);
419+
const button = new qx.ui.toolbar.RadioButton("Hypertools", osparc.data.model.StudyUI.HYPERTOOL_ICON(iconSize));
420420
button.appType = "hypertool";
421421
this.__appTypeButtons.push(button);
422422

services/static-webserver/client/source/class/osparc/dashboard/SearchBarFilter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
274274
});
275275

276276
// hypertools filter
277-
const hypertoolTypeButton = new qx.ui.menu.Button("Hypertools", "@FontAwesome5Solid/wrench/"+iconSize);
277+
const hypertoolTypeButton = new qx.ui.menu.Button("Hypertools", osparc.data.model.StudyUI.HYPERTOOL_ICON(iconSize));
278278
serviceTypeMenu.add(hypertoolTypeButton);
279279
hypertoolTypeButton.addListener("execute", () => this.__addChip("app-type", "hypertool", "Hypertools"), this);
280280
},

services/static-webserver/client/source/class/osparc/data/Job.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ qx.Class.define("osparc.data.Job", {
2323

2424
this.set({
2525
projectUuid: jobData["projectUuid"],
26+
projectName: jobData["rootProjectName"] || "",
2627
state: jobData["state"] || "UNKNOWN",
2728
submittedAt: jobData["submittedAt"] ? new Date(jobData["submittedAt"]) : null,
2829
startedAt: jobData["startedAt"] ? new Date(jobData["startedAt"]) : null,
@@ -31,10 +32,6 @@ qx.Class.define("osparc.data.Job", {
3132
customMetadata: jobData["projectCustomMetadata"] || null,
3233
});
3334

34-
if (jobData["info"] && jobData["info"]["project_name"]) {
35-
this.setProjectName(jobData["info"]["project_name"]);
36-
}
37-
3835
this.__subJobs = [];
3936
},
4037

services/static-webserver/client/source/class/osparc/data/model/StudyUI.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ qx.Class.define("osparc.data.model.StudyUI", {
9494
TEMPLATE_TYPE: "TEMPLATE",
9595
TUTORIAL_TYPE: "TUTORIAL",
9696
HYPERTOOL_TYPE: "HYPERTOOL",
97+
HYPERTOOL_ICON: (iconSize = 22) => ("@FontAwesome5Solid/wrench/" + iconSize),
9798
},
9899

99100
members: {

services/static-webserver/client/source/class/osparc/jobs/ActivityCenterWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ qx.Class.define("osparc.jobs.ActivityCenterWindow", {
6060
runsBrowser.addListener("runSelected", e => {
6161
const project = e.getData();
6262
subRunsBrowser.setProject(project);
63-
this.getChildControl("title").setValue(this.tr("Runs"));
63+
this.getChildControl("title").setValue(this.tr("Tasks"));
6464
stack.setSelection([subRunsBrowser]);
6565
});
6666

services/static-webserver/client/source/class/osparc/jobs/ActivityOverview.js

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ qx.Class.define("osparc.jobs.ActivityOverview", {
2929
statics: {
3030
popUpInWindow: function(projectData) {
3131
const activityOverview = new osparc.jobs.ActivityOverview(projectData);
32-
const title = qx.locale.Manager.tr("Activity Overview");
32+
const title = qx.locale.Manager.tr("Activity Overview") + " - " + projectData["name"];
3333
const win = osparc.ui.window.Window.popUpInWindow(activityOverview, title, osparc.jobs.ActivityCenterWindow.WIDTH, osparc.jobs.ActivityCenterWindow.HEIGHT);
3434
win.set({
3535
maxHeight: 700,
@@ -40,9 +40,18 @@ qx.Class.define("osparc.jobs.ActivityOverview", {
4040

4141
members: {
4242
__buildLayout: function(projectData) {
43-
this._add(new qx.ui.basic.Label(this.tr("Runs History")).set({
43+
const runsHistoryTitleLayout = new qx.ui.container.Composite(new qx.ui.layout.HBox(5).set({
44+
alignY: "middle",
45+
})).set({
46+
paddingLeft: 10,
47+
});
48+
const runsHistoryTitle = new qx.ui.basic.Label(this.tr("Runs History")).set({
4449
font: "text-14"
45-
}));
50+
});
51+
runsHistoryTitleLayout.add(runsHistoryTitle);
52+
const runsHistoryTitleHelper = new osparc.ui.hint.InfoHint(this.tr("In this table, the history of the project runs is shown."))
53+
runsHistoryTitleLayout.add(runsHistoryTitleHelper);
54+
this._add(runsHistoryTitleLayout);
4655

4756
const latestOnly = false;
4857
const projectUuid = projectData["uuid"];
@@ -55,17 +64,31 @@ qx.Class.define("osparc.jobs.ActivityOverview", {
5564
runsTable.set({
5665
maxHeight: 250,
5766
})
58-
this._add(runsTable);
67+
this._add(runsTable, {
68+
flex: 1
69+
});
70+
5971

60-
this._add(new qx.ui.basic.Label(this.tr("Latest Tasks")).set({
72+
const latestTasksTitleLayout = new qx.ui.container.Composite(new qx.ui.layout.HBox(5).set({
73+
alignY: "middle",
74+
})).set({
75+
paddingLeft: 10,
76+
});
77+
const latestTasksTitle = new qx.ui.basic.Label(this.tr("Latest Tasks")).set({
6178
font: "text-14"
62-
}));
79+
});
80+
latestTasksTitleLayout.add(latestTasksTitle);
81+
const latestTasksTitleHelper = new osparc.ui.hint.InfoHint(this.tr("In this table, only the latest tasks or simulations are shown. If available, the logs can be downloaded."))
82+
latestTasksTitleLayout.add(latestTasksTitleHelper);
83+
this._add(latestTasksTitleLayout);
6384

6485
const subRunsTable = new osparc.jobs.SubRunsTable(projectData["uuid"]);
6586
subRunsTable.set({
6687
maxHeight: 250,
6788
})
68-
this._add(subRunsTable);
89+
this._add(subRunsTable, {
90+
flex: 1,
91+
});
6992
},
7093
}
7194
});

services/static-webserver/client/source/class/osparc/jobs/SubRunsTable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ qx.Class.define("osparc.jobs.SubRunsTable", {
4141
const fontButtonRendererInfo = new osparc.ui.table.cellrenderer.ImageButtonRenderer("info", iconPathInfo);
4242
columnModel.setDataCellRenderer(this.self().COLS.INFO.column, fontButtonRendererInfo);
4343

44-
const iconPathLogs = "osparc/icons/logs-text.svg";
44+
const iconPathLogs = "osparc/icons/file-download-text.svg";
4545
const fontButtonRendererLogs = new osparc.ui.table.cellrenderer.ImageButtonRenderer("logs", iconPathLogs);
4646
columnModel.setDataCellRenderer(this.self().COLS.LOGS.column, fontButtonRendererLogs);
4747

@@ -108,7 +108,7 @@ qx.Class.define("osparc.jobs.SubRunsTable", {
108108
id: "credits",
109109
column: 9,
110110
label: qx.locale.Manager.tr("Credits"),
111-
width: 50
111+
width: 70
112112
},
113113
INFO: {
114114
id: "info",

services/static-webserver/client/source/class/osparc/study/SaveAsTemplate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ qx.Class.define("osparc.study.SaveAsTemplate", {
8080

8181
if (!this.__makeItPublic) {
8282
const shareWith = this.__shareWith = new osparc.share.ShareTemplateWith(this.__studyDataClone);
83+
shareWith.exclude(); // for now, hide the shareWith widget
8384
this._add(shareWith);
8485
}
8586

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)