Skip to content

Commit 1157dc8

Browse files
committed
Improve subdomain input UX in hub-managed form
1 parent 0f8f6ee commit 1157dc8

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

i18n/de.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,11 @@
666666
- id: hub_managed_step_2_title
667667
translation: "Welche Subdomain möchtest du?"
668668
- id: hub_managed_step_2_subdomain_description
669-
translation: "Dies wird die URL deiner Hub-Instanz sein."
669+
translation: "Es sind nur Kleinbuchstaben, Zahlen und Bindestriche zulässig."
670670
- id: hub_managed_step_2_subdomain_placeholder
671-
translation: "deine-subdomain"
671+
translation: "mein-team"
672+
- id: hub_managed_step_2_url_description
673+
translation: "Dies wird die eindeutige URL deiner Hub-Instanz sein."
672674

673675
- id: hub_managed_step_3_nav_title
674676
translation: "Erwartete Nutzer"

i18n/en.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,11 @@
666666
- id: hub_managed_step_2_title
667667
translation: "What subdomain would you like?"
668668
- id: hub_managed_step_2_subdomain_description
669-
translation: "This will be the URL of your Hub instance."
669+
translation: "Only lowercase letters, numbers, and hyphens are allowed."
670670
- id: hub_managed_step_2_subdomain_placeholder
671-
translation: "your-subdomain"
671+
translation: "my-team"
672+
- id: hub_managed_step_2_url_description
673+
translation: "This will be the unique URL of your Hub instance."
672674

673675
- id: hub_managed_step_3_nav_title
674676
translation: "Expected Users"
@@ -1286,4 +1288,4 @@
12861288
- id: pricing_discount_note
12871289
translation: "The discount amount may vary by region."
12881290
- id: pricing_hub_standard_price_first_year
1289-
translation: "in the first year"
1291+
translation: "in the first year"

layouts/hub-managed/single.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,11 @@ <h2 class="font-h2 mb-6">
9191
<p class="font-p text-sm mb-2">
9292
{{ i18n "hub_managed_step_2_subdomain_description" }}
9393
</p>
94-
<div class="col-span-6 mb-8 lg:col-span-4">
95-
<div class="flex items-center rounded-sm bg-gray-300">
96-
<div class="text-sm text-gray-700 px-3">https://</div>
97-
<input type="text" id="subdomain" pattern="[a-z\d\-](?:[a-z\d\-]{0,61}[a-z\d])?" class="block input-box rounded-none text-sm w-full" placeholder="{{ i18n "hub_managed_step_2_subdomain_placeholder" }}" maxlength="63" x-init="$el.focus()" x-model="submitData.subdomain" @blur="$el.classList.add('show-invalid')" required>
98-
<div class="text-sm text-gray-700 px-3">.cryptomator.cloud</div>
99-
</div>
100-
</div>
94+
<input type="text" id="subdomain" pattern="[a-z\d\-](?:[a-z\d\-]{0,61}[a-z\d])?" class="block input-box w-full mb-4" placeholder="{{ i18n "hub_managed_step_2_subdomain_placeholder" }}" maxlength="63" x-init="$el.focus()" x-model="submitData.subdomain" @blur="$el.classList.add('show-invalid')" required>
95+
<p class="font-p text-sm mb-2">
96+
{{ i18n "hub_managed_step_2_url_description" }}
97+
</p>
98+
<input type="text" class="block input-box w-full mb-8" :value="submitData.subdomain ? subdomainToURL(submitData.subdomain) : 'https://<{{ i18n "hub_managed_step_2_subdomain_placeholder" }}>.cryptomator.cloud'" readonly>
10199
<div class="mt-auto">
102100
<p :class="{'hidden': !feedbackData.errorMessage}" class="text-sm text-red-600 mb-2" x-text="feedbackData.errorMessage"></p>
103101
<button :disabled="feedbackData.inProgress" @click.prevent="hubManaged.validateSubdomain()" class="btn btn-primary w-full md:w-64" data-umami-event="hub-managed-step-2">

0 commit comments

Comments
 (0)