sillsdev / sillsdev/TheCombine

[DataEntry] Submit unsubmitted word on indirect exit

Open
#3,012 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component: DataEntry enhancement frontend Size: M
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 useEffect callback. (Would run every time in-state dependencies updated.)

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.