Install Hotwire and migrate inline code to Stimulus + CSS tokens #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — discovered during Hotwire setup session.
Repo
ldraney/landscaping-assistantUser Story
As a landscaping crew member
I want the app to use proper Hotwire patterns with clean CSS
So that the codebase is maintainable and ready for new features
Context
The Gemfile declared turbo-rails, stimulus-rails, and importmap-rails but none were installed. All JS (~100 lines) and CSS lived inline in
index.html.erb. The app needs Hotwire wired up properly before adding features like property browsing and route queues. CSS should follow the design token conventions from~/ror-css-guide.File Targets
Files modified:
app/assets/stylesheets/application.css-- design tokens, reset, component stylesapp/views/properties/index.html.erb-- replace inline styles/JS with Stimulus data attributesapp/views/layouts/application.html.erb-- add javascript_importmap_tagsapp/controllers/properties_controller.rb-- accept name, notes, service_ids in resolveFiles created:
app/javascript/application.js-- entry pointapp/javascript/controllers/location_controller.js-- GPS, resolve, recentapp/javascript/controllers/application.js-- Stimulus app instanceapp/javascript/controllers/index.js-- controller auto-loaderconfig/importmap.rb-- pin declarationsbin/importmap-- CLIdocs/hotwire.md-- setup docs and conventionsAcceptance Criteria
Test Expectations
docker compose exec web bin/rails testConstraints
Checklist
Related
landscaping-assistant-- project this affects