-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance(frontend): CWの注釈テキストが入力されていない場合はPostボタンを非アクティブに #15639
enhance(frontend): CWの注釈テキストが入力されていない場合はPostボタンを非アクティブに #15639
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #15639 +/- ##
============================================
- Coverage 41.89% 15.34% -26.55%
============================================
Files 1625 787 -838
Lines 165998 72307 -93691
Branches 4107 1279 -2828
============================================
- Hits 69545 11099 -58446
+ Misses 95975 60783 -35192
+ Partials 478 425 -53 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Issueの本題からは逸れるものですが、(個人的には)逆にこの行だけを条件式から外したままにするほうが違和感を感じるので、一旦含めた形にしました。 |
この変更で(おそらく) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI上投稿できないことが明確になってわかりやすくなりそうです
コードの変更も良さそうに思います
i18nに関しては消してもいいし、CWがないときにはフォームにチュートリアルが出る仕様などにするのもよいかもしれませんが一旦このままでも個人的にはいいと思います
Thank you 🙏 |
…15639) * add condition to disable post button when CW text is empty * standardize condition by using 1<= inserted of 0< * unify CW text length condition to improve readability * add missing CW state check * fix state check, add empty/null check, improve max length validation * simplify CW validation by removing minimum length check * Update CHANGELOG * remove CW text validation in post() --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
…15639) * add condition to disable post button when CW text is empty * standardize condition by using 1<= inserted of 0< * unify CW text length condition to improve readability * add missing CW state check * fix state check, add empty/null check, improve max length validation * simplify CW validation by removing minimum length check * Update CHANGELOG * remove CW text validation in post() --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
…15639) * add condition to disable post button when CW text is empty * standardize condition by using 1<= inserted of 0< * unify CW text length condition to improve readability * add missing CW state check * fix state check, add empty/null check, improve max length validation * simplify CW validation by removing minimum length check * Update CHANGELOG * remove CW text validation in post() --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
What
Why
Resolve #14151
Additional info (optional)
Checklist