Skip to content

Ability to delete file in the sidebar #796

@maxelkins

Description

@maxelkins

User story ✍️

As a general Code Editor user
I want to be able to delete an individual file
So that I can tidy up my project

As an Owner/Teacher or student in a CEfE account
I want to be able to delete an individual file that I created
So that I can tidy up my project

Designs 🎨

Notes 🗒️

  • Deleting multiple files at once isn't considered here
  • 'Resetting' any starter files isn't considered here

Questions 🤔

  • How would this affect consumers? E.g. CCP integrated editor.
    • Should the learning team members be able to specify files that can't be deleted?
    • Are we able to prevent users from deleting files included with a starter project?
I.e. they can only delete files they have created? If not we may want to hold off on this until we have a way to reset a project or prevent deleting a particular file (or limit to files the user has created).
    • Do we need to remove the delete file option from the CCP web component? But what if they opened a remixed integrated project directly in the Editor? This may be linked to another issue about resetting projects/having multiple versions of a project (in the projects site integration) as we know users like to do the same project multiple times.

ACs ✅

On Code Editor (https://editor.raspberrypi.org/en/)

  • Users can delete any files from their own remixed project / a starter project that they have opened
  • Users see a warning modal before they can delete files

Within a Code Editor for Education account (https://editor.raspberrypi.org/en/school)

  • Owners/Teachers can delete any starter files from a project
  • Owners/Teachers see a warning modal before they can delete files
  • Students cannot delete any starter files from a teacher from their own remixed project (TBC)

Measuring impact 📈

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions