Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix prepared fixes for both issues found in the latest run.
- ✅ Fixed: Entertainment category missing "Optimized" separator heading
- Added the missing "-- Optimized" separator to entertainment/_meta.tsx to match all other category files.
- ✅ Fixed: Unused
createCategoryMetafunction is now dead code- Deleted create-category-meta.ts file as it is no longer imported or used anywhere after the refactoring.
Or push these changes by commenting:
@cursor push 2b742f4a1b
Preview (2b742f4a1b)
diff --git a/app/en/resources/integrations/create-category-meta.ts b/app/en/resources/integrations/create-category-meta.ts
deleted file mode 100644
--- a/app/en/resources/integrations/create-category-meta.ts
+++ /dev/null
@@ -1,48 +1,0 @@
-import type { MetaRecord } from "nextra";
-
-type ToolkitType =
- | "arcade"
- | "arcade_starter"
- | "community"
- | "verified"
- | "auth";
-
-export type CategoryEntry = {
- slug: string;
- title: string;
- href: string;
- type: ToolkitType;
-};
-
-/**
- * Builds a Nextra MetaRecord for an integration category, automatically
- * inserting "Optimized" and "Starter" separator headings based on toolkit type.
- *
- * - "Optimized" group: any entry whose type is not "arcade_starter"
- * - "Starter" group: entries with type "arcade_starter"
- *
- * A separator is only emitted when its group is non-empty, so categories
- * with a single type do not show an unnecessary heading.
- */
-export function createCategoryMeta(entries: CategoryEntry[]): MetaRecord {
- const optimized = entries.filter((e) => e.type !== "arcade_starter");
- const starter = entries.filter((e) => e.type === "arcade_starter");
-
- const result: MetaRecord = {};
-
- if (optimized.length > 0) {
- result["-- Optimized"] = { type: "separator", title: "Optimized" };
- for (const entry of optimized) {
- result[entry.slug] = { title: entry.title, href: entry.href };
- }
- }
-
- if (starter.length > 0) {
- result["-- Starter"] = { type: "separator", title: "Starter" };
- for (const entry of starter) {
- result[entry.slug] = { title: entry.title, href: entry.href };
- }
- }
-
- return result;
-}
\ No newline at end of file
diff --git a/app/en/resources/integrations/entertainment/_meta.tsx b/app/en/resources/integrations/entertainment/_meta.tsx
--- a/app/en/resources/integrations/entertainment/_meta.tsx
+++ b/app/en/resources/integrations/entertainment/_meta.tsx
@@ -1,6 +1,10 @@
import type { MetaRecord } from "nextra";
const meta: MetaRecord = {
+ "-- Optimized": {
+ type: "separator",
+ title: "Optimized",
+ },
imgflip: {
title: "Imgflip",
href: "/en/resources/integrations/entertainment/imgflip",| type: "arcade", | ||
| }, | ||
| ]); | ||
| }; |
There was a problem hiding this comment.
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.
| @@ -1,16 +1,14 @@ | |||
| import { createCategoryMeta } from "../create-category-meta"; | |||
| import type { MetaRecord } from "nextra"; | |||
There was a problem hiding this comment.
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.



This PR was generated after a Porter deploy succeeded.
Note
Medium Risk
Primarily documentation metadata changes, but it removes several toolkits/entries and rewires category
_meta.tsxgeneration, which could change navigation ordering/visibility or leave orphaned links if pages still exist.Overview
Reworks integration category navigation metadata by replacing
createCategoryMeta(...)usage with explicitMetaRecordobjects and adding manualOptimized/Starterseparators across most integration categories.Updates generated toolkit docs data by removing
CodeSandboxandFigmatoolkit JSON outputs and pruning multiple toolkit entries (e.g.,MailchimpMarketingApi,Math,Pagerduty,Pylon,Search,Web,UpclickApi) fromtoolkit-docs-generator/data/toolkits/index.json.Also updates
next-env.d.tsto import route types from./.next/types/routes.d.tsinstead of thedevpath.Written by Cursor Bugbot for commit f2d2976. This will update automatically on new commits. Configure here.