Skip to content

Conversation

@jack-ryan-nava-pbc
Copy link
Collaborator

Summary

Let's try this again.

Note: This is part one of a series of Pull Requests related to Figma Code Connect snippets. This first one establishes a baseline of changes that we need in place to support code connect snippets.

I've added the following:

  1. Base React configuration for Figma Code connect
  2. Simple NPM scripts to run Code Connect when first building a connection file via the CLI, then for publishing and unpublishing snippets
  3. Exclude *.figma.tsx files from the build process.

Notable exclusions are:

  1. We'll get Typescript warnings for our Figma files. I think we actually want that since type declarations are important.
  2. Type checking will fail as a result if you don't properly handle the types in the Figma file. Duh.
  3. We will possibly want a separate configuration file for our Web Components. I'll update the package.json commands as well.

How to test

  1. Create a .env file at the top level of the directory and place the team access token for Figma in a key called: FIGMA_ACCESS_TOKEN
  2. npm i
  3. npm run connect:build
  4. Go through the interactive procedure

Checklist

  • Prefixed the PR title with the Jira ticket number as [CMSDS-####] Title or [NO-TICKET] if this is unticketed work.
  • Selected appropriate Type (only one) label for this PR, if it is a breaking change, label should only be Type: Breaking
  • Selected appropriate Impacts, multiple can be selected.
  • Selected appropriate release milestone

@jack-ryan-nava-pbc jack-ryan-nava-pbc added this to the 14.0.0 milestone Nov 21, 2025
@jack-ryan-nava-pbc jack-ryan-nava-pbc self-assigned this Nov 21, 2025
@jack-ryan-nava-pbc jack-ryan-nava-pbc added Impacts: Core Impacts the core DS primarily, changes may occur in other themes as well. Type: Added Indicates a new feature. dependencies Pull requests that update a dependency file labels Nov 21, 2025
Copy link
Collaborator

@derek-cmsds derek-cmsds left a comment

Choose a reason for hiding this comment

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

LGTM

@jack-ryan-nava-pbc jack-ryan-nava-pbc merged commit ae58339 into milestone/14.0 Nov 24, 2025
1 check passed
@jack-ryan-nava-pbc jack-ryan-nava-pbc deleted the jryan/cmsds-3687-configure-code-connect branch November 24, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file Impacts: Core Impacts the core DS primarily, changes may occur in other themes as well. Type: Added Indicates a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants