Skip to content

Commit 3941b09

Browse files
authored
🎨 [Frontend] Book a call: select a topic first (#8422)
1 parent 3d1e310 commit 3941b09

File tree

26 files changed

+464
-167
lines changed

26 files changed

+464
-167
lines changed

services/static-webserver/client/source/class/osparc/auth/ui/RequestAccount.js

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -144,50 +144,8 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
144144
case "s4lacad":
145145
case "s4ldesktopacad": {
146146
const application = new qx.ui.form.SelectBox();
147-
[{
148-
id: "other",
149-
label: "Other"
150-
}, {
151-
id: "Antenna_Design_for_Wireless_Communication",
152-
label: "Antenna Design for Wireless Communication"
153-
}, {
154-
id: "Bioelectronics,_Electroceuticals_and_Neuroprosthetics",
155-
label: "Bioelectronics, Electroceuticals & Neuroprosthetics"
156-
}, {
157-
id: "Safety_and_Efficacy_Assessment",
158-
label: "Safety & Efficacy Assessment"
159-
}, {
160-
id: "Exposure_and_Compliance",
161-
label: "Exposure & Compliance"
162-
}, {
163-
id: "Focused_Ultrasound",
164-
label: "Focused Ultrasound"
165-
}, {
166-
id: "In_Silico_Trials",
167-
label: "In <i>Silico</i> Trials"
168-
}, {
169-
id: "Implant_Design",
170-
label: "Implant Design"
171-
}, {
172-
id: "Magnetic_Resonance_Imaging",
173-
label: "Magnetic Resonance Imaging"
174-
}, {
175-
id: "Neurostimulation",
176-
label: "Neurostimulation"
177-
}, {
178-
id: "Personalized_Medicine",
179-
label: "Personalized Medicine"
180-
}, {
181-
id: "Thermal_Therapies",
182-
label: "Thermal Therapies"
183-
}, {
184-
id: "Wireless_Power_Transfer_Systems",
185-
label: "Wireless Power Transfer Systems"
186-
}, {
187-
id: "Vascular_Flow_and_Perfusion",
188-
label: "Vascular Flow & Perfusion"
189-
}].forEach(appData => {
190-
const lItem = new qx.ui.form.ListItem(appData.label, null, appData.id).set({
147+
osparc.product.Utils.S4L_TOPICS.forEach(topic => {
148+
const lItem = new qx.ui.form.ListItem(topic.label, null, topic.id).set({
191149
rich: true
192150
});
193151
application.add(lItem);

services/static-webserver/client/source/class/osparc/desktop/organizations/MembersList.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
137137

138138
__getMembersList: function() {
139139
const membersUIList = new qx.ui.form.List().set({
140-
decorator: "no-border",
141-
spacing: 3,
140+
appearance: "listing",
142141
width: 150
143142
});
144143

@@ -157,6 +156,9 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
157156
ctrl.bindProperty("showOptions", "showOptions", null, item, id);
158157
},
159158
configureItem: item => {
159+
item.set({
160+
cursor: "default",
161+
});
160162
item.subscribeToFilterGroup("organizationMembersList");
161163
item.getChildControl("thumbnail").setDecorator("circled");
162164
item.addListener("promoteToMember", e => {

services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationDetails.js

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ qx.Class.define("osparc.desktop.organizations.OrganizationDetails", {
3333
"backToOrganizations": "qx.event.type.Event"
3434
},
3535

36+
statics: {
37+
createTabPage: function(label, icon) {
38+
const tabPage = new qx.ui.tabview.Page().set({
39+
layout: new qx.ui.layout.VBox(),
40+
});
41+
if (label) {
42+
tabPage.setLabel(label);
43+
}
44+
if (icon) {
45+
tabPage.setIcon(icon);
46+
}
47+
tabPage.getChildControl("button").set({
48+
font: "text-13"
49+
});
50+
return tabPage;
51+
},
52+
},
53+
3654
members: {
3755
__orgModel: null,
3856
__titleLayout: null,
@@ -88,6 +106,10 @@ qx.Class.define("osparc.desktop.organizations.OrganizationDetails", {
88106
this.__titleLayout.remove(this.__organizationListItem);
89107
}
90108
const organizationListItem = this.__organizationListItem = new osparc.ui.list.OrganizationListItem();
109+
organizationListItem.set({
110+
cursor: "default",
111+
backgroundColor: null,
112+
});
91113
organizationListItem.getChildControl("options").exclude();
92114
organizationListItem.setShowDeleteButton(false);
93115
organizationListItem.addListener("openEditOrganization", () => this.__openEditOrganization());
@@ -126,28 +148,12 @@ qx.Class.define("osparc.desktop.organizations.OrganizationDetails", {
126148
});
127149
},
128150

129-
__createTabPage: function(label, icon) {
130-
const tabPage = new qx.ui.tabview.Page().set({
131-
layout: new qx.ui.layout.VBox()
132-
});
133-
if (label) {
134-
tabPage.setLabel(label);
135-
}
136-
if (icon) {
137-
tabPage.setIcon(icon);
138-
}
139-
tabPage.getChildControl("button").set({
140-
font: "text-13"
141-
});
142-
return tabPage;
143-
},
144-
145151
__getTabs: function() {
146152
const tabView = new qx.ui.tabview.TabView().set({
147153
contentPadding: 10
148154
});
149155

150-
const membersListPage = this.__createTabPage(this.tr("Members"), "@FontAwesome5Solid/users/14");
156+
const membersListPage = this.self().createTabPage(this.tr("Members"), "@FontAwesome5Solid/users/14");
151157
const membersList = this.__membersList = new osparc.desktop.organizations.MembersList();
152158
membersListPage.add(membersList, {
153159
flex: 1
@@ -158,14 +164,14 @@ qx.Class.define("osparc.desktop.organizations.OrganizationDetails", {
158164
plural: true,
159165
firstUpperCase: true
160166
});
161-
const templatesListPage = this.__createTabPage(templatesText, "@FontAwesome5Solid/copy/14");
167+
const templatesListPage = this.self().createTabPage(templatesText, "@FontAwesome5Solid/copy/14");
162168
const templatesList = this.__templatesList = new osparc.desktop.organizations.TutorialsList();
163169
templatesListPage.add(templatesList, {
164170
flex: 1
165171
});
166172
tabView.add(templatesListPage);
167173

168-
const servicesListPage = this.__createTabPage(this.tr("Services"), "@FontAwesome5Solid/cogs/14");
174+
const servicesListPage = this.self().createTabPage(this.tr("Services"), "@FontAwesome5Solid/cogs/14");
169175
const servicesList = this.__servicesList = new osparc.desktop.organizations.ServicesList();
170176
servicesListPage.add(servicesList, {
171177
flex: 1

services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ qx.Class.define("osparc.desktop.organizations.OrganizationsList", {
126126

127127
__getOrganizationsList: function() {
128128
const orgsUIList = this.__orgsUIList = new qx.ui.form.List().set({
129-
decorator: "no-border",
130-
spacing: 3,
129+
appearance: "listing",
131130
height: 150,
132-
width: 150
131+
width: 150,
133132
});
134133
osparc.utils.Utils.setIdToWidget(orgsUIList, "organizationsList");
135134
orgsUIList.addListener("changeSelection", e => this.__organizationSelected(e.getData()), this);
@@ -170,6 +169,7 @@ qx.Class.define("osparc.desktop.organizations.OrganizationsList", {
170169
item.set({
171170
minHeight: 1,
172171
maxHeight: 1,
172+
backgroundColor: "transparent",
173173
decorator: "separator-strong",
174174
});
175175
}

services/static-webserver/client/source/class/osparc/desktop/organizations/ServicesList.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ qx.Class.define("osparc.desktop.organizations.ServicesList", {
6363

6464
__getServicesList: function() {
6565
const servicesUIList = new qx.ui.form.List().set({
66-
decorator: "no-border",
67-
spacing: 3
66+
appearance: "listing",
6867
});
6968

7069
const servicesModel = this.__servicesModel = new qx.data.Array();
@@ -84,6 +83,9 @@ qx.Class.define("osparc.desktop.organizations.ServicesList", {
8483
}, item, id);
8584
},
8685
configureItem: item => {
86+
item.set({
87+
cursor: "default",
88+
});
8789
item.subscribeToFilterGroup("organizationServicesList");
8890
item.addListener("openMoreInfo", e => {
8991
const serviceKey = e.getData()["key"];

services/static-webserver/client/source/class/osparc/desktop/organizations/TutorialsList.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ qx.Class.define("osparc.desktop.organizations.TutorialsList", {
6363

6464
__getTutorialsList: function() {
6565
const templatesUIList = new qx.ui.form.List().set({
66-
decorator: "no-border",
67-
spacing: 3
66+
appearance: "listing",
6867
});
6968

7069
const templatesModel = this.__tutorialsModel = new qx.data.Array();
@@ -83,6 +82,9 @@ qx.Class.define("osparc.desktop.organizations.TutorialsList", {
8382
}, item, id);
8483
},
8584
configureItem: item => {
85+
item.set({
86+
cursor: "default",
87+
});
8688
item.subscribeToFilterGroup("organizationTutorialsList");
8789
item.addListener("openMoreInfo", e => {
8890
const templateId = e.getData()["key"];

services/static-webserver/client/source/class/osparc/desktop/paymentMethods/PaymentMethods.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ qx.Class.define("osparc.desktop.paymentMethods.PaymentMethods", {
195195
ctrl.bindProperty("expirationYear", "expirationYear", null, item, id);
196196
},
197197
configureItem: item => {
198+
item.set({
199+
cursor: "default",
200+
});
198201
item.addListener("openPaymentMethodDetails", e => this.__openPaymentMethodDetails(e.getData()));
199202
item.addListener("deletePaymentMethod", e => this.__deletePaymentMethod(e.getData()));
200203
}

services/static-webserver/client/source/class/osparc/desktop/wallets/MembersList.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ qx.Class.define("osparc.desktop.wallets.MembersList", {
124124

125125
__getMembersList: function() {
126126
const membersUIList = new qx.ui.form.List().set({
127-
decorator: "no-border",
128-
spacing: 3,
127+
appearance: "listing",
129128
width: 150
130129
});
131130

@@ -145,6 +144,9 @@ qx.Class.define("osparc.desktop.wallets.MembersList", {
145144
ctrl.bindProperty("showOptions", "showOptions", null, item, id);
146145
},
147146
configureItem: item => {
147+
item.set({
148+
cursor: "default",
149+
});
148150
item.subscribeToFilterGroup("walletMembersList");
149151
item.getChildControl("thumbnail").setDecorator("circled");
150152
item.addListener("promoteToAccountant", e => {

services/static-webserver/client/source/class/osparc/desktop/wallets/WalletListItem.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ qx.Class.define("osparc.desktop.wallets.WalletListItem", {
2929
layout.setColumnAlign(creditsCol, "right", "middle");
3030

3131
this.__buildLayout();
32+
33+
this.set({
34+
backgroundColor: "transparent",
35+
cursor: "default",
36+
});
3237
},
3338

3439
properties: {

services/static-webserver/client/source/class/osparc/desktop/wallets/WalletsList.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ qx.Class.define("osparc.desktop.wallets.WalletsList", {
9090

9191
__createWalletsList: function(widgetId) {
9292
const walletsUIList = new qx.ui.form.List().set({
93-
decorator: "no-border",
94-
spacing: 3,
95-
backgroundColor: "transparent",
93+
appearance: "listing",
9694
height: null,
9795
focusable: false
9896
});
@@ -118,7 +116,6 @@ qx.Class.define("osparc.desktop.wallets.WalletsList", {
118116
},
119117
configureItem: item => {
120118
item.subscribeToFilterGroup("walletsList");
121-
122119
item.addListener("openEditWallet", e => this.__openEditWallet(e.getData()));
123120
item.addListener("openShareWallet", e => this.__walletSelected(e.getData()));
124121
item.addListener("buyCredits", e => this.fireDataEvent("buyCredits", e.getData()));

0 commit comments

Comments
 (0)