Some actions contained in Table Inspector require an explicit save action as they introduce change to the database. Some of these actions are:
This spec introduces a new pattern to the application that allows users to edit values inline and save them. It is meant for Table Inspector but should be easily extendable to other application parts if required.
Alternatively, we might use icon buttons instead of text buttons. This design could save space and make the UI less cluttered.
To avoid confusion, the user should not be able to edit other values while an active edit is in progress. For example, editing the name of a table while editing the data type of a column.
A possible solution is to disable other inputs while editing is in progress.
We should also block the user from navigating to other inspector tabs while the edit is in progress.
I have considered making the edit action explicit by clicking an edit button. However, we have a mix of controls that require save and some that don’t (e.g., the table name input). This would make the UI inconsistent and confusing.