learningequality / learningequality/studio

ESoCC: Required input error being shown the first time an input is being focused

Open
#5,579 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.