[WEB-2699]chore: added issue count for upcoming cycles#6273
[WEB-2699]chore: added issue count for upcoming cycles#6273
Conversation
WalkthroughThe pull request modifies the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
web/core/components/cycles/list/cycle-list-item-action.tsx (1)
229-235: Consider fallback handling fortotal_issues.
While conditionally rendering the issue count is a clear addition, ensure thattotal_issuesreliably holds a valid numeric value. For instance, consider displaying “0” or hiding the count if the value isnullor undefined.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
web/core/components/cycles/list/cycle-list-item-action.tsx(3 hunks)
🔇 Additional comments (3)
web/core/components/cycles/list/cycle-list-item-action.tsx (3)
3-3: Good use of useMemo.
Using useMemo for performance optimization is appropriate here, as it prevents unnecessary re-computations of derived values.
11-20: Imports are consistent with the new LayersIcon usage.
All imported modules appear relevant to the newly introduced features, and there are no apparent redundant imports.
78-78: Clear conditional logic for drafts and upcoming cycles.
The showIssueCount variable effectively checks if the cycle status is “draft” or “upcoming,” aligning with the intended design.
Description
Added issue count for upcoming cycles
Type of Change
Screenshots and Media
References
WEB-2699
Summary by CodeRabbit
New Features
LayersIconto enhance the visual representation of the issue count.Bug Fixes