hub_kernel-mcp 0.9.0 → 0.9.1

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: e8534b1719040ee0fe7abd7dbf92ab23f559c488830a708197ee1b2180c10ef8
4
- data.tar.gz: c9786d5f6a3f119b0764d13f89388c0f79af29c61a61a5474ccb0c416e787be5
3
+ metadata.gz: d26003121a20f3e1e7b758c89982c7724c444b685c0d4477347bcd0eee324b4b
4
+ data.tar.gz: f96eb8071cf5eefbf0b03d14a0a4663547b52ef15f90c7a9d4af4e0e8c758cbc
5
5
  SHA512:
6
- metadata.gz: cf5665cfff0c4fa70f333d33da2f44d0bf1ad4ea61d36963c072c0c1111092b6b49ad81c6602d397bb5554dc1870acf7077afe64c3ea5514e8f564fa1f23a318
7
- data.tar.gz: 679fde439d3736ba3ad2237dd50588cef2ca1c5692758791461b639bab6273fc133266f18492d96d30dedfd38ec5edbd8f85af496cd070493affea4dab342be9
6
+ metadata.gz: e46d9276d87ffbc06af4e47a286e2fac1f5f603f602b8fb66e5b023e8f8993075ea53dd0b5bdbcac18707fb04cbd0ff111d5f59aadd7df3c927f08070b7bc82c
7
+ data.tar.gz: b8e5b6b213b279b56054d64660ed58850de24deb06972f8ee12d7fa0a4ca7710406bf04587863a12f6e6324d28eced28869e0f08fb19ab7df28db1ee2fbb6713
@@ -1,15 +1,10 @@
1
- <ul>
2
- <% HubKernel::Mcp::Connection.of(person).includes(:client).order(:created_at).each do |connection| %>
3
- <li>
4
- <%= ui_section(title: connection.client.name, subtitle: "Connected #{l(connection.created_at, format: :long)}") do %>
5
- <%= ui_panel do %>
6
- <span><%= connection.last_used_at ? "Last used #{l(connection.last_used_at, format: :long)}" : "Never used" %></span>
7
- <%= ui_form(action: submit_url, method: :patch) do %>
8
- <%= hidden_field_tag :connection_id, connection.id %>
9
- <%= ui_button(label: "Disconnect", variant: :danger) %>
10
- <% end %>
11
- <% end %>
12
- <% end %>
13
- </li>
1
+ <% connections = HubKernel::Mcp::Connection.of(person).includes(:client).order(:created_at).map do |connection|
2
+ { id: connection.id, app: connection.client.name, connected: l(connection.created_at, format: :long), last_used: connection.last_used_at ? l(connection.last_used_at, format: :long) : "Never" }
3
+ end %>
4
+ <%= ui_section(title: "Connected apps") do %>
5
+ <%= ui_data_table(items: connections, columns: [ { app: "App" }, { connected: "Connected" }, { last_used: "Last used" } ], empty_message: "No apps are connected.") do |table| %>
6
+ <% table.actions do |connection| %>
7
+ <%= ui_action_menu_item(label: "Disconnect", href: "#{submit_url}?#{{ connection_id: connection[:id] }.to_query}", method: :patch) %>
8
+ <% end %>
14
9
  <% end %>
15
- </ul>
10
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  module HubKernel
2
2
  module Mcp
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hub_kernel-mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider