Skip to content

fix(manager): 知らせが 0 件のとき Ctrl+N で「知らせはありません。」と出す - #1896

Merged
nrslib merged 2 commits into
feat/managerfrom
takt/20261024T1921-goal-66cc0ef2
Oct 24, 2026
Merged

nrslib merged 2 commits into
feat/managerfrom
takt/20261024T1921-goal-66cc0ef2

Conversation

@nrslib

@nrslib nrslib commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

manager のゴール 66cc0ef2 で作ったもの。

直したこと

  • 知らせが 1 件もないときに Ctrl+N を押しても、何も出なかった。Ctrl+R の「未回答の問い合わせはありません。」と同じ形で「知らせはありません。」(en: "No notices to read.")と出す。
  • 回答の入力中や中止の確認中に押しても、その状態は消さない。

確認

  • ゴールの先端で manager が確認した(受け入れ条件 4 シナリオ、build / lint / 対象テスト)。
  • 80×24 の端末で新しく起動して触った: 知らせが 0 件のとき Ctrl+N で「● 知らせはありません。」が出ること、1 件あるときは今までどおり一覧が開くことを確かめた。

Summary by CodeRabbit

  • 改善
    • 通知がない場合に、空の通知一覧であることを示すメッセージを表示するようになりました。
    • 通知メニューを開いても、回答プロンプトや入力中の下書き、中止確認の選択内容が維持されるようになりました。
    • 起動前の通知は通常画面に表示されず、起動後の通知は表示されるようになりました。

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between f168e7f and e61ad81.

Files selected for processing: 4
  • src/__tests__/it-manager-tui.test.ts
  • src/features/manager/ManagerView.tsx
  • src/shared/i18n/labels_en.yaml
  • src/shared/i18n/labels_ja.yaml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

通知がない場合に空状態メッセージを表示する変更です。日本語と英語の表示文言を追加し、回答画面や中止確認画面での表示と状態保持を検証するテストを追加しました。

Changes: 通知メニューの空状態

Layer / File(s) Summary
空状態の表示と画面状態の検証
src/shared/i18n/labels_*.yaml, src/features/manager/ManagerView.tsx, src/__tests__/it-manager-tui.test.ts
通知がない場合に、日本語または英語の空状態メッセージを表示します。回答画面ではプロンプトや入力中の下書きを保ち、中止確認画面では対象ゴールや選択中の項目を保つことをテストします。通知がある場合に一覧を表示することも検証します。

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • nrslib/takt#1892: Manager TUI に通知一覧を開く機能を追加したPRです。本PRは同じ通知メニューの分岐に、通知が0件の場合の表示を追加しています。
Merge Risk: Minimal · up to e61ad

The empty-notice message and state-preservation changes have no identified issue blocking merge.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed タイトルは、Ctrl+Nで通知が0件の場合に空状態メッセージを表示する主要な変更を正確かつ簡潔に示しています。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nrslib

nrslib commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nrslib

nrslib commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nrslib
nrslib merged commit 6dbcdf7 into feat/manager Oct 24, 2026
36 checks passed
@nrslib
nrslib deleted the takt/20261024T1921-goal-66cc0ef2 branch October 24, 2026 20:40
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.

1 participant