Refactor Session and Session_iba template #907
Labels
complexity: advanced
Time needed to do this ticket will be large e.g. 2-3+ days
hacktoberfest
Hacktoberfest issues
help wanted
Extra attention is needed
maintenance
Maintenance / chore work
priority: 1+week
Should be prioritized next week or longer.
state: approved
Ready to go. Not blocked or pending.
Milestone
Overview
We created a duplicate but slightly different template for our IBA course. There is now a large amount of shared loginc between the regular session template and the session_iba template.
The IBA session page can be found in
pages/courses/image-based-abuse/[sessionSlug].tsx
and the regular session page can be found inpages/courses/[slug]/[sessionSlug].tsx
This ticket is to pull out duplicated logic / code between the two pages into either separate components or functions that can then be shared by the two pages.
Action Items
Here are some suggestions for possible refactors. These are suggestions and you may take a different route:
callStartSession
can move into this componentuseEffect
to open transcript modal can also be moved to this componentTesting
It may make sense to split this ticket out into separate PRs as there could be a lot of changes.
Resources/Instructions
The text was updated successfully, but these errors were encountered: