From 6efbc0897f08d688c614baa205f1e1625b3a7c83 Mon Sep 17 00:00:00 2001 From: lauren Date: Tue, 7 Jan 2025 11:53:27 -0500 Subject: [PATCH 1/2] [playground] Use default compiler config (#32009) The playground's compilation mode is currently set to 'all' along with reporting all errors. This tends to be misleading since people usually expect a 1:1 match between how the playground works with what the compiler does in their codebase, eg https://github.com/reactwg/react-compiler/discussions/51. --- compiler/apps/playground/components/Editor/EditorImpl.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/apps/playground/components/Editor/EditorImpl.tsx b/compiler/apps/playground/components/Editor/EditorImpl.tsx index 785b9fd075..c475a1585a 100644 --- a/compiler/apps/playground/components/Editor/EditorImpl.tsx +++ b/compiler/apps/playground/components/Editor/EditorImpl.tsx @@ -78,8 +78,6 @@ function invokeCompiler( logEvent: () => {}, }, environment, - compilationMode: 'all', - panicThreshold: 'all_errors', }); const ast = parseInput(source, language); let result = transformFromAstSync(ast, source, { From 4a8bcbedc95c62c8386c979ffa60f6a821bac586 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 7 Jan 2025 12:00:29 -0500 Subject: [PATCH 2/2] [ci] Make gh workflow names consistent Super minor change to keep our naming scheme consistent for gh workflows --- .../{discord_notify.yml => shared_discord_notify.yml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{discord_notify.yml => shared_discord_notify.yml} (87%) diff --git a/.github/workflows/discord_notify.yml b/.github/workflows/shared_discord_notify.yml similarity index 87% rename from .github/workflows/discord_notify.yml rename to .github/workflows/shared_discord_notify.yml index ff2caa1bf9..86fd28af3b 100644 --- a/.github/workflows/discord_notify.yml +++ b/.github/workflows/shared_discord_notify.yml @@ -1,8 +1,8 @@ -name: Discord Notify +name: (Shared) Discord Notify on: pull_request_target: - types: [ labeled ] + types: [labeled] jobs: notify: @@ -18,4 +18,4 @@ jobs: embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }} embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}' embed-description: ${{ github.event.pull_request.body }} - embed-url: ${{ github.event.pull_request.html_url }} \ No newline at end of file + embed-url: ${{ github.event.pull_request.html_url }}