Skip to content

Remove rails delegate#36835

Merged
ChaosExAnima merged 2 commits intomainfrom
remove-rails-delegate
Nov 14, 2025
Merged

Remove rails delegate#36835
ChaosExAnima merged 2 commits intomainfrom
remove-rails-delegate

Conversation

@ChaosExAnima
Copy link
Contributor

Part of MAS-383.

This PR removes usage of Rails.delegate in favor of a lightweight dedicated library, as ujs isn't maintained anymore.

@ChaosExAnima ChaosExAnima requested a review from a team November 11, 2025 18:04
@ClearlyClaire
Copy link
Contributor

This seems to pull in quite a few dependencies, are we ok with that?

@ChaosExAnima
Copy link
Contributor Author

This seems to pull in quite a few dependencies, are we ok with that?

something was off with the lock file- i reset to main and reinstalled the dependency, and it looks clean now.

@mjankowski
Copy link
Contributor

Should this also remove the @rails/ujs package ... or is this a first pass and theres more work to do prior to full removal?

@ChaosExAnima
Copy link
Contributor Author

Should this also remove the @rails/ujs package ... or is this a first pass and theres more work to do prior to full removal?

no- there's more work to do, which is why i said "part of" in the description.

@mjankowski mjankowski added the javascript Pull requests that update Javascript code label Nov 13, 2025
@mjankowski
Copy link
Contributor

which is why i said "part of" in the description.

Thanks for clarification, sounds good. FYI there are some older now closed unmerged/unreviewed PRs related to this if you want to pick through scraps to help the migration effort (example: https://github.com/mastodon/mastodon/pull/32255/files). Let me know if me rebasing/reopening any of those is desired ... not sure how out of date they are now.

@ChaosExAnima
Copy link
Contributor Author

Thanks for clarification, sounds good. FYI there are some older now closed unmerged/unreviewed PRs related to this if you want to pick through scraps to help the migration effort (example: https://github.com/mastodon/mastodon/pull/32255/files). Let me know if me rebasing/reopening any of those is desired ... not sure how out of date they are now.

no idea. we're replacing the functionality in future PRs tho, so it shouldn't affect things.

@ChaosExAnima ChaosExAnima added this pull request to the merge queue Nov 14, 2025
Merged via the queue into main with commit 7dbb2ac Nov 14, 2025
37 checks passed
@ChaosExAnima ChaosExAnima deleted the remove-rails-delegate branch November 14, 2025 14:38
mikehikes added a commit to theatl-social/theconnector that referenced this pull request Nov 17, 2025
Merges 36 commits from upstream main (Nov 12-17, 2025)

CRITICAL CDN FIXES:
- Emoji worker path resolution (mastodon#36897) - Uses Vite manifest instead of
  hardcoded /packs/emoji/ paths. This fixes emoji loading with CDN_HOST.
- CSS module CORS handling (mastodon#36890) - Adds crossorigin attribute for
  proper CDN stylesheet loading.
- Vite deprecation warnings (mastodon#36849) - Updates to query: '?url' syntax.

OTHER UPSTREAM CHANGES:
- Add CSS theme tokens behind feature flag (mastodon#36861) - New styles_new/
  directory with token-based theming system
- Remove rails delegate (mastodon#36835) - Replaces Rails.delegate with
  delegated-events package
- Multiple UI bug fixes for quote posts, compose form, filters
- Crowdin translation updates (30+ locales)
- Security update: js-yaml to v4.1.1
- Minor dependency updates (prometheus_exporter, aws-sdk-core, etc.)

MERGE CONFLICT RESOLUTIONS:
- emoji/loader.ts: Accepted upstream (removes hardcoded CDN paths)
- boost_button.tsx: Merged quoteApproval feature
- All locale files: Accepted upstream (automated translations)
- Gemfile.lock: Accepted upstream (will re-add Linux platform)
- yarn.lock: Accepted upstream (will rebuild)

MAKEFILE IMPROVEMENTS (this branch):
- Added Docker-based linting targets (rubocop, lint-js, lint-css, format)
- Updated CLAUDE.md to reference Makefile instead of raw Docker commands

NEXT STEPS:
- Re-add Linux platform to Gemfile.lock for Docker builds
- Update version to 4.5.1-theatlsocial-20251117
- Rebuild yarn dependencies
- Expand CI tests for emoji CDN verification

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments