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

Re-added features from file-Upload-Pipe #76

Merged
merged 8 commits into from
Jul 17, 2024

Conversation

eshper
Copy link
Contributor

@eshper eshper commented Jul 11, 2024

Description

Added ability for VA to upload and remove files to assigned clients and organisations.

Copy link
Contributor

@JBlixems JBlixems left a 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

Copy link
Contributor

@JBlixems JBlixems left a comment

Choose a reason for hiding this comment

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

This text color in light and dark mode should change please
image

@@ -0,0 +1,64 @@


const handleFileUpload = async (req, res, pgClient, vaId) => {
Copy link
Contributor

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 }}>
Copy link
Contributor

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

Copy link
Contributor

@JBlixems JBlixems left a 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

Copy link
Contributor

@JBlixems JBlixems left a comment

Choose a reason for hiding this comment

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

Looks good!

@JBlixems JBlixems merged commit 833eb98 into develop Jul 17, 2024
6 checks passed
@JBlixems JBlixems deleted the feature/RE-fileUpload-Pipe branch July 17, 2024 09:15
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