fix(conf): resolve globals:default and improve settings menu UX#214
Conversation
- Add missing `settingNotSet` key to en-US conf.json so unset values show "Not Set" instead of the literal `globals:default` i18next fallback - Render channel/role/category values as clickable mentions in "Current Value" - Replace leftover text-command labels/prompts with component-appropriate ones (clean "Undo" button, select placeholders, input prompt) - Drop redundant folder/key text list when the navigation select already lists every entry (kept only as a >25 fallback) - Show "Reset" only when the value actually differs from its default (content-aware comparison for arrays) - Add a visual separator before action buttons and remove a debug console.log Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJg2wjArdSnPYww9SJjNhm
|
Warning Review limit reached
More reviews will be available in 51 minutes and 50 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR refactors the SettingsMenu to use a new custom ID serialisation system based on Brotli-compressed metadata. It introduces schema path resolution utilities, adds action-based routing with serialised state payloads, rewrites value rendering to support clickable mentions via mention factories, and updates group descriptions with dynamic sizing logic. New i18n strings cover menu interactions and custom ID errors. ChangesSettingsMenu custom ID serialisation and refactoring
Sequence DiagramsequenceDiagram
participant User
participant SettingsMenu
participant CustomIdBuilder as CustomID<br/>Builder
participant CustomIdParser as CustomID<br/>Parser
participant Transaction as Settings<br/>Transaction
User->>SettingsMenu: Click button or select value
SettingsMenu->>CustomIdParser: parseSettingsMenuCustomId(customId)
CustomIdParser->>CustomIdParser: Decompress metadata
CustomIdParser->>SettingsMenu: {action, data}
SettingsMenu->>SettingsMenu: Switch on SettingsMenuAction
SettingsMenu->>SettingsMenu: Route to input or update
alt Input mode (category/command/value)
SettingsMenu->>SettingsMenu: Update state (selectedCategory/inputMode/inputType)
SettingsMenu->>CustomIdBuilder: buildCustomId(InputModal)
CustomIdBuilder->>SettingsMenu: Serialised customId
SettingsMenu->>User: Show input modal with state
else Direct update (Set/Remove/Reset)
SettingsMenu->>Transaction: tryUpdate(updateType, value)
Transaction->>Transaction: Serialise value
Transaction->>User: Confirm and re-render menu
end
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #214 +/- ##
==========================================
- Coverage 78.44% 78.39% -0.05%
==========================================
Files 81 83 +2
Lines 2176 2208 +32
Branches 214 248 +34
==========================================
+ Hits 1707 1731 +24
- Misses 443 449 +6
- Partials 26 28 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
settingNotSetkey to en-US conf.json so unset values show"Not Set" instead of the literal
globals:defaulti18next fallback(clean "Undo" button, select placeholders, input prompt)
every entry (kept only as a >25 fallback)
(content-aware comparison for arrays)
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01HJg2wjArdSnPYww9SJjNhm