[CLI] Skip interactive mapping phase using the configuration file

Open
#344 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Start by reading the connect command entry point and how it currently reads interactiveSetupFigmaFileUrl from the configuration. Trace the interactive discovery and mapping flow to identify which configuration shape could provide mapping decisions. Done means connect can use mappings from the config and skip the interactive mapping phase; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

feature request

When using the connect command I'd like to be able to skip the interactive mapping phase and directly provide my mapping decisions from the config file.

Rationale:

Right now the only parameter used by the connect command is interactiveSetupFigmaFileUrl.
However, for the vast majority of my components, I already know which node will be mapped to which file in my repository and asking for the acutal mapping is more of a confirmation than anything else. In the end going through the interactive discovery / mapping phase is not really required.

I know the connect command is not supposed to be run again and again but selecting the components to connect is cumbersome, time-consuming and may lead to configuration errors due to its interactive nature.

Dominant language
TypeScript
Stars
1.6k
Forks
126
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from figma/code-connect

All issues in figma/code-connect

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.