Skip to content

Commit

Permalink
UI to update about information.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 3, 2023
1 parent 509eab9 commit 23fd8c9
Show file tree
Hide file tree
Showing 24 changed files with 605 additions and 39 deletions.
6 changes: 3 additions & 3 deletions backend/i18n/frontend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "The assets contains all files that can also be linked to your content. For example images, videos or documents.\n\nYou can upload the assets here and use them later or also upload them directly when you create a new content item with an asset field.",
"tour.stepContentNext": "Almost there!",
"tour.stepContentText": "Content is the actual data in your app which is grouped by the schema.\n\nSelect a published schema first, then add content for this schema.",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "Let's take a look around",
Expand Down
6 changes: 3 additions & 3 deletions backend/i18n/frontend_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "Les actifs contiennent tous les fichiers qui peuvent également être liés à votre contenu. Par exemple des images, des vidéos ou des documents. Vous pouvez télécharger les actifs ici et les utiliser plus tard ou également les télécharger directement lorsque vous créez un nouvel élément de contenu avec un champ d'actif.",
"tour.stepContentNext": "Presque là!",
"tour.stepContentText": "Le contenu est les données réelles de votre application qui sont regroupées par le schéma. Sélectionnez d'abord un schéma publié, puis ajoutez du contenu pour ce schéma.",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "Jetons un coup d'œil autour",
Expand Down
6 changes: 3 additions & 3 deletions backend/i18n/frontend_it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "Le risorse contengono tutti i file che tu puoi collegare ai tuoi contenuti. Per esempio immagini, video o documenti.\n\nPuoi caricare qui le risorse e usarle successivamente oppure caricarle direttamente quando stai creando un contenuto utilizzando un campo risorse.",
"tour.stepContentNext": "Ci siamo quasi!",
"tour.stepContentText": "I contenuti della tua app sono raggruppati tramite gli schemi.\n\nSeleziona uno schema pubblicato e poi crea il relativo contenuto.",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "Guardiamoci intorno",
Expand Down
6 changes: 3 additions & 3 deletions backend/i18n/frontend_nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "De mappen bevatten alle bestanden die ook aan uw inhoud kunnen worden gekoppeld. Bijvoorbeeld afbeeldingen, video's of documenten. \n \n Je kunt de bestanden hier uploaden en later gebruiken of ze direct uploaden wanneer je een nieuw contentitem met een bestandveld maakt. ",
"tour.stepContentNext": "Bijna klaar!",
"tour.stepContentText": "Inhoud zijn de feitelijke gegevens in uw app die zijn gegroepeerd op basis van het schema. \n \n Selecteer eerst een gepubliceerd schema en voeg vervolgens inhoud toe voor dit schema.",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "Laten we eens rondkijken",
Expand Down
6 changes: 3 additions & 3 deletions backend/i18n/frontend_pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "Os ativos contêm todos os ficheiros que também podem estar ligados ao seu conteúdo. Por exemplo, imagens, vídeos ou documentos.\n\nPode fazer o upload dos ativos aqui e usá-los mais tarde ou também carregá-los diretamente quando criar um novo item de conteúdo com um campo de ativos.",
"tour.stepContentNext": "Está quase!",
"tour.stepContentText": "O conteúdo é o dado real da sua app que é agrupado pelo esquema.\n\nSelecione primeiro um esquema publicado e, em seguida, adicione conteúdo para este esquema.",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "Vamos dar uma vista de olhos.",
Expand Down
6 changes: 3 additions & 3 deletions backend/i18n/frontend_zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "资源包含所有也可以链接到您的内容的文件。例如图像、视频或文档。\n\n您可以在此处上传资源供以后使用,也可以在创建时直接上传带有资源字段的新内容项。",
"tour.stepContentNext": "快到了!",
"tour.stepContentText": "内容是您的应用程序中按Schemas分组的实际数据。\n\n首先选择一个已发布的Schemas,然后为此Schemas添加内容。",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "我们看看周围",
Expand Down
25 changes: 24 additions & 1 deletion backend/i18n/source/backend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,15 @@
"users.logout.text": "!Please close this popup.",
"users.logout.title": "Logout",
"users.noEmailAddress": "We cannot get the email address from authentication provider.",
"users.profile.aboutHint": "Please share some information about your. It helps us to get an understanding about our users and to improve the product.",
"users.profile.aboutTitle": "About You",
"users.profile.addLoginDone": "Login added successfully.",
"users.profile.changePassword": "Change Password",
"users.profile.changePasswordDone": "Password changed successfully.",
"users.profile.clientHint": "Use the client credentials to access the API with your profile information and permissions",
"users.profile.clientHint": "Use the client credentials to access the API with your profile information and personal permissions, for example to create apps.",
"users.profile.clientTitle": "Client",
"users.profile.companyRole": "What is your role?",
"users.profile.companySize": "How many people work in a company?",
"users.profile.confirmPassword": "Confirm",
"users.profile.generateClient": "Generate",
"users.profile.generateClientDone": "Client secret generated successfully.",
Expand All @@ -363,12 +367,31 @@
"users.profile.loginsTitle": "Logins",
"users.profile.passwordTitle": "Password",
"users.profile.pii": "Personal Information",
"users.profile.project": "What kind of project do you realize?",
"users.profile.projectBackend": "Backend Data Management",
"users.profile.projectCommerce": "E-Commerce Solution",
"users.profile.projectLearning": "None, I am just here for learning",
"users.profile.projectMobileApp": "Mobile App",
"users.profile.projectNewsMagazine": "News Magazine",
"users.profile.projectPersonalBlog": "Personal Blog",
"users.profile.projectSmallBusiness": "Website for Small Business",
"users.profile.propertiesHint": "Use custom properties for rules and scripts.",
"users.profile.propertiesTitle": "Properties",
"users.profile.propertyAdd": "Add Property",
"users.profile.removeLoginDone": "Login provider removed successfully.",
"users.profile.roleBusinessAnalyst": "Business Analyst",
"users.profile.roleBusinessOwner": "Business Owner",
"users.profile.roleContentCreator": "Content Creator",
"users.profile.roleEmployee": "Work at a company",
"users.profile.roleProductManager": "Product Manager",
"users.profile.roleSoftwareDeveloper": "Business Owner",
"users.profile.setPassword": "Set Password",
"users.profile.setPasswordDone": "Password set successfully.",
"users.profile.sizeLarge": "101-1000",
"users.profile.sizeMedium": "51-100",
"users.profile.sizeSingle": "1",
"users.profile.sizeSmall": "2-10",
"users.profile.sizeVeryLarge": "1000+",
"users.profile.title": "Profile",
"users.profile.updateProfileDone": "Account updated successfully.",
"users.profile.updatePropertiesDone": "Account updated successfully.",
Expand Down
6 changes: 3 additions & 3 deletions backend/i18n/source/frontend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
"tour.projectCommerce": "E-Commerce Solution",
"tour.projectLearning": "None, I am just here for learning",
"tour.projectMobileApp": "Mobile App",
"tour.projectNewsMagazine": "",
"tour.projectPersonalBlog": "News Magazine",
"tour.projectNewsMagazine": "News Magazine",
"tour.projectPersonalBlog": "Personal Blog",
"tour.projectSmallBusiness": "Website for Small Business",
"tour.roleBusinessAnalyst": "Business Analyst",
"tour.roleBusinessOwner": "Business Owner",
Expand All @@ -1090,10 +1090,10 @@
"tour.stepAssetsText": "The assets contains all files that can also be linked to your content. For example images, videos or documents.\n\nYou can upload the assets here and use them later or also upload them directly when you create a new content item with an asset field.",
"tour.stepContentNext": "Almost there!",
"tour.stepContentText": "Content is the actual data in your app which is grouped by the schema.\n\nSelect a published schema first, then add content for this schema.",
"tour.stepDataCompanyRole": "What is your role?",
"tour.stepDataCompanySize": "How many people work in a company?",
"tour.stepDataNext": "Continue",
"tour.stepDataProject": "What kind of project do you realize?",
"tour.stepDataRole": "What is your role?",
"tour.stepDataText": "Before we continue we would like to learn a little bit about you to improve to user experience.",
"tour.stepDataTitle": "About You",
"tour.stepIntroNext": "Let's take a look around",
Expand Down
2 changes: 1 addition & 1 deletion backend/src/Squidex.Domain.Users/UserValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ public sealed class UserValues

public List<(string Name, string Value)>? Properties { get; set; }

public Dictionary<string, string>? Answers { get; set; }
public Dictionary<string, string?>? Answers { get; set; }
}
15 changes: 15 additions & 0 deletions backend/src/Squidex.Shared/Identity/SquidexClaimsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ public static bool IsPictureUrlStored(this IEnumerable<Claim> user)
return user.GetClaimValue(SquidexClaimTypes.DisplayName);
}

public static string? Answer(this IEnumerable<Claim> user, string name)
{
var prefix = $"{name}=";

foreach (var claim in user)
{
if (claim.Type == SquidexClaimTypes.Answer && claim.Value.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
{
return claim.Value[prefix.Length..];
}
}

return null;
}

public static int GetTotalApps(this IEnumerable<Claim> user)
{
var value = user.GetClaimValue(SquidexClaimTypes.TotalApps);
Expand Down
69 changes: 69 additions & 0 deletions backend/src/Squidex.Shared/Texts.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,12 @@
<data name="users.noEmailAddress" xml:space="preserve">
<value>Nous ne pouvons pas obtenir l'adresse e-mail du fournisseur d'authentification.</value>
</data>
<data name="users.profile.aboutHint" xml:space="preserve">
<value>Please share some information about your. It helps us to get an understanding about our users and to improve the product.</value>
</data>
<data name="users.profile.aboutTitle" xml:space="preserve">
<value>About You</value>
</data>
<data name="users.profile.addLoginDone" xml:space="preserve">
<value>Connexion ajoutée avec succès.</value>
</data>
Expand All @@ -1150,6 +1156,12 @@
<data name="users.profile.clientTitle" xml:space="preserve">
<value>Client</value>
</data>
<data name="users.profile.companyRole" xml:space="preserve">
<value>What is your role?</value>
</data>
<data name="users.profile.companySize" xml:space="preserve">
<value>How many people work in a company?</value>
</data>
<data name="users.profile.confirmPassword" xml:space="preserve">
<value>Confirmer</value>
</data>
Expand All @@ -1174,6 +1186,30 @@
<data name="users.profile.pii" xml:space="preserve">
<value>Informations personnelles</value>
</data>
<data name="users.profile.project" xml:space="preserve">
<value>What kind of project do you realize?</value>
</data>
<data name="users.profile.projectBackend" xml:space="preserve">
<value>Backend Data Management</value>
</data>
<data name="users.profile.projectCommerce" xml:space="preserve">
<value>E-Commerce Solution</value>
</data>
<data name="users.profile.projectLearning" xml:space="preserve">
<value>None, I am just here for learning</value>
</data>
<data name="users.profile.projectMobileApp" xml:space="preserve">
<value>Mobile App</value>
</data>
<data name="users.profile.projectNewsMagazine" xml:space="preserve">
<value>News Magazine</value>
</data>
<data name="users.profile.projectPersonalBlog" xml:space="preserve">
<value>Personal Blog</value>
</data>
<data name="users.profile.projectSmallBusiness" xml:space="preserve">
<value>Website for Small Business</value>
</data>
<data name="users.profile.propertiesHint" xml:space="preserve">
<value>Utilisez des propriétés personnalisées pour les règles et les scripts.</value>
</data>
Expand All @@ -1186,12 +1222,45 @@
<data name="users.profile.removeLoginDone" xml:space="preserve">
<value>Fournisseur de connexion supprimé avec succès.</value>
</data>
<data name="users.profile.roleBusinessAnalyst" xml:space="preserve">
<value>Business Analyst</value>
</data>
<data name="users.profile.roleBusinessOwner" xml:space="preserve">
<value>Business Owner</value>
</data>
<data name="users.profile.roleContentCreator" xml:space="preserve">
<value>Content Creator</value>
</data>
<data name="users.profile.roleEmployee" xml:space="preserve">
<value>Work at a company</value>
</data>
<data name="users.profile.roleProductManager" xml:space="preserve">
<value>Product Manager</value>
</data>
<data name="users.profile.roleSoftwareDeveloper" xml:space="preserve">
<value>Business Owner</value>
</data>
<data name="users.profile.setPassword" xml:space="preserve">
<value>Définir le mot de passe</value>
</data>
<data name="users.profile.setPasswordDone" xml:space="preserve">
<value>Mot de passe défini avec succès.</value>
</data>
<data name="users.profile.sizeLarge" xml:space="preserve">
<value>101-1000</value>
</data>
<data name="users.profile.sizeMedium" xml:space="preserve">
<value>51-100</value>
</data>
<data name="users.profile.sizeSingle" xml:space="preserve">
<value>1</value>
</data>
<data name="users.profile.sizeSmall" xml:space="preserve">
<value>2-10</value>
</data>
<data name="users.profile.sizeVeryLarge" xml:space="preserve">
<value>1000+</value>
</data>
<data name="users.profile.title" xml:space="preserve">
<value>Profil</value>
</data>
Expand Down
Loading

0 comments on commit 23fd8c9

Please sign in to comment.