-
Notifications
You must be signed in to change notification settings - Fork 90
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
Drag'n'drop added/existing file entries, add empty folder #3999
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3999 +/- ##
==========================================
+ Coverage 37.19% 37.33% +0.14%
==========================================
Files 757 758 +1
Lines 33135 33321 +186
Branches 4854 4903 +49
==========================================
+ Hits 12323 12442 +119
- Misses 19652 20235 +583
+ Partials 1160 644 -516
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
224f3e7
to
8f3a985
Compare
8f3a985
to
b666962
Compare
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.
well, this looks cleaner than i expected. special thanks for extracting the FilesState code, cleaning it up and covering with tests.
i haven't tested the actual ux tho
catalog/app/containers/Bucket/PackageDialog/PackageCreationForm.tsx
Outdated
Show resolved
Hide resolved
catalog/app/containers/Bucket/PackageDialog/PackageCreationForm.tsx
Outdated
Show resolved
Hide resolved
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.
looks good
4f7ca51
to
d1cdf73
Compare
|
i don't think it's a good idea tbh, because it makes incremental review hard. |
I didn't know. Last time I checked, they didn't |
Co-authored-by: Alexei Mochalov <[email protected]>
check out the network graph under the "insights" tab |
I mean: yes, commits are squashed, but messages were just concatenated earlier. I didn't notice when it was changed |
oh i see what you mean. we tweaked that setting some time ago, yep |
FilesState
toPackageDialog/FilesState.ts
, so I can easily write testsgetNormalizedPath
because it was used only forFilesState
Add empty folder:
FilesState.AddFolder
Drag'n'Drop:
FilesState.Move({ source: string, dest: string })
for added and existing files and directories (so, 4 types ofsource
,dest
is always an added directory)draggable
handler for file/dir icons onlyDndProveder
for managing state: what file do we drag, above what directory, and handle drop.simplescreenrecorder-2024-06-17_16.23.48.webm