-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make individual words in label selectable #22110 #33922
Conversation
WalkthroughWalkthroughThe changes in the Changes
Assessment against linked issues
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional context usedBiome
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (6)
app/client/src/components/editorComponents/Debugger/LogItem.tsx (6)
Line range hint
44-45
: Avoid using template literals where not necessary.- ${(props) => props.collapsed ? `transform: rotate(-90deg);` : `transform: rotate(0deg); `}; + ${(props) => props.collapsed ? "transform: rotate(-90deg);" : "transform: rotate(0deg);"};
Line range hint
182-186
: Prefer usingfor...of
instead offorEach
for better performance and readability.- e.logData.forEach((item) => { - if (typeof item === "object") { - output = true; - } - }); + for (const item of e.logData) { + if (typeof item === "object") { + output = true; + break; + } + }
Line range hint
219-220
: Specify a more explicit type instead ofany
.Please replace
any
with a more specific type to improve type safety and code readability.Also applies to: 366-366
Line range hint
296-299
: Ensure accessibility by pairing mouse events with keyboard events.Consider adding
onKeyUp
,onKeyDown
, oronKeyPress
events alongsideonClick
to improve accessibility.
Line range hint
377-383
: Remove unnecessaryelse
clause.- } else { - return ( - <span className="debugger-label" key={Math.random()}> - {`${logDatum} `} - </span> - ); - }This
else
clause is redundant since the previous branches already return early.
Line range hint
267-267
: UseNumber.parseInt
for parsing integers.- moment(parseInt(props.timestamp)).format("HH:mm:ss") + moment(Number.parseInt(props.timestamp, 10)).format("HH:mm:ss")
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9347931207. |
Deploy-Preview-URL: https://ce-33922.dp.appsmith.com |
Description
Individual words in debugger messages can now be selected.
Fixes #22110
Automation
/ok-to-test tags="@tag.IDE"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9370104155
Commit: 2fe1821
Cypress dashboard url: Click here!
Communication
Should the DevRel and Marketing teams inform users about this change?