MongoDB-PHP-GUI icon indicating copy to clipboard operation
MongoDB-PHP-GUI copied to clipboard

Quick edit full document entry

Open creharmony opened this issue 4 years ago • 3 comments

I've seen the way to quick edit a given document attribute when your mouse is hover a given field, you have a pen with a input form to edit the attribute content 👍

but now I need to quickly refactor the whole document:

  • add a new attribute,
  • bulk remove some part
  • ...

One simple way to do that is to add an "edit mode"

in current mode, add a EDIT button on a result array > data row

a clic on this button will switch to "edit mode" in "edit mode"

  • text area contains the whole document to edit
  • all buttons are replaced by a SAVE and a CANCEL button

so cancel return in initial mode without saving and save return to initial mode after saving document

creharmony avatar Oct 27 '21 19:10 creharmony

@creharmony

What if a click on a JSON:

  • key allows to edit the entire document,
  • value allows to edit the value (as now)?

In "edit mode", it would be great to have syntax highlighting, etc. to assist even more the user. By the way, I think it's time to uniformize JSON colors... and switch to a dark theme 🙂

What do you think about?

SamuelTallet avatar Oct 28 '21 13:10 SamuelTallet

That would be great, I can't wait to test this 👍

creharmony avatar Oct 28 '21 18:10 creharmony

This feature would be great. Can't wait ;) Hope it is still on planed.

McHill007 avatar May 26 '22 11:05 McHill007