docbrown/app/javascript/article-form/components
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
..
__stories__ Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
__tests__ Create Preview Loading screen (#17914) 2022-07-07 19:21:50 +05:30
Help Allow ModRole & Admin to Suspend & Unsuspend User (#17946) 2022-06-27 12:45:35 -04:00
AccessibilitySuggestions.jsx Advise users about potential accessibility failings in their posts - RFC #58 (#13745) 2021-06-03 10:27:12 +01:00
ArticleCoverImage.jsx Add tooltip to cover image button describing optimal image ratio (#17779) 2022-06-02 17:44:34 -04:00
ClipboardButton.jsx ✂️ Remove clipboard packages no longer needed ✂️ (#16683) 2022-02-24 16:47:22 +00:00
Close.jsx Implementing new buttons (#15843) 2022-01-14 10:28:31 +01:00
dragAndDropHelpers.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
EditorActions.jsx Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
EditorBody.jsx Add markdown toolbar to V2 editor (#15347) 2021-11-29 07:50:17 +00:00
ErrorList.jsx Check validity of embed URLs (#16704) 2022-03-10 13:18:59 -05:00
Form.jsx Fix PropTypes Error Create New Post Page (#14969) 2021-10-11 09:48:24 -04:00
Header.jsx Create Preview Loading screen (#17914) 2022-07-07 19:21:50 +05:30
ImageUploader.jsx Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
index.js Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00
LoadingPreview.jsx Create Preview Loading screen (#17914) 2022-07-07 19:21:50 +05:30
Meta.jsx Fix PropTypes Error Create New Post Page (#14969) 2021-10-11 09:48:24 -04:00
Options.jsx Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
PageTitle.jsx Create Preview Loading screen (#17914) 2022-07-07 19:21:50 +05:30
pasteImageHelpers.js Add paste image (#10212) 2021-02-04 10:58:56 -05:00
Preview.jsx Create Preview Loading screen (#17914) 2022-07-07 19:21:50 +05:30
Tabs.jsx Log prop-types warnings to console in development (#14635) 2021-09-01 09:27:58 +01:00
TagsField.jsx Add prop for user-defined selections in MultiSelectAutocomplete (#17402) 2022-04-29 09:39:25 +01:00
Title.jsx Rename WRITE A POST to CREATE POST (#13855) 2021-05-25 10:30:30 -07:00
Toolbar.jsx pullToRefresh adjustments - fixing scrolling hijacking (#15644) 2021-12-02 17:00:02 +01:00