Skip to content

Commit

Permalink
Further improve UX in disconnect DB form
Browse files Browse the repository at this point in the history
  • Loading branch information
seancolsen committed Jan 17, 2025
1 parent f82f62a commit 2f7e9ed
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 87 deletions.
1 change: 1 addition & 0 deletions mathesar_ui/src/api/rpc/databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const databases = {
strict?: boolean;
role_name?: string;
password?: string;
disconnect_db_server?: boolean;
},
void
>(),
Expand Down
1 change: 1 addition & 0 deletions mathesar_ui/src/components/DocsLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
schemas: '/user-guide/schemas/',
userAdmin: '/user-guide/users/#admin',
dataTypes: '/user-guide/data-types/',
metadata: '/user-guide/metadata/',
};
type Page = keyof typeof pages;
Expand Down
15 changes: 12 additions & 3 deletions mathesar_ui/src/i18n/languages/en/dict.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"database_access_connect_help": "Can access the database",
"database_access_create_help": "Can access the database and create new schemas",
"database_disconnect_failed": "Unable to disconnect database",
"database_disconnect_form_into": "This will remove the database from Mathesar.",
"database_disconnect_form_into": "This will disconnect the database from Mathesar.",
"database_disconnect_success": "The database has been disconnected successfully",
"database_name": "Database Name",
"database_new_items_scroll_hint": "Scroll or click here to see the database.",
Expand Down Expand Up @@ -238,7 +238,7 @@
"drop_role_name_question": "Drop role [name]?",
"drop_role_warning": "This role will be dropped on the database server and will not be available for any databases configured on the same server.",
"drop_role_with_identifier": "Drop Role [identifier]?",
"drop_the_database_from_pg": "Drop the database from PostgreSQL",
"drop_the_database": "Drop the database",
"edit": "Edit",
"edit_child_roles_for_parent": "Edit [parent] child roles",
"edit_connection": "Edit Connection",
Expand Down Expand Up @@ -327,6 +327,7 @@
"import": "Import",
"import_from_file": "Import from a File",
"in_mathesar": "In Mathesar",
"in_postgres": "In PostgreSQL",
"in_postgresql": "In PostgreSQL",
"in_this_table": "In this table",
"individual_permissions_admin_modify_warning": "Individual permissions cannot be modified for users with Admin access.",
Expand All @@ -338,7 +339,7 @@
"join_community_chat": "Join Community Chat",
"join_email_list": "Join Email List",
"keep_first_row_as_data": "Set generic column names, keeping the first row as data",
"keep_the_database_in_pg": "Keep the database in PostgreSQL",
"keep_the_database": "Keep the database",
"known_connection": "Known connection",
"large_data_takes_time_warning": "Large data sets can sometimes take several minutes to process. Please do not leave this page or close the browser tab while the import is in progress.",
"last_checked": "Last checked",
Expand Down Expand Up @@ -555,11 +556,17 @@
"remove_internal_schemas_help_1": "When checked, this will remove the \"msar\" and \"__msar\" schemas from the database.",
"remove_internal_schemas_help_2": "These schemas contain functions only necessary for the Mathesar application and can safely be deleted when disconnecting a database. You can easily reinstall them by reconnecting the database to Mathesar.",
"remove_internal_schemas_help_3": "See our [link](documentation) to learn more about Mathesar's internal schemas.",
"remove_metadata": "Remove saved explorations and other metadata",
"remove_metadata_field_help": "When disconnecting a database, Mathesar will delete all saved [explorationsLink](explorations) and other [metadataLink](metadata) such as custom column display options and record summary templates.",
"remove_old_link_create_new": "Remove old link and create a new link?",
"remove_sorting_type": "Remove {sortingType} Sorting",
"remove_stored_password": "Remove Stored Password",
"remove_stored_password_for_identifier": "Remove Stored Password for [identifier]?",
"remove_stored_password_help": "Removing this stored password will prevent collaborators assigned to this role from accessing databases on server ''{server}''.",
"remove_stored_role_passwords": "Remove stored role passwords",
"remove_stored_role_passwords_help_1": "Because you are deleting the last database associated with its containing server, this option is present.",
"remove_stored_role_passwords_help_checked": "With this box [bold](checked), the passwords that you've stored for PostgreSQL roles on this database's server will be deleted from Mathesar's internal database.",
"remove_stored_role_passwords_help_unchecked": "With this box [bold](unchecked), the passwords will remain in Mathesar's internal database, but you will not have a way to edit them or remove them unless you re-connect another database associated with the same server.",
"remove_types_schema": "Remove Mathesar's custom data types",
"remove_types_schema_help_1": "When checked, this will attempt to remove the \"mathesar_types\" schema from the database.",
"remove_types_schema_help_2": "This schema contains custom PostgreSQL data types that Mathesar uses for Email, Money, and URL types.",
Expand Down Expand Up @@ -632,6 +639,7 @@
"seconds": "Seconds",
"section_affects_database_config": "This section affects the configuration of the database.",
"section_affects_postgresql_config": "The configuration in this section is stored within the connected PostgreSQL database.",
"see_docs_for_stored_role_password_help": "See our [docsLink](documentation) for more information on stored role passwords.",
"see_docs_to_learn_more": "See our [link](documentation) to learn more.",
"see_whats_shared": "See what's shared.",
"select_cell_view_properties": "Select a cell to view it's properties.",
Expand Down Expand Up @@ -731,6 +739,7 @@
"the_credentials_will_be_copied_from_this_connection": "The username, password, host, and port will be copied from this connection.",
"the_errors_are_shown_below_for_each_database": "The errors are shown below for each database.",
"the_following_databases_will_be_upgraded": "The following databases will be upgraded:",
"this_behavior_is_not_configurable": "This behavior is not configurable.",
"this_will_remove_following_columns": "This will remove the following column(s):",
"this_will_remove_following_transformations": "This will remove the following transformation(s):",
"time_to_create_exploration": "It's time to use your tables. Create your first exploration.",
Expand Down
Loading

0 comments on commit 2f7e9ed

Please sign in to comment.