docbrown/app/decorators
Anna Buianova ff76cdd3c5
Scheduling articles (#17939)
* Article query spec for scheduled articles

* Added scheduled article badge on the user dashboard

* Added published_at field to editor options

* Accept and validate published_at from editor

* Refactor published_at validation

* Allow 1-minute difference in published_at

* Notice on an unpublished article page

* Added specs for 'Click to edit' link on scheduled article preview page

* ContextNotification model

* Articles::Publish worker

* Added specs for articles publish worker

* Schedule publish articles worker

* Added tests to check for scheduled posts in feeds

* Don't allow managing scheduled articles

* Don't send notifications for scheduled articles

* Set published_at in Articles::Updater when publishing

* Published_at value in post options

* Pass timezone and set published_at accordingly

* Limit setting published_at to the future

* Readonly published_at for articles that were already published

* Chagning published_at format in editor v1 (start)

* Changed published_at format in frontmatter, specs

* Added specs for updating published_at from frontmatter

* Fixed accepting past published_at for articles published_from_feed

* Enabled published_at validation: don't allow updating published_at for already published articles

* Validate published_at on create

* Added a spec for updating published_at for exported articles

* Fixed specs related to creating articles with past published_at

* Fixed specs related to past published_at for articles

* Added a hack so that admins would be able to update published_at

* Switch button text schedule/publish when changin publishedAt

* Fixed saving published_at with timezone

* Added a feature flag for scheduling articles

* Default text in markdown editor depends on feature flag

* Enable article editor cache again

* Fixed the default value in the markdown editor

* Fix sitemaps spec

* Removed tooltip

* Fixed articles update specs

* Added missing locales

* Fixed article create specs

* Fixed spec

* Removed commented code

* Returned enabling extensions in the schema

* Returned accidentally deleted constraint

* Make articles query spec more stable

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>

* Removed commented code

* Removed unused code

* A clearer policy

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>

* Use StringInquirer for article current state

* Added a note and todo to articles factory past trait

* Remove duplicated PropType

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* Refactor query in the Articles::PublishWorker

Co-authored-by: Mac Siri <krairit.siri@gmail.com>

* Refactor articleForm.jsx

Co-authored-by: Mac Siri <krairit.siri@gmail.com>

* Removed specs that are no longer relevant

* Removed useless onKeyUp on a hidden input

* Refactored articleForm

* Hide scheduling from post options when published_at is readonly

* Run sends notifications worker every 5 minutes instead of every minute

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-07-07 17:32:49 +03:00
..
application_decorator.rb Adding a convenience/optimiization method. (#16079) 2022-01-12 16:28:13 -05:00
article_decorator.rb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
campaign_decorator.rb [Small win] Add display name to campaign settings (#16653) 2022-02-22 10:01:52 -05:00
comment_decorator.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
listing_decorator.rb Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
mention_decorator.rb Expand @-mention functionality to posts (#13367) 2021-05-12 07:33:33 -07:00
notification_decorator.rb Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
organization_decorator.rb Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
podcast_episode_decorator.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
profile_decorator.rb Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
sponsorship_decorator.rb Switch decorators to Rails builtin decorations - take 2 (#6125) [deploy] 2020-02-19 15:30:53 -05:00
user_decorator.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00