docbrown/app/views/articles
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
..
_actions.html.erb
_block.html.erb
_bottom_content.html.erb
_collection.html.erb
_comment_tree.html.erb
_comments_actions.html.erb
_conduct_and_abuse_actions.html.erb
_fitvids.html.erb
_full_comment_area.html.erb Revert "Added a way to sort comments on an article (#16686)" (#17093) 2022-04-04 08:36:34 -04:00
_liquid.html.erb
_reaction_button.html.erb
_sidebar.html.erb Fix duplicate IDs on homepage (#17092) 2022-04-14 10:48:55 +01:00
_sidebar_additional.html.erb Avoid layout funkiness when non-breaking characters are used (#16782) 2022-03-08 10:37:52 +00:00
_sidebar_campaign.html.erb
_sidebar_listings.html.erb Avoid layout funkiness when non-breaking characters are used (#16782) 2022-03-08 10:37:52 +00:00
_single_sponsor.html.erb
_single_story.html.erb make feed image consistent with cover image (#17512) 2022-05-19 13:40:00 -04:00
_sticky_nav.html.erb
_tag_identifier.html.erb
_v2_form.html.erb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
_video_player.html.erb
_widget_list_item.html.erb
delete_confirm.html.erb
discussion_lock_confirm.html.erb
discussion_unlock_confirm.html.erb
edit.html.erb ✂️ Remove clipboard packages no longer needed ✂️ (#16683) 2022-02-24 16:47:22 +00:00
feed.rss.builder Replace #to_s(:format) with #to_fs (#17219) 2022-04-11 12:59:54 -04:00
feed.xml
index.html.erb Refactor OnboardingsController (#17329) 2022-04-27 16:17:02 -04:00
index.json.jbuilder
manage.html.erb
new.html.erb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
show.html.erb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
show.json.jbuilder
stats.html.erb