Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 Feature: Tour de S4L #4737

Merged
merged 83 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
97798bd
refactoring
odeimaiz Sep 12, 2023
a408e2d
getDefaultFont
odeimaiz Sep 12, 2023
2bcb58a
getDefaultFont
odeimaiz Sep 12, 2023
708ac8a
Explorer App not used
odeimaiz Sep 12, 2023
0b3fb3e
ErrorPage
odeimaiz Sep 12, 2023
41fd851
FlashMessenger
odeimaiz Sep 12, 2023
3e9a002
component one level up
odeimaiz Sep 12, 2023
03fe462
osparc.cluster.Utils
odeimaiz Sep 12, 2023
ddfcd89
activityManager
odeimaiz Sep 12, 2023
596c353
study.Utils
odeimaiz Sep 12, 2023
8e4be98
osparc.service.Utils
odeimaiz Sep 12, 2023
5cbab4c
osparc.service.StatusUI
odeimaiz Sep 12, 2023
73d0175
osparc.widget.cell unused
odeimaiz Sep 12, 2023
0aa758b
osparc.WatchDog
odeimaiz Sep 12, 2023
e4db966
osparc.announcement.Tracker
odeimaiz Sep 12, 2023
9422fc9
osparc.navigation.LogoOnOff
odeimaiz Sep 12, 2023
8fc663b
minors
odeimaiz Sep 12, 2023
1027926
unused files
odeimaiz Sep 12, 2023
d444932
unused
odeimaiz Sep 12, 2023
37b2b90
Sequence -> Tour
odeimaiz Sep 12, 2023
30b0aa1
renamings
odeimaiz Sep 12, 2023
2dee274
Intro Tour
odeimaiz Sep 12, 2023
ec1d410
Merge branch 'master' into feature/flexible-tours
odeimaiz Sep 13, 2023
b01f566
s4l tours from json
odeimaiz Sep 13, 2023
7f9ea61
minors
odeimaiz Sep 13, 2023
8e1d622
minor
odeimaiz Sep 13, 2023
a811c8a
s4l.Tours
odeimaiz Sep 13, 2023
6da948d
orientation -> placement
odeimaiz Sep 13, 2023
815a275
minor
odeimaiz Sep 13, 2023
4963567
panddy -> tours
odeimaiz Sep 13, 2023
38634a7
minors
odeimaiz Sep 13, 2023
0a9d728
minor
odeimaiz Sep 13, 2023
c633957
minor
odeimaiz Sep 13, 2023
7ba078d
renamings
odeimaiz Sep 13, 2023
7f0ca34
minor
odeimaiz Sep 13, 2023
f90c368
center welcome message
odeimaiz Sep 13, 2023
fbb50e7
tutorial -> quickStart
odeimaiz Sep 13, 2023
96c17ce
more renaming
odeimaiz Sep 13, 2023
c07680d
minor
odeimaiz Sep 13, 2023
0253484
more renaming
odeimaiz Sep 13, 2023
57cdb37
S4L Welcome page
odeimaiz Sep 13, 2023
219f0a4
aesthetics
odeimaiz Sep 13, 2023
9dce77f
minor
odeimaiz Sep 14, 2023
b0c0ee2
aesthetics
odeimaiz Sep 14, 2023
cae7fe8
bye bye panddy
odeimaiz Sep 14, 2023
295ddf3
minor
odeimaiz Sep 14, 2023
da7e724
minor
odeimaiz Sep 14, 2023
17685fc
fetch tours
odeimaiz Sep 14, 2023
6cad6aa
moving files
odeimaiz Sep 14, 2023
bd8ce45
tours
odeimaiz Sep 15, 2023
7b54622
setIdToWidget
odeimaiz Sep 15, 2023
f7fd82d
Merge branch 'master' into feature/flexible-tours
odeimaiz Sep 15, 2023
3d87c3e
fix bug
matusdrobuliak66 Sep 26, 2023
baddbbe
Merge branch 'master' into bugfix/websocket-message-wallet-credits-up…
matusdrobuliak66 Sep 26, 2023
0e75cb7
remove comment
matusdrobuliak66 Sep 26, 2023
ac49903
Merge branch 'bugfix/websocket-message-wallet-credits-update' of gith…
matusdrobuliak66 Sep 26, 2023
a178404
fix linting
matusdrobuliak66 Sep 26, 2023
7c899a8
Merge branch 'master' into feature/flexible-tours
odeimaiz Sep 26, 2023
761feec
Merge branch 'bugfix/websocket-message-wallet-credits-update' of gith…
odeimaiz Sep 26, 2023
8c8446d
minor
odeimaiz Sep 26, 2023
5a98048
caretSize prop
odeimaiz Sep 26, 2023
9e53b79
larger caret
odeimaiz Sep 26, 2023
2ead567
Dashboard
odeimaiz Sep 26, 2023
cbca56f
navbar tour
odeimaiz Sep 26, 2023
18e3c83
minors
odeimaiz Sep 26, 2023
67c4ef8
nav-bar tour
odeimaiz Sep 26, 2023
3dc3247
Projects tour
odeimaiz Sep 26, 2023
a4c0267
if target not found, move to the next step
odeimaiz Sep 26, 2023
ee0c56c
moveToTheCenter
odeimaiz Sep 26, 2023
4860f72
minor fix
odeimaiz Sep 26, 2023
8eaaae4
Merge branch 'master' into feature/flexible-tours
odeimaiz Sep 27, 2023
8e7ecba
Delete services/web/server/src/simcore_service_webserver/notification…
odeimaiz Sep 27, 2023
ba1bd63
Welcome text
odeimaiz Sep 27, 2023
368db1c
TourButton
odeimaiz Sep 27, 2023
4a8f084
spell checks
odeimaiz Sep 27, 2023
a48be9c
aesthetics
odeimaiz Sep 27, 2023
5cbd25c
minor
odeimaiz Sep 27, 2023
622280d
tour ListItem
odeimaiz Sep 27, 2023
24ad62b
minor testing comments
odeimaiz Sep 27, 2023
ddcc24c
renaming and clean up
odeimaiz Sep 27, 2023
6c0e0b8
removed
odeimaiz Sep 27, 2023
51c1c0f
fix test
odeimaiz Sep 27, 2023
23ad5fa
minor
odeimaiz Sep 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

53 changes: 0 additions & 53 deletions services/static-webserver/client/source/class/explorer/MainPage.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ qx.Class.define("osparc.Application", {
const threejs = osparc.wrapper.Three.getInstance();
threejs.init();

const announcementsTracker = osparc.AnnouncementsTracker.getInstance();
const announcementsTracker = osparc.announcement.Tracker.getInstance();
announcementsTracker.startTracker();

const webSocket = osparc.wrapper.WebSocket.getInstance();
webSocket.addListener("connect", () => osparc.io.WatchDog.getInstance().setOnline(true));
webSocket.addListener("disconnect", () => osparc.io.WatchDog.getInstance().setOnline(false));
webSocket.addListener("connect", () => osparc.WatchDog.getInstance().setOnline(true));
webSocket.addListener("disconnect", () => osparc.WatchDog.getInstance().setOnline(false));
webSocket.addListener("logout", () => this.logout());
// alert the users that they are about to navigate away
// from osparc. unfortunately it is not possible
Expand Down Expand Up @@ -197,7 +197,7 @@ qx.Class.define("osparc.Application", {
msg = msg.replace(/\+/g, "%20");
msg = decodeURIComponent(msg);
osparc.utils.Utils.cookie.deleteCookie("user");
const errorPage = new osparc.Error().set({
const errorPage = new osparc.ErrorPage().set({
code: urlFragment.params.status_code,
messages: [
msg
Expand Down Expand Up @@ -373,15 +373,15 @@ qx.Class.define("osparc.Application", {

if (osparc.auth.Data.getInstance().isGuest()) {
osparc.utils.Utils.createAccountMessage()
.then(msg => osparc.component.message.FlashMessenger.getInstance().logAs(msg, "WARNING"));
.then(msg => osparc.FlashMessenger.getInstance().logAs(msg, "WARNING"));
} else if ("expirationDate" in profile) {
const now = new Date();
const today = new Date(now.toISOString().slice(0, 10));
const expirationDay = new Date(profile["expirationDate"]);
const daysToExpiration = osparc.utils.Utils.daysBetween(today, expirationDay);
if (daysToExpiration < 7) {
osparc.utils.Utils.expirationMessage(daysToExpiration)
.then(msg => osparc.component.message.FlashMessenger.getInstance().logAs(msg, "WARNING"));
.then(msg => osparc.FlashMessenger.getInstance().logAs(msg, "WARNING"));
}
}

Expand Down Expand Up @@ -469,11 +469,11 @@ qx.Class.define("osparc.Application", {
* Resets session and restarts
*/
logout: function() {
osparc.component.message.FlashMessenger.getInstance().logAs(this.tr("You are logged out"));
osparc.FlashMessenger.getInstance().logAs(this.tr("You are logged out"));

osparc.data.PollTasks.getInstance().removeTasks();
osparc.MaintenanceTracker.getInstance().stopTracker();
osparc.AnnouncementsTracker.getInstance().stopTracker();
osparc.announcement.Tracker.getInstance().stopTracker();
osparc.auth.Manager.getInstance().logout();
if (this.__mainPage) {
this.__mainPage.closeEditor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* -----------------------
*
*/
qx.Class.define("osparc.Error", {
qx.Class.define("osparc.ErrorPage", {
extend: qx.ui.core.Widget,

construct: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
* Here is a little example of how to use the class.
*
* <pre class='javascript'>
* osparc.component.message.FlashMessenger.getInstance().log(log);
* osparc.FlashMessenger.getInstance().log(log);
* </pre>
*/

qx.Class.define("osparc.component.message.FlashMessenger", {
qx.Class.define("osparc.FlashMessenger", {
extend: qx.core.Object,
type: "singleton",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ qx.Class.define("osparc.MaintenanceTracker", {
const messageToRibbon = closable => {
this.__removeRibbonMessage();
const text = this.__getText();
const notification = new osparc.component.notification.RibbonNotification(text, "maintenance", closable);
osparc.component.notification.RibbonNotifications.getInstance().addNotification(notification);
const notification = new osparc.notification.RibbonNotification(text, "maintenance", closable);
osparc.notification.RibbonNotifications.getInstance().addNotification(notification);
this.__lastRibbonMessage = notification;
};
if (diffClosable < 0) {
Expand All @@ -155,7 +155,7 @@ qx.Class.define("osparc.MaintenanceTracker", {

__removeRibbonMessage: function() {
if (this.__lastRibbonMessage) {
osparc.component.notification.RibbonNotifications.getInstance().removeNotification(this.__lastRibbonMessage);
osparc.notification.RibbonNotifications.getInstance().removeNotification(this.__lastRibbonMessage);
this.__lastRibbonMessage = null;
}
},
Expand All @@ -172,7 +172,7 @@ qx.Class.define("osparc.MaintenanceTracker", {
let text = qx.locale.Manager.tr("We are under maintenance.");
text += "<br>";
text += qx.locale.Manager.tr("Please check back later");
osparc.component.message.FlashMessenger.getInstance().logAs(text, "WARNING");
osparc.FlashMessenger.getInstance().logAs(text, "WARNING");
qx.core.Init.getApplication().logout();
};
const now = new Date();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ qx.Class.define("osparc.Preferences", {
})
.catch(err => {
console.error(err);
osparc.component.message.FlashMessenger.logAs(err.message, "ERROR");
osparc.FlashMessenger.logAs(err.message, "ERROR");
});
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
* Here is a little example of how to use the class.
*
* <pre class='javascript'>
* osparc.io.WatchDog.getInstance().startCheck();
* osparc.WatchDog.getInstance().startCheck();
* </pre>
*/

qx.Class.define("osparc.io.WatchDog", {
qx.Class.define("osparc.WatchDog", {
extend: qx.core.Object,
type: "singleton",

Expand Down Expand Up @@ -78,7 +78,7 @@ qx.Class.define("osparc.io.WatchDog", {
__clientHeartbeatWWPinger: null,

_applyOnline: function(value) {
let logo = osparc.component.widget.LogoOnOff.getInstance();
let logo = osparc.navigation.LogoOnOff.getInstance();
if (logo) {
logo.setOnline(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ qx.Class.define("osparc.WindowSizeTracker", {

let notification = null;
if (tooSmall === "shortText") {
notification = new osparc.component.notification.RibbonNotification(null, "smallWindow", true);
notification = new osparc.notification.RibbonNotification(null, "smallWindow", true);
} else if (tooSmall === "longText") {
const text = this.__getLongText(true);
notification = new osparc.component.notification.RibbonNotification(text, "smallWindow", true);
notification = new osparc.notification.RibbonNotification(text, "smallWindow", true);
}
osparc.component.notification.RibbonNotifications.getInstance().addNotification(notification);
osparc.notification.RibbonNotifications.getInstance().addNotification(notification);
this.__lastRibbonMessage = notification;
},

Expand All @@ -108,7 +108,7 @@ qx.Class.define("osparc.WindowSizeTracker", {

__removeRibbonMessage: function() {
if (this.__lastRibbonMessage) {
osparc.component.notification.RibbonNotifications.getInstance().removeNotification(this.__lastRibbonMessage);
osparc.notification.RibbonNotifications.getInstance().removeNotification(this.__lastRibbonMessage);
this.__lastRibbonMessage = null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* This is a sort of Task Manager or Activity Monitor for oSPARC. It provides the user with the status of the different services running
* (queueing, hardware usage, running status, etc) and allows to run several actions on them.
*/
qx.Class.define("osparc.component.service.manager.ActivityManager", {
qx.Class.define("osparc.activityManager.ActivityManager", {
extend: qx.ui.core.Widget,

/**
Expand Down Expand Up @@ -49,8 +49,8 @@ qx.Class.define("osparc.component.service.manager.ActivityManager", {
toolbar.add(filtersPart);

const filtersContainer = new qx.ui.container.Composite(new qx.ui.layout.HBox(5));
const nameFilter = new osparc.component.filter.TextFilter("name", "activityMonitor");
const studyFilter = this.__studyFilter = new osparc.component.filter.StudyFilter("study", "activityMonitor");
const nameFilter = new osparc.filter.TextFilter("name", "activityMonitor");
const studyFilter = this.__studyFilter = new osparc.filter.StudyFilter("study", "activityMonitor");
filtersContainer.add(nameFilter);
filtersContainer.add(studyFilter);
filtersPart.add(filtersContainer);
Expand All @@ -63,10 +63,10 @@ qx.Class.define("osparc.component.service.manager.ActivityManager", {
},

/**
* Creates the main view, holding an instance of {osparc.component.service.manager.ActivityTree}.
* Creates the main view, holding an instance of {osparc.activityManager.ActivityTree}.
*/
__createActivityTree: function() {
this.__tree = new osparc.component.service.manager.ActivityTree();
this.__tree = new osparc.activityManager.ActivityTree();
this._add(this.__tree, {
flex: 1
});
Expand Down Expand Up @@ -119,15 +119,15 @@ qx.Class.define("osparc.component.service.manager.ActivityManager", {
/*
const runButton = new qx.ui.toolbar.Button(this.tr("Run"), "@FontAwesome5Solid/play/14");
actionsPart.add(runButton);
runButton.addListener("execute", () => osparc.component.message.FlashMessenger.getInstance().logAs("Not implemented"));
runButton.addListener("execute", () => osparc.FlashMessenger.getInstance().logAs("Not implemented"));

const stopButton = new qx.ui.toolbar.Button(this.tr("Stop"), "@FontAwesome5Solid/stop-circle/14");
actionsPart.add(stopButton);
stopButton.addListener("execute", () => osparc.component.message.FlashMessenger.getInstance().logAs("Not implemented"));
stopButton.addListener("execute", () => osparc.FlashMessenger.getInstance().logAs("Not implemented"));

const infoButton = new qx.ui.toolbar.Button(this.tr("Info"), "@FontAwesome5Solid/info/14");
actionsPart.add(infoButton);
infoButton.addListener("execute", () => osparc.component.message.FlashMessenger.getInstance().logAs("Not implemented"));
infoButton.addListener("execute", () => osparc.FlashMessenger.getInstance().logAs("Not implemented"));

[runButton, stopButton, infoButton].map(button => this.__tree.bind("selected", button, "enabled", {
converter: data => data.length > 0
Expand Down
Loading