-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: new lesson chip #4531
base: main
Are you sure you want to change the base?
feat: new lesson chip #4531
Conversation
Do you need anyone else to do anything with this mate? |
5cd0cd3
to
0818cb4
Compare
0818cb4
to
3d6d144
Compare
@CouchofTomato not sure, I can take this to completion. Will need help if there any other changes required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking ace @01zulfi, nice work! Just a few small suggestions from me.
One problem we'll have, is every lesson will be marked as "new" on fresh installations of the app locally and on review apps. But I'm not sure if that really is a problem, and I can't think of a reasonable way around it. We might just have to document it if contributors are confused by it.
3d6d144
to
fd1a7c9
Compare
@@ -20,6 +20,10 @@ class Lesson < ApplicationRecord | |||
|
|||
attribute :completed, :boolean, default: false | |||
|
|||
def recently_added? | |||
created_at > 2.weeks.ago.beginning_of_day |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beginning_of_day
nice touch! 🤌
fd1a7c9
to
3ae3b48
Compare
Because
testing if adding a lesson chip is viable
This PR
adds "new" lesson chip
Issue
Closes #XXXXX
Additional Information
Pull Request Requirements
keyword: brief description of change
format, using one of the following keywords:Feature
- adds new or amends existing user-facing behaviorChore
- changes that have no user-facing value, refactors, dependency bumps, etcFix
- bug fixesBecause
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section