Codelabz
Codelabz copied to clipboard
Finish button & functionality added
Description
This feature PR adds a finish button to the tutorial publishing page. When a user publishes their tutorial, the finish button will be enabled and allow them to redirect to the homepage. If the tutorial is unpublished, the finish button will be disabled. This change was made to improve the user experience by allowing users to easily redirect to the homepage after publishing their tutorial. Previously, there was no way to do this without using the browser's back button.
Motivation and Context
Users need to be able to easily redirect to the homepage after publishing their tutorial so that they can continue using the application.
How Has This Been Tested?
Tested it locally
Screenshots or GIF (In case of UI changes):
Previously, nothing happened after clicking on publish:
https://github.com/scorelab/Codelabz/assets/90304648/b162b9f3-c536-49df-99fc-ec13cdfafb53
Finish button and functionality added:
https://github.com/scorelab/Codelabz/assets/90304648/e54d9093-5321-40a3-b1ff-3a495025270e
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.