Apostrophe 3.8.0: Do more with Pieces! #3547
agilbert
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
Today we are very excited to share our latest Apostrophe release with you. There are few nice features included in this one, so I'll break them down below. Please check it out!
Batch operations
First off, Apostrophe 3.8.0 now includes support for batch operations on pieces. With this new feature, you can now select many documents at once to perform batch operations on. Included with this release is a simple batch archive/restore function, but A3 makes it easier than ever to configure your own operations and insert them into the manager menus of your pieces.
batch.mov
We've tried to make it super easy for developers to set up their own custom batch operations, so please check out the documentation and let us know how it goes in Discord.
Import / export
In addition to the new core support for batch operations, we are also sharing today our beta releases for the new importer and exporter modules.
These were oft-used extensions from Apostrophe 2 that have received some improvements as they made their way into A3. With the export extension, for example, we were able to hook this right into our new batch operations API so you can select a sub-set of your documents for exporting.
Alternatively, with the import extension enabled, it's now just a few clicks to create a collection of documents from a CSV file.
Importing and exporting can both be installed and configured to work on specific modules in your project. You can learn more about installing and setting these up at the importer readme and the exporter readme.
We're looking forward to your feedback on these new features for Apostrophe. Please find us in Discord or open a ticket right here in GitHub if you have any issues or recommendations to share, and don't forget to check out our product roadmap to see what else is in the works.
Thanks, and as always, read on for the full release notes below 🕺
Apostrophe 3.8.0
Adds
batchOperationson a piece-type will now become buttons in the manager batch operations "more menu" (styled as a kebab icon). Batch operations should include a label,messagesobject, andmodalOptionsfor the confirmation modal.batchOperationscan be grouped into a single button with a menu using thegroupcascade subproperty.batchOperationscan be conditional with anifconditional object. This allows developers to pass a single value or an array of values.utilityOperationsconfigured as a top-level cascade property. These operations are made available in the piece manager as new buttons.eventproperty, which the AposNotification component will emit on mount. Theeventproperty should be set to an object withname(the event name) and optionallydata(data included with the event emission).modules/mymodulename/public/images/bg.pngcan always be referenced in your.scssand.cssfiles as/modules/mymodulename/images/bg.png, even if assets are actually being deployed to S3, CDNs, etc. Note thatpublicandui/publicmodule subdirectories have separate functions. See the documentation for more information.dimensionAttrsoption to image widget, which sets width & height attributes to optimize for Cumulative Layout Shift. Thank you to Qiao Lin for the contribution.Fixes
apos.util.attachmentUrlmethod now works correctly. To facilitate that,apos.uploadsUrlis now populated browser-side at all times as the frontend logic originally expected. For backwards compatibilityapos.attachment.uploadsUrlis still populated when logged in.Changes
@apostrophecms/jobmodule. These options were not yet in use for A3.@apostrophecms/jobmodule that were not yet in use. This was not done lightly, but specifically because of the minimal likelihood that they were in use in project code given the lack of UI support.cancelroute was removed and will likely be replaced at a later date.runwas renamedrunBatchas its purpose is specifically to run processes on a "batch selected" array of pieces or pages.runNonBatchwas renamed torunas it is the more generic job-running method. It is likely thatrunBatchwill eventually be refactored to use this method.goodandbadmethods are renamedsuccessandfailure, respectively. The expected methods used in therunmethod were similarly renamed. They still increment job document properties calledgoodandbad.batchSimpleRoutemethods in the page and piece-type modules to avoid usage before they are fully implemented.dimensionAttrsoption to image widget, which sets width & height attributes to optimize for Cumulative Layout Shift.npm auditfrom our automated tests because of a sub-dependency of uploadfs that doesn't actually cause a security vulnerability for apostrophe.Apostrophe 3.x extensions
open-graph 1.2.0
sk) locale strings for static text. Thanks to @Miselrkba for the contribution.piece-type-exporter 1.0.0-beta
piece-type-importer 1.0.0-beta
piece-type-exportermodule. It uses the A3 job system.Apostrophe 2.x extensions
apostrophe-workflow 2.39.6
All reactions