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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7daeda7248ec104695faa1a51fbe03595836171b4a8188404c1a26801740e906
|
|
4
|
+
data.tar.gz: 1334a427213528ddc38ebddf99f7e82ca9f0debb69fe7e77173d87e93e2684c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
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) %>
|
data/lib/ideasbugs/version.rb
CHANGED