Questions tagged [turbo]

201 questions
0
votes
0 answers

TurboJs: Support for lockfiles without a 'packages' field isn't implemented yet

After upgrading turbo from 1.8.2 to 1.8.3, I receive this error message: Issues occurred when constructing package graph. Turbo will function, but some features may not be available: 18 errors occurred: * Support for lockfiles without a…
TOPKAT
  • 6,667
  • 2
  • 44
  • 72
0
votes
1 answer

Trubo Rails appends content to outside of the body

originally based on: https://github.com/heartcombo/devise/issues/5564 My Turbo Rails 7 app appears to respond correctly but appends content to outside of the body, leaving the rest of the body in place: Start the server with ./bin/dev Go to…
Jason FB
  • 4,752
  • 3
  • 38
  • 69
0
votes
0 answers

Turbocharged realtime data table search not functioning

I'm just trying to get search functionality working with form_with and Turbo, however I seem to be failing at the first hurdle. I know where I've got to isn't fully Turbo charged, but my understanding is at this point when a name is searched it…
ldthompson
  • 29
  • 6
0
votes
0 answers

migrating a Rails 6 javascript to Rails 7 turbo stream form submission

The following is a javascript that is used with @zxing/library in a Rails 6 library. Assuming the library is pinned in the Rails 7 Pinning "@zxing/library" to https://ga.jspm.io/npm:@zxing/library@0.19.2/esm/index.js, How should this be re-cast…
Jerome
  • 5,583
  • 3
  • 33
  • 76
0
votes
1 answer

Rails how to display tabs with turbo-frame

In my Rails 7 app I've got CustomersController where inside there is show action with the corresponding show.slim view. Inside this view I want to have 2 tabs: "Data", with text of "This is data page" - this tab should be active after user hits…
mr_muscle
  • 2,536
  • 18
  • 61
0
votes
1 answer

Hotwire turbo with turbo-method: :delete and redirect_to

My test erb: <%= link_to 'Test', test_path, data: { turbo_method: :delete } %> My test controller method looks like this: def test redirect_to root_path, status: :see_other end Simple as that.. it responds with a turbostream and appends the…
Oliver
  • 801
  • 13
  • 26
0
votes
0 answers

Symfony Turbo Clear form after the success submit

I'm trying to clear my form after the form submit but unfortunately, it doesn't work Here's my controller. #[Route('/', name: 'homepage', methods: ['GET', 'POST'])] public function index(Request $request, FooRepo $fooRepo): Response { $foo = new…
Joker Bench
  • 228
  • 1
  • 6
  • 14
0
votes
0 answers

How to merge to main branch only one app in mono-repo if there are more then one app that build in that repo

I have a mono-repo project using turbo. Inside that mono-repo, I have multiple projects (3 apps). Now, one of my projects is done with development and needs to merge into the main branch. But, other apps are still in development. If I merge the…
prawito hudoro
  • 533
  • 1
  • 5
  • 10
0
votes
0 answers

Uploading and getting Active Storage Blob before saving full record

Is it possible to set up a Rails form in a way that a user can upload images, and then be shown the direct link for their image before saving the rest of the form? Use Case: The use case is trying to be able to allow users to upload images, and then…
Rich
  • 590
  • 7
  • 20
0
votes
0 answers

Shopify Turbo theme Collection colour swatches

I've been trying to add the colour swatches from a product variant on the collection pages in Shopify- enabling in theme settings does not work. so its clearly not coded into the liquid files. I tried adding: {% render 'collection_swatch' %} to the…
M21
  • 343
  • 3
  • 14
0
votes
0 answers

Could I use multiple package manager in Turborepo?

Currently, I have 2 apps in my Turborepo. Their package manager is yarn 1. Now I am going to add an app for AWS lambda. I want to use yarn berry for lambda only. 1.Is it good to manage AWS Lambda and Web Frontend code as monorepo? 2.Could I seperate…
kyun
  • 9,710
  • 9
  • 31
  • 66
0
votes
0 answers

Turbo stream renders as plain text when user visits different page in the mean time

Our app makes API calls that tend to take a few seconds. The results come back in various turbo frames that are updated using turbo streams from the controllers. When the user accesses a page that fires off an API call in the controller, and then…
0
votes
1 answer

Turbo stream in Rails

So, I have a turbo frame in the show view of my Rental: views/rentals/show.html.erb <%= turbo_frame_tag "new_rate", src: new_rental_rate_path(@rental) %>
<%= render @rates.where("DATE_PART('year', firstnight) = ?",…
Gogamar
  • 115
  • 4
0
votes
0 answers

Symfony : multiple mercure subscriptions

I've developed an app based on this tutorial : https://symfonycasts.com/screencast/turbo By the way, my app is broadcasting HTML updates on several topics, ie : chat-messages, notifications, chat-channels So, every pages of my app is subscribing to…
Snoop9
  • 13
  • 4
0
votes
0 answers

Turbo frame appends response to html tag instead of using target

After successful submit it should reload the page (_top) instead it appends the pages index to the html tag. application.js import "@hotwired/turbo-rails" application.html.erb New Page <%=…
Oliver
  • 801
  • 13
  • 26