Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions app/en/resources/integrations/customer-support/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,38 @@
import { createCategoryMeta } from "../create-category-meta";
import type { MetaRecord } from "nextra";

export default createCategoryMeta([
{
slug: "zendesk",
const meta: MetaRecord = {
"-- Optimized": {
type: "separator",
title: "Optimized",
},
zendesk: {
title: "Zendesk",
href: "/en/resources/integrations/customer-support/zendesk",
type: "arcade",
},
{
slug: "customerio-api",
"-- Starter": {
type: "separator",
title: "Starter",
},
"customerio-api": {
title: "Customer.io API",
href: "/en/resources/integrations/customer-support/customerio-api",
type: "arcade_starter",
},
{
slug: "customerio-pipelines-api",
"customerio-pipelines-api": {
title: "Customer.io Pipelines API",
href: "/en/resources/integrations/customer-support/customerio-pipelines-api",
type: "arcade_starter",
},
{
slug: "customerio-track-api",
"customerio-track-api": {
title: "Customer.io Track API",
href: "/en/resources/integrations/customer-support/customerio-track-api",
type: "arcade_starter",
},
{
slug: "freshservice-api",
"freshservice-api": {
title: "Freshservice API",
href: "/en/resources/integrations/customer-support/freshservice-api",
type: "arcade_starter",
},
{
slug: "intercom-api",
"intercom-api": {
title: "Intercom API",
href: "/en/resources/integrations/customer-support/intercom-api",
type: "arcade_starter",
},
]);
};

export default meta;
36 changes: 18 additions & 18 deletions app/en/resources/integrations/databases/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
import { createCategoryMeta } from "../create-category-meta";
import type { MetaRecord } from "nextra";

export default createCategoryMeta([
{
slug: "clickhouse",
const meta: MetaRecord = {
"-- Optimized": {
type: "separator",
title: "Optimized",
},
clickhouse: {
title: "Clickhouse",
href: "/en/resources/integrations/databases/clickhouse",
type: "community",
},
{
slug: "mongodb",
mongodb: {
title: "MongoDB",
href: "/en/resources/integrations/databases/mongodb",
type: "community",
},
{
slug: "postgres",
postgres: {
title: "Postgres",
href: "/en/resources/integrations/databases/postgres",
type: "community",
},
{
slug: "weaviate-api",
"-- Starter": {
type: "separator",
title: "Starter",
},
"weaviate-api": {
title: "Weaviate API",
href: "/en/resources/integrations/databases/weaviate-api",
type: "arcade_starter",
},
{
slug: "yugabytedb",
yugabytedb: {
title: "YugabyteDB",
href: "/en/resources/integrations/databases/yugabytedb",
type: "arcade_starter",
},
]);
};

export default meta;
104 changes: 24 additions & 80 deletions app/en/resources/integrations/development/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,118 +1,62 @@
import { createCategoryMeta } from "../create-category-meta";
import type { MetaRecord } from "nextra";

export default createCategoryMeta([
{
slug: "brightdata",
const meta: MetaRecord = {
"-- Optimized": {
type: "separator",
title: "Optimized",
},
brightdata: {
title: "Bright Data",
href: "/en/resources/integrations/development/brightdata",
type: "community",
},
{
slug: "daytona",
daytona: {
title: "Daytona",
href: "/en/resources/integrations/development/daytona",
type: "arcade",
},
{
slug: "e2b",
e2b: {
title: "E2B",
href: "/en/resources/integrations/development/e2b",
type: "arcade",
},
{
slug: "figma",
title: "Figma",
href: "/en/resources/integrations/development/figma",
type: "arcade",
},
{
slug: "firecrawl",
firecrawl: {
title: "Firecrawl",
href: "/en/resources/integrations/development/firecrawl",
type: "arcade",
},
{
slug: "github",
github: {
title: "GitHub",
href: "/en/resources/integrations/development/github",
type: "arcade",
},
{
slug: "math",
title: "Math",
href: "/en/resources/integrations/development/math",
type: "arcade",
},
{
slug: "pagerduty",
title: "Pagerduty",
href: "/en/resources/integrations/development/pagerduty",
type: "arcade",
},
{
slug: "pylon",
title: "Pylon",
href: "/en/resources/integrations/development/pylon",
type: "arcade",
"-- Starter": {
type: "separator",
title: "Starter",
},
{
slug: "search",
title: "Search",
href: "/en/resources/integrations/development/search",
type: "arcade",
},
{
slug: "web",
title: "Web",
href: "/en/resources/integrations/development/web",
type: "arcade",
},
{
slug: "arcade-engine-api",
"arcade-engine-api": {
title: "Arcade Engine API",
href: "/en/resources/integrations/development/arcade-engine-api",
type: "arcade_starter",
},
{
slug: "cursor-agents-api",
"cursor-agents-api": {
title: "Cursor Agents API",
href: "/en/resources/integrations/development/cursor-agents-api",
type: "arcade_starter",
},
{
slug: "datadog-api",
"datadog-api": {
title: "Datadog API",
href: "/en/resources/integrations/development/datadog-api",
type: "arcade_starter",
},
{
slug: "github-api",
"github-api": {
title: "GitHub API",
href: "/en/resources/integrations/development/github-api",
type: "arcade_starter",
},
{
slug: "pagerduty-api",
"pagerduty-api": {
title: "PagerDuty API",
href: "/en/resources/integrations/development/pagerduty-api",
type: "arcade_starter",
},
{
slug: "posthog-api",
"posthog-api": {
title: "PostHog API",
href: "/en/resources/integrations/development/posthog-api",
type: "arcade_starter",
},
{
slug: "pylonapi",
title: "PylonApi",
href: "/en/resources/integrations/development/pylonapi",
type: "arcade_starter",
},
{
slug: "vercel-api",
"vercel-api": {
title: "Vercel API",
href: "/en/resources/integrations/development/vercel-api",
type: "arcade_starter",
},
]);
};

export default meta;
16 changes: 7 additions & 9 deletions app/en/resources/integrations/entertainment/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { createCategoryMeta } from "../create-category-meta";
import type { MetaRecord } from "nextra";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused createCategoryMeta function is now dead code

Low Severity

All _meta.tsx files that previously imported from create-category-meta.ts were refactored to use plain MetaRecord objects, but the create-category-meta.ts file itself was not removed. The exported createCategoryMeta function and CategoryEntry type are now dead code with zero consumers in the codebase.

Additional Locations (1)

Fix in Cursor Fix in Web


export default createCategoryMeta([
{
slug: "imgflip",
const meta: MetaRecord = {
imgflip: {
title: "Imgflip",
href: "/en/resources/integrations/entertainment/imgflip",
type: "arcade",
},
{
slug: "spotify",
spotify: {
title: "Spotify",
href: "/en/resources/integrations/entertainment/spotify",
type: "arcade",
},
]);
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entertainment category missing "Optimized" separator heading

Medium Severity

The entertainment/_meta.tsx file is missing the "-- Optimized" separator that every other category _meta.tsx includes. Both imgflip and spotify are of type "arcade" (Optimized), and the old createCategoryMeta function would have generated this separator. All other refactored categories (customer-support, databases, development, payments, productivity, sales, search, social) consistently include the "-- Optimized" separator, making entertainment the only inconsistent one.

Fix in Cursor Fix in Web


export default meta;
28 changes: 16 additions & 12 deletions app/en/resources/integrations/payments/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import { createCategoryMeta } from "../create-category-meta";
import type { MetaRecord } from "nextra";

export default createCategoryMeta([
{
slug: "stripe",
const meta: MetaRecord = {
"-- Optimized": {
type: "separator",
title: "Optimized",
},
stripe: {
title: "Stripe",
href: "/en/resources/integrations/payments/stripe",
type: "arcade",
},
{
slug: "stripe_api",
"-- Starter": {
type: "separator",
title: "Starter",
},
stripe_api: {
title: "Stripe API",
href: "/en/resources/integrations/payments/stripe_api",
type: "arcade_starter",
},
{
slug: "zoho-books-api",
"zoho-books-api": {
title: "Zoho Books API",
href: "/en/resources/integrations/payments/zoho-books-api",
type: "arcade_starter",
},
]);
};

export default meta;
Loading
Loading