Skip to content
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

Hotwire integration #991

Open
wants to merge 70 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift click to select a range
ed4ffb0
audio recorder
michelson Jan 18, 2023
e40802f
audioRecorder
michelson Jan 18, 2023
82348af
Merge branch 'master' into audio
michelson Jan 18, 2023
db5ca04
audio link
michelson Jan 19, 2023
c99dcba
use audio/mp4
michelson Jan 19, 2023
b6d385e
update rails
michelson Oct 10, 2023
a2e11a3
update rails
michelson Oct 10, 2023
a2ccbd3
merge main
michelson Oct 10, 2023
e037a97
load defaults for rails 7
michelson Oct 11, 2023
8620da8
load defaults for rails 7
michelson Oct 11, 2023
f569677
fix specs
michelson Oct 11, 2023
ffe652c
download latest plugins
michelson Oct 11, 2023
96ea5a2
database cloner fix
michelson Oct 11, 2023
65e0218
pg updated
michelson Oct 11, 2023
4ae141b
app packages graphql fix test
michelson Oct 11, 2023
07197c2
updated taggable
michelson Oct 11, 2023
8a2c95e
merge with rails7.1
michelson Oct 11, 2023
bb0e9d7
docker file gen secret
michelson Oct 11, 2023
26740f1
pg 12 on ruby yml
michelson Oct 11, 2023
e1a5acd
rails 7.1.1
michelson Oct 12, 2023
3057e67
new graphql tests
michelson Oct 12, 2023
3a24bf9
ransack whitelist
michelson Oct 12, 2023
ea7b998
echos
michelson Oct 12, 2023
add671b
database_cleaner update
michelson Oct 13, 2023
6188bfb
update rsepc
michelson Oct 13, 2023
1ea0d97
update rsepc
michelson Oct 13, 2023
915b52b
stage tests, use database cleaner
michelson Oct 13, 2023
1b0af8f
Stage tests (#979)
michelson Oct 13, 2023
10364d4
Merge branch 'stage-tests' into stage
michelson Oct 13, 2023
1cb3051
Merge branch 'stage' of https://github.com/chaskiq/chaskiq into stage
michelson Oct 13, 2023
8cdb8f2
Hotwire integration (#969)
michelson Nov 14, 2023
0b6166c
rubocop & lints
michelson Nov 14, 2023
0e86cfb
merge main
michelson Nov 14, 2023
93cb69f
update open search ruby
michelson Nov 14, 2023
1c90020
lock with index
michelson Nov 14, 2023
a14926b
fix apps creation test
michelson Nov 14, 2023
54f4708
invite
michelson Nov 14, 2023
ec25c35
remove node modules from assets, enhance assets:precompile with tailw…
michelson Nov 14, 2023
8aab199
do image task
michelson Nov 14, 2023
35e93c7
assets compilation js & tw before precompile
michelson Nov 15, 2023
262a748
turbo handling, navigational formats on devise
michelson Nov 15, 2023
f79ea06
lazy load segment predicates
michelson Nov 15, 2023
62f99af
loader added
michelson Nov 15, 2023
194ec7f
mark reads
michelson Nov 15, 2023
f154763
typing indicators
michelson Nov 15, 2023
08b8c72
conversation observer for chat editor toggling
michelson Nov 15, 2023
bf98945
iframeize app package
michelson Nov 15, 2023
034d4a1
silence some console.log
michelson Nov 16, 2023
f986944
fix new messenger specs
michelson Nov 16, 2023
b53796f
fix app packages
michelson Nov 16, 2023
6473e54
turbo history frame
michelson Nov 16, 2023
a23c264
turbo history frame
michelson Nov 16, 2023
a710c49
general navigation as turbo frame, detach fixed packages from it
michelson Nov 17, 2023
3a0c70b
layout handing on turbo content
michelson Nov 17, 2023
a46bcce
resolutions emotion
michelson Feb 18, 2024
3909802
resolutions emotion
michelson Feb 18, 2024
1901b85
flagged account & disable email env
michelson Feb 22, 2024
b50b50e
fiber async falcon
michelson Feb 24, 2024
6fa63b4
update deps
michelson Feb 24, 2024
ed08c9e
registrations & emotion
michelson Feb 25, 2024
f935025
falcon config
michelson Feb 25, 2024
3203653
specs
michelson Feb 25, 2024
e422588
chrome stable
michelson Mar 4, 2024
079ae09
chrome stable
michelson Mar 4, 2024
e35fcc0
chrome stable
michelson Mar 4, 2024
1458a6c
fixes
michelson Jun 6, 2024
281ac8e
controller update
michelson Jun 7, 2024
33d0035
controller update
michelson Jun 7, 2024
8e3f7ff
directuploadurl
michelson Jun 7, 2024
ccb4465
reports
michelson Jun 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
layout handing on turbo content
  • Loading branch information
michelson committed Nov 17, 2023
commit 3a0c70b80ced6193221c18d32976fb2df2644d45
7 changes: 4 additions & 3 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 209,11 @@ def current_resource_owner
end

def layout_by_resource
if turbo_frame_request?
return "application" if request.headers['Turbo-Frame'] == "content"
if turbo_frame_request?
return "application" if request.headers["Turbo-Frame"] == "content"

return false
end
end

if devise_controller?
"devise"
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/controllers/messenger_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 96,7 @@ export default class extends Controller {

break;
case 'tours:receive':
debugger
debugger;
message = {
type: 'chaskiq:user_tour_receive',
data: data.data,
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/controllers/tour_editor_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 102,7 @@ export default class extends Controller {
}

activatePreview(e) {
debugger
debugger;
window.parent.postMessage(
{
type: 'chaskiq:tours',
Expand Down
8 changes: 4 additions & 4 deletions app/javascript/new_embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 433,9 @@ window.Chaskiq = window.Chaskiq || {
},

loadUserTour(data) {
if(document.getElementById('tourManagerFrame')) {
console.log("skip tour as tour manager is active")
return
if (document.getElementById('tourManagerFrame')) {
console.log('skip tour as tour manager is active');
return;
}
const pattern = new UrlPattern(data.url.replace(/^.*\/\/[^\/] /, ''));
const currentLocation = document.location.pathname;
Expand Down Expand Up @@ -659,7 659,7 @@ window.Chaskiq = window.Chaskiq || {
this.handleFrameEvents(event.data.data);
break;
case 'chaskiq:tours':
debugger
debugger;
this.handleTourEditor.bind(this)(event.data);
break;
case 'chaskiq:banners':
Expand Down
8 changes: 5 additions & 3 deletions app/javascript/tour_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 34,8 @@ class TourManager {
}

pushEvent(data) {
console.log("ABOUT TO PUSH", data)
debugger
console.log('ABOUT TO PUSH', data);
debugger;
switch (data.action) {
case 'disablePreview':
this.disablePreview();
Expand Down Expand Up @@ -139,7 139,9 @@ class TourManager {

const cssPath = finder(target); // Assuming 'finder' is available in the context
const encodedCssPath = encodeURIComponent(cssPath);
const url = document.querySelector("#tourManagerFrame").src.replace("tour_editor", `tour_step?target=${encodedCssPath}`)
const url = document
.querySelector('#tourManagerFrame')
.src.replace('tour_editor', `tour_step?target=${encodedCssPath}`);
const path = {
target: cssPath,
content: `<div>
Expand Down
6 changes: 3 additions & 3 deletions app/models/bot_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 230,10 @@ def self.duplicate(record)
def bot_paths_objects
return @bot_paths_objects = [] if paths.blank?

@bot_paths_objects ||= (paths.map { |o|
@bot_paths_objects ||= paths.map do |o|
o.delete("followActions")
BotPath.new(o)
} || [])
BotPath.new(o)
end || []
end

def bot_paths_objects=(attrs)
Expand Down
Loading