feat(studio): Use upload component in folder upload for drag/drop - #1035
feat(studio): Use upload component in folder upload for drag/drop#1035steramae-nvidia wants to merge 1 commit into
Conversation
Signed-off-by: Sean Teramae <steramae@nvidia.com>
|
This change is part of the following stack: Change managed by git-spice. |
📝 WalkthroughWalkthroughChangesThe fileset upload modal now manages file selection with the Foundations Fileset upload flow
Sequence Diagram(s)sequenceDiagram
participant FilesetFileExplorer
participant UploadToFolderModal
participant Upload
FilesetFileExplorer->>UploadToFolderModal: provide staged files
UploadToFolderModal->>Upload: initialize selected upload items
Upload->>UploadToFolderModal: return selected files
UploadToFolderModal->>FilesetFileExplorer: submit selected upload items
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
web/packages/studio/src/components/filesets/FilesetFileExplorer/UploadToFolderModal/index.tsx (1)
22-22: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winImport
FCas a type.
FCis used only as a type. Split it from the runtime React import.Proposed fix
-import { FC, useEffect, useMemo, useRef, useState } from 'react'; +import { useEffect, useMemo, useRef, useState } from 'react'; +import type { FC } from 'react';As per coding guidelines, use
import typefor type-only imports in TypeScript.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@web/packages/studio/src/components/filesets/FilesetFileExplorer/UploadToFolderModal/index.tsx` at line 22, Update the React imports in the module to import FC with a type-only import, while keeping useEffect, useMemo, useRef, and useState in the runtime import.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In
`@web/packages/studio/src/components/filesets/FilesetFileExplorer/UploadToFolderModal/index.tsx`:
- Line 22: Update the React imports in the module to import FC with a type-only
import, while keeping useEffect, useMemo, useRef, and useState in the runtime
import.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 02aec31f-f0cb-4da3-a971-831971d8a4b8
📒 Files selected for processing (3)
web/packages/studio/src/components/filesets/FilesetFileExplorer/FilesetFileExplorerModals.tsxweb/packages/studio/src/components/filesets/FilesetFileExplorer/UploadToFolderModal/index.tsxweb/packages/studio/src/components/filesets/FilesetFileExplorer/index.tsx
💤 Files with no reviewable changes (1)
- web/packages/studio/src/components/filesets/FilesetFileExplorer/FilesetFileExplorerModals.tsx
|
Signed-off-by: Sean Teramae steramae@nvidia.com
Summary by CodeRabbit