Submission attachment is shown as downloadable even when it's missing
- Dominant language
- JavaScript
- Stars
- 226
- Forks
- 235
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 19
Description
#### Problem description
Submission attachment is shown as downloadable even when it's missing
#### URL of the page
https://test.getodk.cloud/#/projects/149/forms/annotate_default/submissions
#### Steps to reproduce the problem
Make a submission with a missing attachment (for example, in Enketo, annotate an image, scale down the canvas, submit), view the submission table
#### Screenshot
#### Expected behavior
If the submission has state `missingAttachment`, issue HEAD requests for each of the expected attachments and display a red x with a tooltip explanation for any that are missing. See @matthew-white's comment at https://github.com/getodk/central/issues/706#issuecomment-2526604501
#### Central version shown in version.txt
```
versions:
f21b33acc8dae215e54485849e7dd59167e6f433 (v2024.1.0)
3fb0c22b1cbdc3a6004963afcc3847a82c09307d client (v2024.1.0)
b4754cf52bfa64b1ca841bc9ccb64a38726398e8 server (v2024.1.0)
```
#### Browser version
Firefox
#### Around when did you see the problem (in UTC)?
3:44 PM
Tuesday, September 10, 2024
#### Other notes (if any)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the submissions table shown in the linked project URL and reproduce the case with a missing attachment. Trace how the `missingAttachment` state currently renders expected attachments, then verify the behavior against the requested HEAD checks, red x, and tooltip explanation for missing files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100