Use placeholder= to show the default value in insert/update box
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 11.5k
- Forks
- 904
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 18
Description
It's annoying to have to click "Set value" here to enter a value, use placeholder to show the default instead?
Problem: how would you set the value to blank if there's a default? Should you even be allowed to do that?
For expressions we'll still make you click "Set value".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the insert/update box in the Datasette interface and trace how default values and expressions are currently presented. Clarify the expected behavior for blanking a field with a default, then verify that ordinary defaults appear as placeholders while expressions still require clicking "Set value".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100