[WEB-2333] chore: intake issue back date snooze disabled#5888
[WEB-2333] chore: intake issue back date snooze disabled#5888
Conversation
WalkthroughThe pull request modifies the Changes
Possibly related PRs
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
🧹 Outside diff range and nitpick comments (2)
web/core/components/inbox/modals/snooze-issue-modal.tsx (2)
57-61: LGTM! Consider using a more descriptive variable name.The implementation correctly disables all dates before the current date, aligning with the PR objective of preventing users from snoozing issues to a backdated time. This change improves the user experience and prevents potential errors.
For improved readability, consider using a more descriptive variable name:
disabled={[ { - before: new Date(), + before: new Date(), // Disable all dates before today }, ]}
Line range hint
62-68: Fix potential runtime error in Button onClick handlerThe
onClickhandler has been changed to callclose()instead ofhandleClose(). This change introduces a potential runtime error ascloseis not defined in the component's scope. Additionally, this modification doesn't align with the stated PR objectives.To resolve this issue, revert the change:
<Button variant="primary" onClick={() => { - close(); + handleClose(); onConfirm(date); }} >
Changes:
This PR disables the ability to snooze intake issues to a backdated time.
Reference:
[WEB-2333]
Media:
Summary by CodeRabbit
New Features
Bug Fixes