Skip to content

[Redence verify] External API integration — resilient Figma Dev Mode API client for token extraction #121

Description

@PAMulligan

Redence capability: External API integration (Integration)

Repo: Flavian · Stack: Node.js, Figma REST/Dev Mode API, scripts/wordpress/figma-fse

Substantive change: Harden the Figma Dev Mode API client used during token extraction. Add real integration logic: typed request/response handling for the Figma file/nodes endpoints, retry with exponential backoff + jitter on 429/5xx, respect of rate-limit headers, auth-token validation with a clear error on missing/expired PAT, and graceful degradation when a node lacks Dev Mode data. Add a mocked-API test (no live network) asserting the retry/backoff path and the error handling behave correctly. Real logic change — diff_judge rejects docs/comment-only diffs.

Done when: the client implements retry/backoff + header-aware rate limiting + typed errors, and the mocked-API tests pass.

Proof token: paste the current token from the Redence "External API integration" verify page into the commit/PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpipelineFigma/Canva-to-WordPress conversion pipeline

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions