Skip to content

Conversation

sriramveeraghanta
Copy link
Member

@sriramveeraghanta sriramveeraghanta commented Aug 10, 2025

Description

  • Move helpers file into utils in UI package package

Type of Change

  • Code refactoring

Summary by CodeRabbit

  • Chores
    • Updated internal import paths for utility functions across multiple UI components to improve consistency.
    • Minor reordering and cleanup of import statements in several files.
    • Extended the public API of the UI utilities to include additional exports.

No user-facing features or visual changes are included in this update.

Copy link
Contributor

coderabbitai bot commented Aug 10, 2025

Walkthrough

This update standardizes the import path for the cn utility function across numerous UI component files, changing it from various helpers locations to a centralized utils directory. A new export for classname utilities is added to the utils index. Some import order cleanups and minor unused import removals are also included.

Changes

Cohort / File(s) Change Summary
UI Components: Import Path Refactor
packages/ui/src/auth-form/auth-forgot-password.tsx, .../auth-form/auth-form.tsx, .../auth-form/auth-input.tsx, .../avatar/avatar-group.tsx, .../avatar/avatar.tsx, .../badge/badge.tsx, .../breadcrumbs/breadcrumbs.tsx, .../breadcrumbs/navigation-dropdown.tsx, .../breadcrumbs/navigation-search-dropdown.tsx, .../button/button.tsx, .../button/toggle-switch.tsx, .../calendar.tsx, .../card/card.tsx, .../collapsible/collapsible-button.tsx, .../content-wrapper/content-wrapper.tsx, .../drag-handle.tsx, .../drop-indicator.tsx, .../dropdown/common/button.tsx, .../dropdown/common/input-search.tsx, .../dropdown/common/options.tsx, .../dropdown/multi-select.tsx, .../dropdown/single-select.tsx, .../dropdowns/context-menu/item.tsx, .../dropdowns/context-menu/root.tsx, .../dropdowns/custom-menu.tsx, .../dropdowns/custom-search-select.tsx, .../dropdowns/custom-select.tsx, .../emoji/emoji-icon-picker-new.tsx, .../emoji/emoji-icon-picker.tsx, .../emoji/icons-list.tsx, .../emoji/lucide-icons-list.tsx, .../favorite-star.tsx, .../form-fields/checkbox.tsx, .../form-fields/input-color-picker.tsx, .../form-fields/input.tsx, .../form-fields/textarea.tsx, .../header/header.tsx, .../icons/priority-icon.tsx, .../loader.tsx, .../modals/alert-modal.tsx, .../modals/modal-core.tsx, .../oauth/oauth-button.tsx, .../oauth/oauth-options.tsx, .../popovers/popover-menu.tsx, .../popovers/popover.tsx, .../progress/linear-progress-indicator.tsx, .../row/row.tsx, .../scroll-area.tsx, .../sortable/draggable.tsx, .../spinners/circular-spinner.tsx, .../tables/table.tsx, .../tabs/tab-list.tsx, .../tabs/tabs.tsx, .../tag/tag.tsx, .../toast/index.tsx, .../tooltip/tooltip.tsx, .../typography/sub-heading.tsx
Changed the import path for the cn utility from various helpers locations to the utils directory. No logic or functional changes.
UI Dropdowns: Import Order and Minor Cleanups
packages/ui/src/dropdown/common/button.tsx, .../dropdown/common/input-search.tsx, .../dropdown/common/options.tsx
Reordered import statements, updated cn import path, and removed/repositioned comment lines. One ESLint comment added. No logic changes.
UI Utilities: Export Enhancement
packages/ui/src/utils/index.ts
Added export * from "./classname"; to re-export all exports from classname module, expanding the public API.
Web App: Mobile Header Imports
apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx
Removed unused imports of ISSUE_LAYOUTS and CustomMenu. No other changes.

Sequence Diagram(s)

Not applicable: changes are limited to import paths and do not affect control flow or introduce new features.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

  • makeplane/plane#7138: Refactors the build process and restructures the utils package exports, which directly relates to the import path and utility re-export changes in this PR.
  • makeplane/plane#7451: Refactors mobile header imports and layout selection, directly related to the removal of CustomMenu and ISSUE_LAYOUTS imports in this PR.

Suggested labels

🛠️refactor

Suggested reviewers

  • prateekshourya29
  • aaryan610

Poem

In the warren of code, a bunny did hop,
Tidying imports from bottom to top.
Helpers to utils, all neat in a row,
Now cn is found where it ought to go!
With carrots and care, this rabbit’s delight—
Refactor complete, and the code feels just right! 🥕✨

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore-ui-utils

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sriramveeraghanta sriramveeraghanta changed the title fix: move helpers file into utils [WEB-4661] fix: move helpers file into utils Aug 10, 2025
Copy link

makeplane bot commented Aug 10, 2025

Pull Request Linked with Plane Work Items

Comment Automatically Generated by Plane

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (5)
packages/ui/src/auth-form/auth-input.tsx (1)

3-3: Optional: consider a path alias to avoid future relative path churn

Using a TS path alias (e.g., @ui/utils) can make refactors like this trivial and reduce mistakes in deep trees. If desired, I can propose the tsconfig and moduleNameMapper updates.

packages/ui/src/toast/index.tsx (1)

8-8: Optional: consider a path alias for utils imports.
Using a TS path alias (e.g., @plane/ui/utils) avoids brittle relative paths as files move. Can be adopted incrementally.

packages/ui/src/dropdown/common/input-search.tsx (2)

33-35: Prefer optional chaining over short-circuit with eslint-disable

Use optional chaining to focus the input without disabling lint rules.

-      // eslint-disable-next-line @typescript-eslint/no-unused-expressions
-      inputRef.current && inputRef.current.focus();
+      inputRef.current?.focus();

3-3: Type-only React import (optional)

Only types from React are used at runtime here; consider type-only import to reduce runtime bundle impact.

-import React, { FC, useEffect, useRef } from "react";
+import { useEffect, useRef } from "react";
+import type React, { FC } from "react";
packages/ui/src/dropdown/common/options.tsx (1)

3-3: Use type-only React import (optional)

React is only used for typing (React.FC). Prefer type-only import.

-import React from "react";
+import type React from "react";
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1ef3074 and 0be8b84.

📒 Files selected for processing (59)
  • apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx (1 hunks)
  • packages/ui/src/auth-form/auth-forgot-password.tsx (1 hunks)
  • packages/ui/src/auth-form/auth-form.tsx (1 hunks)
  • packages/ui/src/auth-form/auth-input.tsx (1 hunks)
  • packages/ui/src/avatar/avatar-group.tsx (1 hunks)
  • packages/ui/src/avatar/avatar.tsx (1 hunks)
  • packages/ui/src/badge/badge.tsx (1 hunks)
  • packages/ui/src/breadcrumbs/breadcrumbs.tsx (1 hunks)
  • packages/ui/src/breadcrumbs/navigation-dropdown.tsx (1 hunks)
  • packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx (1 hunks)
  • packages/ui/src/button/button.tsx (1 hunks)
  • packages/ui/src/button/toggle-switch.tsx (1 hunks)
  • packages/ui/src/calendar.tsx (1 hunks)
  • packages/ui/src/card/card.tsx (1 hunks)
  • packages/ui/src/collapsible/collapsible-button.tsx (1 hunks)
  • packages/ui/src/content-wrapper/content-wrapper.tsx (1 hunks)
  • packages/ui/src/drag-handle.tsx (1 hunks)
  • packages/ui/src/drop-indicator.tsx (1 hunks)
  • packages/ui/src/dropdown/common/button.tsx (1 hunks)
  • packages/ui/src/dropdown/common/input-search.tsx (2 hunks)
  • packages/ui/src/dropdown/common/options.tsx (1 hunks)
  • packages/ui/src/dropdown/multi-select.tsx (1 hunks)
  • packages/ui/src/dropdown/single-select.tsx (1 hunks)
  • packages/ui/src/dropdowns/context-menu/item.tsx (1 hunks)
  • packages/ui/src/dropdowns/context-menu/root.tsx (1 hunks)
  • packages/ui/src/dropdowns/custom-menu.tsx (1 hunks)
  • packages/ui/src/dropdowns/custom-search-select.tsx (1 hunks)
  • packages/ui/src/dropdowns/custom-select.tsx (1 hunks)
  • packages/ui/src/emoji/emoji-icon-picker-new.tsx (1 hunks)
  • packages/ui/src/emoji/emoji-icon-picker.tsx (1 hunks)
  • packages/ui/src/emoji/icons-list.tsx (1 hunks)
  • packages/ui/src/emoji/lucide-icons-list.tsx (1 hunks)
  • packages/ui/src/favorite-star.tsx (1 hunks)
  • packages/ui/src/form-fields/checkbox.tsx (1 hunks)
  • packages/ui/src/form-fields/input-color-picker.tsx (1 hunks)
  • packages/ui/src/form-fields/input.tsx (1 hunks)
  • packages/ui/src/form-fields/textarea.tsx (1 hunks)
  • packages/ui/src/header/header.tsx (1 hunks)
  • packages/ui/src/icons/priority-icon.tsx (1 hunks)
  • packages/ui/src/loader.tsx (1 hunks)
  • packages/ui/src/modals/alert-modal.tsx (1 hunks)
  • packages/ui/src/modals/modal-core.tsx (1 hunks)
  • packages/ui/src/oauth/oauth-button.tsx (1 hunks)
  • packages/ui/src/oauth/oauth-options.tsx (1 hunks)
  • packages/ui/src/popovers/popover-menu.tsx (1 hunks)
  • packages/ui/src/popovers/popover.tsx (1 hunks)
  • packages/ui/src/progress/linear-progress-indicator.tsx (1 hunks)
  • packages/ui/src/row/row.tsx (1 hunks)
  • packages/ui/src/scroll-area.tsx (1 hunks)
  • packages/ui/src/sortable/draggable.tsx (1 hunks)
  • packages/ui/src/spinners/circular-spinner.tsx (1 hunks)
  • packages/ui/src/tables/table.tsx (1 hunks)
  • packages/ui/src/tabs/tab-list.tsx (1 hunks)
  • packages/ui/src/tabs/tabs.tsx (1 hunks)
  • packages/ui/src/tag/tag.tsx (1 hunks)
  • packages/ui/src/toast/index.tsx (1 hunks)
  • packages/ui/src/tooltip/tooltip.tsx (1 hunks)
  • packages/ui/src/typography/sub-heading.tsx (1 hunks)
  • packages/ui/src/utils/index.ts (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Build and lint web apps
  • GitHub Check: Analyze (python)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (58)
packages/ui/src/utils/index.ts (1)

1-1: Use explicit re-export for cn only

We’ve confirmed that packages/ui/src/utils/classname.tsx only exports cn and there are no other named or default exports. Replacing the wildcard export prevents accidental API surface growth and name collisions.

Apply this change in packages/ui/src/utils/index.ts:

-export * from "./classname";
+export { cn } from "./classname";
packages/ui/src/scroll-area.tsx (1)

4-4: LGTM: import path updated to utils

Path ./utils is correct from this location. No functional changes.

packages/ui/src/emoji/emoji-icon-picker-new.tsx (1)

8-8: Confirm cn API parity (object/conditional args)

This file uses cn with conditional object syntax. Ensure the moved cn from utils/classname preserves the prior API (strings, arrays, objects).

If needed, confirm cn’s signature matches the previous helper (e.g., clsx-like types) to avoid subtle class merging regressions.

packages/ui/src/form-fields/textarea.tsx (1)

3-3: LGTM: standardized cn import

Import updated to ../utils; usage covers strings and conditional objects—consistent with expected cn behavior.

packages/ui/src/modals/modal-core.tsx (1)

6-6: LGTM: import path refactor only

No behavioral change. Path ../utils is correct from src/modals.

packages/ui/src/tabs/tab-list.tsx (1)

5-5: LGTM: path update aligns with utils barrel

Refactor-only change. cn is used with conditional logic; ensure cn continues to handle object arg shape.

packages/ui/src/content-wrapper/content-wrapper.tsx (1)

2-2: LGTM: import path corrected

Consistent with the move to utils. No other diffs; behavior unchanged.

packages/ui/src/spinners/circular-spinner.tsx (1)

3-3: LGTM: utils import

Refactor-only. Spinner uses cn with simple string concat; safe.

packages/ui/src/progress/linear-progress-indicator.tsx (1)

3-3: Stale helpers import detected and cn export needs confirmation

  • packages/ui/src/emoji/logo.tsx (line 6) still imports from ./helpers. Update it to import from ../utils:
    - import { emojiCodeToUnicode } from "./helpers";
    + import { emojiCodeToUnicode } from "../utils";
  • Please manually confirm that cn is correctly exported from packages/ui/src/utils/index.ts so all consumers (like linear-progress-indicator.tsx) continue to resolve without errors.
packages/ui/src/popovers/popover.tsx (1)

5-5: Standardized cn import — OK

Path "../utils" is correct from src/popovers. Change aligns with the refactor.

packages/ui/src/form-fields/checkbox.tsx (1)

3-3: LGTM: cn now sourced from utils

Relative path is correct from src/form-fields → src/utils.

packages/ui/src/tooltip/tooltip.tsx (1)

4-4: LGTM: utils import path correct

The change is consistent with the helpers→utils move.

packages/ui/src/card/card.tsx (1)

2-2: LGTM: centralized cn import

Correct relative path from src/card → src/utils. No functional impact.

packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx (1)

4-4: LGTM: cn import normalized

Path "../utils" is correct from src/breadcrumbs. Consistent with PR scope.

packages/ui/src/button/toggle-switch.tsx (1)

4-4: LGTM: helpers→utils migration

Import path is correct from src/button. Nothing else changed.

packages/ui/src/tabs/tabs.tsx (1)

5-5: LGTM: cn import path updated

Correct relative path from src/tabs → src/utils. Matches the repo-wide refactor.

packages/ui/src/auth-form/auth-input.tsx (1)

3-3: LGTM: cn import path looks correct

Refactor aligns with the utils consolidation. No functional impact.

packages/ui/src/oauth/oauth-options.tsx (1)

2-2: LGTM: standardized cn import path

Correct relative path; change is consistent with the refactor.

packages/ui/src/icons/priority-icon.tsx (1)

3-3: LGTM: cn import updated correctly

Consistent with utils consolidation; no other changes.

packages/ui/src/row/row.tsx (1)

2-2: LGTM: import path refactor looks correct

Matches the new utils location.

packages/ui/src/emoji/lucide-icons-list.tsx (1)

5-5: LGTM: cn now sourced from utils

Path is correct from src/emoji.

packages/ui/src/tag/tag.tsx (1)

2-2: LGTM: centralized cn import

Correct relative path; consistent with other files.

packages/ui/src/form-fields/input-color-picker.tsx (1)

6-6: LGTM: cn import updated to utils

Relative path is correct; no other impact.

packages/ui/src/sortable/draggable.tsx (1)

5-5: LGTM: updated cn import path

Matches new utils location from src/sortable.

packages/ui/src/calendar.tsx (1)

7-7: Updated import to ./utils is correct.

Resolves to src/utils via index.ts; usage of cn unchanged.

packages/ui/src/tables/table.tsx (1)

3-3: cn import path standardized to ../utils — looks good.

Relative path is correct; component logic untouched.

packages/ui/src/badge/badge.tsx (1)

4-4: LGTM: cn now sourced from ../utils.

Correct relative path; no behavior changes.

packages/ui/src/button/button.tsx (1)

4-4: LGTM: standardized cn import from ../utils.

Path is correct; usage unchanged.

packages/ui/src/header/header.tsx (1)

2-2: LGTM: cn import path corrected to ../utils.

Matches new utilities barrel; no further changes required.

packages/ui/src/auth-form/auth-form.tsx (1)

3-3: LGTM: cn now imported from ../utils.

Correct path relative to src/auth-form.

packages/ui/src/drop-indicator.tsx (1)

2-2: LGTM: import adjusted to ./utils.

Barrel import aligns with the refactor.

packages/ui/src/typography/sub-heading.tsx (1)

2-2: Import path realigned to utils — looks good.
cn now sourced from the consolidated utils barrel. No functional changes.

packages/ui/src/modals/alert-modal.tsx (1)

9-9: Import path updated to utils — consistent with the refactor.
Helps centralize shared helpers. No behavior change.

packages/ui/src/avatar/avatar-group.tsx (1)

5-5: Switched to utils barrel — approved.
Keeps cn import consistent across UI.

packages/ui/src/toast/index.tsx (1)

8-8: Consolidated cn import via utils — approved.
Verified that:

  • packages/ui/src/utils/index.ts re-exports ./classname
  • packages/ui/src/utils/classname.tsx defines and exports cn
  • No remaining imports from helpers in packages/ui/src

No further action required.

packages/ui/src/dropdowns/custom-select.tsx (1)

10-10: Updated to utils — approved.
Keeps cn usage consistent with the new structure.

packages/ui/src/dropdown/single-select.tsx (1)

8-8: Aligned to utils import — approved.
Relative path ../utils is correct from this location.

packages/ui/src/emoji/emoji-icon-picker.tsx (1)

10-10: Moved cn import to utils — approved.
Matches the helpers→utils consolidation.

packages/ui/src/loader.tsx (1)

3-3: Root-level file now imports from ./utils — approved.
Correct relative path from src root.

packages/ui/src/collapsible/collapsible-button.tsx (1)

2-2: Consolidate remaining helper import into utils

The sweep uncovered one lingering helpers import that also needs to be routed through utils.

• packages/ui/src/emoji/logo.tsx:6

- import { emojiCodeToUnicode } from "./helpers";
+ import { emojiCodeToUnicode } from "../utils";

• packages/ui/src/utils/index.ts (add export)

 export * from "./classname";
+export { emojiCodeToUnicode } from "../emoji/helpers";

Likely an incorrect or invalid review comment.

packages/ui/src/auth-form/auth-forgot-password.tsx (1)

2-2: Standardized cn import to ../utils

Path resolution is correct from src/auth-form to src/utils. No other changes.

packages/ui/src/emoji/icons-list.tsx (1)

6-6: cn import updated to ../utils — correct relative path

From src/emoji to src/utils is ../utils. Matches the refactor intent without functional impact.

packages/ui/src/oauth/oauth-button.tsx (1)

2-2: Consolidated cn import — LGTM

Relative path from src/oauth to src/utils is correct. No logic changes.

packages/ui/src/avatar/avatar.tsx (1)

5-5: Moved cn import to ../utils

Path is correct from src/avatar. This aligns with the utils centralization.

packages/ui/src/popovers/popover-menu.tsx (1)

5-5: Updated cn import path — correct

src/popovers to src/utils is ../utils. Change is consistent with the refactor.

packages/ui/src/breadcrumbs/breadcrumbs.tsx (1)

3-3: cn import via ../utils — OK

Correct relative path; no behavioral differences introduced.

packages/ui/src/form-fields/input.tsx (1)

3-3: Import path normalized to ../utils

From src/form-fields to src/utils is ../utils. All good.

packages/ui/src/breadcrumbs/navigation-dropdown.tsx (1)

5-5: Fix lingering helpers import in logo.tsx

We verified that the cn migration is correct (utils/index.ts re-exports from classname, and classname.tsx exports cn), but there’s still one remaining helpers import:

• packages/ui/src/emoji/logo.tsx:6

- import { emojiCodeToUnicode } from "./helpers";
+ // TODO: import from the shared utils barrel (or remove if no longer needed)

Please update or remove this import so that no ./helpers modules remain in the UI package.

Likely an incorrect or invalid review comment.

packages/ui/src/dropdown/multi-select.tsx (1)

8-8: LGTM: standardized cn import

Correct relative path from dropdown → utils. No functional changes.

packages/ui/src/favorite-star.tsx (1)

2-2: LGTM: cn now sourced from utils

Relative path is correct (file at src → ./utils). Import reordering is benign.

Also applies to: 4-4

packages/ui/src/drag-handle.tsx (1)

2-2: LGTM: cn import moved to utils

Correct relative path (src → ./utils). No logic changes.

Also applies to: 4-4

packages/ui/src/dropdowns/custom-menu.tsx (1)

9-9: LGTM: cn import consolidated under utils

Path is correct (dropdowns → ../utils). No side effects on behavior.

packages/ui/src/dropdowns/context-menu/item.tsx (1)

5-5: LGTM: cn import path fixed

Correct hop (context-menu → ../../utils). No functional changes.

apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx (1)

9-9: LGTM: import tidy-up

ISSUE_LAYOUTS/CustomMenu removals are safe; neither is used in this file. Updated constants import remains correct.

packages/ui/src/dropdowns/context-menu/root.tsx (1)

5-7: LGTM: cn import moved; unused hook import removed

  • Path is correct (context-menu → ../../utils).
  • Removing useOutsideClickDetector is fine; outside-click is handled via a mousedown capture listener below.
packages/ui/src/dropdown/common/input-search.tsx (1)

5-5: cn import path update: approved

The move to "../../utils" matches the helpers-to-utils refactor.

packages/ui/src/dropdown/common/options.tsx (2)

5-5: cn import path update: approved

Importing cn from "../../utils" aligns with the new utils barrel.


8-9: Import reordering: OK

Component and types import reordering is non-functional and improves consistency.

@prateekshourya29
Copy link
Member

Let’s directly import cn from @plane/utils since it’s already included in our UI package dependency. @sriramveeraghanta

@sriramveeraghanta sriramveeraghanta merged commit 047080a into preview Aug 11, 2025
5 of 7 checks passed
@sriramveeraghanta sriramveeraghanta deleted the chore-ui-utils branch August 11, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants