Open omChauhanDev opened 1 month ago
I think having a UI similar to this(which doesn't lose all the info you entered if the library with the same name already exists) would be better.
Yes, it would be nice to follow the same patter as the course creation modal, and to validate from the form so that errors can be fixed without starting over.
okay, working on this
I have updated the validation pattern, kindly check this out :
I tested this out, and it's working pretty smoothly. One improvement would be to refresh the page after creating a new Library or Category, as the new one doesn't appear until after a page refresh.
Hi @ragesoss and @TheTrio, I have implemented 'switching between different modes' using session storage and have also modified all the relevant test cases. I'm considering pushing this commit in a separate PR to maintain a clear separation of concerns.
For that, merging this PR will help me resolve the merge conflicts before raising the new PR.
@omChauhanDev i created this branch with the earlier commits: https://github.com/WikiEducationFoundation/WikiEduDashboard/tree/Om-Training
You should open the separate PR against that branch, for dealing with merge conflicts.
What this PR does
This pr added functionality for creating new training libraries through dashboard.
Tasks :
Screenshots
Before:
After:
1. Button on main training page
2. Filling up form
3. Successfully created library
4. First Library
4. Validations at front-end
5. Custom Error Message