-
Notifications
You must be signed in to change notification settings - Fork 274
♻️ refactor: eliminate all 132 circular dependency cycles in cattool JS bundle #4530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
b74d5a3
chore: add madge circular dependency baseline and regression check
riccio82 343deba
refactor: replace action→component imports with modal registry and st…
riccio82 a45df16
refactor: extract settingsPanel contexts, utils, and constants into s…
riccio82 1897bcb
refactor: extract parent→child constants and break DraftMatecatUtils …
riccio82 13b1c43
refactor: extract htmlUtils from tagUtils to break DraftMatecatUtils …
riccio82 18fcd91
refactor: lazy-require 7 cycle-forming imports in SegmentActions
riccio82 2605b8b
refactor: lazy-require cycle-forming imports in SegmentStore, commonU…
riccio82 5745e95
refactor: lazy-require OfflineUtils in CatToolActions to break final …
riccio82 b666d37
chore: update circular dependency baseline to 0 cycles
riccio82 135b467
🔧 chore: simplify circular dependency checker and remove baseline
riccio82 1c58157
🐛 fix(cattool): import TAB constant in SegmentFooter
riccio82 b3086e9
🐛 fix(settings-panel): fix test failures from circular dep refactoring
riccio82 97c930e
♻️ refactor(imports): remove dead re-exports and redirect consumers t…
riccio82 8034f07
♻️ refactor(imports): remove remaining dead re-exports and unused imp…
riccio82 fd5e68f
♻️ refactor(imports): extract leaf modules from SegmentActions to eli…
riccio82 ae4fe8c
♻️ refactor(imports): convert SS→DMU and CU→OU lazy requires to stati…
riccio82 64a2080
Update public/js/components/createProject/UploadFileUtils.js
riccio82 eaf3043
🔧 chore(deps): update @translated/lara to 1.9.0 (#4516)
riccio82 5569a91
feat: add ed error_code to AI Worker messages (#4533)
mauretto78 cd42fe4
🔧 chore(phpstan): regenerate baseline for new @throws rules
Ostico f2095c2
📝 docs: add PR readiness checklist template and GitHub Actions validator
Ostico 5e6ceef
📝 docs(pr-template): simplify AI usage disclosure instructions
Ostico 6781d04
🔧 chore(jest): exclude .github/ from Jest test discovery
Ostico 581eede
🔧 chore(phpstan): exclude APIDoc build artifacts from analysis
Ostico 44204c5
Update .github/workflows/pr-readiness-check.yml
Ostico 5fbcc06
👷 ci: add conventional-commit message enforcement workflow
Ostico 660f4f8
🐛 fix(ci): relax commit message check for Copilot and GitHub web edits
Ostico b63af4a
🔧 chore(phpstan): add @throws \Throwable to FastAnalysis transaction …
Ostico 1543065
👷 ci(test-guard): add test adequacy gate workflow
Ostico 0f81ee7
👷 ci(test-guard): integrate test-guard into CI/CD pipeline
Ostico fe52a90
👷 ci(test-guard): bump ostico/test-guard to v1.0.3
Ostico f57837f
👷 ci(test-guard): bump ostico/test-guard to v1.0.5
Ostico f065dce
👷 ci: add models:read permission to _ci-cd.yml
Ostico 06b4f21
🐛 fix(ci): add models:read permission for test-guard AI analysis
Ostico 4384a3d
👷 ci(test-guard): switch to floating tag ostico/test-guard@v1
Ostico 768512e
👷 ci(permissions): replace statuses:write with checks:write in workflows
Ostico de174e5
👷 ci(coverage): add JS coverage report to test-guard pipeline
Ostico d8d0ebb
Update submodule
riccio82 fd4ac5c
Merge remote-tracking branch 'origin/develop' into fix/circular-deps
Copilot f33830f
Merge remote-tracking branch 'origin/develop' into fix/circular-deps
riccio82 b4b6702
🐛 fix(modals): replace undefined AlertModal with MODAL_KEY.ALERT cons…
riccio82 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/usr/bin/env node | ||
| const {execSync} = require('child_process') | ||
|
|
||
| let cycles | ||
| try { | ||
| const output = execSync( | ||
| 'npx madge --circular --extensions js --json public/js/', | ||
| {encoding: 'utf8', maxBuffer: 10 * 1024 * 1024}, | ||
| ) | ||
| cycles = JSON.parse(output) | ||
| } catch (e) { | ||
| if (e.stdout) { | ||
| cycles = JSON.parse(e.stdout) | ||
| } else { | ||
| console.error('Failed to run madge:', e.message) | ||
| process.exit(1) | ||
| } | ||
| } | ||
|
|
||
| if (cycles.length > 0) { | ||
| console.error( | ||
| `\x1b[31m✖ Found ${cycles.length} circular dependencies:\x1b[0m\n`, | ||
| ) | ||
| cycles.forEach((cycle, i) => { | ||
| console.error(` ${i + 1}) ${cycle.join(' → ')}`) | ||
| }) | ||
| process.exit(1) | ||
| } else { | ||
| console.log('\x1b[32m✔ No circular dependencies\x1b[0m') | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule translated
updated
from b3f19a to c957a2
Submodule uber
updated
from c6beac to cc5299
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.