learningequality / learningequality/studio
ESoCC: Required input error being shown the first time an input is being focused
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Observed behavior
After opening a side panel and focusing on a textbox for the first time, we see the "X field is required" error appear immediately, before we can make any changes.
https://github.com/user-attachments/assets/e9a46fba-5c97-4574-a649-53be273e311b
This is something that happens on the new Publish side panel on the version notes textarea, the language selector, and on the SubmitToCommunityLibrary side panel, on the description textarea.
Expected behavior
The error message should not appear right after we focus the fields for the first time, but only after we have already blurred the field. For example, in Kolibri, we have this:
https://github.com/user-attachments/assets/bdbb3756-78b0-4892-944e-cbf7c3104538
User-facing consequences
It could cause confusion and visual noise to the user.
Contributor guide
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 with contentcuration/frontend/channelEdit/components/sidePanels/PublishSidePanel.vue and SubmitToCommunityLibrarySidePanel/index.vue, then compare their field validation behavior with Kolibri's FullNameTextbox.vue example. Reproduce the first-focus behavior in the side panels; done means required errors remain hidden until a field has been blurred.
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
- Clearly specified
- Newbie friendliness
- 25/100