simonw / simonw/datasette

Use placeholder= to show the default value in insert/update box

Open
#2,802 0 comments 0 reactions 0 assignees View on GitHub

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?

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.