@@ -129,13 +129,13 @@ def compose(self) -> ComposeResult:
129129 Label ("Root Folder ID" , id = "configs_gdrive_root_folder_id_label" ),
130130 ClickableInput (
131131 self .parent_class .mainwindow ,
132- placeholder = "Google Drive Root Folder ID " ,
132+ placeholder = "e.g. 1KAN9QLD2K2EANE " ,
133133 id = "configs_gdrive_root_folder_id_input" ,
134134 ),
135135 Label ("Client ID (Optional)" , id = "configs_gdrive_client_id_label" ),
136136 ClickableInput (
137137 self .parent_class .mainwindow ,
138- placeholder = "Google Drive Client ID (Optional) " ,
138+ placeholder = "e.g. 93412981629-2icf0ba09cks9.apps.googleusercontent.com " ,
139139 id = "configs_gdrive_client_id_input" ,
140140 ),
141141 ]
@@ -144,7 +144,7 @@ def compose(self) -> ComposeResult:
144144 Label ("AWS Access Key ID" , id = "configs_aws_access_key_id_label" ),
145145 ClickableInput (
146146 self .parent_class .mainwindow ,
147- placeholder = "AWS Access Key ID eg. EJIBCLSIP2K2PQK3CDON" ,
147+ placeholder = "eg. EJIBCLSIP2K2PQK3CDON" ,
148148 id = "configs_aws_access_key_id_input" ,
149149 ),
150150 Label ("AWS S3 Region" , id = "configs_aws_region_label" ),
@@ -187,7 +187,7 @@ def compose(self) -> ComposeResult:
187187 id = self .radiobutton_id_from_connection_method ("gdrive" ),
188188 ),
189189 RadioButton (
190- "AWS S3" ,
190+ "AWS S3 Bucket " ,
191191 id = self .radiobutton_id_from_connection_method ("aws" ),
192192 ),
193193 id = "configs_connect_method_radioset" ,
@@ -231,7 +231,7 @@ def compose(self) -> ComposeResult:
231231 Horizontal (
232232 Static (
233233 "Set your configurations for a new project. For more "
234- "details on each section,\n see the Datashuttle "
234+ "details on each section,\n see the datashuttle "
235235 "documentation. Once configs are set, you will "
236236 "be able\n to use the 'Create' and 'Transfer' tabs." ,
237237 id = "configs_info_label" ,
@@ -276,21 +276,18 @@ def on_mount(self) -> None:
276276 ]
277277 )
278278 else :
279- self .query_one (
280- "#configs_local_filesystem_radiobutton"
281- ).value = True
279+ self .query_one ("#configs_local_only_radiobutton" ).value = True
282280
283- self .setup_widgets_to_display (connection_method = "local_filesystem" )
281+ self .setup_widgets_to_display (connection_method = None )
284282
285283 # Setup tooltips
286284 if not self .interface :
287285 id = "#configs_name_input"
288286 self .query_one (id ).tooltip = get_tooltip (id )
289287
290- # Assumes 'local_filesystem' is default if no project set.
288+ # Assumes local-only is default if no project set.
291289 assert (
292- self .query_one ("#configs_local_filesystem_radiobutton" ).value
293- is True
290+ self .query_one ("#configs_local_only_radiobutton" ).value is True
294291 )
295292
296293 for id in [
@@ -303,6 +300,8 @@ def on_mount(self) -> None:
303300 "#configs_central_host_id_input" ,
304301 "#configs_gdrive_client_id_input" ,
305302 "#configs_gdrive_root_folder_id_input" ,
303+ "#configs_aws_access_key_id_input" ,
304+ "#configs_aws_region_select" ,
306305 ]:
307306 self .query_one (id ).tooltip = get_tooltip (id )
308307
@@ -323,7 +322,7 @@ def on_radio_set_changed(self, event: RadioSet.Changed) -> None:
323322 "Local Filesystem" ,
324323 "No connection (local only)" ,
325324 "Google Drive" ,
326- "AWS S3" ,
325+ "AWS S3 Bucket " ,
327326 ], "Unexpected label."
328327
329328 connection_method = self .connection_method_from_radiobutton_id (
@@ -359,11 +358,9 @@ def connection_method_from_radiobutton_id(
359358 def set_central_path_input_tooltip (
360359 self , connection_method : str | None
361360 ) -> None :
362- """Set tooltip depending on whether connection method is SSH or local filesystem ."""
361+ """Set tooltip depending on the connection method."""
363362 if connection_method is None :
364- tooltip = get_tooltip (
365- "config_central_path_input_mode-local_filesystem"
366- )
363+ tooltip = get_tooltip ("config_central_path_input_mode-local_only" )
367364 else :
368365 tooltip = get_tooltip (
369366 f"config_central_path_input_mode-{ connection_method } "
@@ -396,9 +393,10 @@ def get_platform_dependent_example_paths(
396393 ):
397394 if connection_method == "ssh" :
398395 example_path = "e.g. /nfs/path_on_server/myprojects/central"
399- elif connection_method in ["aws" , "gdrive" ]:
396+ elif connection_method == "aws" :
397+ example_path = "my-bucket-name/my-folder"
398+ elif connection_method == "gdrive" :
400399 example_path = ""
401-
402400 else :
403401 if platform .system () == "Windows" :
404402 example_path = rf"e.g. C:\path\to\{ local_or_central } \my_projects\my_first_project"
@@ -799,7 +797,7 @@ def setup_widgets_to_display(self, connection_method: str | None) -> None:
799797
800798 # Central Path Label
801799 central_path_label = self .query_one ("#configs_central_path_label" )
802- if connection_method in [ "gdrive" , "aws" ] :
800+ if connection_method == "gdrive" :
803801 central_path_label .update (content = "Central Path (Optional)" )
804802 else :
805803 central_path_label .update (content = "Central Path" )
0 commit comments