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

feat: 停止ボタンを連続再生中と通常再生中で共用にする #1534

Merged

Conversation

thiramisu
Copy link
Contributor

@thiramisu thiramisu commented Sep 3, 2023

内容

#1530 で、STOP_CONTINUOUSLY_AUDIOSTOP_AUDIOに統一されました。
これにより、停止ボタンでの処理が通常再生時と連続再生時で共通化され、簡単に共用ができるようになったので、ボタンを統一します。
具体的には以下の2点を実施します。

  • これまで連続再生中専用だったツールバーの[停止]ボタンを通常再生中でも使えるようにします。
  • これまで通常再生中専用だった[再生ボタン]での停止を連続再生中でも使えるようにします。

関連 Issue

スクリーンショット・動画など

両方使用できます。
image

その他

該当コメント:

STOP_COUNTINIOUSLYが削除可能なのが意外でした。
実は連続再生を開始すると、詳細調整欄に表示されてある方の停止ボタンがhiddenになる実装になってるんですよね。
これは連続再生用と通常再生用で停止させるべき関数が異なるからこういう実装にしていたのですが、停止ボタンを共通化できるのであれば話が変わってきそうに感じました!!

Originally posted by @Hiroshiba in #1530 (review)

@thiramisu thiramisu requested a review from a team as a code owner September 3, 2023 19:23
@thiramisu thiramisu requested review from Hiroshiba and removed request for a team September 3, 2023 19:23
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!

ひとつだけ提案コメントをしてみました!

src/components/HeaderBar.vue Outdated Show resolved Hide resolved
@thiramisu
Copy link
Contributor Author

ありがとうございます。対応しました。

Comment on lines +155 to +157
NOW_PLAYING: {
getter: boolean;
};
Copy link
Member

Choose a reason for hiding this comment

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

(すみません、レビューしたタイミングでちょうどgithubに障害が起きてレビューが反映できていませんでした・・・。)

ここはIS_PLAYINGよりNOW_PLAYINGのがあってそうに思いました!

isなんとかは動詞なのでメソッド名や関数名になることが多そうです。
実際この上にあるIS_ACTIVEは引数を受け取るメソッドライクになっていそうです。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!!

一つだけコメントをしました!
簡単に変更できそうなのでちょっとこちらでやってコミットさせていただきました!
(githubに障害が起きたタイミングでレビューしたので、コメントとレビューのタイミングが入れ替わってしまいました 🙇 )

@Hiroshiba Hiroshiba merged commit 087917c into VOICEVOX:main Sep 5, 2023
@thiramisu thiramisu deleted the show-stop-button-while-playing-continuously branch September 5, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants