Skip to content
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

feat(file-picker): add single file mode (VIV-1988) #1974

Merged
merged 13 commits into from
Nov 5, 2024

Conversation

YonatanKra
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d61b119) to head (c44ac6d).
Report is 1140 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #1974     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files          123       354    +231     
  Lines         1562      7025   +5463     
  Branches       108       912    +804     
===========================================
+ Hits          1562      7025   +5463     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@TaylorJ76 TaylorJ76 left a comment

Choose a reason for hiding this comment

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

None of these examples work unless they are wrapped in a form (like in the Form use case). Can we wrap all then examples in a form so that users can see how it functions?

Also, can we change the Max Files example to be more than 1, and put a note to say to use the single-file attribute if you only want to upload one file?

@@ -114,6 +114,19 @@ Use the `size` attribute to set the file picker's to one of the predefined block
</vwc-file-picker>
```

### Single File
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this example up the page a bit to be above the Max File Size example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved it just below label.
Regarding the form change - can you please elaborate what doesn't work outside a form?
We never put form elements inside a form in the examples, because we'd like people to be able to just copy and paste the code (K.I.S.).

Copy link
Contributor

@TaylorJ76 TaylorJ76 Nov 1, 2024

Choose a reason for hiding this comment

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

Sorry, my bad. It does work. It's just that the file list gets cut off in the examples.
Can we give the examples more height so that at least one selected file will appear inside the viewing area?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@TaylorJ76 TaylorJ76 merged commit 352694f into main Nov 5, 2024
15 checks passed
@TaylorJ76 TaylorJ76 deleted the VIV-1988-single-file-upload branch November 5, 2024 08:13
@github-actions github-actions bot mentioned this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants