From f1e936720e23d1c3c6708728cfccdbef4f4db578 Mon Sep 17 00:00:00 2001 From: Sean Colsen Date: Thu, 4 Jan 2024 14:32:39 -0500 Subject: [PATCH 1/3] Show help content below input component --- .../src/component-library/labeled-input/LabeledInput.scss | 2 +- .../src/component-library/labeled-input/LabeledInput.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mathesar_ui/src/component-library/labeled-input/LabeledInput.scss b/mathesar_ui/src/component-library/labeled-input/LabeledInput.scss index 70526c44da..0a433abab8 100644 --- a/mathesar_ui/src/component-library/labeled-input/LabeledInput.scss +++ b/mathesar_ui/src/component-library/labeled-input/LabeledInput.scss @@ -20,7 +20,7 @@ display: block; font-size: var(--text-size-small); color: var(--color-text-muted); - margin-top: 0.5rem; + margin-top: var(--spacing-y, var(--spacing-y-default)); &:empty { display: none; } diff --git a/mathesar_ui/src/component-library/labeled-input/LabeledInput.svelte b/mathesar_ui/src/component-library/labeled-input/LabeledInput.svelte index 64fd6d80c1..e8e40eee53 100644 --- a/mathesar_ui/src/component-library/labeled-input/LabeledInput.svelte +++ b/mathesar_ui/src/component-library/labeled-input/LabeledInput.svelte @@ -21,8 +21,8 @@ white space. --> {label ?? ''} - {help ?? ''} + {help ?? ''} From 6dfc1225dfbe775ad3fab4ebb2b98acdedd802d8 Mon Sep 17 00:00:00 2001 From: Sean Colsen Date: Thu, 4 Jan 2024 14:45:20 -0500 Subject: [PATCH 2/3] Improve connection editing modal --- mathesar_ui/src/i18n/languages/en/dict.json | 2 +- .../connections/EditConnectionModal.svelte | 138 +++++++++++------- 2 files changed, 86 insertions(+), 54 deletions(-) diff --git a/mathesar_ui/src/i18n/languages/en/dict.json b/mathesar_ui/src/i18n/languages/en/dict.json index a5b05dd17c..29da8852cc 100644 --- a/mathesar_ui/src/i18n/languages/en/dict.json +++ b/mathesar_ui/src/i18n/languages/en/dict.json @@ -46,7 +46,6 @@ "cannot_move_linked_column_to_linked_table": "Cannot move linking column \"{columnName}\" to its linked table \"{tableName}\".", "cell": "Cell", "change_password": "Change Password", - "change_password_leave_empty_help": "If you want to change your password, enter a new one below. Otherwise, just leave the field blank.", "check_for_updates": "Check for Updates", "choose_connection": "Choose a Database Connection", "choose_schema": "Choose a Schema", @@ -162,6 +161,7 @@ "description": "Description", "disable_link": "Disable Link", "disable_link_question": "Disable Link?", + "disabled_connection_edit_fields_help": "Mathesar does not yet support editing a connection's database name, host, and port. We [issueLink](plan) to add support for this in the future. In the mean time, you can delete this connection and create a new one if needed.", "disallow_null_values": "Disallow [null] Values", "disallow_null_values_help": "Enable this option to prevent null values in the column. Null values are empty values that are not the same as zero or an empty string.", "discard_changes": "Discard Changes", diff --git a/mathesar_ui/src/systems/connections/EditConnectionModal.svelte b/mathesar_ui/src/systems/connections/EditConnectionModal.svelte index 9a8fc83f69..6c8bb1b5cd 100644 --- a/mathesar_ui/src/systems/connections/EditConnectionModal.svelte +++ b/mathesar_ui/src/systems/connections/EditConnectionModal.svelte @@ -1,14 +1,16 @@ - + form.reset()}> {#if slotName === 'connectionName'} @@ -91,51 +79,97 @@ layout="stacked" />
- +
- +
- +
- -
- {$_('user_needs_create_connect_privileges')} - - {$_('why_is_this_needed')} - -
-
+ -
{$_('change_password')}
-
- {$_('change_password_leave_empty_help')} +
+ + + {#if slotName === 'issueLink'} + {translatedArg} + {/if} + +
+ +
+ -
- {$_('password_encryption_help')} -
+ + + + + + + + + + {#if $changePassword} + + {/if}
form.reset()} + onProceed={save} />
@@ -145,10 +179,8 @@ margin: var(--size-large) 0; } - .help { + .disabled-help { font-size: var(--size-small); - color: var(--slate-400); - margin: var(--size-super-ultra-small) 0; } [data-identifier='host-port-config'] { From 97ae1c08625a8958efffa420033ee84f21a631a5 Mon Sep 17 00:00:00 2001 From: Sean Colsen Date: Thu, 4 Jan 2024 20:14:39 -0500 Subject: [PATCH 3/3] Fix misspelling of meantime --- mathesar_ui/src/i18n/languages/en/dict.json | 2 +- .../systems/data-explorer/exploration-inspector/CellTab.svelte | 2 +- .../src/systems/table-view/table-inspector/cell/CellMode.svelte | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mathesar_ui/src/i18n/languages/en/dict.json b/mathesar_ui/src/i18n/languages/en/dict.json index 29da8852cc..175fcafe0b 100644 --- a/mathesar_ui/src/i18n/languages/en/dict.json +++ b/mathesar_ui/src/i18n/languages/en/dict.json @@ -161,7 +161,7 @@ "description": "Description", "disable_link": "Disable Link", "disable_link_question": "Disable Link?", - "disabled_connection_edit_fields_help": "Mathesar does not yet support editing a connection's database name, host, and port. We [issueLink](plan) to add support for this in the future. In the mean time, you can delete this connection and create a new one if needed.", + "disabled_connection_edit_fields_help": "Mathesar does not yet support editing a connection's database name, host, and port. We [issueLink](plan) to add support for this in the future. In the meantime, you can delete this connection and create a new one if needed.", "disallow_null_values": "Disallow [null] Values", "disallow_null_values_help": "Enable this option to prevent null values in the column. Null values are empty values that are not the same as zero or an empty string.", "discard_changes": "Discard Changes", diff --git a/mathesar_ui/src/systems/data-explorer/exploration-inspector/CellTab.svelte b/mathesar_ui/src/systems/data-explorer/exploration-inspector/CellTab.svelte index 9230e4025a..a6a38a4f3b 100644 --- a/mathesar_ui/src/systems/data-explorer/exploration-inspector/CellTab.svelte +++ b/mathesar_ui/src/systems/data-explorer/exploration-inspector/CellTab.svelte @@ -4,7 +4,7 @@ * * NOTICE: There is some code duplication between this file and * `CellMode.svelte` used for the table view. It might be good to resolve this - * duplication at some point. In the mean time, be mindful of propagating + * duplication at some point. In the meantime, be mindful of propagating * changes to both files as necessary. */ import { _ } from 'svelte-i18n'; diff --git a/mathesar_ui/src/systems/table-view/table-inspector/cell/CellMode.svelte b/mathesar_ui/src/systems/table-view/table-inspector/cell/CellMode.svelte index ccdf741739..cb7a00bfd4 100644 --- a/mathesar_ui/src/systems/table-view/table-inspector/cell/CellMode.svelte +++ b/mathesar_ui/src/systems/table-view/table-inspector/cell/CellMode.svelte @@ -4,7 +4,7 @@ * * NOTICE: There is some code duplication between this file and * `CellTab.svelte` used for the data explorer. It might be good to resolve - * this duplication at some point. In the mean time, be mindful of propagating + * this duplication at some point. In the meantime, be mindful of propagating * changes to both files as necessary. */ import { _ } from 'svelte-i18n';