Skip to content

Replace ElectronJS file dialogs by custom React components #352

@mkoskim

Description

@mkoskim

Background

Python Mawe has its own component to choose files. That was made to enable searching and other features not present in most systems' native file open/save dialogs.

For MaweJS, to get the first usable versions done, I made a bridge to call ElectronJS file dialogs to choose and save files.

Why?

In long run, the goal is that you can also edit files in cloud servers. For that purpose, we need to abstract filesystems so that no matter if the file is in local drive, google drive or dropbox, you can load, edit and save it.

That is the reason why ElectronJS backend is stupidly simple. It is mainly a "server-side" access to local filesystem and nothing more. Close everything is happening at the client side.

Furthermore, in long run, it is possible that I make MaweJS as a browser application. As you know, long time ago it was possible to give client code running in a browser permissions to access local file systems. But it is not possible anymore. So, in any case, we will need a custom made, client-side component to choose files.

Prework

There is an old implementation for choosing files in this directory:

https://github.com/mkoskim/mawejs/tree/4bcb47f8a9ea1164cdf5711badac83b356039213/src/gui/filebrowser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions