docbrown/app/javascript
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
..
.storybook remove storybook addon-links (#17935) 2022-06-16 15:03:47 -04:00
__mocks__ Bump focus-trap from 6.7.3 to 6.8.1 (#17425) 2022-04-27 08:09:21 -06:00
actionsPanel Used PreactModal for unpublish-post feature (#18019) 2022-07-06 16:29:08 +05:30
admin API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
analytics Show friendly error message on API fetch failure on stats (#17570) 2022-05-18 16:12:42 +02:00
article-form Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
articles refactor(save-btn): migrates class comp to pure comp (#17699) 2022-05-23 16:15:27 +01:00
colorPickers Use the Preact ColorPicker in creator onboarding (#16731) 2022-03-03 08:22:10 +00:00
CommentSubscription Track clicks and views in comments on article page (#17886) 2022-06-21 09:19:55 -05:00
common-prop-types ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
contentDisplayPolicy Accessibility improvements for hide comments modal (#15462) 2021-11-24 09:50:27 +03:00
crayons Validate date format and min/max in date range picker component (#18006) 2022-06-30 10:08:06 +01:00
githubRepos [github-repos] Refactor class components to be functional component (#17700) 2022-05-23 16:12:13 +01:00
hooks Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
leftSidebar Refactoring cached_followed_tags (#16175) 2022-01-24 19:53:48 -05:00
liquidTags Rework user subscription liquid tag to avoid errors (#16460) 2022-02-15 09:14:03 +00:00
listings [listing-dashboard] Refactor class components to be functional component (#17764) 2022-06-07 11:50:47 +01:00
mobile Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
modCenter [single-article] Refactor class components to be functional component (#17681) 2022-05-26 12:59:06 +01:00
onboarding Enable clickOutsideDeactivates on Onboarding FocusTrap (#17885) 2022-06-13 08:23:46 -06:00
organization fix some prop type errors on the home page (#15314) 2021-11-10 13:47:55 +00:00
packs Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
podcasts Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
previewCards Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
profileDropdown Removing a JS message about connect (#16982) 2022-03-23 12:30:59 -04:00
profilePreviewCards Generator updates (#16339) 2022-01-28 12:20:30 +01:00
readingList Storybook updates (#15848) 2022-01-14 11:06:23 +01:00
responseTemplates Trusted users can view & use moderator response templates (#17867) 2022-06-16 14:05:49 +02:00
runtimeBanner Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
Search Storybook updates (#15848) 2022-01-14 11:06:23 +01:00
searchableItemList Reading list: fix broken pagination (#14031) 2021-06-22 08:24:23 +02:00
shared/components Allow ModRole & Admin to Suspend & Unsuspend User (#17946) 2022-06-27 12:45:35 -04:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Migrate faker dependency to supported upstream (#16037) 2022-01-10 15:00:48 -06:00
topNavigation Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
utilities Allow ModRole & Admin to Suspend & Unsuspend User (#17946) 2022-06-27 12:45:35 -04:00
.eslintrc.js ✂️✂️ Removed the pusher-js dependency ✂️✂️ (#16597) 2022-02-15 11:50:54 -05:00
netlify.toml Update storybook node version (#16106) 2022-01-14 08:00:39 -05:00
routes.js.erb [15-minute fix] Add js-routes gem (#15133) 2021-11-01 10:08:15 +07:00