-
Notifications
You must be signed in to change notification settings - Fork 179
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
Dashboard: File Upload UI Component #3059
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3059 +/- ##
==========================================
- Coverage 81.77% 81.73% -0.05%
==========================================
Files 723 735 +12
Lines 12132 12283 +151
==========================================
+ Hits 9921 10039 +118
- Misses 2211 2244 +33
|
Size Change: +4.8 kB (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
c041dbc
to
7faed40
Compare
…set, updated default button styles (in a PR now)
71341a4
to
60b86d0
Compare
…k for files in drop handler.
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.
One super nit, that is tangentially related, I attempted to test the file upload component using the "PublishLogo" story (Views/EditorSettings/PublisherLogo) an e.preventDefault is not a function
error when I try and drag/upload a file. It looks like when that story was written it was expecting onUpdatePublisherLogo
to pass in an event object, but now it's passing in different thangs and so the story is breaking.
|
ah! so this is actually because i spaced I did that in storybook temporarily before hooking up the fileUpload. the event's preventDefault is taken care of in the fileUpload for consistency - it just needed to be removed - but now we can show the actual props getting passed on upload! Thanks for testing this view! |
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.
Another super nit, but overall looks great to me!
Summary
Settings view in Dashboard needs a simple drag and drop file upload component. Drew on the editor for structure.
Relevant Technical Choices
getResourceFromLocalFile
util to try and keep structures in sync behind the surfaceTo-do
User-facing changes
Testing Instructions
(placeholder UI for functionality)
Addresses #2747