ideasbugs 0.5.4 → 0.5.5

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: 8959223a89b198251b3fe0697330ebe2fe2054bfa8c0a258bb3ef9470d3f171b
4
- data.tar.gz: fb7b3d95aac04d6e70942377b714771cd33ac10732d29833405446425c1ab8f2
3
+ metadata.gz: 7daeda7248ec104695faa1a51fbe03595836171b4a8188404c1a26801740e906
4
+ data.tar.gz: 1334a427213528ddc38ebddf99f7e82ca9f0debb69fe7e77173d87e93e2684c7
5
5
  SHA512:
6
- metadata.gz: 304eb89d1bd1529e54356e8eaa647f004c85f7cc5eddf040fa746cc3c5a5a654a26da06235fd57d1010da3c477fbf7d45fb143d99775c73f38af02971c372b85
7
- data.tar.gz: e54f393078ca2e69afc9ecba2b81bb44849ce91c69501c14e84af4c820daa586bf421079f75c66b601086eee99be505832950804631d0f1624a0edaa4e58ac1a
6
+ metadata.gz: 5d33ab91a108070a71ea6bb55a6f4b0d1f31ec794910d0987259034c09ffad7d893a3c3914d9809b1f847b8fabfe85ae87f774761cf7f85347647dfef1c2e04e
7
+ data.tar.gz: bc50e8601b2f5dff8af7b570a9feb04158e325db04988eff7817544c17d1438820026b36003339c8bff797608b3adef476f1acf89e7ab6f5922da3bc51b0ec7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.5 (2026-07-25)
4
+
5
+ - The dashboard's **Section** column now only appears when it carries
6
+ information — when sections are configured (`config.sections`) or some
7
+ record already has one. Apps that don't use sections no longer see a
8
+ permanently blank column.
9
+
3
10
  ## 0.5.4 (2026-07-25)
4
11
 
5
12
  - Docs: show how to wire current_user with Rails 8's built-in authentication
@@ -35,6 +35,11 @@ module Ideasbugs
35
35
  @feedbacks = scope.newest_first.offset((@page - 1) * PER_PAGE).limit(PER_PAGE + 1).to_a
36
36
  @more = @feedbacks.size > PER_PAGE
37
37
  @feedbacks = @feedbacks.first(PER_PAGE)
38
+
39
+ # Only surface the Section column when it can carry information: the host
40
+ # configured sections, or some record already has one (e.g. sections were
41
+ # configured historically). Otherwise it's a permanently blank column.
42
+ @show_section = Ideasbugs.config.sections.any? || @feedbacks.any? { |f| f.section.present? }
38
43
  end
39
44
 
40
45
  def show; end
@@ -33,7 +33,9 @@
33
33
  <tr>
34
34
  <th><%= t('ideasbugs.kind', default: 'Type') %></th>
35
35
  <th><%= t('ideasbugs.dashboard.message', default: 'Message') %></th>
36
- <th><%= t('ideasbugs.section', default: 'Section') %></th>
36
+ <% if @show_section %>
37
+ <th><%= t('ideasbugs.section', default: 'Section') %></th>
38
+ <% end %>
37
39
  <th><%= t('ideasbugs.dashboard.from', default: 'From') %></th>
38
40
  <th><%= t('ideasbugs.dashboard.filed', default: 'Filed') %></th>
39
41
  </tr>
@@ -52,7 +54,9 @@
52
54
  <div class="muted">📎 <%= feedback.screenshots.count %></div>
53
55
  <% end %>
54
56
  </td>
55
- <td><%= feedback.section %></td>
57
+ <% if @show_section %>
58
+ <td><%= feedback.section %></td>
59
+ <% end %>
56
60
  <td><%= feedback.author_label %></td>
57
61
  <td class="muted" title="<%= feedback.created_at %>">
58
62
  <%= time_ago_in_words(feedback.created_at) %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ideasbugs
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ideasbugs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Shmarov