feat(editor): fetch current not-owned projects, add project forking
When viewing other people's projects, show a "Fork" button in place of the "Edit" button that would be present for owned projects.
Also, ensure we have the name of the current project, even if not owned, by detecting when $currentProjectUUID is not present in $projects, then fetching and storing it.
Perhaps the button could be kept to the same notice telling you the project is not yours? Something like this maybe:
:+1: While we are at it, can we decrease the contrast on this little banner/pill thingy? Bright orange and white don't really go along well.
@netux Sure!
@Mitcheljager what do you think of like this "Clone and Save" button in place of the "Fork" button?
I like this more even because it triggers on the Ctrl + S keybind as well (I'm reusing the <Save> component), which matches what I've seen other online text editors do when you try to save on a file that's not yours.
@netux I think that works!
@Mitcheljager any opinions on the $ownProjects store deriving from $projects?
@netux I don't think it's a good idea to ever put any projects in there that are not your own. Ideally no store is needed for a project that is someone else's.
