jan icon indicating copy to clipboard operation
jan copied to clipboard

feat: [BE] allow users to change Jan Data Folder

Open imtuyethan opened this issue 1 year ago • 3 comments

Epic: Files & Links https://github.com/orgs/janhq/projects/5/views/16?pane=issue&itemId=49509878 Related design ticket: https://github.com/janhq/jan/issues/1010 Related FE task: #1618

Goal

Allow users to change the app data folder in settings

Design

Full design flow: https://www.figma.com/file/ytn1nRZ17FUmJHTlhmZB9f/Jan-App?type=design&node-id=2270-285004&mode=design&t=bQyiFG80Dcr1XlBm-4

User flow

  1. Go to Settings / Advanced Settings
  2. See Jan Data Folder
  3. Users can:
  • Show Jan Data Folder in Finder.
  • Relocate Jan Data Folder by clicking on the edit button.
Screenshot 2024-01-16 at 2 00 31 PM
  1. Users need to confirm if they want to relocate Jan App Folder request.
Screenshot 2024-01-16 at 2 04 52 PM
  1. Users can see the progress of relocating Jan App Folder.
Screenshot 2024-01-16 at 2 05 08 PM
  1. The app will restart upon completion.
Screenshot 2024-01-16 at 2 07 23 PM

Error scenarios

  1. Folder is not available / does not have enough space
Screenshot 2024-01-16 at 2 08 04 PM
  1. A more generic error for other disrupting cases
Screenshot 2024-01-16 at 2 08 38 PM

imtuyethan avatar Jan 16 '24 07:01 imtuyethan

Maybe need wait until @urmauur submit the PR for the UI before this ticket can be tested @louis-jan

namchuai avatar Jan 23 '24 06:01 namchuai

@Van-QA , please help to verify this ticket. Thank you!

namchuai avatar Jan 31 '24 06:01 namchuai

@namchuai another case with the Move Jan Data app, we need to check whether the destination folder is empty or not, before moving :x: The fix should include a popup to warn users that the selected folder is not empty. @urmauur

Attached is the Figma provided by Ashley for future reference: https://www.figma.com/file/ytn1nRZ17FUmJHTlhmZB9f/Jan-App?type=design&node-id=3947-233072&mode=design&t=DY03nXp82uhdD081-0

Van-QA avatar Jan 31 '24 07:01 Van-QA

Completely tested on Jan v0.4.5-224

Van-QA avatar Feb 02 '24 09:02 Van-QA