From aaa2d9ef430f8e15b068563dc0e073bb24ac476c Mon Sep 17 00:00:00 2001
From: Ilia Orlov <66363651+illfixit@users.noreply.github.com>
Date: Fri, 20 Sep 2024 16:23:01 +0200
Subject: [PATCH] feat: replace hints with info boxes in On Request data source
(#839)
---
CHANGELOG.md | 2 ++
.../asset-create-dialog.component.html | 28 +++++++++++--------
.../edit-asset-form.component.html | 18 ++++++------
src/assets/i18n/en.json | 21 ++++++++++++--
4 files changed, 46 insertions(+), 23 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index edd74ad1..3e1999fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,8 @@ the detailed section referring to by linking pull requests or issues.
#### Patch
+- Replaced hints with info boxes in On Request data source
+ ([#820](https://github.com/sovity/edc-ui/issues/820))
- Fixed cropping of Contract Offer Ids on catalog browser page
([#795](https://github.com/sovity/edc-ui/issues/795))
- Used createDataOffer endpoint to create an asset, policies and a contract
diff --git a/src/app/routes/connector-ui/asset-list-page/asset-create-dialog/asset-create-dialog.component.html b/src/app/routes/connector-ui/asset-list-page/asset-create-dialog/asset-create-dialog.component.html
index f8ebab35..6ae63e73 100644
--- a/src/app/routes/connector-ui/asset-list-page/asset-create-dialog/asset-create-dialog.component.html
+++ b/src/app/routes/connector-ui/asset-list-page/asset-create-dialog/asset-create-dialog.component.html
@@ -559,12 +559,6 @@
Contact E-Mail
-
- This email address will be offered to potential consumers for
- contacting you. This is done in place of having an actual data
- source connected.
-
-
@@ -573,6 +567,15 @@
matInput
[formControl]="ctrl"
[placeholder]="'contact@my-org.com'" />
+
{{ validationMessages.invalidEmailMessage }}
@@ -581,11 +584,6 @@
Preferred E-Mail Subject
-
- When potential customers reach out to you via email, you’ll
- receive messages with this subject line.
-
-
matInput
[formControl]="ctrl"
[placeholder]="'Data Offer \'xyz\''" />
+
diff --git a/src/app/shared/business/edit-asset-form/edit-asset-form.component.html b/src/app/shared/business/edit-asset-form/edit-asset-form.component.html
index 759dcdf8..8b6ab9cc 100644
--- a/src/app/shared/business/edit-asset-form/edit-asset-form.component.html
+++ b/src/app/shared/business/edit-asset-form/edit-asset-form.component.html
@@ -39,12 +39,11 @@
placeholder="{{
'create_data_offer.contact_email_placeholder' | translate
}}"
+ tooltip="'contact_form.contact_email_tooltip' | translate"
[label]="'create_data_offer.contact_email' | translate"
- [ctrl]="form.datasource.controls.contactEmail"
- >{{
- 'create_data_offer.contact_email_descr' | translate
- }}
+ [ctrl]="
+ form.datasource.controls.contactEmail
+ ">
When potential customers reach out to you via email, you’ll receive
- messages with this subject line.
+ tooltip="'contact_form.contact_subject_tooltip' | translate"
+ [ctrl]="form.datasource.controls.contactPreferredEmailSubject">
+
- Create asset only (without data offer)
+ {{ 'general.pub_asset_only' | translate }}