Skip to content

Commit

Permalink
refactor: Update Notion nodes to remove beta from name (#4838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom authored Jan 20, 2023
1 parent b69f480 commit 4543750
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 23 deletions.
13 changes: 0 additions & 13 deletions packages/nodes-base/nodes/Notion/DatabaseDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,6 @@ export const databaseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* database:getAll */
/* -------------------------------------------------------------------------- */
{
displayName:
'In Notion, make sure you <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api#add-connections-to-pages" target="_blank">share your database with your integration</a> . Otherwise it won\'t be accessible, or listed here.',
name: 'notionNotice',
type: 'notice',
default: '',
displayOptions: {
show: {
resource: ['database'],
operation: ['getAll'],
},
},
},
{
displayName: 'Return All',
name: 'returnAll',
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Notion/Notion.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { NotionV2 } from './v2/NotionV2.node';
export class Notion extends VersionedNodeType {
constructor() {
const baseDescription: INodeTypeBaseDescription = {
displayName: 'Notion (Beta)',
displayName: 'Notion',
name: 'notion',
icon: 'file:notion.svg',
group: ['output'],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Notion API (Beta)',
description: 'Consume Notion API',
defaultVersion: 2,
};

Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Notion/NotionTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getDatabases } from './SearchFunctions';
export class NotionTrigger implements INodeType {
description: INodeTypeDescription = {
// eslint-disable-next-line n8n-nodes-base/node-class-description-display-name-unsuffixed-trigger-node
displayName: 'Notion Trigger (Beta)',
displayName: 'Notion Trigger',
name: 'notionTrigger',
icon: 'file:notion.svg',
group: ['trigger'],
Expand Down Expand Up @@ -49,7 +49,7 @@ export class NotionTrigger implements INodeType {
},
{
displayName:
'In Notion, make sure you <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api#add-connections-to-pages" target="_blank">share your database with your integration</a> . Otherwise it won\'t be accessible, or listed here.',
'In Notion, make sure to <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api" target="_blank">add your connection</a> to the pages you want to access.',
name: 'notionNotice',
type: 'notice',
default: '',
Expand Down
7 changes: 4 additions & 3 deletions packages/nodes-base/nodes/Notion/v1/VersionDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import { databasePageFields, databasePageOperations } from '../DatabasePageDescr
import { INodeTypeDescription } from 'n8n-workflow';

export const versionDescription: INodeTypeDescription = {
displayName: 'Notion (Beta)',
displayName: 'Notion',
name: 'notion',
icon: 'file:notion.svg',
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Notion API (Beta)',
description: 'Consume Notion API',
defaults: {
name: 'Notion (Beta)',
},
Expand Down Expand Up @@ -67,7 +67,8 @@ export const versionDescription: INodeTypeDescription = {
// description: 'The resource to operate on.',
// },
{
displayName: "To access content, make sure it's shared with your integration in Notion",
displayName:
'In Notion, make sure to <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api" target="_blank">add your connection</a> to the pages you want to access.',
name: 'notionNotice',
type: 'notice',
default: '',
Expand Down
7 changes: 4 additions & 3 deletions packages/nodes-base/nodes/Notion/v2/VersionDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import { databasePageFields, databasePageOperations } from '../DatabasePageDescr
import { INodeTypeDescription } from 'n8n-workflow';

export const versionDescription: INodeTypeDescription = {
displayName: 'Notion (Beta)',
displayName: 'Notion',
name: 'notion',
icon: 'file:notion.svg',
group: ['output'],
version: 2,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Notion API (Beta)',
description: 'Consume Notion API',
defaults: {
name: 'Notion (Beta)',
},
Expand Down Expand Up @@ -67,7 +67,8 @@ export const versionDescription: INodeTypeDescription = {
// description: 'The resource to operate on.',
// },
{
displayName: "To access content, make sure it's shared with your integration in Notion",
displayName:
'In Notion, make sure to <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api" target="_blank">add your connection</a> to the pages you want to access.',
name: 'notionNotice',
type: 'notice',
default: '',
Expand Down

0 comments on commit 4543750

Please sign in to comment.