Require authors to fill in background, literature, problem, method, and interests when submitting ideas #72

Merged
niat8586 merged 7 commits from student-idea-form-required-fields into develop 2025-01-17 09:45:28 +01:00
Owner

Require authors to fill in background, literature, method, problem, and interests when submitting an idea.

Fixes #37

How to test

  1. Navigate to https://scipro-student-idea-form-required-fields.branch.dsv.su.se/
  2. Log in as stig@example.com
  3. Go to "Ideas" / "My ideas"
  4. Attempt to submit an idea without either of background, literature, method, problem, or interests
Require authors to fill in background, literature, method, problem, and interests when submitting an idea. Fixes #37 ## How to test 1. Navigate to https://scipro-student-idea-form-required-fields.branch.dsv.su.se/ 2. Log in as `stig@example.com` 3. Go to "Ideas" / "My ideas" 4. Attempt to submit an idea without either of background, literature, method, problem, or interests
ansv7779 added 1 commit 2025-01-07 15:21:23 +01:00
Require authors to fill in background, literature, problem, method, and interests when submitting ideas
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m24s
Build and test / build-and-test (push) Successful in 15m58s
5ca13d5d32
First-time contributor
Deployed to https://scipro-student-idea-form-required-fields.branch.dsv.su.se
ansv7779 added this to the SciPro project 2025-01-07 15:26:51 +01:00
ansv7779 removed this from the SciPro project 2025-01-09 13:20:38 +01:00
niat8586 requested review from niat8586 2025-01-09 13:32:43 +01:00
niat8586 refused to review 2025-01-09 13:33:23 +01:00
Owner

I started the PO review a little bit in advance, I hope that it is OK :)
If I omit one of the compulsory fields "background, literature, problem, method, language and interests", the error message works fine.
For example if the problem is missing, the following message appears (marked in red): "You need to fill in the 'Problem' field in the "Student idea form". And so on for the all the other fields.

However if I omit only the project type, then no feedback is presented. The page only slides to the top, showing the yellow marked message about "Students should primarily choose from ideas provided by supervisors. Do NOT create an idea unless you've read through etc...". Please see the attached screen shot.
Can we provide an error message similar to the above mentioned one?

I started the PO review a little bit in advance, I hope that it is OK :) If I omit one of the compulsory fields "background, literature, problem, method, language and interests", the error message works fine. For example if the problem is missing, the following message appears (marked in red): "You need to fill in the 'Problem' field in the "Student idea form". And so on for the all the other fields. However if I omit only the project type, then no feedback is presented. The page only slides to the top, showing the yellow marked message about "Students should primarily choose from ideas provided by supervisors. Do NOT create an idea unless you've read through etc...". Please see the attached screen shot. Can we provide an error message similar to the above mentioned one?
Owner

BTW I could only choose one project type from the test case...

BTW I could only choose one project type from the test case...
niat8586 requested changes 2025-01-10 07:44:57 +01:00
Dismissed
niat8586 left a comment
Owner

I have a suggestion, although it is not part of the commit.

In the ProjectIdeaSubmissionPanel.properties file the message
submissionFailed is: 'Idea could not be submitted. '
We could expand that message to 'Idea could not be submitted, correct the highlighted fields and try again'

What do you think ?

I have a suggestion, although it is not part of the commit. In the ProjectIdeaSubmissionPanel.properties file the message submissionFailed is: 'Idea could not be submitted. ' We could expand that message to 'Idea could not be submitted, correct the highlighted fields and try again' What do you think ?
Owner

I started the PO review a little bit in advance, I hope that it is OK :)
If I omit one of the compulsory fields "background, literature, problem, method, language and interests", the error message works fine.
For example if the problem is missing, the following message appears (marked in red): "You need to fill in the 'Problem' field in the "Student idea form". And so on for the all the other fields.

However if I omit only the project type, then no feedback is presented. The page only slides to the top, showing the yellow marked message about "Students should primarily choose from ideas provided by supervisors. Do NOT create an idea unless you've read through etc...". Please see the attached screen shot.
Can we provide an error message similar to the above mentioned one?

There is feedback presented, it is a "balloon tool-tip" that says "Please select one of these options" unfortunately it disappears as soon as you click or do something on the page. It would be better if it would follow the same handling as the other fields in example languages. See the provided screenshot.

In short I agree that the error message for the type should follow same look and feel as the other fields in the form.

> I started the PO review a little bit in advance, I hope that it is OK :) > If I omit one of the compulsory fields "background, literature, problem, method, language and interests", the error message works fine. > For example if the problem is missing, the following message appears (marked in red): "You need to fill in the 'Problem' field in the "Student idea form". And so on for the all the other fields. > > However if I omit only the project type, then no feedback is presented. The page only slides to the top, showing the yellow marked message about "Students should primarily choose from ideas provided by supervisors. Do NOT create an idea unless you've read through etc...". Please see the attached screen shot. > Can we provide an error message similar to the above mentioned one? There is feedback presented, it is a "balloon tool-tip" that says "Please select one of these options" unfortunately it disappears as soon as you click or do something on the page. It would be better if it would follow the same handling as the other fields in example languages. See the provided screenshot. In short I agree that the error message for the type should follow same look and feel as the other fields in the form.
Author
Owner

BTW I could only choose one project type from the test case...

The application period is only for bachelor ideas which is why there is only one choice.

> BTW I could only choose one project type from the test case... The application period is only for bachelor ideas which is why there is only one choice.
ansv7779 added 2 commits 2025-01-10 10:24:32 +01:00
Removed the client-side validation (HTML required attribute) and rely on server-side validation with a red feedback message instead.
Improve the topmost error message to help guide the authors what to do.
All checks were successful
Build and test / build-and-test (push) Successful in 15m45s
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m10s
5d475c961c
ansv7779 requested review from niat8586 2025-01-10 10:29:43 +01:00
Author
Owner

The type selection has been changed to be validated in the same way as the other fields and the topmost error message has been improved so they are instructed to scan the form for more detailed error messages.

The type selection has been changed to be validated in the same way as the other fields and the topmost error message has been improved so they are instructed to scan the form for more detailed error messages.
niat8586 approved these changes 2025-01-10 14:33:11 +01:00
Dismissed
niat8586 left a comment
Owner

👍

👍
ansv7779 added the
po
needed
label 2025-01-14 12:56:38 +01:00
Owner

I cannot edit/remove the idea here anymore, probably because the application period is over?
https://scipro-student-idea-form-required-fields.branch.dsv.su.se/

I cannot edit/remove the idea here anymore, probably because the application period is over? https://scipro-student-idea-form-required-fields.branch.dsv.su.se/
Author
Owner

I cannot edit/remove the idea here anymore, probably because the application period is over?
https://scipro-student-idea-form-required-fields.branch.dsv.su.se/

The application period should be open now.

> I cannot edit/remove the idea here anymore, probably because the application period is over? > https://scipro-student-idea-form-required-fields.branch.dsv.su.se/ The application period should be open now.
Owner

Now I don't receive any error message, no matter what I omit. The page just slides to the top (to the title field). Please see attached screen shot

Now I don't receive any error message, no matter what I omit. The page just slides to the top (to the title field). Please see attached screen shot
ansv7779 added 1 commit 2025-01-15 10:15:50 +01:00
Remove client side validation for the min-/maxlength of various fields
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m10s
Build and test / build-and-test (push) Successful in 18m12s
348afe1723
Author
Owner

There was still some client-side validation left for the length of the title field (as well as very high max for the background, literature, et. al. fields) that was blocking the submission. You tried with just four characters in the title which the browser would block since it has a minimum of five.

Now all client-side validation should be gone and you'll get an error message saying the title is too short instead.

There was still some client-side validation left for the length of the title field (as well as very high max for the background, literature, et. al. fields) that was blocking the submission. You tried with just four characters in the title which the browser would block since it has a minimum of five. Now all client-side validation should be gone and you'll get an error message saying the title is too short instead.
ansv7779 force-pushed student-idea-form-required-fields from 348afe1723 to 164271a6e5 2025-01-15 10:52:56 +01:00 Compare
ansv7779 added 1 commit 2025-01-15 10:53:38 +01:00
Merge branch 'develop' into student-idea-form-required-fields
Some checks failed
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m11s
Build and test / build-and-test (push) Has been cancelled
45e7d5bade
ansv7779 requested review from niat8586 2025-01-15 10:54:19 +01:00
ansv7779 added 1 commit 2025-01-15 10:56:55 +01:00
Client-side validation is turned off for the entire form so this hack is no longer necessary.
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m7s
Build and test / build-and-test (push) Successful in 17m53s
2bf6abb720
Owner

I don't know if you changed something from my last check, but now it works fine
It provides general feedback on top of the page and then correctly highlights the fields that have been omitted! 👍
I attach a new screenshot.

I don't know if you changed something from my last check, but now it works fine It provides general feedback on top of the page and then correctly highlights the fields that have been omitted! 👍 I attach a new screenshot.
andan removed the
po
needed
label 2025-01-16 13:12:20 +01:00
niat8586 approved these changes 2025-01-17 09:21:41 +01:00
niat8586 left a comment
Owner

I really liked this, and agree like you demonstrated at yesterdays (2025-01-16) meeting we should have server side validation and use turn off the client side validation. And we should look into making it so on the other forms we have.

I really liked this, and agree like you demonstrated at yesterdays (2025-01-16) meeting we should have server side validation and use turn off the client side validation. And we should look into making it so on the other forms we have.
niat8586 added 1 commit 2025-01-17 09:21:54 +01:00
Merge branch 'develop' into student-idea-form-required-fields
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m32s
Build and test / build-and-test (push) Successful in 17m41s
Remove branch deployment from branch.dsv.su.se / cleanup (pull_request) Successful in 7s
75d11a8b33
niat8586 merged commit 5439d77d73 into develop 2025-01-17 09:45:28 +01:00
niat8586 deleted branch student-idea-form-required-fields 2025-01-17 09:45:28 +01:00
Sign in to join this conversation.
No description provided.