-
Notifications
You must be signed in to change notification settings - Fork 87
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 UEN field #2100
feat: add UEN field #2100
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.
not sure why the CI is failing, will check it out
not sure why our github actions for frontend and backend tests aren't running on this PR. I'll look into our github actions config to fix this. shouldn't be a big deal since I've run the tests locally and everything checks out. |
@aniruddha-adhikary this lgtm but unfortunately we're not able to run the right github actions on this PR. to expedite this, I'm going to do the following:
hopefully we can get this into production during our release tomorrow, if not next week. will keep you updated. thanks again for the contribution! |
Manual testsCreate a UEN field and check that the following UENs are valid:
Check that the following UENs are invalid:
Submit the following UEN by API and check that the backend invalidates it:
|
This reverts commit 35eeeaf.
* Revert "refactor: simplify isUenValid logic (#2156)" This reverts commit 8f0eda6. * Revert "feat: add UEN field (#2100)" This reverts commit 35eeeaf. * Revert "feat: add and call v3 API for retrieving individual admin form (#2113)" This reverts commit e55e1a9. * Revert "chore: remove redundant ValidationOption object properties for short text, long text and number fields (#2040)" This reverts commit 95b6297. * Revert "feat: Add webhook support for storage mode attachments (#1713)" This reverts commit 332d3ce.
* add uen field in public frontend * add essential uen types * make sure uen field renders * replace isUenValid with isUenField
* feat: add UEN field (#2100) * add uen field in public frontend * add essential uen types * make sure uen field renders * replace isUenValid with isUenField * refactor: simplify isUenValid logic (#2156) * refactor: simplify isUenValid logic * fix: use stricter regex matching Co-authored-by: Aniruddha Adhikary (Ani) <[email protected]>
@aniruddha-adhikary this went into production today, congrats on your first FormSG feature! |
@mantariksh 🥺 Thanks ya'all. You guys are excellent, responsible and responsive open source maintainers. ❤️ 🚀 |
Problem
It adds a UEN Field
Closes #1273
Solution
I added a new field in the backend, frontend admin and public frontend.
Breaking Changes
Features:
Before & After Screenshots
BEFORE:
[Imagine no UEN Fields]
AFTER:
Tests
Deploy Notes
I am not sure if adding a new field would require any sort of migration. Maintainers, please do edit if you think it needs to.