-
Notifications
You must be signed in to change notification settings - Fork 0
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
Re-added features from file-Upload-Pipe #76
Conversation
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.
Please just look at the file structure again.
Routes folder is only for any express routes, you can add another file for uploads.js routes.
Then put the pipe inside the lib since it does not have any express routes.
Then finally just add the necessary line for the pipe routes in the index
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.
server/routes/pipe.js
Outdated
@@ -0,0 +1,64 @@ | |||
|
|||
|
|||
const handleFileUpload = async (req, res, pgClient, vaId) => { |
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.
Rather import pgClient than send it through a parameter
<Paper elevation={3} sx={{ padding: 2, marginTop: 2 }}> | ||
<List> | ||
{users.map(user => ( | ||
<ListItem key={user.user_id} sx={{ marginBottom: 1, padding: 1, borderRadius: 1, boxShadow: 1 }}> |
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.
Can you display some text informing the user if they have no clients assigned to them
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.
Need some unit tests for your components as well please
- fixed font color - added a message if no clients or orgs have been asigned
- fixed unit tests (pls)
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.
Looks good!
Description
Added ability for VA to upload and remove files to assigned clients and organisations.