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

Feat: add function to standardize uploaded csv in batch signup #169

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

laporchen
Copy link
Contributor

Just do a quick mapping on uploaded file.
Also need to do this in backend if we really want to handle this properly.

Copy link

cloudflare-workers-and-pages bot commented Sep 12, 2024

Deploying nfe with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8753ad2
Status: ✅  Deploy successful!
Preview URL: https://d0d34216.nfe.pages.dev
Branch Preview URL: https://feat-format-batch-sign-up.nfe.pages.dev

View logs

Copy link
Member

@uier uier left a comment

Choose a reason for hiding this comment

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

The changes about csv checking look good to me.
To make usernames Uppercase, please ensure other maintainers are awared of and agree with this approah.
Sorry I'm occupied with my MS thesis so I cannot catch up with your discussion on discord, please ask for someone else to approve this.

Also, it would be nice to add warning/description on UI about this standardization.

@@ -48,12 +48,32 @@ const forceUpdate = ref(false);
const isProcessingSignup = ref(false);
const errorMsg = ref("");
const previewCSV = ref<{ headers?: string[]; body?: string[][] }>({});

// no csv validation was handled
Copy link
Member

Choose a reason for hiding this comment

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

Could be removed?

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