Thinkmill / Thinkmill/keystatic

file field does not display selected filename

Open
#1,140 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Description

when using a fields.file() it would be useful to display the name of the file when one has been selected. currently the widget looks like this:

Screenshot_20240516_150737

repro: https://github.com/stefanprobst/issue-keystatic-file-field

Contributor guide

No contributing guide indexed for this repository

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 at the fields.file() widget and reproduce the behavior using the linked issue project. Check how the selected file is represented after choosing it, then update the display so the filename is visible; done means the selected filename appears in the widget.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.