Repository: supabase/supabase
File: apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts (TypeScript)

Code before:
    authenticationShowOverview,
    authenticationShowSecurityNotifications,
  } = flags ?? {}

  return [
    {
      title: 'Manage',
      items: [
        ...(authenticationShowOverview
          ? [{ name: 'Overview', key: 'overview', url: `/project/${ref}/auth/overview`, items: [] }]
          : []),
        { name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] },
      ],
    },
    ...(authenticationShowSecurityNotifications
      ? [
          {
            title: 'Notifications',
            items: [
              ...(authenticationEmails
                ? [
                    {
                      name: 'Email',
                      key: 'email',
                      pages: ['templates', 'smtp'],
                      url: `/project/${ref}/auth/templates`,
                      items: [],
                    },
                  ]
                : []),
            ],
          },
        ]
      : []),
    {
      title: 'Configuration',
      items: [
        {
          name: 'Policies',
          key: 'policies',
          url: `/project/${ref}/auth/policies`,
          items: [],
        },
        ...(IS_PLATFORM
          ? [
              ...(authenticationSignInProviders
                ? [
                    {
                      name: 'Sign In / Providers',
                      key: 'sign-in-up',
                      pages: ['providers', 'third-party'],

Review comment (suggestion):
Singular name (_Email_ not _Emails_) because you’re configuring the notification type “email”. This will make more sense when other (singular) options are added: “Push”, ”SMS”.

Goes to existing `url` for now.

Code after:
    authenticationShowOverview,
    authenticationShowSecurityNotifications,
  } = flags ?? {}

  return [
    {
      title: 'Manage',
      items: [
        ...(authenticationShowOverview
          ? [{ name: 'Overview', key: 'overview', url: `/project/${ref}/auth/overview`, items: [] }]
          : []),
        { name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] },
      ],
    },
    ...(authenticationEmails && authenticationShowSecurityNotifications && IS_PLATFORM
      ? [
          {
            title: 'Notifications',
            items: [
              ...(authenticationEmails
                ? [
                    {
                      name: 'Email',
                      key: 'email',
                      pages: ['templates', 'smtp'],
                      url: `/project/${ref}/auth/templates`,
                      items: [],
                    },
                  ]
                : []),
            ],
          },
        ]
      : []),
    {
      title: 'Configuration',
      items: [
        {
          name: 'Policies',
          key: 'policies',
          url: `/project/${ref}/auth/policies`,
          items: [],
        },
        ...(IS_PLATFORM
          ? [
              ...(authenticationSignInProviders
                ? [
                    {
                      name: 'Sign In / Providers',
                      key: 'sign-in-up',
                      pages: ['providers', 'third-party'],