Skip to content
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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

r-ca
Copy link

@r-ca r-ca commented Mar 9, 2025

What

  • CW有効時, CWテキストが入力されていない状態ではPostボタンがアクティブにならないように
  • CW無効時, CWテキストの最大文字数をチェックしないように
    • 空文字チェックを行う条件としてCW有効状態を使用しているため、そこに最大文字数チェックも含めた形です

image

Why

Resolve #14151

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Mar 9, 2025
Copy link

codecov bot commented Mar 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.38%. Comparing base (c76afce) to head (8c74ec0).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #15639       +/-   ##
============================================
- Coverage    41.95%   15.38%   -26.58%     
============================================
  Files         1623      785      -838     
  Lines       165777    72086    -93691     
  Branches      4119     1278     -2841     
============================================
- Hits         69558    11088    -58470     
+ Misses       95742    60574    -35168     
+ Partials       477      424       -53     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@r-ca
Copy link
Author

r-ca commented Mar 9, 2025

CW無効時, CWテキストの最大文字数をチェックしないように

Issueの本題からは逸れるものですが、(個人的には)逆にこの行だけを条件式から外したままにするほうが違和感を感じるので、一旦含めた形にしました。
挙動が変わるため、こちらも一応CHANGELOGには含めています。

@r-ca
Copy link
Author

r-ca commented Mar 9, 2025

この変更で(おそらく)cwNotationReqiredが不要になるはずですが、i18n関係をどこまで消すべきなのかよくわかっていないので一旦そのままにしています

@r-ca r-ca changed the title enhance: CWの注釈テキストが入力されていない場合はPostボタンを非アクティブに enhance(frontend): CWの注釈テキストが入力されていない場合はPostボタンを非アクティブに Mar 9, 2025
Copy link
Contributor

@tai-cha tai-cha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI上投稿できないことが明確になってわかりやすくなりそうです
コードの変更も良さそうに思います

i18nに関しては消してもいいし、CWがないときにはフォームにチュートリアルが出る仕様などにするのもよいかもしれませんが一旦このままでも個人的にはいいと思います

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

CWの注釈テキストが入力されていない場合はPostボタンを非アクティブに
3 participants