Skip to content

Forbedre CI for Figma Code Connect#5934

Merged
lmfaole merged 1 commit intomainfrom
minor/figma-code-connect-ci
Apr 16, 2026
Merged

Forbedre CI for Figma Code Connect#5934
lmfaole merged 1 commit intomainfrom
minor/figma-code-connect-ci

Conversation

@lmfaole
Copy link
Copy Markdown
Contributor

@lmfaole lmfaole commented Apr 10, 2026

Hva er endret

Denne PR-en gjør Figma Code Connect-sjekken i CI mer presis og lettere å forstå når den feiler.

  • Sjekken trigges nå bare når endringer faktisk kan påvirke Code Connect.
  • Workflowen kjører et eget CI-script for Code Connect i @fremtind/jokul.
  • Ved feil får vi et kort loggutdrag i både workflow summary og PR-kommentaren.
  • Figma-kommentaren får sin egen sticky-kommentar og blir fjernet igjen når sjekken er grønn.

Hvorfor

I dag får vi i praksis bare beskjed om at Figma Code Connect feilet, uten særlig hjelp til å skjønne hvorfor. Målet med denne PR-en er å gjøre feilen mer konkret, så det blir enklere å se hva som må rettes.

Testet

  • Kjørte pnpm run figma:test:ci lokalt med gyldig token.
  • Verifiserte at kommandoen kommer helt til Figma-validering.
  • Verifiserte at den nå rapporterer faktiske avvik i eksisterende Code Connect-mappinger.

Ikke en del av denne PR-en

Denne PR-en retter ikke de eksisterende avvikene mellom kode og Figma. Den forbedrer bare hvordan CI-en oppdager og forklarer dem.

Copilot AI review requested due to automatic review settings April 10, 2026 08:17
@lmfaole lmfaole changed the title [codex] Forbedre Figma Code Connect CI Forbedre CI for Figma Code Connect Apr 10, 2026
@lmfaole lmfaole marked this pull request as ready for review April 10, 2026 08:18
@lmfaole lmfaole requested a review from a team as a code owner April 10, 2026 08:18
@fremtind-bot
Copy link
Copy Markdown
Collaborator

fremtind-bot commented Apr 10, 2026

Warning

@lmfaole, Figma Code Connect feilet.

Se workflow-kjøringen for full logg.

Kort utdrag av loggen
- BreadcrumbItem (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=2006%3A3137)
Validating Code Connect files...
Validation failed for Tag (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=2004%3A303): The property "Variant" does not exist on the Figma component
Validation failed for SystemMessage (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14268%3A9754): The property "Variant" does not exist on the Figma component
Validation failed for Message (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14268%3A9812): The property "Variant" does not exist on the Figma component
Validation failed for SupportLabel (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=2388%3A376): The property "Variant" does not exist on the Figma component
Validation failed for SupportLabel (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=2388%3A376): The property "Variant" does not exist on the Figma component
Validation failed for WarningIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14463%3A7735): The property "Weight" does not exist on the Figma component
Validation failed for TrashCanIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A9436): The property "Weight" does not exist on the Figma component
Validation failed for ThumbUpIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14471%3A132): The property "Weight" does not exist on the Figma component
Validation failed for ThumbDownIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14471%3A133): The property "Weight" does not exist on the Figma component
Validation failed for SuccessIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A2522): The property "Weight" does not exist on the Figma component
Validation failed for SearchIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14463%3A229): The property "Weight" does not exist on the Figma component
Validation failed for QuestionIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A9464): The property "Weight" does not exist on the Figma component
Validation failed for PlusIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14571%3A8298): The property "Weight" does not exist on the Figma component
Validation failed for PenIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A9435): The property "Weight" does not exist on the Figma component
Validation failed for OpenInNewIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7176): The property "Weight" does not exist on the Figma component
Validation failed for MinusIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A9463): The property "Weight" does not exist on the Figma component
Validation failed for LinkIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14471%3A130): The property "Weight" does not exist on the Figma component
Validation failed for InfoIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A9388): The property "Weight" does not exist on the Figma component
Validation failed for HamburgerIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14607%3A10210): The property "Weight" does not exist on the Figma component
Validation failed for DragIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14471%3A131): The property "Weight" does not exist on the Figma component
Validation failed for DotsIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14606%3A9953): The property "Weight" does not exist on the Figma component
Validation failed for CopyIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14607%3A10280): The property "Weight" does not exist on the Figma component
Validation failed for CloseIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14571%3A9228): The property "Weight" does not exist on the Figma component
Validation failed for ChevronUpIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7207): The property "Weight" does not exist on the Figma component
Validation failed for ChevronRightIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7208): The property "Weight" does not exist on the Figma component
Validation failed for ChevronLeftIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7209): The property "Weight" does not exist on the Figma component
Validation failed for ChevronDownIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14607%3A10178): The property "Weight" does not exist on the Figma component
Validation failed for CheckIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14571%3A213): The property "Weight" does not exist on the Figma component
Validation failed for CalendarIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14463%3A243): The property "Weight" does not exist on the Figma component
Validation failed for ArrowUpIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7174): The property "Weight" does not exist on the Figma component
Validation failed for ArrowRightIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=14618%3A10306): The property "Weight" does not exist on the Figma component
Validation failed for ArrowLeftIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7164): The property "Weight" does not exist on the Figma component
Validation failed for ArrowDownIcon (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=15493%3A7173): The property "Weight" does not exist on the Figma component
Validation failed for Help (https://www.figma.com/design/jd7QGZJIQ5ZU6AhAq31yuv?node-id=26847%3A10089): The property "Text" does not exist on the Figma component
Please raise any bugs or feedback at https://github.com/figma/code-connect/issues.
/home/runner/work/jokul/jokul/packages/jokul:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @fremtind/jokul@4.5.1 figma:test:ci: `figma connect publish --dry-run --exit-on-unreadable-files --skip-update-check`
Exit status 1

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Denne PR-en forbedrer CI-opplevelsen rundt Figma Code Connect i pull request-workflowen, ved å trigge sjekken mer presist og gi bedre feildiagnostikk når valideringen feiler.

Changes:

  • Introduserer et eget figma_code_connect paths-filter som bare kjører Figma Code Connect ved relevante endringer.
  • Legger til figma:test:ci-script for mer CI-egnet kjøring (dry-run + strengere flagg).
  • Forbedrer feilmeldinger ved å samle loggutdrag i step summary og en egen sticky PR-kommentar, og fjerner kommentaren automatisk når feilen er borte.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/jokul/package.json Legger til figma:test:ci for stabil CI-kjøring av Code Connect.
.github/workflows/pull_request.yml Nytt filter for Code Connect, ny CI-run, og bedre/ryddigere feilsummering og PR-kommentering.

Comment thread .github/workflows/pull_request.yml
Comment thread .github/workflows/pull_request.yml Outdated
@lmfaole lmfaole force-pushed the minor/figma-code-connect-ci branch from a11166b to 7ac28be Compare April 10, 2026 08:39
Copy link
Copy Markdown
Contributor

@zenabii zenabii left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment thread .github/workflows/pull_request.yml
Copilot AI review requested due to automatic review settings April 16, 2026 10:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/pull_request.yml Outdated
@lmfaole lmfaole force-pushed the minor/figma-code-connect-ci branch from 1f33225 to ae1a27b Compare April 16, 2026 10:46
Copilot AI review requested due to automatic review settings April 16, 2026 10:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/pull_request.yml
Comment thread .github/workflows/pull_request.yml
- Eget paths-filter slik at sjekken bare kjøres ved relevante endringer
- Nytt figma:test:ci-script med dry-run og strengere flagg
- Loggutdrag i job summary og en sticky PR-kommentar med collapsable

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lmfaole lmfaole force-pushed the minor/figma-code-connect-ci branch from 542945b to 9566e98 Compare April 16, 2026 12:32
@lmfaole lmfaole enabled auto-merge April 16, 2026 12:33
@kristianulv23 kristianulv23 self-requested a review April 16, 2026 12:37
@lmfaole lmfaole added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit 65ae037 Apr 16, 2026
3 checks passed
@lmfaole lmfaole deleted the minor/figma-code-connect-ci branch April 16, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants