Anand Chitipothu
8a3e31f021
fix: only show the published courses on All Courses page
...
Closes #155
2021-07-19 17:03:38 +05:30
Anand Chitipothu
b9cac20613
fix: the delay in sending signup email
2021-07-19 13:32:18 +05:30
Anand Chitipothu
e6d5e6d37b
fix: "Hello None" in the signup email
...
We were trying to show the full_name, but invite request only knows the email.
2021-07-19 13:31:44 +05:30
Anand Chitipothu
b70e8b9acc
fix: fixed the email message sent out on signup
...
Currently updated keeping Mon.School in mind.
2021-07-19 13:14:13 +05:30
Anand Chitipothu
51d5db01e9
feat: include membership info in page context
...
Added `is_member` field to page_context of learn page. This is required to
disable exercises to non-members.
2021-07-11 12:55:26 +05:30
Anand Chitipothu
524a041fb9
fix: error on profile page
...
Profile page was importing Sketch which was removed recently, even
though it was not using that. Removed it to fix the issue.
2021-07-08 10:33:12 +05:30
Anand Chitipothu
2c24412633
refactor: removed the unused dashboard portal page
2021-07-06 14:20:00 +05:30
Anand Chitipothu
1b8a45ba4a
refactor: removed sketch doctype and portal page for home
...
Both of these will be moved to mon_school.
2021-07-06 13:20:41 +05:30
Anand Chitipothu
9caf44cdbd
feat: make it possible to enable tracking for livecode execution
...
Tracking of livecode execution is made possible by making the page
context with course, batch and lesson available in js.
Added a global page_context variable in js and the data for that gets
initialzied in the learn.py.
2021-07-02 23:58:59 +05:30
Anand Chitipothu
94b3ccd3d9
feat: added a utililty to switch a student from one batch to another
2021-07-01 17:29:02 +05:30
Anand Chitipothu
9f50af4ebd
refactor: removed the portal pages for showing sketches
...
Moved them to mon_school.
2021-06-23 12:53:35 +05:30
Anand Chitipothu
20b3ae7d76
fix: error in linking lessons on course page
...
The course was adding `{{ no such element: community.lms.doctype.lms_course.lms_course.LMSCourse object['query_parameter'] }}`
to the lesson links. Fixed it by setting query_parameter to "".
2021-06-23 10:27:01 +05:30
Anand Chitipothu
f303be4db5
fix: error in find_macros when the input is empty
...
Added a special case to handle this issue.
2021-06-22 18:12:31 +05:30
Anand Chitipothu
fc1c393f15
feat: allow a student to be mentor of another batch
...
This is a requirement for mon.school. The students are of the first
batch are now mentors of new batches.
2021-06-22 18:09:21 +05:30
Anand Chitipothu
526ded784b
Merge pull request #125 from fossunited/hotfix-exercise-image
...
fix: fixed error on saving exercises
2021-06-12 21:42:27 +05:30
Anand Chitipothu
6b5ddcd54a
fix: fixed error on saving exercises
...
Removed the image generation when exercise is saved. The library used
for exercises has changed and generating the image doesn't work any
more.
2021-06-12 10:49:27 +05:30
Anand Chitipothu
d9185c0b6b
feat: integrated lesson markup
...
- added PageExtension plugin to inject custom styles scripts in a page
- removed the livecode integration and enabled PageExtension plugins for
learn page
- also merged the profile_tab.py with plugins.py
- added a utility to find the macros from given text
- updated the before_save of lesson to find exercises using the macros
and update the exercises as before
Issue #115
2021-06-09 23:58:21 +05:30
Anand Chitipothu
5363fb7eb3
feat: extend markdown to support macros
...
With this feature, the exercises can be added to the lesson as:
{{ Exercise("two-circles") }}
This also added fenced_code extension that allows adding id and classes
to code blocks.
This uses Python-Markdown library instead of Markdown2 that is used
everywhere in Frappe. The Python-Markdown is more easily extensible than
Markdown2.
Issue #115
2021-06-09 23:22:00 +05:30
Anand Chitipothu
ef0c3e4a24
feat: pluggable profile tabs
...
Added ProfileTab class to represent a profile tab and made the profile
page render the tabs specified in the hook `profile_tabs`. This allows
plugging in new tabs in the profile page without makeing any changes to
the community module.
2021-06-08 10:36:12 +05:30
Anand Chitipothu
3619b136f8
Merge pull request #117 from fossunited/lesson-progress
...
feat: lesson progress
2021-06-07 11:24:52 +05:30
Anand Chitipothu
586b39c0fd
fix: issue with numbering the exercises
...
The exercises being listed in unpredicted order instead of the order
they were listed in the lesson. The was because the `index_` of the
exercise was never updated. Fixed this by updating the `index_` whenever
a lesson edited. However, the user still need to run reindex exercises
on the course correct the ordering, which wasn't possible earlier.
2021-06-02 17:48:02 +05:30
Anand Chitipothu
c96a14c972
feat: ignore orphan exercises in the progress
...
Don't show exercises that are not added to any lesson in the progress.
2021-06-01 08:15:52 +05:30
Anand Chitipothu
400e706be1
feat: update the index of orphan exercises
...
When an exercise is removed from a lesson, the link to the lesson is
removed from that exercise and the index is reset. This will make sure
the removed exercises won't show up in places like progress.
2021-06-01 05:59:01 +05:30
Anand Chitipothu
a12a52747e
feat: show exercise index in the title
...
Show exercise as "Exercise 2.1: Draw a Circle".
2021-06-01 05:49:45 +05:30
Anand Chitipothu
b9a93bb160
feat: added actions to reindex lessons and exercises
...
Some lessons gets deleted and some new ones get added in the progress of
course creation and it may happen then some of the lesson index may
become inconsistent. Also, we would like to maintain an index for the
exercises. To support both of these, added actions to reindex lessons
and exercises to the course doctype.
2021-06-01 05:46:32 +05:30
Anand Chitipothu
527a563e4a
chore: added "programming" to the hero title
2021-05-27 09:39:07 +05:30
Anand Chitipothu
823cf4e431
style: fixed word-wrap of output
2021-05-25 16:06:12 +05:30
Anand Chitipothu
82fa0fa4d7
fix: error in loading the progress page
2021-05-24 13:46:59 +05:30
Anand Chitipothu
50856fdfa5
fix: fixed failing test
2021-05-24 13:30:47 +05:30
Anand Chitipothu
cac4f2afef
feat: redirect the learn page to the current lesson of the user
...
The current lesson is maintained in the LMS Batch Membership and that is
updated everytime a lesson page is visited.
2021-05-24 13:07:29 +05:30
Anand Chitipothu
df431165e8
feat: redirect non-members visiting any batch page to the course page
2021-05-24 12:57:01 +05:30
Anand Chitipothu
69125e571f
feat: added member_username and current_lesson fields to LMS Batch Membership
...
And removed member_email field which is a duplicate of member.
2021-05-24 12:43:20 +05:30
Anand Chitipothu
68f7215b95
fix: error in updating LMS Batch membership
...
The validation was always failing when trying to updating an LMS Batch
Membership document. This was due to a bug in the validation logic that
was considering itself as a duplicate record. This has been fixed.
Also added tests to verify that.
2021-05-24 12:15:16 +05:30
Anand Chitipothu
20adc8079e
Merge pull request #105 from fossunited/community-member-to-user-refactor
...
refactor: Community Member to User refactor
2021-05-24 11:44:45 +05:30
Anand Chitipothu
d55941d4bb
Merge branch 'main' into community-member-to-user-refactor
2021-05-24 11:39:20 +05:30
Anand Chitipothu
8d7963fc60
feat: added "Resume Course" button to course teaser
...
Closes #102
2021-05-24 09:55:35 +05:30
Anand Chitipothu
38938ac14b
feat: added ability to find the batch of a student
...
Added the course field and member_email fields to LMS Batch Membership
to allow the possibility of querying if a user is a student of a course.
Closes #101
2021-05-24 09:55:13 +05:30
Anand Chitipothu
14f9d4875a
chore: added issue template for Feature Request
2021-05-24 08:36:09 +05:30
Anand Chitipothu
4a2ecff15d
Merge pull request #98 from fossunited/remove-primary-color-from-app
...
fix: removed primary color from app
2021-05-21 13:26:38 +05:30
Anand Chitipothu
c77835b81f
feat: added page to see progress of a batch
2021-05-21 13:13:34 +05:30
Anand Chitipothu
e04bbb633d
refactor: moved courses/*/index pages to batch/*
2021-05-21 13:12:52 +05:30
Anand Chitipothu
a2b856aaf8
feat: added image to exercise submission
2021-05-21 13:10:54 +05:30
Anand Chitipothu
632693c9f8
fix: show submitted solution in the exercise
2021-05-20 21:03:24 +05:30
Anand Chitipothu
463aec01f8
fix: permission issue when a student submits an exercise
2021-05-20 21:02:54 +05:30
Anand Chitipothu
e7d116f31c
chore: removed obsolete doctype LMS Topic
...
It has been replaced by Chapter and Lesson.
Moved the section_parser from lms_topic directory to the lms.
2021-05-20 16:52:51 +05:30
Anand Chitipothu
f1b3ee19b6
Merge pull request #93 from fossunited/exercises
...
Added Exercise and Exercise Submission doctypes
2021-05-20 16:43:29 +05:30
Anand Chitipothu
9cb9fad05c
fix: fixed failing tests
2021-05-20 16:24:41 +05:30
Anand Chitipothu
0859afdf34
style: fixed the styles of the sidebar
2021-05-20 15:08:12 +05:30
Anand Chitipothu
6407b24324
feat: added course, batch and lesson to exercise submission
...
Useful to find all the submissions for a batch/lesson.
2021-05-20 15:07:14 +05:30
Anand Chitipothu
34e993cf86
refactor: added lesson to exercise
...
usualy to know which lesson an exercise is part of by looking at the
exercise.
2021-05-20 13:27:30 +05:30
Anand Chitipothu
8c889ffb92
chore: switched to new build system for css.
...
- added community.bundle.less file to create css bundle
- removed the obsolete build.json in favor of new build system
- updated the paths in the books
- removed the imported urls from css files (the new build system doesn't support that)
- removed obsolete lms.css
2021-05-20 13:15:08 +05:30
Anand Chitipothu
a67ad67be1
feat: show image for the exercise
...
generate the image from the answer and display it along with
description. The image is geneated when the exercise is saved.
2021-05-20 12:09:12 +05:30
Anand Chitipothu
646a7b723f
fix: fix broken pagination links
2021-05-19 20:12:35 +05:30
Anand Chitipothu
6f7011ca58
feat: integrated exercises into lessons
...
- an exercise can now be added to a lesson
- it is rendered using livecode editor with submit button
- remembers the submitted code and shows the submission time
Issue #90
2021-05-19 20:06:20 +05:30
Anand Chitipothu
d61acb552a
feat: added Exercise and Exercise Submission doctypes
...
Also:
- added methods to submit an exercise and get the submission for a user
- added test cases
Issue #90
2021-05-19 20:01:17 +05:30
Anand Chitipothu
e6f58f56e0
Merge pull request #87 from fossunited/remove-branding
...
refactor: removed the branding and customization for mon school
2021-05-19 10:41:45 +05:30
Anand Chitipothu
9e0476fd00
chore: upgraded node to v14 in github actions
...
- the new changes to frappe required node v14
- also added a build setup before runing tests to make sure the assets are built
2021-05-19 10:05:59 +05:30
Anand Chitipothu
d9ea02667d
refactor: removed the branding and customization for mon school
...
They have been moved to a new mon_school app
2021-05-18 21:25:29 +05:30
Anand Chitipothu
bdabf32124
Merge pull request #86 from fossunited/learn
...
Implemented learning section for batches
2021-05-14 15:36:44 +05:30
Anand Chitipothu
8b657f2f40
feat: added next/prev links to learn pages
2021-05-14 15:29:44 +05:30
Anand Chitipothu
49b41749e8
feat: added learn page
...
- added sections to the lesson to handle multiple sesions like examples and exercises
- added livecode integration to lesson pages
- autosave and submiting the answers is not done yet
2021-05-14 12:11:45 +05:30
Anand Chitipothu
1cf57c4823
feat: redirect the course page to learn page when the visitor is a student of a batch
2021-05-14 12:06:37 +05:30
Anand Chitipothu
5cfb72a731
style: tweaks
...
- made hero h1 black
- fixed the styles of lesson teasers
2021-05-08 13:44:34 +05:30
Anand Chitipothu
49d5ca4292
fix: added index to lesson doctype to fix the display order
2021-05-08 13:44:34 +05:30
Anand Chitipothu
a3e53efcc1
fix: fixed course description on the course page
...
The small intro was being shown in its place.
2021-05-08 13:44:34 +05:30
Anand Chitipothu
be7814b4fe
Merge pull request #81 from fossunited/flow-fixes
...
fix: username and email validations
2021-05-07 18:53:58 +05:30
Anand Chitipothu
c40ab9a726
style: style tweaks
2021-05-07 18:32:35 +05:30
Anand Chitipothu
64cf14ed92
fix: fail gracefully when livecode_to_svg crashes
...
That seems to be happening in some cases and couldn't really figure out
the reason. Handling the error to gracefully to show an empty image in
those cases.
2021-05-07 18:32:34 +05:30
Anand Chitipothu
dbaa896fcc
fix: fixed the issue of users unable to save sketches
...
Inserting new sketches is failing because the web user role doesn't have
permission to create sketches. Fixed it by adding
ignore_permission=True.
2021-05-07 18:32:34 +05:30
Anand Chitipothu
5d14dce320
Merge pull request #80 from fossunited/add-new-batch-form-enhancements
...
fix: Add new batch form enhancements
2021-05-07 16:53:21 +05:30
Anand Chitipothu
eec9e57dd2
fix: fixed thumbnail generation from livecode
...
Due to the recent changes to livecode, the code to generate svg from
code got broken. Fixed that now.
2021-05-07 16:48:52 +05:30
Anand Chitipothu
503b922074
style: improved the sketch page
2021-05-07 16:48:25 +05:30
Anand Chitipothu
3c8cffc5ad
fix: fixed the issue of unable to create sketches.
...
The livecode API has been generalized and there was some
backwackward-incompatible changes in that proces. Added
livecode-canvas.js with the required options to fix the issue.
2021-05-07 13:59:38 +05:30
Anand Chitipothu
84b4833fed
style: tweaked the styles of profile page
2021-05-07 12:33:43 +05:30
Anand Chitipothu
c764aa6c20
fix: fixed the error in saving a new course
2021-05-07 05:18:06 +05:30
Anand Chitipothu
bc11730697
style: showing the message as alert elements on the course page
2021-05-06 21:05:36 +05:30
Anand Chitipothu
92c4a86e8b
refactor: fixed the accidentally removed code in RequestInvite
2021-05-06 21:05:08 +05:30
Anand Chitipothu
358724bf1c
style: fixed the hero section on mobile
...
The email textbox was becoming too small.
2021-05-06 20:53:14 +05:30
Anand Chitipothu
bb80d988d7
refactor: using SketchTeaser widget to show sketch in the profile page
2021-05-06 20:43:04 +05:30
Anand Chitipothu
0ad03a3fb5
style: made the avatar and name of the person a link
2021-05-06 20:41:52 +05:30
Anand Chitipothu
3382de0ecb
refactor: removed slug from course page.
2021-05-06 15:47:47 +05:30
Anand Chitipothu
08bb7b4490
Merge pull request #73 from fossunited/mentor-request-email-templates
...
fix: mentor request flow and emails #30 , #69 , #70
2021-05-06 15:39:58 +05:30
Anand Chitipothu
15203f6bcc
Merge branch 'main' into mentor-request-email-templates
2021-05-06 15:38:53 +05:30
Anand Chitipothu
cbfb0d6761
Merge pull request #76 from fossunited/course-page
...
Refactored the course page
2021-05-06 13:55:42 +05:30
Anand Chitipothu
343aa50f78
Merge branch 'main' into course-page
2021-05-06 13:50:12 +05:30
Anand Chitipothu
5a70687067
refactor: removed the slug using the course name as part of url
2021-05-06 13:42:45 +05:30
Anand Chitipothu
a0921f7380
Merge pull request #77 from fossunited/widget-avatar
...
feat: Widget avatar
2021-05-06 13:26:49 +05:30
Anand Chitipothu
88457a82ac
refactor: learn page
2021-05-06 07:05:27 +05:30
Anand Chitipothu
761f36519e
refactor: refactored the about page
2021-05-06 07:05:17 +05:30
Anand Chitipothu
dc5b637ada
refactor: fixed the course page
2021-05-06 06:47:09 +05:30
Anand Chitipothu
da902d23f7
Merge pull request #71 from fossunited/footer
...
Fix footer
2021-05-05 16:30:45 +05:30
Anand Chitipothu
c2be23a902
fix: fixed the pickle error on installing community
2021-05-05 15:58:28 +05:30
Anand Chitipothu
da771d7830
[actions] added action to ache bench
2021-05-05 15:57:41 +05:30
Anand Chitipothu
041bed7e9d
Added sketches to the nav-bar on install
2021-05-05 12:56:27 +05:30
Anand Chitipothu
e330f45adc
style: fixed the footer
2021-05-05 12:53:24 +05:30
Anand Chitipothu
370d3a321b
Merge pull request #68 from fossunited/invite-flow-fixes
...
fix: invite flow issues
2021-05-04 23:23:40 +05:30
Anand Chitipothu
138fba66ae
Merge branch 'main' of git://github.com/khalby786/community into khalby786-main
2021-05-04 23:21:21 +05:30
Anand Chitipothu
82faaed15d
feat: set app name and logo on install and disable signup
...
- set app_name and app_logo_url on install
- disabled signup
2021-05-04 23:19:50 +05:30
Anand Chitipothu
b58a685e7a
Merge pull request #64 from fossunited/miscellaneous-fixes
...
fix: Miscellaneous fixes
2021-05-04 19:18:17 +05:30
Anand Chitipothu
1a06e2c0aa
Merge pull request #61 from fossunited/issue-56
...
doctypes for chapter and lesson
2021-05-03 16:51:01 +05:30