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

Fix/update trainee info #137

Merged
merged 14 commits into from
Sep 26, 2024
Merged

Fix/update trainee info #137

merged 14 commits into from
Sep 26, 2024

Conversation

MnorbertVii
Copy link
Contributor

@MnorbertVii MnorbertVii commented Sep 19, 2024

Fixes Bugs in Update trainee applicant

Summary

This PR adds validation for trainee applicant form fields and fixes issues related to its submission.

Related Issue

Fixes #131

Changes made

  1. Added validation to ensure that all required fields are filled before submitting the form.
  2. Fixed date conversion issues.
  3. Updated error messages for better clarity.
  4. Dynamic Form Population:
    • Implemented conditional rendering to populate the form
      fields with the correct values from the current trainee data.
    • Ensured that the form correctly reflects any updates made
      to the trainee’s information.
  5. enhanced the handling of state updates for the trainee data form, ensuring a smoother and more efficient update process for trainee information.

How to test

On this repo, checkout to branch fix/update-trainee-info, then
1.Go to the trainee applicants page -> click on three dots on random trainee -> click on edit -> trainee update form
2. Try submitting the form to check for validation messages
3. Enter invalid data in the form fields (phone, scores, etc) and check for validation messages.
4. Enter valid form data and submit to check for successful message of updating the trainee applicant information. 

Screenshots

1

2

3

4

Notes

Additionally, this PR includes code refactoring to improve readability and maintainability.

@MnorbertVii MnorbertVii added Ready For Review Extra attention is needed DREAM DREAM TEAM labels Sep 19, 2024
Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atlp-devpulse-fn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 5:43am

Copy link
Contributor

@mugishaj092 mugishaj092 left a comment

Choose a reason for hiding this comment

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

After update modal must be closed immediately and also after update action I must get loading state

@MnorbertVii
Copy link
Contributor Author

MnorbertVii commented Sep 20, 2024

After update modal must be closed immediately and also after update action I must get loading state

will that be user friendly? I thought we should keep it open, because like especially if there's a chance the user might want to make further changes or if they need to correct a mistake right away. what do you think? @mugishaj092

Copy link

codeclimate bot commented Sep 26, 2024

Code Climate has analyzed commit d167c5a and detected 0 issues on this pull request.

View more on Code Climate.

@Salim-54 Salim-54 merged commit 5088aa5 into develop Sep 26, 2024
7 checks passed
Ishimwe7 pushed a commit that referenced this pull request Oct 10, 2024
* add validations and work on edit

* ensure birthdate is correctly set in formData

* ensure all formData are populated correctly

* fix codeclimate issue

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* fix traineUpdate

* add loader

* add sidebar link for trainee applicants

* add redirection after updating
Ismaelmurekezi pushed a commit that referenced this pull request Oct 13, 2024
* add validations and work on edit

* ensure birthdate is correctly set in formData

* ensure all formData are populated correctly

* fix codeclimate issue

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* fix traineUpdate

* add loader

* add sidebar link for trainee applicants

* add redirection after updating
Philimuhire pushed a commit that referenced this pull request Oct 22, 2024
* Add Not Found Page

* Add Sign In Profile Picture

Ft-send-bulky-email (#61)

* new

* added a send email model

* email

* email

Co-authored-by: UmuhireJessie <[email protected]>

TO be removed

fix: run the app

ft-superadmin-roles&permissions(superadmin can view members)

feat(ft-user-register): user should be able to create account

superAdmin register user

fix(routes): Add routes directory

add login page and add name field on user registration by superadmin

create program

bg: Added Loader

ft(): programs page

role & permission

implementation of delete role and permissions

ft():delete program

implementation of delete role and permissions

feature:Application form using Google Form

implementation of delete role and permissions

ft(): edit program

new changes

ft():Applicant Dashboard

add grading system form

feat(admin list applications):view applications

ft admin view applications

admin update status of candidate application

Feature github actions (#119)

* fix: remove placeholder property

* Have github actions setup with necessary jobs

* Have code climate errors removed

* Corrected codeclimate issues

* --ammend

* --ammend

---------

Co-authored-by: ceelogre <[email protected]>
Co-authored-by: Ndahimana Bonheur <[email protected]>

* fix: remove placeholder property

* #103 Navigation fixed

---------

Co-authored-by: ceelogre <[email protected]>
Co-authored-by: Ndahimana Bonheur <[email protected]>

Fix number can't be shared (#130)

Co-authored-by: Mugisha <[email protected]>

* fix: remove placeholder property

* fix duplicate links

---------

Co-authored-by: ceelogre <[email protected]>

Ft minimize dashboard menu #110 (#140)

* fix: remove placeholder property

* ft minimize dashboard menu

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* Fix layout spacing between sidebar and main content in AdminLayout

* new

* Fix layout spacing between sidebar and main content in AdminLayout

* fix layout

---------

Co-authored-by: ceelogre <[email protected]>
Co-authored-by: Prince-Kid <[email protected]>
Co-authored-by: Mucyo Prince <[email protected]>
Co-authored-by: Aime-Patrick <[email protected]>

* fix: remove placeholder property

* The built-in superadmin account cannot create a program

---------

Co-authored-by: ceelogre <[email protected]>

Ft shareable job post (#139)

* fix: remove placeholder property

* Ft():shareable job post page

* Feature: Adding shareable job post buttons

* Feature: Adding shareable job post buttons

* Feature: Adding shareable job post buttons

* fix codeclimate issue

* add gmail and fix telegram link

* add gmail sharing

* fix url sharing

* fix url

* fix url

* fix codeclimate

* applicant share application

---------

Co-authored-by: ceelogre <[email protected]>
Co-authored-by: dean-daryl <[email protected]>
Co-authored-by: Bahati <[email protected]>
Co-authored-by: uwituzeb <[email protected]>

Ft add favicon (#124)

* fix: remove placeholder property

* add favicon svg

* added favicon

* removed unneccessary added port number

* resolved conflicts

* resolved conflicts

* resolved conflicts

* add favicon svg

* resolved conflicts

* removed unneccessary added port number

* resolved conflicts

* resolved conflicts

* added favicon

* removed unneccessary added port number

* resolved conflicts

* resolved conflicts

* resolved conflicts

* added favicon

* removed unneccessary added port number

* resolved conflicts

* resolved conflicts

* resolved conflicts

* resolved conflicts

* resolved conflicts

* resolved conflicts

* resolved conflicts

---------

Co-authored-by: ceelogre <[email protected]>

Fix tel (#123)

* fix: remove placeholder property

* fix code & tell issue

* rebasing

* fix code issue

---------

Co-authored-by: ceelogre <[email protected]>

Fix/update trainee info (#137)

* add validations and work on edit

* ensure birthdate is correctly set in formData

* ensure all formData are populated correctly

* fix codeclimate issue

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* update traineUpdate

* fix traineUpdate

* add loader

* add sidebar link for trainee applicants

* add redirection after updating

* feature: improve trainee details page

* handling missing application info, also adding download functionality

* fixing error related to download and refactoring

* Update TrainneeDetails.tsx

* handling issues related to deployment

* Fix number can't be shared (#130)

Co-authored-by: Mugisha <[email protected]>

* #102 sidebar links review (#128)

* fix: remove placeholder property

* fix duplicate links

---------

Co-authored-by: ceelogre <[email protected]>

* Ft minimize dashboard menu #110 (#140)

* fix: remove placeholder property

* ft minimize dashboard menu

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* Fix layout spacing between sidebar and main content in AdminLayout

* new

* Fix layout spacing between sidebar and main content in AdminLayout

* fix layout

---------

Co-authored-by: ceelogre <[email protected]>
Co-authored-by: Prince-Kid <[email protected]>
Co-authored-by: Mucyo Prince <[email protected]>
Co-authored-by: Aime-Patrick <[email protected]>

* #118 fx: builtinSuperAdminCreateProgram (#126)

* fix: remove placeholder property

* The built-in superadmin account cannot create a program

---------

Co-authored-by: ceelogre <[email protected]>

* feature: improve trainee details page

* handling missing application info, also adding download functionality

* Update TrainneeDetails.tsx

* adding way to send email and other adjustments

* refining and fixing some issues

* Update webpack.config.js

* customizing way of sending email

* refactoring code to fix issue related to code climate

* fixing issue for deployment

* fixing issues related to refactoring

---------

Co-authored-by: MUGISHA Emmanuel <[email protected]>
Co-authored-by: Mugisha <[email protected]>
Co-authored-by: ISHIMWE Jean Baptiste <[email protected]>
Co-authored-by: ceelogre <[email protected]>
Co-authored-by: ManziPatrick <[email protected]>
Co-authored-by: Prince-Kid <[email protected]>
Co-authored-by: Mucyo Prince <[email protected]>
Co-authored-by: Aime-Patrick <[email protected]>
Co-authored-by: Niyonshuti Jean De Dieu <[email protected]>

fixes #168 auth and admin login (#169)

* feature: improve trainee details page (#172)

* handling missing application info, also adding download functionality

* fixing error related to download and refactoring

* Update TrainneeDetails.tsx

* handling issues related to deployment

* Fix number can't be shared (#130)

* #102 sidebar links review (#128)

* fix: remove placeholder property

* fix duplicate links

---------

* Ft minimize dashboard menu #110 (#140)

* fix: remove placeholder property

* ft minimize dashboard menu

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* Fix layout spacing between sidebar and main content in AdminLayout

* new

* Fix layout spacing between sidebar and main content in AdminLayout

* fix layout

---------

* #118 fx: builtinSuperAdminCreateProgram (#126)

* fix: remove placeholder property

* The built-in superadmin account cannot create a program

---------

* feature: improve trainee details page

* handling missing application info, also adding download functionality

* Update TrainneeDetails.tsx

* adding way to send email and other adjustments

* refining and fixing some issues

* Update webpack.config.js

* customizing way of sending email

* refactoring code to fix issue related to code climate

* fixing issue for deployment

* fixing issues related to refactoring

---------

Co-authored-by: MUREKEZI Ismael <[email protected]>
Co-authored-by: MUGISHA Emmanuel <[email protected]>
Co-authored-by: Mugisha <[email protected]>
Co-authored-by: ISHIMWE Jean Baptiste <[email protected]>
Co-authored-by: ceelogre <[email protected]>
Co-authored-by: ManziPatrick <[email protected]>
Co-authored-by: Prince-Kid <[email protected]>
Co-authored-by: Mucyo Prince <[email protected]>
Co-authored-by: Aime-Patrick <[email protected]>

Ft search job post (#187)

* ft(Add search): Add entry search

* Will add user seach Job Functionalities --squashed commits

* single page to view and search Jobs

* will make jobs and search be on same page

* updating functionality

* Real time searching

---------

Co-authored-by: Jmukakalisa <[email protected]>

154 crud application form (#167)

* Will add create application feature

* Will add update application form feature

* Will add view application form feature

* Will add dark mode card

* Will add create application feature

* Will add update application form feature

* Will add view application form feature

* Will add dark mode card

Add Verify Email (#179)

Co-authored-by: vegetason <[email protected]>

ft(Add search): Add entry search (#136)

Co-authored-by: Jmukakalisa <[email protected]>

Forget password   #147 (#178)

* fogetpassword

* ft-forget password

* reset and forget password

* reset and forget password

* reset and forget password

* reset and forget password

* reset password

* reset update background

* reset update background

* reset update background

* reset password

* reset password

* reset password

* reset password

* yarn.lock

* Ft search job post (#187)

* ft(Add search): Add entry search

* Will add user seach Job Functionalities --squashed commits

* single page to view and search Jobs

* will make jobs and search be on same page

* updating functionality

* Real time searching

---------

Co-authored-by: Jmukakalisa <[email protected]>

* 154 crud application form (#167)

* Will add create application feature

* Will add update application form feature

* Will add view application form feature

* Will add dark mode card

* Will add create application feature

* Will add update application form feature

* Will add view application form feature

* Will add dark mode card

* Add Verify Email (#179)

Co-authored-by: vegetason <[email protected]>

* resolve comflit

* resolve comflit

* resolve comflit

* resolve comflit

---------

Co-authored-by: Aime Brues <[email protected]>
Co-authored-by: Jmukakalisa <[email protected]>
Co-authored-by: MUGISHA Joseph <[email protected]>
Co-authored-by: Irakoze Paulin <[email protected]>
Co-authored-by: vegetason <[email protected]>

Ft edit, publish and unpublish jobs (#189)

* fix: remove placeholder property

* fix code & tell issue

* will add ft for editing jobs

---------

Co-authored-by: ceelogre <[email protected]>

Fix fault alerts (#182)

* correct error messages

* work on resolving fault alerts

remove a bug (#190)

Co-authored-by: vegetason <[email protected]>

Admin dashboard (#181)

General search and filtration admin (#184)

* general-search-admin

* Will add results tab

general search updates

resolved conflicts

admin general search updates

fixing code climate issues

* resolving conflicts

---------

Co-authored-by: MUGISHA Joseph <[email protected]>

* add applicant dashboard page

* add dashboard cards

* integrate with backend

* fetch all data from their respective queries

* remove console logs

* update cohort types and query

* fix routes

* fix code climate

* add graph

* fix chart

* delete yarn

* fix graph and login

* fix

* trigger

* revert

---------

Co-authored-by: uwituzeb <[email protected]>

Fix job Search (#199)

Co-authored-by: vegetason <[email protected]>

* feature: improve trainee details page (#172)

* handling missing application info, also adding download functionality

* fixing error related to download and refactoring

* Update TrainneeDetails.tsx

* handling issues related to deployment

* Fix number can't be shared (#130)

* #102 sidebar links review (#128)

* fix: remove placeholder property

* fix duplicate links

---------

* Ft minimize dashboard menu #110 (#140)

* fix: remove placeholder property

* ft minimize dashboard menu

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard by icon and categorize into section

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* fix minimize dashboard scrollbar

* Fix layout spacing between sidebar and main content in AdminLayout

* new

* Fix layout spacing between sidebar and main content in AdminLayout

* fix layout

---------

* #118 fx: builtinSuperAdminCreateProgram (#126)

* fix: remove placeholder property

* The built-in superadmin account cannot create a program

---------

* feature: improve trainee details page

* handling missing application info, also adding download functionality

* Update TrainneeDetails.tsx

* adding way to send email and other adjustments

* refining and fixing some issues

* Update webpack.config.js

* customizing way of sending email

* refactoring code to fix issue related to code climate

* fixing issue for deployment

* fixing issues related to refactoring

---------

Co-authored-by: MUREKEZI Ismael <[email protected]>
Co-authored-by: MUGISHA Emmanuel <[email protected]>
Co-authored-by: Mugisha <[email protected]>
Co-authored-by: ISHIMWE Jean Baptiste <[email protected]>
Co-authored-by: ceelogre <[email protected]>
Co-authored-by: ManziPatrick <[email protected]>
Co-authored-by: Prince-Kid <[email protected]>
Co-authored-by: Mucyo Prince <[email protected]>
Co-authored-by: Aime-Patrick <[email protected]>

revert changes from develop (#205)

fix:dev conflict issues (#207)

added preferences page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DREAM DREAM TEAM Ready For Review Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update trainee applicant
6 participants