prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

Inline table editing #19

Closed schickling closed 5 years ago

schickling commented 5 years ago

Additionally to editing data in the details section, it should be possible to inline edit values in table cells.

kuldar commented 5 years ago

Here's the current state of inline editing, open for feedback.

Behaviours of different types of cells

Keyboard behaviour - upon clicking on a row, the clicked cell should gain a "focused" border as in the gif. This means that the user could also navigate the "focused" cell just by using the arrow keys and enter the "edit" state by hitting enter. When editing an array field, the "Add a new value" field in the modal should be automatically be "focused" (but not active), so that the user can add a new value by just hitting enter.

Example of editing a String, Boolean and Single relation:

inline-edit-2

Example of editing a String and an Array of Floats:

inline-edit-1

Modal for 1:N relationship editing

double click