Skip to content

Commit 22a2226

Browse files
committed
Merge branch 'master' into 1973-add-celery-worker-to-api-server
2 parents eb6de3b + 8768457 commit 22a2226

File tree

19 files changed

+273
-43
lines changed

19 files changed

+273
-43
lines changed

packages/notifications-library/src/notifications_library/_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class SharerData:
3030

3131
@dataclass(frozen=True)
3232
class ProductUIData:
33-
project_alias: str
3433
logo_url: str | None = (
3534
None # default_logo = "https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-white.svg" in base.html
3635
)

packages/notifications-library/src/notifications_library/templates/on_share_project.email.content.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
{% block content %}
44
<p>Dear {{ user.first_name or user.user_name }},</p>
55

6-
<p>Great news! {{ sharer.user_name }} has shared a {{ product.ui.project_alias }} with you on {{ product.display_name }}.</p>
6+
<p>Great news! {{ sharer.user_name }} has shared a project with you on {{ product.display_name }}.</p>
77

8-
<p>To view the {{ product.ui.project_alias }} and accept the sharing, follow below:</p>
8+
<p>To view the project and accept the sharing, follow below:</p>
99

1010
<p>
1111
{% if sharer.message %}

packages/notifications-library/src/notifications_library/templates/on_share_project.email.content.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Dear {{ user.first_name or user.user_name }},
22

3-
Great news! {{ sharer.user_name }} has shared a {{ product.ui.project_alias }} with you on {{ product.display_name }}.
3+
Great news! {{ sharer.user_name }} has shared a project with you on {{ product.display_name }}.
44

5-
To view the {{ product.ui.project_alias }} and accept the sharing, follow below:
5+
To view the project and accept the sharing, follow below:
66

77
{{ sharer.message }}
88
{{ accept_link }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
A {{ product.ui.project_alias }} was shared with you on {{ host }}
1+
A project was shared with you on {{ host }}

packages/notifications-library/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def product_data(
6666
product_ui = ProductUIData(
6767
logo_url=vendor_ui.get("logo_url"),
6868
strong_color=vendor_ui.get("strong_color"),
69-
project_alias=vendor_ui["project_alias"],
7069
)
7170

7271
return ProductData( # type: ignore

packages/postgres-database/src/simcore_postgres_database/models/products.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
class VendorUI(TypedDict, total=True):
3333
logo_url: str # vendor logo url
3434
strong_color: str # vendor main color
35-
project_alias: str # project alias for the product (e.g. "project" or "study")
3635

3736

3837
class Vendor(TypedDict, total=False):

packages/postgres-database/src/simcore_postgres_database/utils_users.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ async def link_and_update_user_from_pre_registration(
172172
pre_columns = (
173173
users_pre_registration_details.c.pre_first_name,
174174
users_pre_registration_details.c.pre_last_name,
175-
# NOTE: pre_phone is not copied since it has to be validated.
175+
# NOTE: pre_phone is NOT copied since it has to be validated.
176+
# It remains here as informative. In the future it might be given
177+
# as a hint to the front end?
176178
# Otherwise, if phone is wrong, currently user won't be able to login!
177179
)
178180

packages/pytest-simcore/src/pytest_simcore/helpers/faker_factories.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ def random_product(
294294
ui=VendorUI(
295295
logo_url="https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg",
296296
strong_color=fake.color(),
297-
project_alias=fake.random_element(elements=["project", "study"]),
298297
),
299298
),
300299
"registration_email_template": registration_email_template,

services/static-webserver/client/source/class/osparc/conversation/MessageUI.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ qx.Class.define("osparc.conversation.MessageUI", {
6464
let control;
6565
switch (id) {
6666
case "thumbnail":
67-
control = osparc.utils.Utils.createThumbnail(32).set({
67+
control = new osparc.ui.basic.UserThumbnail(32).set({
6868
marginTop: 4,
6969
});
7070
this._add(control, {
@@ -165,13 +165,8 @@ qx.Class.define("osparc.conversation.MessageUI", {
165165

166166
osparc.store.Users.getInstance().getUser(message["userGroupId"])
167167
.then(user => {
168-
if (user) {
169-
thumbnail.setSource(user.getThumbnail());
170-
userName.setValue(user.getLabel());
171-
} else {
172-
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
173-
userName.setValue("Unknown user");
174-
}
168+
thumbnail.setUser(user);
169+
userName.setValue(user ? user.getLabel() : "Unknown user");
175170
})
176171
.catch(() => {
177172
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
737737
win.close();
738738
}
739739
win.addListener("cancel", () => cancelStudyOptions());
740+
win.getChildControl("close-button").addListener("tap", () => cancelStudyOptions());
740741
studyOptions.addListener("cancel", () => cancelStudyOptions());
741742
studyOptions.addListener("startStudy", () => {
742743
const newName = studyOptions.getChildControl("title-field").getValue();

0 commit comments

Comments
 (0)