-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: text field is linkified #1099
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes in this pull request involve updates to several files, primarily focusing on version upgrades of dependencies and the introduction of a new utility function. The Changes
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🧹 Outside diff range and nitpick comments (1)
apps/web/src/widgets/feedback-table/ui/feedback-detail/feedback-detail.tsx (1)
193-193
: Consider memoizing linkified contentSince the linkify function is called within a mapping operation over feedback fields, consider memoizing its results to optimize performance, especially for large feedback datasets.
-: linkify(feedbackData[field.key])} +: useMemo(() => linkify(feedbackData[field.key]), [feedbackData[field.key]])}
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (7)
.nvmrc
(1 hunks)apps/web/package.json
(1 hunks)apps/web/src/shared/utils/text-linkify.tsx
(1 hunks)apps/web/src/widgets/feedback-table/ui/feedback-cell.tsx
(2 hunks)apps/web/src/widgets/feedback-table/ui/feedback-detail/feedback-detail.tsx
(2 hunks)package.json
(1 hunks)packages/ufb-ui/package.json
(1 hunks)
✅ Files skipped from review due to trivial changes (3)
- .nvmrc
- packages/ufb-ui/package.json
- package.json
🧰 Additional context used
🪛 Biome (1.9.4)
apps/web/src/shared/utils/text-linkify.tsx
[error] 23-23: Avoid the use of spread (...
) syntax on accumulators.
Spread syntax should be avoided on accumulators (like those in .reduce
) because it causes a time complexity of O(n^2)
.
Consider methods such as .splice or .push instead.
(lint/performance/noAccumulatingSpread)
[error] 37-37: Avoid the use of spread (...
) syntax on accumulators.
Spread syntax should be avoided on accumulators (like those in .reduce
) because it causes a time complexity of O(n^2)
.
Consider methods such as .splice or .push instead.
(lint/performance/noAccumulatingSpread)
🔇 Additional comments (4)
apps/web/src/shared/utils/text-linkify.tsx (1)
25-34
: LGTM! Proper security measures for external links
Good implementation of security best practices:
- Using
target="_blank"
withrel="noopener noreferrer"
to prevent tab nabbing - Stopping event propagation to prevent unintended parent handlers
apps/web/src/widgets/feedback-table/ui/feedback-cell.tsx (1)
20-20
: LGTM! Clean integration of linkify utility
The linkify utility is properly integrated into the text format handling, maintaining type safety and component structure.
Also applies to: 56-56
apps/web/package.json (1)
34-34
: Verify changelog for breaking changes
Please verify the changelogs for potential breaking changes in the updated packages:
- @floating-ui/react: ^0.26.12 → ^0.27.0
- @mui/base: 5.0.0-beta.63 → 5.0.0-beta.64
Also applies to: 38-38
✅ Verification successful
Minor version updates with minimal impact
Based on the codebase analysis:
- @floating-ui/react is used in Tooltip and Popover components in
ufb-ui
package and a few components in the web app - @mui/base is only used for the Popper component in
apps/web/src/shared/ui/popper.ui.tsx
- Both updates are minor version bumps (0.26.x → 0.27.0 and beta.63 → beta.64)
- Dependencies are properly locked in pnpm-lock.yaml with correct peer dependencies
The changes appear to be safe minor version updates with minimal impact on the existing functionality.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check release notes for the updated packages
echo "Checking @floating-ui/react changelog..."
gh api repos/floating-ui/floating-ui/releases | jq -r '.[].body' | grep -A 10 "0.27.0"
echo "Checking @mui/base changelog..."
gh api repos/mui/material-ui/releases | jq -r '.[].body' | grep -A 10 "5.0.0-beta.64"
Length of output: 336
Script:
#!/bin/bash
# Let's try searching for any direct usage of these packages in the codebase
# to understand the impact and usage patterns
echo "Searching for @floating-ui/react usage..."
rg "@floating-ui/react" -A 2
echo -e "\nSearching for @mui/base usage..."
rg "@mui/base" -A 2
# Also check for any potential breaking changes in package-lock.json
echo -e "\nChecking package-lock.json for version changes..."
rg '"@floating-ui/react":' package-lock.json -A 3
rg '"@mui/base":' package-lock.json -A 3
Length of output: 5781
apps/web/src/widgets/feedback-table/ui/feedback-detail/feedback-detail.tsx (1)
34-34
: LGTM!
The import statement follows the project's conventions and is appropriately placed with other shared utility imports.
Summary by CodeRabbit
New Features
linkify
utility function to convert URLs in text into clickable links.Updates
@floating-ui/react
package to^0.27.0
in multiple package files.@mui/base
package to5.0.0-beta.64
.packageManager
version to[email protected]
..nvmrc
version to22.12.0
.Bug Fixes