Convert datafruits Ember home layout to Rails Hotwire#508
Draft
Convert datafruits Ember home layout to Rails Hotwire#508
Conversation
…ents Co-authored-by: mcfiredrill <66243+mcfiredrill@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Convert base layout from Datafruits to Rails using Hotwire
Convert datafruits Ember home layout to Rails Hotwire
Mar 10, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ports the base layout from the datafruits Ember frontend (
app/templates/home.hbs) to render server-side fromstreampusher-apivia Hotwire, replacing Ember components and services with Rails-native equivalents.Architecture
The app was API-only (
ActionController::API). Rather than changing that, this introduces a parallel base class for HTML controllers:API controllers remain untouched.
Gems Added
turbo-rails,stimulus-rails,importmap-rails,sprockets-railsaction_view/railtie,action_cable/engine,sprockets/railtie(previously commented out)Ember Component → Rails Mapping
PcNav,SpNav_pc_nav,_sp_navpartialsUserMenu,LoginModal_user_menu,_login_modalDatafruitsPlayer<datafruits-player>AudioVisualizer<audio-visualizer>AddDatafruit,RandomBannerAd/api/*endpointsHackButton,OurVersionNotifierComplex stateful components (player, visualizer) are Web Components — self-contained, framework-agnostic, and compatible with future Turbo Stream updates.
Ember Service → Rails Mapping
session/currentUseruser_signed_in?/current_userfastbootmetadataMetadataChannel(ActionCable) + DOMCustomEventsiteSettings@site_settingsinstance variablevideoStreamdatafruits-playerWeb ComponentchatNavigation Interactivity
The Stimulus
homecontroller handles all toggle behavior — submenus, user menu, login modal, donate modal — and closes everything onEscape:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/datafruits/datafruits/contents/app/components/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)s3.amazonaws.com/usr/bin/ruby3.2 /usr/bin/ruby3.2 -I/usr/lib/ruby/vendor_ruby extconf.rb --gdwarf-5 --64 -o http11_parser.o /tmp/cczeZ6XE.s 3 y-3.2.0 -I /usr/libexec/gcc-I -plu�� /usr/libexec/gcc-I -plugin-opt=/usr/usr/include/ruby-3.2.0 by-3.2.0 -plugin-opt=-pasas kward -plugin-opt=-pas. y-3.2.0(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.