korbit-ai[bot] commented on code in PR #32226:
URL: https://github.com/apache/superset/pull/32226#discussion_r1953206576


##########
superset-frontend/src/dashboard/components/menu/MarkdownModeDropdown.tsx:
##########
@@ -45,7 +45,9 @@ export default class MarkdownModeDropdown extends 
PureComponent<MarkdownModeDrop
     const { id, value, onChange } = this.props;
 
     return (
+      // Add data-testid to the PopoverDropdown component

Review Comment:
   ### Redundant Inline Comment <sub>![category 
Readability](https://img.shields.io/badge/Readability-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The inline comment explaining the addition of a data-testid is unnecessary 
and redundant as the code change is self-documenting.
   
   ###### Why this matters
   Redundant comments increase noise and make the code harder to read without 
adding any valuable information. For self-documenting code changes like adding 
a data-testid, no comment is needed.
   
   ###### Suggested change ∙ *Feature Preview*
   Remove the comment line:
   ```typescript
   <PopoverDropdown
     data-testid="markdown-mode-dropdown"
     id={id}
     options={dropdownOptions}
     value={value}
     onChange={onChange}
   />
   ```
   
   
   </details>
   
   <sub>
   
   [![Report a problem with this 
comment](https://img.shields.io/badge/Report%20a%20problem%20with%20this%20comment-gray.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmNWVjMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS10cmlhbmdsZS1hbGVydCI+PHBhdGggZD0ibTIxLjczIDE4LTgtMTRhMiAyIDAgMCAwLTMuNDggMGwtOCAxNEEyIDIgMCAwIDAgNCAyMWgxNmEyIDIgMCAwIDAgMS43My0zIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/3ed6f86e-c27c-42ea-b894-4dd79166d6b2?suggestedFixEnabled=true)
   
   💬 Chat with Korbit by mentioning @korbit-ai.
   </sub>
   
   <!--- korbi internal id:ae1e39ee-be97-4fe0-b706-ea45e86e57c0 -->
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to