Skip to content

[feat] Code editor improvements + Ability to drag / drop files + Upload files #2576

@drfarrell

Description

@drfarrell
  1. Fix the alignment here where it seems like files automatically go to the center. They should be at the top of this section.
Image
  1. Make it so when the user hits CMD+S

  2. Allow users to drag / drop files within the file list to re-organize them. This is important so that users can organize new files appropriately.

  3. Allow users to upload files from the +(file) icon in the upper right corner. So, make it a two-item dropdown just like we have with the "Start a new project" button in the upper right corner of the projects page where the options are "Create new file" or "Upload file".

Ideally in the upload dialogue they can choose a location from a dropdown for where the file should go, and the dropdown should be auto-populated with the most reasonable directory that was last selected. So, for example, if the user has the "app" folder selected, make that the default option for where the new file should go.

Ideally if the file is an image, the "src/assets" folder is selected. We can be deterministic about this depending on the file extension and the most recent folder that was selected.

If you need mockups of any of this, feel free to let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions