Merged
Conversation
Creates a Node.js script that reads Servers/swagger.yaml and generates the docs/api-docs/src/config/endpoints.ts file automatically. This eliminates the need to manually maintain two sources of API documentation. Usage: cd Servers && npx ts-node scripts/generateEndpointsTs.ts Co-Authored-By: Claude Opus 4.6 <[email protected]>
Auto-generated using the new generateEndpointsTs.ts script. Expands from 187 manually-maintained endpoints to 553 endpoints across 59 groups, now fully in sync with swagger.yaml. New endpoint groups added: Agent discovery, AI advisor, AI detection, Approval workflows, Audit ledger, Change history, Compliance score, Datasets, Entity graph, FRIA, Intake forms, Invitations, LLM keys, Notes, Notifications, Plugins, Post-market monitoring, Quantitative risks, Risk benchmarks, Shadow AI, Super admin, and more. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Updates imports, navigation items, and section renderers to display all 59 endpoint groups from the regenerated endpoints.ts. Adds new sidebar categories and sections for AI governance, compliance, risk management, and advanced features. Updates version badge to v2.0.0. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…rate groups Move /slackWebhooks/* from Integrations to Slack Webhooks, /tokens/* from Authentication to Tokens, /user-preferences/* from Users to User Preferences, and /users/login + /users/refresh-token from Users - Authentication to Authentication so the api-docs generator creates dedicated endpoint groups for each. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add Authentication to explicit tag map, filter out parameters with undefined name/in or cookie parameters to prevent TS errors, then regenerate endpoints.ts producing 62 endpoint groups including the new slackWebhook, token, userPreference, and authentication groups. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…types Add sidebar nav items and EndpointSection renders for riskHistory, setting, demoData, internal, and webhooks groups. Import the four newly generated endpoint arrays. Also fix pre-existing TS errors in UserGuide components by adding an iconResolver that maps IconName strings to actual lucide-react components. Co-Authored-By: Claude Opus 4.6 <[email protected]>
The Vite entry point was missing, preventing both `npm run dev` and `npm run build` from completing. Add a minimal index.html that mounts the React app at #root. Co-Authored-By: Claude Opus 4.6 <[email protected]>
TypeScript 7 (native preview) removed the baseUrl option. Drop it and prefix all path values with ./ so the config is compatible with both TS 5.x and the TS native-preview language server. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Docs Build Fix
Please ensure all items are checked off before requesting a review:
Problem
After generating
endpoints.tsfromswagger.yamland updatingApp.tsx, thedocs/api-docsapp failed to build due to:slackWebhookEndpoints,tokenEndpoints, anduserPreferenceEndpointswere imported inApp.tsxbut didn't exist inendpoints.tsbecause the swagger spec tagged those endpoints under parent categories (Integrations,Authentication,Users).demoData,internal,riskHistory,setting,webhooks) had no corresponding sidebar entries orEndpointSectionrenders.in: 'undefined'andin: 'cookie'parameter values that violated theParametertype.collection.icon(a string) directly as a JSX component, causing TS errors.index.html— The Vite entry point was absent, preventing bothnpm run devandnpm run build.baseUrlin tsconfig — TypeScript native preview (TS 7) flaggedbaseUrlas removed and required relative path prefixes.Changes Made
Commit 1 —
fix(swagger): re-tag slack-webhooks, tokens, user-preferences as separate groupsFile:
Servers/swagger.yamlRe-tagged 14 operations so the generator creates dedicated endpoint groups:
/slackWebhooks/*(6 ops)IntegrationsSlack Webhooks/tokens/*(3 ops)AuthenticationTokens/user-preferences/*(3 ops)UsersUser Preferences/users/login,/users/refresh-token(2 ops)Users - AuthenticationAuthenticationCommit 2 —
feat(api-docs): regenerate endpoints.ts with corrected tagsFiles:
Servers/scripts/generateEndpointsTs.ts,docs/api-docs/src/config/endpoints.tsAuthenticationto the explicit tag-to-variable-name map in the generator.name/inor non-standardinvalues (e.g.,cookie).endpoints.ts— now produces 62 endpoint groups (up from 61), including the newslackWebhookEndpoints,tokenEndpoints,userPreferenceEndpoints, andauthenticationEndpoints.Commit 3 —
fix(api-docs): add missing nav items/sections and fix UserGuide icon typesFiles:
docs/api-docs/src/App.tsx,docs/api-docs/src/components/UserGuide/iconResolver.ts(new),ArticlePage.tsx,CollectionPage.tsx,UserGuideLanding.tsxdemoDataEndpoints,internalEndpoints,riskHistoryEndpoints,settingEndpoints.EndpointSectionrenders for the above groups.iconResolver.ts— mapsIconNamestrings to lucide-react components.resolveIcon(collection.icon)instead of using the string directly as JSX.Commit 4 —
fix(api-docs): add missing index.html for standalone dev and buildFile:
docs/api-docs/index.html(new)Added the standard Vite entry point HTML file that mounts the React app at
#root.Commit 5 —
fix(api-docs): remove baseUrl and use relative paths in tsconfigFile:
docs/api-docs/tsconfig.jsonbaseUrloption (removed in TypeScript 7)../prefixes ("./src/*","./node_modules/lucide-react").includeentry from"src"to"./src".Verification
npx tsc --noEmitnpm run build(tsc + vite)npm run devNotes
docs/api-docsapp is a standalone Vite/React application. It is not integrated into the mainClientsapp.