Sanity Studio v5.17.0: New null/undefined sorting control, additional fixes, and improvements

This release adds control over where null values appear in sorted results and fixes issues with tag input display, file asset drag-and-drop menus, and datetime input number entry.

Add ability to control undefined/null sorting

Sort orderings now supports a nulls option to control where null/undefined values appear in results.

Defaults are unchanged and still:

desc -> nulls first

asc -> nulls last

defineType({
name: 'book',
type: 'document',
orderings: [
{
title: 'Publication year',
name: 'publicationYear',
by: [
{
field: 'publicationYear',
direction: 'desc',
nulls: 'last'
}
],
},
],
// ...
})

Note that overriding the default may have performance implications and negatively impact loading times for document types with lots of documents.

🐛 Notable bugfixes and improvements

Makes tags inputs wider and fixes a Firefox crop issue.

Fixes a bug where file asset sources that didn’t have upload capabilities were listed in the drag-to-drop asset source target menu.

Fixes an issue where writing in the hour input in the date time input would require double pressing of numbers to get double digit numbers (1 - 1 - 2 to get 12, for example).

Divergence management (beta): this release includes the beta version of divergence management, which shows editors where changes have occurred outside a document version or draft since it was created. The purpose of this tool is to help prevent editors accidentally publishing outdated versions. Divergence management (beta) can be switched on by setting the workspace advancedVersionControl.enabled configuration to true. More details and documentation will be published as this tool matures.