meta_workflows 0.9.22 → 0.9.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1404f6e59d744f270e2363b7a81860281c9b27c866b3cf9187e7fe7bf278005f
4
- data.tar.gz: 767e829444443ca93c84dad56693a9cfc01bdae12e3a69bae66dff1259c3a4fd
3
+ metadata.gz: 726c1853fd74d44442e6948f4ecad0f15b0f4bc8c0ca178f5d74339478b4c5f1
4
+ data.tar.gz: 4831f59cb31e16def136625e45fbaf5260e6dd5d1eaa26caf0514a9959d4beaf
5
5
  SHA512:
6
- metadata.gz: 6ce0f15c4e087743fdc3c70bb184f378af3ffc34e34863ceca30dbf8b68b0f35ead1605f4f8707149e2eb9496a97d6b96fd823a6f7ea686199af91c68bffc359
7
- data.tar.gz: fc5d22929e95d6785ea16583167184ec378b9d2dfaf1784c051012b46ecc29287f1858647811d595df4dab4305fe839a95f3efe532deb409897bf4a4e049077d
6
+ metadata.gz: d4f4f00a82d6f151797509c0caf49fc1c65b967c459815c77d70e06cbba1afdf2a1a118a5525743feeb3d8097d64d2d59278fae989b946b11435b6ab66e4fda1
7
+ data.tar.gz: 1d04504d3da419f77e23be6bb244c8e759e98904bcbf21d680c4cfe7875321c45ca5fb381a25f967b81c1e64b904d0cd4eff295feb34305377c3c30d06e848e9
@@ -2,6 +2,10 @@
2
2
  <% active_execution = local_assigns[:record]&.workflow_executions&.order(created_at: :desc)&.first %>
3
3
  <% active_chat = active_execution&.workflow_steps&.last&.chat %>
4
4
  <% chat_history = active_execution&.execution_chat_history %>
5
+ <% current_step_data = active_execution&.step_data(active_execution&.current_step) %>
6
+ <% step_structured_input_config = current_step_data&.dig('structured_input') %>
7
+ <% is_structured_input = step_structured_input_config.present? && current_step_data&.dig('action') == 'structured_human' %>
8
+
5
9
 
6
10
  <div class="lexi-chat-alpha-tray">
7
11
  <%# Header with Lexi logo left and close button right %>
@@ -47,7 +51,7 @@
47
51
  <%= render meta_structured_input, record: local_assigns[:record], structured_input_config: false, is_structured_input: false %>
48
52
 
49
53
  <!-- Regular Form Input (always present) -->
50
- <%= render partial: meta_response_form, locals: {record: local_assigns[:record], response_enabled: true, workflow_execution_id: active_execution&.id, chat_id: active_execution&.workflow_steps&.last&.chat&.id, step_has_repetitions: true } %>
54
+ <%= render partial: meta_response_form, locals: {record: local_assigns[:record], response_enabled: true, workflow_execution_id: active_execution&.id, chat_id: active_execution&.workflow_steps&.last&.chat&.id, step_has_repetitions: true, is_structured_input: is_structured_input } %>
51
55
  </div>
52
56
  </div>
53
57
  </div>
@@ -2,6 +2,9 @@
2
2
  <% active_execution = local_assigns[:record]&.workflow_executions&.order(created_at: :desc)&.first %>
3
3
  <% active_chat = active_execution&.workflow_steps&.last&.chat %>
4
4
  <% chat_history = active_execution&.execution_chat_history %>
5
+ <% current_step_data = active_execution&.step_data(active_execution&.current_step) %>
6
+ <% step_structured_input_config = current_step_data&.dig('structured_input') %>
7
+ <% is_structured_input = step_structured_input_config.present? && current_step_data&.dig('action') == 'structured_human' %>
5
8
 
6
9
  <div class="lexi-chat-tray lexi-chat-container-full">
7
10
  <!-- Header with Lexi logo and action icons -->
@@ -36,8 +39,10 @@
36
39
  <!-- Avatar and input area pinned to bottom -->
37
40
  <div class="lexi-chat-bottom">
38
41
  <%= image_tag("lexi-expanded.png", alt: "Lexi Avatar", class: "lexi-avatar") %>
39
- <div class="lexi-input-wrapper">
40
- <%= render partial: meta_response_form, locals: {record: local_assigns[:record], response_enabled: true, workflow_execution_id: active_execution&.id, chat_id: active_execution&.workflow_steps&.last&.chat&.id, step_has_repetitions: true } %>
42
+ <div class="lexi-input-wrapper" data-controller="meta-workflows--lexi-form-submit">
43
+ <%= render meta_structured_input, record: local_assigns[:record], structured_input_config: false, is_structured_input: false %>
44
+
45
+ <%= render partial: meta_response_form, locals: {record: local_assigns[:record], response_enabled: true, workflow_execution_id: active_execution&.id, chat_id: active_execution&.workflow_steps&.last&.chat&.id, step_has_repetitions: true, is_structured_input: is_structured_input } %>
41
46
  </div>
42
47
  </div>
43
48
  </div>
@@ -3,7 +3,7 @@
3
3
  module MetaWorkflows
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
- PATCH = 22 # this is automatically incremented by the build process
6
+ PATCH = 23 # 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.22
4
+ version: 0.9.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Medovyy