solid_queue_dashboard 0.1.0 → 0.1.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: bab2c28edcd8751ad636dcae7b2a464e937c4bf538c77a6f6be7f684bcc21e1d
4
- data.tar.gz: '0701197567cfa3ed1f5a54add9f6b7b59bec01ddaa014b6213885e22ef724774'
3
+ metadata.gz: cbfc49aa5b61cc358d9915e2e420c2c91fb2a7a414614deb8fbfb8a599d53c64
4
+ data.tar.gz: 7c6e3bcb681687f6fd3abd2e2be123161fdba3c42321612a2b911706c0bd3c59
5
5
  SHA512:
6
- metadata.gz: 5f40078988481a4f51e3433de13ce9640d218dda38ece0179e6d0b2526d78014db593b62c7b5ee69a4fa1c17c95a933da107c95690b550927ee4508d633595ed
7
- data.tar.gz: 3a731f4e5c33e77c5989c5f290d7befba922aefd46c0febf4d8de86ad1e6b261825b147d8996394556f43d50f528363e2fa01208c1f48b52e967029f9edacd4c
6
+ metadata.gz: 07642bb683411c0066061d88e4b62baae2d1fc5ad13c19fc134c3118eb5375c3f581e6b420926f763540cd16a67c60e5143c75fe2d7869ed7d0dcecfc57203a0
7
+ data.tar.gz: 85b9c616797395fa97ee275465fe6a4ce6688fd2f6548f75756dd7cae6482c647a5100be34d66626785a933e7d520f09b28d2104715919958d2a52ef658b63b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - October 7, 2024
4
+
5
+ - Replace OpenStruct with a Hash to avoid including the `ostruct` gem
6
+
3
7
  ## [0.1.0] - October 7, 2024
4
8
 
5
9
  - Initial release
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Solid Queue Dashboard
1
+ # Solid Queue Dashboard <sup>BETA</sup>
2
2
 
3
3
  <p align="center">
4
4
  <a href="https://github.com/akodkod/solid-queue-dashboard#gh-light-mode-only">
@@ -21,6 +21,7 @@
21
21
  - 🔄 Retry jobs from the UI
22
22
  - 🚫 No dependencies
23
23
  - 🐒 No monkey patching
24
+ - 💈 TailwindCSS
24
25
 
25
26
  ## Roadmap
26
27
  - 🏊‍♂️ Auto-pooling
@@ -1561,6 +1561,10 @@ body {
1561
1561
  margin-right: 0.375rem;
1562
1562
  }
1563
1563
 
1564
+ .mt-0\.5 {
1565
+ margin-top: 0.125rem;
1566
+ }
1567
+
1564
1568
  .mt-1 {
1565
1569
  margin-top: 0.25rem;
1566
1570
  }
@@ -1581,10 +1585,6 @@ body {
1581
1585
  margin-top: 2rem;
1582
1586
  }
1583
1587
 
1584
- .mt-0\.5 {
1585
- margin-top: 0.125rem;
1586
- }
1587
-
1588
1588
  .inline-block {
1589
1589
  display: inline-block;
1590
1590
  }
@@ -1867,19 +1867,6 @@ body {
1867
1867
  line-height: 1rem;
1868
1868
  }
1869
1869
 
1870
- .text-base {
1871
- font-size: 1rem;
1872
- line-height: 1.5rem;
1873
- }
1874
-
1875
- .text-\[15px\] {
1876
- font-size: 15px;
1877
- }
1878
-
1879
- .text-\[14px\] {
1880
- font-size: 14px;
1881
- }
1882
-
1883
1870
  .font-bold {
1884
1871
  font-weight: 700;
1885
1872
  }
@@ -32,7 +32,7 @@ module SolidQueueDashboard
32
32
  jobs = jobs.where(queue_name: params[:queue_name]) if params[:queue_name].present?
33
33
 
34
34
  @pagination = paginate(jobs, page: params[:page].to_i, per_page: params[:per_page].to_i)
35
- @jobs = SolidQueueDashboard.decorate(@pagination.records)
35
+ @jobs = SolidQueueDashboard.decorate(@pagination[:records])
36
36
  end
37
37
 
38
38
  def set_job
@@ -10,13 +10,13 @@ module SolidQueueDashboard
10
10
  total_count = scope.count
11
11
  total_pages = (total_count.to_f / per_page).ceil
12
12
 
13
- OpenStruct.new(
13
+ {
14
14
  records: records,
15
15
  current_page: page,
16
16
  per_page: per_page,
17
17
  total_pages: total_pages,
18
18
  total_count: total_count
19
- )
19
+ }
20
20
  end
21
21
 
22
22
  def page_range(current_page, total_pages, window: 2)
@@ -25,12 +25,12 @@
25
25
  <% end %>
26
26
  </div>
27
27
 
28
- <% if @pagination.total_pages > 1 %>
28
+ <% if @pagination[:total_pages] > 1 %>
29
29
  <div class="card-footer pt-6 border-t flex justify-between">
30
30
  <%= render partial: 'solid_queue_dashboard/application/pagination', locals: {
31
- current_page: @pagination.current_page,
32
- total_pages: @pagination.total_pages,
33
- per_page: @pagination.per_page
31
+ current_page: @pagination[:current_page],
32
+ total_pages: @pagination[:total_pages],
33
+ per_page: @pagination[:per_page]
34
34
  } %>
35
35
 
36
36
  <div class="flex items-center gap-2">
@@ -42,7 +42,7 @@
42
42
  <%= f.hidden_field :page, value: 1 %>
43
43
  <%= f.select :per_page,
44
44
  [10, 25, 50, 100],
45
- { selected: @pagination.per_page },
45
+ { selected: @pagination[:per_page] },
46
46
  class: "select w-24",
47
47
  data: { auto_submit: true }
48
48
  %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidQueueDashboard
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_queue_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kodkod
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.5.11
120
+ rubygems_version: 3.5.16
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Solid Queue Dashboard