Skip to content

✨ 29th July 2021

Compare
Choose a tag to compare
@bladey bladey released this 30 Jul 04:46

What's New

Custom navigation, pages and logo in this big Admin UI themed release! 🎛️

"@keystone-ui/tooltip": "4.0.1",
"@keystone-next/admin-ui-utils": "5.0.5",
"@keystone-next/auth": "30.0.0",
"@keystone-next/cloudinary": "6.0.5",
"@keystone-next/fields": "13.0.0",
"@keystone-next/fields-document": "7.0.3",
"@keystone-next/keystone": "23.0.2",
"@keystone-next/testing": "1.1.0",
"@keystone-next/types": "23.0.0",
"@keystone-next/utils": "1.0.3",

Custom Admin UI Navigation 🚏

You can now create your own custom navigation component with custom routes to be rendered in the Admin UI.

Check out our detailed Custom Admin UI Navigation guide for all the details!

Custom navigation screenshot

Custom Admin UI Pages 📃

Take things a step further with custom pages. As the Admin UI is built on top of Next.js, it exposes the same /pages directory for adding custom pages.

ℹ️ In the near future you'll be able to directly embed pages within the Keystone Admin UI itself, stay tuned!

Read our new Custom Admin UI Pages guide for more details.

Custom page screenshot

Custom Admin UI Logo 🚩

Wait, theres more. You can also replace the default Admin UI logo with your own brand assets. ✨

Dive into our Custom Admin UI Logo guide to find out how.

Animated logo screenshot

Health Check 💙

We've added an optional /_healthcheck endpoint to Keystone's express server. You can use this endpoint to ensure your Keystone instance is up and running using website monitoring solutions.

Enable it by setting config.server.healthCheck: true, by default it will respond with { status: 'pass', timestamp: Date.now() }.

You can also specify a custom path and JSON data:

config({
  server: {
    healthCheck: {
      path: "/my-health-check",
      data: { status: "healthy" },
    },
  },
});

Or use a function for the data config to return real-time information:

config({
  server: {
    healthCheck: {
      path: "/my-health-check",
      data: () => ({
        status: "healthy",
        timestamp: Date.now(),
        uptime: process.uptime(),
      }),
    },
  },
});

Prisma Update ⬆️

Updated Prisma dependencies to 2.27.0, check out the Prisma releases page for more details.

Credits 💫

  • Fixed virtual field rendering of false & 0 values thanks to @ChuckJonas!

  • Added / to list.path on HomePage ListCard to better allow custom basePath thanks to @borisno2!

  • Changed symlink generation to use relative path instead of absolute which solves running project in docker when mapping volume, thanks to @gautamsi!

Enjoying Keystone?

Star this repo 🌟 ☝️ or connect to Keystone on Twitter and in Slack.


View verbose release notes

Releases

@keystone-next/auth@30.0.0

Major Changes

Patch Changes

@keystone-next/fields@13.0.0

Major Changes

  • #6105 e5f61ad50 Thanks @mitchellhamilton! - Removed unnecessary descriptions on GraphQL types.

  • #6165 e4e6cf9b5 Thanks @mitchellhamilton! - Added ui.searchFields option to lists to allow searching by multiple fields in the Admin UI (the only current usage of this is in the select used in relationship fields) and to replace the usage of the search GraphQL argument which will be removed soon and should be replaced by using contains filters directly.

Patch Changes

@keystone-next/keystone@23.0.0

Major Changes

  • #6153 7716315ea Thanks @mitchellhamilton! - Removed implicit chunking from the lists API so that the lists API is a direct translation of the GraphQL API

  • #6105 e5f61ad50 Thanks @mitchellhamilton! - Removed unnecessary descriptions on GraphQL types.

  • #6165 e4e6cf9b5 Thanks @mitchellhamilton! - Added ui.searchFields option to lists to allow searching by multiple fields in the Admin UI (the only current usage of this is in the select used in relationship fields) and to replace the usage of the search GraphQL argument which will be removed soon and should be replaced by using contains filters directly.

Minor Changes

  • #6111 9e2deac5f Thanks @gwyneplaine! - Added the ability to customise the Navigation component in the Admin UI, and provided helper components to do so.

Patch Changes

@keystone-next/types@23.0.0

Major Changes

  • #6165 e4e6cf9b5 Thanks @mitchellhamilton! - Added ui.searchFields option to lists to allow searching by multiple fields in the Admin UI (the only current usage of this is in the select used in relationship fields) and to replace the usage of the search GraphQL argument which will be removed soon and should be replaced by using contains filters directly.

Minor Changes

  • #6111 9e2deac5f Thanks @gwyneplaine! - Add Admin UI specific types AuthenticatedItem, VisibleLists, CreateViewFieldModes and NavigationProps to exports.

Patch Changes

  • #6192 93f1e5d30 Thanks @JedWatson! - Added an optional /_healthcheck endpoint to Keystone's express server.

    You can enable it by setting config.server.healthCheck: true

    By default it will respond with { status: 'pass', timestamp: Date.now() }

    You can also specify a custom path and JSON data:

    config({
      server: {
        healthCheck: {
          path: '/my-health-check',
          data: { status: 'healthy' },
        },
      },
    });

    Or use a function for the data config to return real-time information:

    config({
      server: {
        healthCheck: {
          path: '/my-health-check',
          data: () => ({
            status: 'healthy',
            timestamp: Date.now(),
            uptime: process.uptime(),
          }),
        },
      },
    });
  • Updated dependencies [a11e54d69, e5f61ad50, e4e6cf9b5, 2ef6fe82c]:

    • @keystone-next/fields@13.0.0

@keystone-next/testing@1.1.0

Minor Changes

  • #6193 14cb7c5c4 Thanks @timleslie! - Added an app value to the TestArgs type to provide direct access to the Express application from test runners.

Patch Changes

@keystone-ui/tooltip@4.0.1

Patch Changes

@keystone-next/admin-ui-utils@5.0.5

Patch Changes

@keystone-next/cloudinary@6.0.5

Patch Changes

@keystone-next/fields-document@7.0.3

Patch Changes

@keystone-next/utils@1.0.3

Patch Changes

@keystone-next/example-custom-admin-ui-logo@1.0.0

Major Changes