fix(intelligent-assistant): add singular/plural handling for notebook card resource count (RHDHBUGS-3582) - #4208
Conversation
… card resource count The NotebookCard on the notebooks listing page always displayed "Resources" (plural) regardless of count. Replace the static notebooks.documents key with notebooks.documents_one/_other plural keys so "1 Resource" vs "2 Resources" renders correctly. Co-authored-by: Cursor <cursoragent@cursor.com>
Changed Packages
|
PR Summary by QodoFix pluralized notebook resource counts via i18n plural keys
AI Description
Diagram
High-Level Assessment
Files changed (12)
|
Code Review by Qodo
1. Inline .replace() in NotebookSurfacePage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4208 +/- ##
=======================================
Coverage 58.33% 58.33%
=======================================
Files 2432 2432
Lines 96776 96776
Branches 26923 26932 +9
=======================================
Hits 56457 56457
Misses 40125 40125
Partials 194 194
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
…ok page object French CLDR treats count=0 as singular, so the naive `=== 1` check produced the wrong expected string for the fr locale e2e run. Co-authored-by: Cursor <cursoragent@cursor.com>
|



Summary
notebooks.documentstranslation key withnotebooks.documents_one/notebooks.documents_otherplural keys across all supported locales (en, de, es, fr, it, ja)Fixed
Fixes: https://redhat.atlassian.net/browse/RHDHBUGS-3582
Checklist
yarn tsc:full)yarn test --watchAll=false)Made with Cursor