sillsdev / sillsdev/TheCombine
[DataEntry] Submit unsubmitted word on indirect exit
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 22
- Forks
- 10
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 9
Description
In Data Entry, If a word is typed but unsubmitted when a user clicks the Exit button, that word is saved. But if they navigate away from Data Entry another way (e.g., clicking the Data Cleanup button), the entry is not saved.
We should be able to save the word in that setting as well with a (Would run every time in-state dependencies updated.)useEffect callback.
Possibly with https://reactrouter.com/en/main/hooks/use-before-unload (Doesn't fire when needed.)
Contributor guide
No contributing guide indexed for this repository
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 at the Data Entry screen and trace how the Exit button saves an unsubmitted word versus navigation to Data Cleanup. Reproduce the indirect navigation case, then verify that the word is saved without changing the explicit Exit behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100