Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ interface UseDuplicateFolderProps {
/**
* Hook for managing folder duplication.
*
* Handles:
* - Single or bulk folder duplication
* - Calling duplicate API for each folder
* - Loading state management
* - Error handling and logging
* - Clearing selection after duplication
*
* @param props - Hook configuration
* @returns Duplicate folder handlers and state
*/
Comment on lines 24 to 29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Removed important TSDoc documentation describing what the hook handles. According to apps/sim/.cursorrules:142-144, TSDoc must be "Required and Up-to-Date" and should document behavior and side effects. The removed lines explained:

  • Single or bulk folder duplication
  • API call handling
  • Loading state management
  • Error handling and logging
  • Selection clearing

This documentation should be kept to help developers understand the hook's behavior.

Suggested change
/**
* Hook for managing folder duplication.
*
* Handles:
* - Single or bulk folder duplication
* - Calling duplicate API for each folder
* - Loading state management
* - Error handling and logging
* - Clearing selection after duplication
*
* @param props - Hook configuration
* @returns Duplicate folder handlers and state
*/
/**
* Hook for managing folder duplication.
*
* Handles:
* - Single or bulk folder duplication
* - Calling duplicate API for each folder
* - Loading state management
* - Error handling and logging
* - Clearing selection after duplication
*
* @param props - Hook configuration
* @returns Duplicate folder handlers and state
*/

Context Used: Context from dashboard - apps/sim/.cursorrules (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/sim/app/workspace/[workspaceId]/w/hooks/use-duplicate-folder.ts
Line: 24:29

Comment:
**style:** Removed important TSDoc documentation describing what the hook handles. According to `apps/sim/.cursorrules:142-144`, TSDoc must be "Required and Up-to-Date" and should document behavior and side effects. The removed lines explained:
- Single or bulk folder duplication
- API call handling
- Loading state management  
- Error handling and logging
- Selection clearing

This documentation should be kept to help developers understand the hook's behavior.

```suggestion
/**
 * Hook for managing folder duplication.
 *
 * Handles:
 * - Single or bulk folder duplication
 * - Calling duplicate API for each folder
 * - Loading state management
 * - Error handling and logging
 * - Clearing selection after duplication
 *
 * @param props - Hook configuration
 * @returns Duplicate folder handlers and state
 */
```

**Context Used:** Context from `dashboard` - apps/sim/.cursorrules ([source](https://app.greptile.com/review/custom-context?memory=867b3993-a968-40e2-b2e0-8ce533acea2e))

How can I resolve this? If you propose a fix, please make it concise.

Expand Down