Feature: Add Show in File Explorer context menu option to project list#310
Conversation
lrasmus
left a comment
There was a problem hiding this comment.
@dibyanshu-pal-kushwaha - this is a great start, really. There are two changes I would like to request. One is to change the name of the new menu item. The other is to handle a situation where a project folder is unavailable (this wasn't described in the requirements, sorry).
| props.onMenuClick(Messages.SHOW_ITEM_IN_FOLDER, props.project.path) | ||
| } | ||
| > | ||
| Show in File Explorer |
There was a problem hiding this comment.
Since "File Explorer" is associated with Windows, we should use a more generic term here. We could use "Show in Folder" (we use that here: https://github.com/StatTag/StatWrap/blob/master/app/components/Search/Search.js#L1154) or "Show Folder"
There was a problem hiding this comment.
@lrasmus ,Yes sir , I fixed this in the latest commit.
|
|
||
| <Divider /> | ||
|
|
||
| <MenuItem |
There was a problem hiding this comment.
This does not happen as often, but it is possible for a project to be in the project list and to be unavailable. This can happen if you add a project from a shared network folder, or if you have a local folder that gets deleted. StatWrap detects that and will show an icon showing the project is "offline":
If the project is offline, we should disable this menu item (or remove it) since nothing happens when you click it otherwise.
|
@lrasmus ,Please review this PR help me to improve it sir if required. |


Description
This PR addresses issue #291 by adding a context menu option to open the project folder directly in the native OS file explorer. This improves navigation usability by allowing users to quickly locate their project files on disk without manually searching through directories.
Fixes : #291
Changes
1)Renderer: Added a "Show in File Explorer" item to the ProjectListEntryMenu component.
2)Main Process: Implemented the IPC handler in ProjectPage.js to trigger the existing shell.showItemInFolder functionality via the Messages.SHOW_ITEM_IN_FOLDER channel.
Screenshots:
This is Show in Folder option in Menu Options:
Finally directing the exisitng project in the System :

For Offline Management:
Verification
Added a new project/folder in StatWrap.
Clicked the menu on the project card.
Selected "Show in Folder".
Finally shown the folder.