Skip to content

Conversation

@elias-ba
Copy link
Contributor

@elias-ba elias-ba commented Nov 12, 2025

Description

This PR fixes a critical build error caused by a duplicate isReadOnly variable declaration in TriggerForm.tsx that was preventing esbuild from compiling assets.

Closes #3976

Validation steps

  1. Build assets to verify the error is fixed:

    mix esbuild default

    Should complete successfully without errors.

  2. Start Phoenix server and verify assets rebuild automatically:

    iex -S mix phx.server
  3. Make a change to any JS/TS file and verify Phoenix rebuilds assets

Additional notes for the reviewer

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to know!):

  • Code generation (copilot but not intellisense)
  • Learning or fact checking
  • Strategy / design
  • Optimisation / refactoring
  • Translation / spellchecking / doc gen
  • Other
  • I have not used AI

You can read more details in our Responsible AI Policy

Pre-submission checklist

  • I have performed a self-review of my code.
  • I have implemented and tested all related authorization policies. (e.g., :owner, :admin, :editor, :viewer)
  • I have updated the changelog.
  • I have ticked a box in "AI usage" in this PR

@github-project-automation github-project-automation bot moved this to New Issues in v2 Nov 12, 2025
@elias-ba elias-ba force-pushed the fix-duplicate-isreadonly-build-error branch from 1dd3708 to beecbf6 Compare November 12, 2025 18:57
@elias-ba elias-ba changed the title Fix duplicate isReadOnly declaration blocking builds fix: duplicate isReadOnly variable blocking es builds Nov 12, 2025
@elias-ba elias-ba force-pushed the fix-duplicate-isreadonly-build-error branch from beecbf6 to b3160e9 Compare November 12, 2025 18:59
Fixed a duplicate isReadOnly variable declaration in TriggerForm.tsx
(lines 37 and 46) that was causing esbuild to fail with error:
"The symbol 'isReadOnly' has already been declared"

This was preventing Phoenix from rebuilding assets, blocking all
development work on the collaborative editor.
@elias-ba elias-ba force-pushed the fix-duplicate-isreadonly-build-error branch from b3160e9 to 0d724d7 Compare November 12, 2025 19:01
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.66%. Comparing base (a7cfb90) to head (0d724d7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3975      +/-   ##
==========================================
+ Coverage   88.65%   88.66%   +0.01%     
==========================================
  Files         422      422              
  Lines       18913    18913              
==========================================
+ Hits        16767    16770       +3     
+ Misses       2146     2143       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@midigofrank midigofrank merged commit 7ef09a6 into main Nov 13, 2025
8 checks passed
@midigofrank midigofrank deleted the fix-duplicate-isreadonly-build-error branch November 13, 2025 02:42
@github-project-automation github-project-automation bot moved this from New Issues to Done in v2 Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Duplicate isReadOnly declaration blocking asset builds

3 participants