Repository navigation
Figma card: use my own Figma app - #337
Merged
Merged
Conversation
…es; a key stays under Use a key instead
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.
Summary
The Figma card on Integrations now offers "Use my own Figma app". It lists the steps to create the app: where to create it, the exact redirect URL to add (from the API, so it is the install's own callback), the scopes to tick, and publishing it as a private app. Then it takes the client id and secret, saves them, and starts the sign-in. A personal access token still works under "Use a key instead". This needs CoderHelm/coderhelm-platform#518.
Changes
api.ts:PluginDef.own_app(where to create the app and its scopes).OwnAppState(client id, status, who signed in and the redirect URL; never the secret).api.saveOwnApp, which callsPUT /api/mcp-servers/apps/:catalog_id.own_appon the sign-in callback response.mcp-server-panel.tsx:own_appshowsOwnAppPanel: the steps, a copyable redirect URL, Client ID and Client secret fields, and buttons for "Save and connect with Figma", "Connect with Figma" or "Sign in again", and "Remove my app".mcp-callback/page.tsx: an own-app sign-in goes back to the Figma row. If Figma refuses the token, the page says so in plain words instead of mentioning tools.openapi-fields.tsis regenerated at the platform branch. The only change is the ref.Verification
npx tsc --noEmit -p .: no errors.npm run lint: no UI lint errors and no hardcoded hosted addresses.eslinton the changed files: no issues.npm run check:openapi: matches CoderHelm/coderhelm-platform@657a2816.npx playwright test e2e/integrations-page.spec.ts e2e/mcp-servers.spec.ts --project=chromium: 34 passed. That includes a new test for the Figma own-app panel: the redirect URL, the scopes, the console link, Save and connect sending the client id and secret, the connect call, and the callback returning to the Figma row.