Bug 2002273 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

When the user starts a download, we currently have a dialog that asks them if they want to download the file.

This dialog should be replaced with a new one ([Figma here](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=11999-32904&m=dev)).

The dialog shows: 
- the size of the file to download 
- a field with the default file name (that doesn't get focus when the dialog opens) 
- a text view showing the path. It's preloaded with the default download path (that can be selected from the Settings, after Bug 1812815 is implemented)
- Cancel and Download buttons. 

When clicking the path, it should open the Location Picker ([Figma](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=12037-1811&m=dev)), similar to what should be implemented in Bug 1812815. 
The selected location only impacts the current download, and shouldn't be persisted. 

When clicking the filename field, the focus should first go to the filename (excluding the extension). 
The user can only rename the part before the extension.

The Download button should be disabled if: 
- filename is empty
- file "full path" (path + filename) is too long

If the full path is too long (meaning the Android system wouldn't accept to write the file), then an error message should be shown below the path text ([Figma here](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=12308-18632&m=dev))
When the user starts a download, we currently have a dialog that asks them if they want to download the file.

This dialog should be replaced with a new one ([Figma here](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=11999-32904&m=dev)), and placed behind a feature flag.

The dialog shows: 
- the size of the file to download 
- a field with the default file name (that doesn't get focus when the dialog opens) 
- a text view showing the path. It's preloaded with the default download path (that can be selected from the Settings, after Bug 1812815 is implemented)
- Cancel and Download buttons. 

When clicking the path, it should open the Location Picker ([Figma](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=12037-1811&m=dev)), similar to what should be implemented in Bug 1812815. 
The selected location only impacts the current download, and shouldn't be persisted. 

When clicking the filename field, the focus should first go to the filename (excluding the extension). 
The user can only rename the part before the extension.

The Download button should be disabled if: 
- filename is empty
- file "full path" (path + filename) is too long

If the full path is too long (meaning the Android system wouldn't accept to write the file), then an error message should be shown below the path text ([Figma here](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=12308-18632&m=dev))
When the user starts a download, we currently have a dialog that asks them if they want to download the file.

This dialog should be replaced with a new one ([Figma here](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=11999-32904&m=dev)), and placed behind a feature flag.

The dialog shows: 
- the size of the file to download 
- a field with the default file name (that doesn't get focus when the dialog opens) 
- a text view showing the path. It's preloaded with the default download path (that can be selected from the Settings, after Bug 1812815 is implemented)
- Cancel and Download buttons. 

When clicking the path, it should open the Location Picker ([Figma](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=12037-1811&m=dev)), similar to what should be implemented in Bug 1812815. 
The selected location only impacts the current download, and shouldn't be persisted. 

When clicking the filename field, the focus should first go to the filename (excluding the extension). 
The user can only rename the part before the extension.

The Download button should be disabled if: 
- filename is empty
- file "full path" (path + filename) is too long

If the full path is too long (meaning the Android system wouldn't accept to write the file), then an error message should be shown below the path text ([Figma here](https://www.figma.com/design/d4VPwxnMK4nmaFvdlvfoIz/Mobile-Downloads?node-id=12371-4326&m=dev))

Back to Bug 2002273 Comment 0