Skip to content

Conversation

@kalidatony
Copy link

  • Introduced new storage preferences section in app settings
  • Added ability to set and change default node storage location
  • Implemented storage location selection with free space information
  • Updated translations and preload interfaces to support new feature

- Introduced new storage preferences section in app settings
- Added ability to set and change default node storage location
- Implemented storage location selection with free space information
- Updated translations and preload interfaces to support new feature
@kalidatony kalidatony closed this Feb 27, 2025
@netlify
Copy link

netlify bot commented Feb 27, 2025

Deploy Preview for nndesign ready!

Name Link
🔨 Latest commit acae7db
🔍 Latest deploy log https://app.netlify.com/sites/nndesign/deploys/67c30faebfb53b0008a08e9e
😎 Deploy Preview https://deploy-preview-690--nndesign.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kalidatony kalidatony deleted the storage-loc branch February 27, 2025 19:10
@kalidatony kalidatony restored the storage-loc branch February 27, 2025 19:11
@kalidatony kalidatony reopened this Feb 27, 2025
@jgresham
Copy link
Member

hey @kalidatony thanks!

Just took a quick look at the diffs. It looks like the first part of this is done, UI and saving the setting. Second part would be using this as the default storage path instead of the previous default (I believe its something like electron.appStorage).

Not a must, but we could do a permissions check on the directory path that the user chooses to make sure they have write permissions.

If you don't mind, see if installing biomejs in cursor/vscode, the tool we use for formatting, to see if that prevents things like single quote to double quote diffs.

- Implemented write permission validation when selecting storage location
- Added error handling and user notification for permission denied scenarios
- Updated files to support custom default storage location with fallback
- Added new translations for permission-related error messages
@kalidatony
Copy link
Author

@jgresham I have added the changes, Please check

@jgresham
Copy link
Member

jgresham commented Mar 1, 2025

@jgresham I have added the changes, Please check

excellent. I will test it out across different machines/OSs over the next few days

@jgresham
Copy link
Member

Hey I didn't forget about this, I've just been away from my hardware for testing!

@kalidatony
Copy link
Author

Hey I didn't forget about this, I've just been away from my hardware for testing!

it's alright man. Thank you

@kalidatony
Copy link
Author

Hi @jgresham . Hope you are well. Have you been able to check it out?

@jgresham
Copy link
Member

@kalidatony can you revert the changes from ' to ’

@jgresham
Copy link
Member

@kalidatony and revert the ' to " for the import lines

}

// Fall back to default app storage location
const userDataPath = app.getPath('userData');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this logic the same, so it should be just return path.join(getNNDirPath(), 'nodes')

@jgresham
Copy link
Member

@kalidatony I tested this on mac and windows and it doesnt work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants