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

[ENH] Automated upload functionality #107

Merged
merged 98 commits into from
Sep 25, 2024
Merged

[ENH] Automated upload functionality #107

merged 98 commits into from
Sep 25, 2024

Conversation

rmanaem
Copy link
Collaborator

@rmanaem rmanaem commented Sep 23, 2024

Checklist

This section is for the PR reviewer

  • PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see our Contributing Guidelines for more info)
  • PR has a label for the release changelog or skip-release (to be applied by maintainers only)
  • PR links to GitHub issue with mention Closes #XXXX
  • Tests pass
  • Checks pass

For new features:

  • Tests have been added

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

@rmanaem rmanaem added the pr-minor-breaking Feature or enhancement that breaks compatibility, will increment minor version (0.+1.0) label Sep 23, 2024
Copy link

netlify bot commented Sep 23, 2024

Deploy Preview for upload-ui ready!

Name Link
🔨 Latest commit 8ac420b
🔍 Latest deploy log https://app.netlify.com/sites/upload-ui/deploys/66f31fc7816fdf00083270aa
😎 Deploy Preview https://deploy-preview-107--upload-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 73.87387% with 29 lines in your changes missing coverage. Please review.

Project coverage is 56.19%. Comparing base (c08d144) to head (8ac420b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/components/UploadForm.tsx 80.95% 12 Missing ⚠️
src/components/RepoCard.tsx 52.17% 11 Missing ⚠️
src/components/CardContainer.tsx 60.00% 2 Missing ⚠️
src/components/Instructions.tsx 0.00% 2 Missing ⚠️
src/components/Navbar.tsx 81.81% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #107       +/-   ##
===========================================
+ Coverage   45.22%   56.19%   +10.96%     
===========================================
  Files          14       18        +4     
  Lines         157      210       +53     
  Branches       46       50        +4     
===========================================
+ Hits           71      118       +47     
- Misses         86       92        +6     
Flag Coverage Δ
tests 56.19% <73.87%> (+10.96%) ⬆️

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.

@surchs surchs self-requested a review September 23, 2024 21:55
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

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

Thanks @rmanaem, this looks very nice! 🎉 Also a big fan of the virtualization, looking forward to trying this on a react annotator soon for our massive controlled terms lists.

I approved this already because it looks nice and works well, but left a couple of comments for you to go through. Most minor, but take a look and apply what is feasible or shunt to issues what isn't.

🧑‍🍳

cypress.config.ts Outdated Show resolved Hide resolved
src/App.tsx Show resolved Hide resolved
src/components/CardContainer.tsx Outdated Show resolved Hide resolved
src/components/CardContainer.tsx Show resolved Hide resolved
src/components/CardContainer.tsx Outdated Show resolved Hide resolved
src/components/RepoCard.tsx Outdated Show resolved Hide resolved
src/components/RepoCard.tsx Outdated Show resolved Hide resolved
src/components/RepoCard.tsx Show resolved Hide resolved
src/components/UploadForm.tsx Show resolved Hide resolved
src/components/UploadForm.tsx Show resolved Hide resolved
@surchs
Copy link
Contributor

surchs commented Sep 24, 2024

Ah, just noticed one thing: you don't have any test on the new request schema that the upload API expects. I'm assuming you're testing against the prod API during development - but let's also add a basic test that asserts over the schema / and example instance of the new request.

@rmanaem
Copy link
Collaborator Author

rmanaem commented Sep 24, 2024

@surchs I added a test, please take a look and let me know what you think.

Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

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

nice, looks good @rmanaem!

🧑‍🍳

@rmanaem rmanaem merged commit 9b0dd17 into main Sep 25, 2024
14 checks passed
@rmanaem rmanaem deleted the feat-91 branch September 25, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-minor-breaking Feature or enhancement that breaks compatibility, will increment minor version (0.+1.0)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate upload functionality
3 participants