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

Clean up blockly canvas page #368

Open
3 tasks
syuChen1 opened this issue Feb 21, 2022 · 0 comments
Open
3 tasks

Clean up blockly canvas page #368

syuChen1 opened this issue Feb 21, 2022 · 0 comments

Comments

@syuChen1
Copy link
Member

syuChen1 commented Feb 21, 2022

Use better structures to represent different states from different roles.
Canvas state:
0 sandbox
1 student_day
2 mentor_day_template
3 mentor_workspace
4 mentor_sandbox
5 contentCreator_day_template
6 contentCreator_activity_template
7 contentCreator_workspace
8 contentCreator_sandbox
9 researcher_day

  • Use react context to store the day object

  • Make url param more specific (such as /student/day/:id and /content-creator/day/:id/day-template)
    OR
  • Save the canvas state (such as {id: day_id, state: {role: content creator, type: day_template }} ) in the day object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant