Asset Browsers in the Site Navigation#
This release added Asset Browsers, which provide a configurable browsing interface for folders of images, documents, or other files under an Assets heading in your Site Navigation. It also allowed you to link Asset Browsers to inputs, Editable Regions, and the Content Editor as places to browse and upload files, and updated the CloudCannon API.
This release also addressed several issues, including those affecting saving and discarding changes, rich text editors, and builds.
Features & Improvements
- Added Asset Browsers, allowing you to give Organization Members and Guests a folder of files to browse, upload to, and manage, without providing access to the File Browser. For more information, please read our documentation on configuring an Asset Browser and what the Asset Browser is.
- Each entry under the new
assets_configkey in the root of your CloudCannon Configuration File adds a link under the Assets heading in the Site Navigation, with its own name, icon, description, and documentation link. - The
sourceandpathkeys set which folder an Asset Browser displays, from your Site files or from a DAM by its Reference Key. - The
disable_upload_filekey turns off uploading in an Asset Browser, anddisable_file_actionsturns off renaming, moving, and deleting. Theoptionskey sets upload options, such as accepted file types, maximum file size, and image resizing. - Every Organization Member who can open your Site, and every Guest using Guest Access, sees the Assets heading. In an Asset Browser for Site files, opening a file needs the
site:file:readpermission, and uploading, renaming, moving, and deleting files needsite:file:write. A Custom Permission Group can limit these permissions to specific file globs.
- Each entry under the new
assets_config:
product_images:
path: images/products
name: Product Images
icon: photo_library
description: Photos for product pages. Use JPG or PNG files.
disable_file_actions: true
options:
accepts_mime_types:
- image/jpeg
- image/png
max_file_size: 2048{
"assets_config": {
"product_images": {
"path": "images/products",
"name": "Product Images",
"icon": "photo_library",
"description": "Photos for product pages. Use JPG or PNG files.",
"disable_file_actions": true,
"options": {
"accepts_mime_types": [
"image/jpeg",
"image/png"
],
"max_file_size": 2048
}
}
}
}- Added support for naming an Asset Browser in
allowed_sources, allowing File, URL, and Rich Text Inputs, the Content Editor, and image Editable Regions to upload to and select files from an Asset Browser's folder, using its upload options. Existingallowed_sourcesvalues are unchanged. For more information, please read our documentation on choosing the asset sources for inputs and Editable Regions.- When an input has more than one place to upload to, the Upload files modal lists each Asset Browser by its name and icon.
- Added the
disable_file_actions_in_file_browseroption to File and URL Inputs, allowing you to stop renaming, moving, and deleting files in the file browser that opens when you select an existing file for that input. - Improved performance for the Discard unsaved changes modal and the commit message field in the Save changes modal by converting these areas to Lit.
- Updated the CloudCannon API, which is in Public Beta. For more information, please read our API changelog.
Fixes
- Fixed an issue where members of the Developers Permission Group, or of a Custom Permission Group with the
org:settings:details:writepermission but notorg:billing:write, could change your Organization's billing details through the CloudCannon API. - Fixed an issue where the commit message in the Save changes modal did not update after you discarded a change.
- Fixed an issue where the Save changes modal stayed open with nothing left to save after you discarded all your changes.
- Fixed an issue where selecting one file in the Save changes modal and clicking Discard selected showed the heading Discard unsaved changes?, rather than naming the file you selected.
- Fixed an issue where dragging from inside a modal or dropdown and releasing outside it, such as when selecting text, closed the modal or dropdown.
- Fixed an issue where you could not edit a snippet with a tabbed Object Input, because it showed a configuration error instead of its inputs.
- Fixed an issue where pasting content with a code block into a rich text editor configured to allow code blocks but not snippets caused an error.
- Fixed an issue where changes in a rich text editor did not save when the content held a damaged placeholder. Rich text editors show HTML they do not allow as a placeholder that keeps the original HTML.
- Fixed an issue where opening a TOML file with a syntax error showed Failed to load and the parser's raw output, rather than the reason and the line and column of the error.
- Fixed an issue where a Jekyll build with the Cache separate bundle install directory option turned on could stop partway when its cached gems were damaged. The build now clears the cache and continues.
- Fixed an issue where an invalid regular expression in
.cloudcannon/routing.jsoncould publish a Site that showed an error on every page. The build now fails, and the build log says which key is invalid and why. - Fixed an issue where copying a Site showed an error, instead of asking you to reconnect your Git Provider, when the Git Provider rejected CloudCannon's access.
- Fixed an issue where signing up with a Git Provider did not ask you to log in when your email address matched an existing CloudCannon account with different capitalization.
- Updated dependencies to patch security vulnerabilities.
Heading shortcuts in rich text editors#
This release added keyboard shortcuts for headings and normal text in rich text editors, improved the billing and usage emails CloudCannon sends, improved app performance, and updated the CloudCannon API.
It also addressed several issues, including those affecting rich text editors, inviting Organization Members, and reconnecting a Git Provider.
Features & Improvements
- Added keyboard shortcuts for headings and normal text to rich text editors, allowing you to change the format of a paragraph without opening the Format dropdown in the toolbar. For more information, please read our documentation on configuring your rich text editors.
- On macOS, Option+Cmd+1 to Option+Cmd+6 change the paragraph to a heading of that level, and Option+Cmd+0 changes it to normal text.
- On Windows and Linux, the same shortcuts use Ctrl+Shift instead of Option+Cmd.
- Each shortcut only works when the editor's toolbar offers that format.
- Improved the billing and usage emails CloudCannon sends about your Organization, allowing you to see what has changed, what it means for your Sites, and what to do next.
- Emails about a Subscription Plan change show the previous and current Subscription Plan, the cost, and the date of the next invoice.
- Alerts about Hosting Bandwidth and Build Time say whether Overages are on, and what will happen to your Sites or builds when usage reaches 100%.
- Emails about a failed payment, a Free Trial that ended without a payment method, an unpaid invoice, or a canceled subscription explain what has stopped working, how to restore access, and when to contact support.
- Improved performance for the Flags page under Site Settings and the Review changes modal.
- Updated the CloudCannon API, which is in Public Beta. For more information, please read our API changelog.
Fixes
- Fixed an issue where members of the Developers Permission Group, or of a Custom Permission Group with the
group:member:writepermission, could add anyone, including themselves, to a Permission Group with permissions they do not hold, such as the Billing Permission Group. The same applied to moving a Site Sharing member into a Permission Group. - Fixed an issue where inviting someone to an Organization, or accepting an invite to one, failed after the Organization canceled its subscription.
- Fixed an issue where pressing Tab or Shift+Tab did not indent or unindent list items in a rich text editor that uses the default toolbar.
- Fixed an issue where pasting content into a rich text editor kept formatting the editor's toolbar does not offer, such as bold text in an editor configured with
bold: false. - Fixed an issue where Rich Text Inputs had no background color of their own, so they showed the color of the panel around them.
- Fixed an issue where closing a rich text editor that contained a table could cause an error.
- Fixed an issue where Git Provider screens for a Bitbucket Site showed an error, instead of asking you to reconnect, when Bitbucket rejected CloudCannon's access.
- Fixed an issue where comparing changes or creating a Pull Request for a Site on GitLab showed an unexplained error, rather than asking you to reconnect GitLab, when CloudCannon no longer had an access token for your GitLab account.
- Fixed an issue where a branch created on GitHub could take up to two minutes to appear in CloudCannon, such as in the Branch dropdown on the Syncing page, for some older Sites.
- Fixed an issue where copying a Site that had not finished its first sync showed a failed sync on the copy.
- Fixed an issue where the Card for a mounted Site on the Site Mountings page linked back to the same page instead of to the Site Dashboard of the mounted Site.
- Fixed an issue where the Cards in the Discard unsaved changes modal looked selected, even though you cannot select them.
- Fixed an issue where, in a narrow window, the text of a warning in a modal, such as the Discard unsaved changes modal, could spill out of the bottom of the warning box.
- Fixed an issue where a Card showed an empty space instead of its icon after its image was removed, or while a replacement image loaded.
- Fixed an issue where the App Updates modal could fail to show its content, and showed every update as unread, after your account details changed while CloudCannon was open.
- Fixed an issue where clicking an avatar in the Avatar list to see which files someone has open showed nothing if one of those files had no supported editor.
- Fixed an issue where the Activity tab on the Organization Home page could hide or misplace activity, or stop working until you reloaded the page, after it refreshed or you loaded more.
- Fixed an issue where, in newer versions of Chrome, an open calendar on a Date Input or Datetime Input did not stay beside the input when you scrolled.
- Updated dependencies to patch security vulnerabilities.
More reliable caching between builds#
This release made caching between builds more reliable, so every build of a Site can use the files in its Preserved Paths, whichever server runs the build.
Features & Improvements
- Improved caching between builds, allowing every build of a Site to reuse the files in its Preserved Paths, such as
node_modules/, whichever server runs the build. For more information, please read our documentation on configuring caching between builds.- Previously, a build that ran on a different server from the Site's previous build, or on a server that had restarted, started without these files and had to recreate them.
- The build log shows when CloudCannon restores your Preserved Paths before a build and when it saves them afterward.
- When a build is interrupted before it finishes, the next build of that Site starts without its Preserved Paths, rather than reusing files the interrupted build may have left incomplete.
Fixes
- Updated dependencies to patch security vulnerabilities.