meta_workflows 0.8.8 → 0.8.9

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: 9b59bf863e285b8d7f6b88f4d7547745bf89776f6e8c6ee1b7a77feee3fbe4d8
4
- data.tar.gz: 1e005cddde9031f92399c506f3ca84f61db4703b6784c2aa5b4e496f218a2ea9
3
+ metadata.gz: cb7fc05f27cea2d28257ac0b8712e260ec7d8f05bed224877eeef450f3b57d4a
4
+ data.tar.gz: 63d7b52ff4bf5dc960951996b8c0d86f7b088da7f279aa25bb7e02c9c7b4c52f
5
5
  SHA512:
6
- metadata.gz: 70110e137cc53c66b295d90b8a02485498029f30c62db4d4b7c5eedfe7c7b0273141745a30172ee1d7a0e6bb86aa32abf7446a921514c0b940c6c59d47c03a85
7
- data.tar.gz: d10e39347a37ae1b1747a19bc3baa501fe84698940726238229302f8504a53a5b01365e47c878b3aceb2add999dec9c1d723094b4c8551166526a03d2ca84f7b
6
+ metadata.gz: 141e4c91bf9be5664954762f5619cee0bc5a05d133c568dc73a96db9b2d6be1ca1ae9c4de28fa2acba8c7dfe510db0a91aa0a91c01285d4b1abeacf3406d06f6
7
+ data.tar.gz: 543b4fd54eaa0a21704524df8d34039f5c2a10a2e1b9d3282529c021fc5130bb8c8dbc217650152f2c1daaf8e1e00f0ab66826373603c34eaccfcf7250d6e6c8
@@ -27,6 +27,10 @@ module MetaWorkflows
27
27
  'meta_workflows/redirect'
28
28
  end
29
29
 
30
+ def meta_lexi_chat_right_tray
31
+ 'meta_workflows/lexi_chat_right_tray'
32
+ end
33
+
30
34
  def random_chat_placeholder
31
35
  [
32
36
  'What would you like to improve?',
@@ -0,0 +1,40 @@
1
+ <%# Lexi Chat Tray %>
2
+ <div class="relative flex flex-col h-[100vh] bg-white px-4">
3
+ <%# Header with Lexi logo and action icons %>
4
+ <div class="flex-shrink-0 flex items-center justify-between pb-2 border-b border-gray-200">
5
+ <div class="flex items-center space-x-2">
6
+ <%= image_tag("lexi_logo_color.png", alt: "Lexi Logo", class: "h-14 w-auto") %>
7
+ </div>
8
+ <div class="flex items-center gap-2">
9
+ <button type="button" class="p-2 rounded-xl hover:bg-gray-100" aria-label="New Chat" disabled>
10
+ <i class="fa-solid fa-plus text-xl"></i>
11
+ </button>
12
+ <button type="button" class="p-2 rounded-xl hover:bg-gray-100" aria-label="Chat History" disabled>
13
+ <i class="fa-solid fa-clock-rotate-left text-xl"></i>
14
+ </button>
15
+ </div>
16
+ </div>
17
+
18
+ <%# Chat messages area %>
19
+ <div class="flex-1 overflow-y-auto py-4 space-y-4">
20
+ <%= render partial: meta_loader, locals: {record: local_assigns[:record], step_progress: ["Generating draft course objectives...", "Talking to the LLM..."] } %>
21
+ </div>
22
+
23
+ <%# Lexi avatar and input area pinned to bottom %>
24
+ <div class="flex-1 relative bg-white min-h-[415px]">
25
+ <!-- Bottom section with recording notice and input area -->
26
+ <div class="absolute bottom-15 left-0 right-0 flex flex-col space-y-2 z-10">
27
+ <!-- Recording notice -->
28
+ <p class="text-left text-xs text-purple-600">This chat is being recorded.</p>
29
+
30
+ <!-- Input area -->
31
+ <div class="w-full">
32
+ <% active_execution = local_assigns[:record]&.workflow_executions&.order(created_at: :desc)&.first %>
33
+ <%= render partial: "meta_workflows/response_form_lexi", locals: {record: local_assigns[:record], response_enabled: true, workflow_execution_id: active_execution&.id, chat_id: active_execution&.workflow_steps&.last&.chat&.id } %>
34
+ </div>
35
+ </div>
36
+
37
+ <!-- Lexi image positioned absolutely to the right -->
38
+ <%= image_tag("lexi-expanded.png", alt: "Lexi Avatar", class: "absolute bottom-10 right-0 h-[375px] w-auto pointer-events-none") %>
39
+ </div>
40
+ </div>
@@ -3,7 +3,7 @@
3
3
  module MetaWorkflows
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- PATCH = 8 # this is automatically incremented by the build process
6
+ PATCH = 9 # 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.8.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Medovyy
@@ -150,6 +150,7 @@ files:
150
150
  - app/sidekiq/meta_workflows/tools/meta_workflow_tool.rb
151
151
  - app/views/layouts/meta_workflows/application.html.erb
152
152
  - app/views/layouts/meta_workflows/debug.html.erb
153
+ - app/views/meta_workflows/_lexi_chat_right_tray.html.erb
153
154
  - app/views/meta_workflows/_loader.html.erb
154
155
  - app/views/meta_workflows/_redirect.html.erb
155
156
  - app/views/meta_workflows/_response_form_lexi.html.erb