Show DEFAULT in new record cells by default #1362
Labels
type: enhancement
New feature or request
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
"Limbo"
When adding a new record, there is a to which I'll refer as "limbo". The new record row is in limbo after it's been added to the UI but before it's been saved to the DB. Most times, the new record row only remains in limbo transiently, for a split second, while the request is loading. Any behavior of the row for such a short time is only of negligible concern. However, if there are errors adding a new row, the row may reach stasis in limbo, as described in #775 for example. In this prolonged limbo state, the UX becomes more important and currently has some shortcomings.
Current behavior in limbo
When a cell is poised to set the Postgres value to
DEFAULT
, it appears blank.After the user edits the cell, the user has no way to revert the cell back to its
DEFAULT
state.Desired behavior
All cells appear as
DEFAULT
by default.DEFAULT
is styled similarly toNULL
.Editing a cell, brings the value out of
DEFAULT
.The user can return to
DEFAULT
using the context menu, in a similar fashion toNULL
.The text was updated successfully, but these errors were encountered: