meta_workflows 0.9.43 → 0.9.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/meta_workflows/workflow_data_helper.rb +2 -4
- data/app/services/meta_workflows/lexi_chat_data_service.rb +11 -4
- data/app/views/meta_workflows/_lexi_chat_alpha_tray.html.erb +1 -2
- data/app/views/meta_workflows/_lexi_chat_right_tray.html.erb +1 -1
- data/lib/meta_workflows/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd047cd84eeaf45209abd24597ca461fabacbc4593a693120e0162c58bff0664
|
4
|
+
data.tar.gz: e751ab42fc518dffc78891fa8d3c9b7ff21100b2c84b426aa58cd3adb3c9187c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 118c9df59408e845b035618432edf2db7d08913946ff215531740443b01784184dcc873ea0cd62a28fa7d39c8196863c36dd27164401f2bbb5ee8f98dd5a1abf
|
7
|
+
data.tar.gz: c07bbef4af4f224146c3b2901ae08a9102c9c61bc2e75b09bc9b38ed91b9fcfa620411b8e90d9a2b8d94be6ff3b1bf67b54c415cfb43362ceb7b09f8c298e1fb
|
@@ -17,12 +17,10 @@ module MetaWorkflows
|
|
17
17
|
local_assigns[:chat_id] || local_assigns[:current_step]&.chat&.id
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
LexiChatDataService.new(record).call
|
20
|
+
def lexi_chat_data(record, workflow_id:)
|
21
|
+
LexiChatDataService.new(record, workflow_id:).call
|
23
22
|
end
|
24
23
|
|
25
|
-
# Common locals for lexi chat input area
|
26
24
|
def lexi_chat_input_locals(record, chat_data, wrapper_class)
|
27
25
|
{
|
28
26
|
record: record,
|
@@ -2,13 +2,22 @@
|
|
2
2
|
|
3
3
|
module MetaWorkflows
|
4
4
|
class LexiChatDataService < ApplicationService
|
5
|
-
|
5
|
+
attr_reader :record, :workflow_id
|
6
|
+
|
7
|
+
def initialize(record, workflow_id:)
|
6
8
|
super()
|
7
9
|
@record = record
|
10
|
+
@workflow_id = workflow_id
|
8
11
|
end
|
9
12
|
|
10
13
|
def call
|
11
|
-
|
14
|
+
return build_empty_data if @workflow_id.nil?
|
15
|
+
|
16
|
+
executions = @record.workflow_executions&.where(
|
17
|
+
workflow_id: @workflow_id,
|
18
|
+
completed: false,
|
19
|
+
created_at: 1.minute.ago..
|
20
|
+
)
|
12
21
|
active_execution = executions&.order(created_at: :desc)&.first
|
13
22
|
|
14
23
|
if active_execution
|
@@ -20,8 +29,6 @@ module MetaWorkflows
|
|
20
29
|
|
21
30
|
private
|
22
31
|
|
23
|
-
attr_reader :record
|
24
|
-
|
25
32
|
def build_active_execution_data(active_execution)
|
26
33
|
current_step = active_execution.latest_workflow_step
|
27
34
|
active_chat = active_execution.latest_chat
|
@@ -1,6 +1,5 @@
|
|
1
1
|
<%# Lexi Chat Alpha Tray (Center Display) %>
|
2
|
-
<% chat_data = lexi_chat_data(local_assigns[:record]) %>
|
3
|
-
|
2
|
+
<% chat_data = lexi_chat_data(local_assigns[:record], workflow_id: local_assigns[:workflow_id]) %>
|
4
3
|
|
5
4
|
<div class="lexi-chat-alpha-tray">
|
6
5
|
<%# Header with Lexi logo left and close button right %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module MetaWorkflows
|
4
4
|
MAJOR = 0
|
5
5
|
MINOR = 9
|
6
|
-
PATCH =
|
6
|
+
PATCH = 45 # this is automatically incremented by the build process
|
7
7
|
|
8
8
|
VERSION = "#{MetaWorkflows::MAJOR}.#{MetaWorkflows::MINOR}.#{MetaWorkflows::PATCH}".freeze
|
9
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_workflows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonid Medovyy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|