harvard-lil / perma

Indelible links
417 stars 71 forks source link

Add file input #3545

Closed tinykite closed 3 months ago

tinykite commented 3 months ago

What this does

Adds a new component, FileInput, to provide a file chooser that allows users to choose a file to upload as part of their own static archive.

Implementation Requirements

Main Goals:

image

Screenshots

File chosen

Screenshot 2024-06-17 at 8 24 16 AM Note: The visible, stringified File object shown above the screenshot is for debugging purposes only

File validation error

image

How to Test

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.01%. Comparing base (ad6fcd7) to head (7c6fcc9). Report is 32 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #3545 +/- ## =========================================== - Coverage 69.23% 69.01% -0.22% =========================================== Files 48 48 Lines 6816 6842 +26 =========================================== + Hits 4719 4722 +3 - Misses 2097 2120 +23 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.