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

Front end document upload #14

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Front end document upload #14

merged 5 commits into from
Jan 16, 2024

Conversation

kyle1morel
Copy link
Collaborator

@kyle1morel kyle1morel commented Jan 10, 2024

Description

Adds tabular view to the Submission view. New tab provides a button/drag-and-drop area for file uploading. Document uploads are done immediately, there is no confirmation button. Uploads are visible in a carousel appearing to the right of the upload area. Document upload uses COMS. A unique hash is added to the end of each filename to guarantee uniqueness.

Types of changes

New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

github-actions bot commented Jan 10, 2024

Coverage Report (Frontend)

Totals Coverage
Statements: 38.02% ( 184 / 484 )
Methods: 37.11% ( 36 / 97 )
Lines: 42.55% ( 117 / 275 )
Branches: 27.68% ( 31 / 112 )

Copy link

github-actions bot commented Jan 10, 2024

Coverage Report (Application)

Totals Coverage
Statements: 43.57% ( 61 / 140 )
Methods: 26.32% ( 5 / 19 )
Lines: 60.76% ( 48 / 79 )
Branches: 19.05% ( 8 / 42 )

@kyle1morel kyle1morel force-pushed the feature/file-upload-fe branch from 11167b1 to ca53e7b Compare January 15, 2024 23:11
@kyle1morel kyle1morel changed the title Front end file upload Front end document upload Jan 15, 2024
@kyle1morel kyle1morel force-pushed the feature/file-upload-fe branch from ca53e7b to d37a6cc Compare January 15, 2024 23:17
@kyle1morel kyle1morel closed this Jan 15, 2024
@kyle1morel kyle1morel reopened this Jan 15, 2024
Copy link
Member

@jujaga jujaga left a comment

Choose a reason for hiding this comment

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

Functionally works from what I can visually inspect. A couple minor optional nitpicks and lint warnings to address but looks good otherwise.

frontend/src/components/file/FileUpload.vue Outdated Show resolved Hide resolved
frontend/src/components/file/FileUpload.vue Show resolved Hide resolved
frontend/src/services/documentService.ts Outdated Show resolved Hide resolved
frontend/src/views/SubmissionView.vue Show resolved Hide resolved
/>
</div>
<div class="col-10 p-0">
<Carousel
Copy link
Contributor

Choose a reason for hiding this comment

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

youre probably going to want this upload ui in a separate component eventually.
I'm still questioning the need for a carousel at this stage and the complications that come with it, but good work figuring it out. The primevue component does look pretty good. Although I think we could adjust the size, spacing and default thumbnail lol.

@kyle1morel kyle1morel marked this pull request as ready for review January 16, 2024 18:40
@jujaga jujaga merged commit 80a5648 into master Jan 16, 2024
18 of 20 checks passed
@jujaga jujaga deleted the feature/file-upload-fe branch January 16, 2024 23:02
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.

3 participants