Skip to content

feat: support mute notification only#2170

Open
710leo wants to merge 3 commits into
mainfrom
task/mute-notification-only-510498
Open

feat: support mute notification only#2170
710leo wants to merge 3 commits into
mainfrom
task/mute-notification-only-510498

Conversation

@710leo

@710leo 710leo commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added selectable mute methods: suppress events and notifications, or notifications only.
    • Added explanatory guidance for each mute method.
    • Mute method selections are displayed in the warning list for easy identification.
  • Documentation

    • Added translations for the new mute method options and guidance in English, Chinese, Japanese, and Russian.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 74e3a3a5-a20d-4190-a642-73d7f7034b89

📥 Commits

Reviewing files that changed from the base of the PR and between d0bbef3 and db43504.

📒 Files selected for processing (8)
  • src/pages/warning/shield/components/operateForm.tsx
  • src/pages/warning/shield/index.tsx
  • src/pages/warning/shield/locale/en_US.ts
  • src/pages/warning/shield/locale/ja_JP.ts
  • src/pages/warning/shield/locale/ru_RU.ts
  • src/pages/warning/shield/locale/zh_CN.ts
  • src/pages/warning/shield/locale/zh_HK.ts
  • src/store/warningInterface/shield.ts

📝 Walkthrough

Walkthrough

Changes

Shield mute method

Layer / File(s) Summary
Mute method contract and form
src/store/warningInterface/shield.ts, src/pages/warning/shield/components/operateForm.tsx, src/pages/warning/shield/locale/*
Adds the typed mute_type field, localized mute-method labels and descriptions, form selection options, and default initialization.
Mute method list indicator
src/pages/warning/shield/index.tsx
Displays a blue tag when a shield record uses notification-only muting.

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

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: adding support for a notification-only mute mode.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch task/mute-notification-only-510498

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.

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